mscroggs.co.uk
mscroggs.co.uk
Click here to win prizes by solving the mscroggs.co.uk puzzle Advent calendar.
Click here to win prizes by solving the mscroggs.co.uk puzzle Advent calendar.

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 "raenil" backwards in the box below (case sensitive):

Archive

Show me a random blog post
 2026 

Nov 2026

Christmas (2026) is coming!

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

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

Archive

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