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 "h" then "e" then "x" then "a" then "g" then "o" then "n" in the box below (case sensitive):

Archive

Show me a random blog post
 2025 

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

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

Archive

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