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 "u" then "n" then "c" then "o" then "u" then "n" then "t" then "a" then "b" then "l" then "e" 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

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

Archive

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