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 "emirp" backwards 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

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

Archive

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