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 "k" then "i" then "t" 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

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

Archive

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