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 "tneitouq" 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

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

Archive

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