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 "f" then "a" then "c" then "t" then "o" then "r" in the box below (case sensitive):

Archive

Show me a random blog post
 2025 

Mar 2025

How to write a crossnumber

Jan 2025

Christmas (2024) is over
Friendly squares
 2024 
▼ show ▼
 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

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

Archive

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