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 "orez" backwards in the box below (case sensitive):

Archive

Show me a random blog post
 2026 

Feb 2026

Christmas (2025) is over
 2025 
▼ show ▼
 2024 
▼ show ▼
 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

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

Archive

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