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 "y" then "-" then "a" then "x" then "i" then "s" 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

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

Archive

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