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 "sixa-y" backwards 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

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

Archive

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