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

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

Archive

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