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 "q" then "u" then "o" then "t" then "i" then "e" then "n" then "t" 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

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

Archive

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