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 "f" then "a" then "c" then "t" then "o" then "r" in the box below (case sensitive):

Archive

Show me a random blog post
 2025 

Jun 2025

A nonogram alphabet

Mar 2025

How to write a crossnumber

Jan 2025

Christmas (2024) is over
Friendly squares
 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

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

Archive

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