mscroggs.co.uk
mscroggs.co.uk

subscribe

Blog

A non-converging LaTeX document

 2019-09-15 
Today, I wrote this LaTeΧ document. It only uses default LaTeΧ functionality, and uses no packages.
If you compile it (twice so that cross references are not ??s), you will get a four page document (pages numbered i to iv), that repeatedly says: "This document ends on page v."
This document ends on page iv and says: "This document ends on page v."
If you then recompile it, you will get a five page document (pages numbered i to v), that repeatedly says: "This document ends on page iv."
This document ends on page v and says: "This document ends on page iv."
Repeatedly compiling it will alternately give these two results, and so the process of compiling this LaTeX document does not converge.
Tags: latex
                        
(Click on one of these icons to react to this blog post)

You might also enjoy...

Comments

Comments in green were written by me. Comments in blue were not written by me.
 Add a Comment 


I will only use your email address to reply to your comment (if a reply is needed).

Allowed HTML tags: <br> <a> <small> <b> <i> <s> <sup> <sub> <u> <spoiler> <ul> <ol> <li> <logo>
To prove you are not a spam bot, please type "c" then "o" then "s" then "i" then "n" then "e" in the box below (case sensitive):

Archive

Show me a random blog post
 2026 

May 2026

World Cup stickers 2026

Apr 2026

A new puzzle every day
Mixing Wordle with other games

Feb 2026

Christmas (2025) is over
 2025 

Dec 2025

Christmas card 2025

Nov 2025

Christmas (2025) is coming!

Sep 2025

The partridge puzzle

Aug 2025

TMiP 2025 puzzle hunt

Jun 2025

A nonogram alphabet

Mar 2025

How to write a crossnumber

Jan 2025

Christmas (2024) is over
Friendly squares
 2024 

Dec 2024

A regular expression Christmas puzzle
Christmas card 2024

Nov 2024

Christmas (2024) is coming!

Feb 2024

Zines, pt. 2

Jan 2024

Christmas (2023) is over
 2023 
▼ show ▼
 2022 
▼ show ▼
 2021 
▼ show ▼
 2020 
▼ show ▼
 2019 
▼ show ▼
 2018 
▼ show ▼
 2017 
▼ show ▼
 2016 
▼ show ▼
 2015 
▼ show ▼
 2014 
▼ show ▼
 2013 
▼ show ▼
 2012 
▼ show ▼

Tags

matrix of cofactors weather station matt parker golden spiral games reuleaux polygons wool matrix of minors youtube databet countdown raspberry pi turtles recursion tennis logic oeis interpolation asteroids javascript rugby phd errors nonograms rhombicuboctahedron reddit sound european cup bempp convergence gerry anderson signorini conditions craft christmas card chebyshev latex golden ratio cross stitch alphabets video games ternary crochet rust nine men's morris pi pac-man manchester science festival pi approximation day plastic ratio news martin gardner speed gaussian elimination mathsteroids data arrangement puzzles the aperiodical warwick dataset geometry graph theory a gamut of games christmas pythagoras frobel big internet math-off geogebra wordle inline code braiding graphs manchester programming logs draughts data visualisation sobolev spaces noughts and crosses matrices royal institution triangles pokémon wordle flexagons estimation php london dinosaurs football tmip gather town curvature kenilworth pizza cutting approximation edinburgh 24 hour maths thirteen anscombe's quartet regular expressions coventry world cup friendly squares logo bodmas finite element method captain scarlet misleading statistics machine learning error bars hannah fry fence posts national lottery talking maths in public probability hexapawn matrix multiplication palindromes menace mathsjam newcastle advent calendar fonts arithmetic dates trigonometry standard deviation light statistics harriss spiral chalkdust magazine london underground final fantasy partridge puzzle hats puzzles pokémon wave scattering accuracy folding paper bluesky dragon curves hyperbolic surfaces go binary chess polynomials game of life python stickers numerical analysis folding tube maps royal baby ucl propositional calculus preconditioning sorting correlation tetris runge's phenomenon crosswords fractals determinants quadrilaterals coins game show probability books live stream cambridge stirling numbers crossnumbers people maths bubble bobble numbers mean map projections weak imposition inverse matrices pascal's triangle sport realhats exponential growth guest posts crossnumber electromagnetic field finite group squares mathslogicbot platonic solids datasaurus dozen zines kings boundary element methods simultaneous equations radio 4 bots computational complexity

Archive

Show me a random blog post
▼ show ▼
© Matthew Scroggs 2012–2026