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

Archive

Show me a random blog post
 2025 

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

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

Archive

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