LaTeX forum ⇒ Page LayoutHow to typeset many headings with no bodies? (After about 20 they don't fit on a page, and latex is not creating new)

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
lockywolf
Posts: 3
Joined: Tue Aug 27, 2019 4:18 am

How to typeset many headings with no bodies? (After about 20 they don't fit on a page, and latex is not creating new)

Postby lockywolf » Tue Aug 27, 2019 4:32 am

I have a document (I use the 'article' class, but I cannot guarantee that, since the users may override it.), which only consists of headings of various kinds (\chapter, \section, \subsection, \subsubsection, god knows which), about 200 of them.

When I compile it with latex (I use lualatex), the result is very creepy, namely, I am getting an empty page, followed by the page that has the first ~20 headings. The last headings are overflowing to the bottom margin (which should only have a page number, or even have nothing), and no new pages are being created, so the rest ~180 headings are lost.

How do I make latex never ever go outside the boxes where it is intended to be? (To avoid inappropriate text in the margins.)
How do I make latex create new pages when they are needed? I cannot overload \section, \subsection, etc, commands, because I can't know in advance what their names are. (Otherwise I could, perhaps, write something like \renewcommand\section{\section\vspace{0.001cm}}, but again, I need a robust solution, which is not based on a pre-computed set of section names, sizes, etc.

My MWE is the following:

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass[11pt,a4paper]{article}
  2. \begin{document}
  3.  
  4. \section{{\bfseries\sffamily TODO} Good Books [0/33]}
  5. \subsection{{\bfseries\sffamily TODO} {http://www.finseth.com/craft/}{Craft of Text Editing about Emacs}}
  6. \subsection{{\bfseries\sffamily TODO} The art of Metaobject protocol {https://en.m.wikipedia.org/wiki/The\_Art\_of\_the\_Metaobject\_Protocol}{Wikipedia Link}}
  7. \subsection{{\bfseries\sffamily TODO} lesswrong.com {https://www.lesswrong.com/}{Link online}}
  8. \subsection{{\bfseries\sffamily TODO} lesswrong.ru}
  9. \subsection{{\bfseries\sffamily TODO} Ilya Prigogine Philosophy of complexity?}
  10. \subsection{{\bfseries\sffamily TODO} An Introduction to the Graphic Language: The Vocabulary, Grammatical Construction, Idiomatic Use, and Historical Development, with Special Reference to the Reading of Drawings -- by Gardner Chace}
  11. \subsection{{\bfseries\sffamily TODO} Getting Things Done}
  12. \subsection{{\bfseries\sffamily TODO} Kernigan-Pike Practice of Programming}
  13. \subsection{{\bfseries\sffamily TODO} Model Calibration and Parameter Estimation}
  14. \subsection{{\bfseries\sffamily TODO} Hitchhiker's Guide to the Galaxy\hfill{}\textsc{hate}}
  15. \subsection{{\bfseries\sffamily TODO} Thomas Hunt Pragmatic Programmer}
  16. \subsection{{\bfseries\sffamily TODO} r-5.org}
  17. \subsection{{\bfseries\sffamily TODO} otoro.net machine learning research blog}
  18. \subsection{{\bfseries\sffamily TODO} Weinberg The Trouble With Quantum Mechanics}
  19. \subsection{{\bfseries\sffamily TODO} Elements of Statistical Learning}
  20. \subsection{{\bfseries\sffamily TODO} Tufte Book on graphs}
  21. \subsection{{\bfseries\sffamily TODO} sumofsquares.org book}
  22. \subsection{{\bfseries\sffamily TODO} Gabriel Wyner Fluent Forever How To Learn Any Language}
  23. \subsection{{\bfseries\sffamily TODO} {https://en.wikipedia.org/wiki/Scientific\_community\_metaphor} and subbooks}
  24. \subsection{{\bfseries\sffamily TODO} {https://www.amazon.com/dp/0201433117/?tag=stackoverfl08-20}}
  25. \subsection{{\bfseries\sffamily TODO} {http://immersivemath.com/ila/index.html}{Immersive Linear Algebra}}
  26. \subsection{{\bfseries\sffamily TODO} {http://discrete.openmathbooks.org/dmoi3.html}{Discrete Mathematics Open Book}}
  27. \subsection{{\bfseries\sffamily TODO} danijar.com}
  28. \subsection{{\bfseries\sffamily TODO} Terry Tang Yuan github.io}
  29. \subsection{{\bfseries\sffamily TODO} blog.mdda.net}
  30. \subsection{{\bfseries\sffamily TODO} brilliant.org blog}
  31. \subsection{{\bfseries\sffamily TODO} {http://gaudisite.nl/newspage.html}{Gaudi Systems Architecture}}
  32. \subsection{{\bfseries\sffamily TODO} Farnam Street}
  33. \subsection{{\bfseries\sffamily TODO} {http://www.mitchr.me/SS/books/Catigory\_index.html} and subbooks}
  34. \subsection{{\bfseries\sffamily TODO} {https://www.scrumalliance.org/labs}{Scrum Alliance}}
  35. \subsection{{\bfseries\sffamily TODO} {http://flibusta.is/b/482781}{Gippenreiter-2+3}}
  36. \subsection{{\bfseries\sffamily TODO} {http://timmurphy.org/2018/05/22/combining-pdf-documents-using-latex/}{Tim Murphy's Blog}}
  37. \subsection{{\bfseries\sffamily TODO} {http://flibusta.is/b/122923}{Ruth Benedict Chrysanthemum and Sword}}
  38. \subsection{{\bfseries\sffamily TODO} {https://www.amazon.com/Mathematicians-Lament-School-Fascinating-Imaginative/dp/1934137170/ref=pd\_aw\_sbs\_14\_1/146-9551928-4683768?\_encoding=UTF8\&pd\_rd\_i=1934137170\&pd\_rd\_r=ebc1f528-5232-11e9-a585-0fccb0784f1b\&pd\_rd\_w=gnvYP\&pd\_rd\_wg=V2MnV\&pf\_rd\_p=aae79475-6dc9-4a12-80e8-27b63108fa72\&pf\_rd\_r=GC659QJ4DRN1YBNG4HZE\&psc=1\&refRID=GC659QJ4DRN1YBNG4HZE}{Mathematician's Lament}}
  39. \subsection{{\bfseries\sffamily TODO} Tech books}
  40. \subsubsection{{\bfseries\sffamily TODO} Lamport Latex}
  41. \subsubsection{{\bfseries\sffamily TODO} Spivak, JoyOfTex}
  42. \subsubsection{{\bfseries\sffamily TODO} Knuth TeXbook}
  43. \subsubsection{{\bfseries\sffamily TODO} FreeCAD}
  44. \subsubsection{{\bfseries\sffamily TODO} SWIG}
  45. \subsubsection{{\bfseries\sffamily TODO} Emacs Lisp}
  46. \subsubsection{{\bfseries\sffamily TODO} Kernigan-Pike}
  47. \subsubsection{{\bfseries\sffamily TODO} Pragmatic Programmer}
  48. \subsubsection{{\bfseries\sffamily TODO} GDB}
  49. \subsubsection{{\bfseries\sffamily TODO} IDA Pro}
  50. \subsubsection{{\bfseries\sffamily TODO} Togaf}
  51. \subsubsection{{\bfseries\sffamily TODO} Craig Scott CMAKE}
  52. \subsubsection{{\bfseries\sffamily TODO} OpenSCAD}
  53. \subsubsection{{\bfseries\sffamily DONE} AUCTeX}
  54. \subsubsection{{\bfseries\sffamily DONE} Magit}
  55. \subsection{{\bfseries\sffamily TODO} Science Books}
  56. \subsubsection{{\bfseries\sffamily TODO} Shen Kolmogorov Komplexity}
  57. \subsubsection{{\bfseries\sffamily TODO} Arora-Barak}
  58. \subsubsection{{\bfseries\sffamily TODO} Strandh}
  59. \subsubsection{{\bfseries\sffamily TODO} Kleinberg-Tardos}
  60. \subsubsection{{\bfseries\sffamily TODO} Sipser Introduction to theory of computation}
  61. \subsubsection{{\bfseries\sffamily TODO} Romanyuk}
  62. \subsubsection{{\bfseries\sffamily TODO} Papoulis}
  63. \subsubsection{{\bfseries\sffamily TODO} Model Calibration and Parameter Estimation}
  64. \subsection{{\bfseries\sffamily TODO} Work}
  65. \subsubsection{{\bfseries\sffamily TODO} Patents}
  66. \subsubsection{{\bfseries\sffamily TODO} POSA-5}
  67. \subsubsection{{\bfseries\sffamily TODO} MBSA}
  68. \subsubsection{{\bfseries\sffamily TODO} ASML}
  69. \subsubsection{{\bfseries\sffamily TODO} Wymore}
  70. \subsection{{\bfseries\sffamily TODO} Culture}
  71. \subsubsection{{\bfseries\sffamily TODO} Sources of Chinese Tradition}
  72. \subsection{{\bfseries\sffamily TODO} Books that `If I have time'}
  73. \subsubsection{{\bfseries\sffamily TODO} The \LaTeX{} Companion by Goossens, Mittelbach}
  74. \subsubsection{{\bfseries\sffamily TODO} \LaTeX{} Web Companion}
  75. \subsubsection{{\bfseries\sffamily TODO} Simmons Modern Analysis}
  76. \subsubsection{{\bfseries\sffamily TODO} Sussman, A computational model of Skill Acquisition}
  77. \subsubsection{{\bfseries\sffamily TODO} Julie Sussman, I can read that a traveler's introduction to Chinese}
  78. \subsubsection{{\bfseries\sffamily TODO} Michael Kerrisk Linux API}
  79. \subsubsection{{\bfseries\sffamily TODO} Acoff-Emery on purposeful systems}
  80. \subsubsection{{\bfseries\sffamily TODO} Gabriel Wyner How to learn any language and never forget}
  81. \subsubsection{{\bfseries\sffamily TODO} Structure and interpretation of classical mechanics}
  82. \subsubsection{{\bfseries\sffamily TODO} Russel/Norvig Artificial Intelligence Modern Approach (STRIPS algorithm)}
  83. \subsubsection{{\bfseries\sffamily TODO} Han Abelson Lower Bounds on Information Transfer in Distributed Computations}
  84. \subsubsection{{\bfseries\sffamily TODO} Abelson Blown to Bits}
  85. \subsubsection{{\bfseries\sffamily TODO} Shirko, Nonlinear Continual Mechanics}
  86. \subsubsection{{\bfseries\sffamily TODO} Dougherty Random Processes for Image Processing}
  87. \subsection{{\bfseries\sffamily TODO} Philosophy}
  88. \subsubsection{{\bfseries\sffamily TODO} Proudhon}
  89. \subsubsection{{\bfseries\sffamily TODO} Das Kapital}
  90. \subsubsection{{\bfseries\sffamily TODO} Wittgenstein}
  91. \subsubsection{{\bfseries\sffamily TODO} Zhorzhh Durua ( George Durois?)}
  92. \subsubsection{{\bfseries\sffamily TODO} Ludwig von Mises}
  93. \end{document}

User avatar
Ijon Tichy
Posts: 392
Joined: Mon Dec 24, 2018 10:12 am

Postby Ijon Tichy » Tue Aug 27, 2019 8:09 am

Sections (and also chapters etc.) in LaTeX are designed to not allow page breaks immediately after the title, because this would break typography. Here you've misused sections to something which is more or less a list. And I would really recommend to use nested lists or something similar for it, e.g.
Code: [Select all] [Expand/Collapse] [Download] (list-example.tex)
  1. \documentclass[11pt,a4paper]{article}
  2. \usepackage{enumitem}
  3. \usepackage{hyperref}
  4.  
  5. \newlist{todo}{itemize}{4}% you could also depend on enumerate instead of itemize to have numbers
  6. \setlist[todo]{label={TODO},font=\sffamily\bfseries,align=left,labelwidth=*,leftmargin=*}% try also leftmargin=0pt instead of leftmargin=*
  7. \setlist[todo,1]{before=\Large}
  8. \setlist[todo,2]{before=\large}
  9. \setlist[todo,3]{before=\normalsize}
  10.  
  11. %\usepackage{showframe}
  12. \begin{document}
  13.  
  14. \begin{todo}
  15. \item Good Books [0/33]
  16. \begin{todo}
  17. \item \href{http://www.finseth.com/craft/}{Craft of Text Editing about Emacs}
  18. \item The art of Metaobject protocol \href{https://en.m.wikipedia.org/wiki/The\_Art\_of\_the\_Metaobject\_Protocol}{Wikipedia Link}
  19. \item lesswrong.com \href{https://www.lesswrong.com/}{Link online}
  20. \item lesswrong.ru
  21. \item Ilya Prigogine Philosophy of complexity?
  22. \item An Introduction to the Graphic Language: The Vocabulary, Grammatical Construction, Idiomatic Use, and Historical Development, with Special Reference to the Reading of Drawings -- by Gardner Chace
  23. \item Getting Things Done
  24. \item Kernigan-Pike Practice of Programming
  25. \item Model Calibration and Parameter Estimation
  26. \item Hitchhiker's Guide to the Galaxy\hfill{}\textsc{hate}
  27. \item Thomas Hunt Pragmatic Programmer
  28. \item r-5.org
  29. \item otoro.net machine learning research blog
  30. \item Weinberg The Trouble With Quantum Mechanics
  31. \item Elements of Statistical Learning
  32. \item Tufte Book on graphs
  33. \item sumofsquares.org book
  34. \item Gabriel Wyner Fluent Forever How To Learn Any Language
  35. \item \url{https://en.wikipedia.org/wiki/Scientific\_community\_metaphor} and subbooks
  36. \item \url{https://www.amazon.com/dp/0201433117/?tag=stackoverfl08-20}
  37. \item \href{http://immersivemath.com/ila/index.html}{Immersive Linear Algebra}
  38. \item \href{http://discrete.openmathbooks.org/dmoi3.html}{Discrete Mathematics Open Book}
  39. \item danijar.com
  40. \item Terry Tang Yuan github.io
  41. \item blog.mdda.net
  42. \item brilliant.org blog
  43. \item \href{http://gaudisite.nl/newspage.html}{Gaudi Systems Architecture}
  44. \item Farnam Street
  45. \item \url{http://www.mitchr.me/SS/books/Catigory\_index.html} and subbooks
  46. \item \href{https://www.scrumalliance.org/labs}{Scrum Alliance}
  47. \item \href{http://flibusta.is/b/482781}{Gippenreiter-2+3}
  48. \item \href{http://timmurphy.org/2018/05/22/combining-pdf-documents-using-latex/}{Tim Murphy's Blog}
  49. \item \href{http://flibusta.is/b/122923}{Ruth Benedict Chrysanthemum and Sword}
  50. \item \href{https://www.amazon.com/Mathematicians-Lament-School-Fascinating-Imaginative/dp/1934137170/ref=pd\_aw\_sbs\_14\_1/146-9551928-4683768?\_encoding=UTF8\&pd\_rd\_i=1934137170\&pd\_rd\_r=ebc1f528-5232-11e9-a585-0fccb0784f1b\&pd\_rd\_w=gnvYP\&pd\_rd\_wg=V2MnV\&pf\_rd\_p=aae79475-6dc9-4a12-80e8-27b63108fa72\&pf\_rd\_r=GC659QJ4DRN1YBNG4HZE\&psc=1\&refRID=GC659QJ4DRN1YBNG4HZE}{Mathematician's Lament}
  51. \item Tech books
  52. \begin{todo}
  53. \item Lamport Latex
  54. \item Spivak, JoyOfTex
  55. \item Knuth TeXbook
  56. \item FreeCAD
  57. \item SWIG
  58. \item Emacs Lisp
  59. \item Kernigan-Pike
  60. \item Pragmatic Programmer
  61. \item GDB
  62. \item IDA Pro
  63. \item Togaf
  64. \item Craig Scott CMAKE
  65. \item OpenSCAD
  66. \begin{todo}
  67. \item[DONE] AUCTeX
  68. \item[DONE] Magit
  69. \end{todo}
  70. \item Science Books
  71. \begin{todo}
  72. \item Shen Kolmogorov Komplexity
  73. \item Arora-Barak
  74. \item Strandh
  75. \item Kleinberg-Tardos
  76. \item Sipser Introduction to theory of computation
  77. \item Romanyuk
  78. \item Papoulis
  79. \item Model Calibration and Parameter
  80. Estimation
  81. \end{todo}
  82. \item Work
  83. \begin{todo}
  84. \item Patents
  85. \item POSA-5
  86. \item MBSA
  87. \item ASML
  88. \item Wymore
  89. \end{todo}
  90. \item Culture
  91. \begin{todo}
  92. \item Sources of Chinese Tradition
  93. \end{todo}
  94. \item Books that `If I have time'
  95. \begin{todo}
  96. \item The \LaTeX{} Companion by Goossens, Mittelbach
  97. \item \LaTeX{} Web Companion
  98. \item Simmons Modern Analysis
  99. \item Sussman, A computational model of Skill Acquisition
  100. \item Julie Sussman, I can read that a traveler's introduction to Chinese
  101. \item Michael Kerrisk Linux API
  102. \item Acoff-Emery on purposeful systems
  103. \item Gabriel Wyner How to learn any language and never forget
  104. \item Structure and interpretation of classical mechanics
  105. \item Russel/Norvig Artificial Intelligence Modern Approach (STRIPS algorithm)
  106. \item Han Abelson Lower Bounds on Information Transfer in Distributed Computations
  107. \item Abelson Blown to Bits
  108. \item Shirko, Nonlinear Continual Mechanics
  109. \item Dougherty Random Processes for Image Processing
  110. \end{todo}
  111. \item Philosophy
  112. \begin{todo}
  113. \item Proudhon
  114. \item Das Kapital
  115. \item Wittgenstein
  116. \item Zhorzhh Durua ( George Durois?)
  117. \item Ludwig von Mises
  118. \end{todo}
  119. \end{todo}
  120. \end{todo}
  121. \end{todo}
  122. \end{document}


If you really insist in using section commands, that are not made for such a thing, you have to redefine the commands to make page breaks after them possible. For \section till \subsubsection this could be done redefining [cmd]@afterheading[/cmd]:
Code: [Select all] [Expand/Collapse] [Download] (section-example.tex)
  1. \documentclass[11pt,a4paper]{article}
  2. \usepackage{xpatch}
  3. \makeatletter
  4. % This is not recommended, because it can break several things
  5. \xpatchcmd{\@afterheading}{\@nobreaktrue}{\@nobreakfalse}{%
  6. \typeout{WARNING: \string\@afterheading\space broken}%
  7. }{%
  8. \@latexerr{ERROR: Cannot patch \string\@afterheading}\@ehd%
  9. }
  10. \makeatother
  11. \begin{document}
  12.  
  13. \section{{\bfseries\sffamily TODO} Good Books [0/33]}
  14. \subsection{{\bfseries\sffamily TODO} {http://www.finseth.com/craft/}{Craft of Text Editing about Emacs}}
  15. \subsection{{\bfseries\sffamily TODO} The art of Metaobject protocol {https://en.m.wikipedia.org/wiki/The\_Art\_of\_the\_Metaobject\_Protocol}{Wikipedia Link}}
  16. \subsection{{\bfseries\sffamily TODO} lesswrong.com {https://www.lesswrong.com/}{Link online}}
  17. \subsection{{\bfseries\sffamily TODO} lesswrong.ru}
  18. \subsection{{\bfseries\sffamily TODO} Ilya Prigogine Philosophy of complexity?}
  19. \subsection{{\bfseries\sffamily TODO} An Introduction to the Graphic Language: The Vocabulary, Grammatical Construction, Idiomatic Use, and Historical Development, with Special Reference to the Reading of Drawings -- by Gardner Chace}
  20. \subsection{{\bfseries\sffamily TODO} Getting Things Done}
  21. \subsection{{\bfseries\sffamily TODO} Kernigan-Pike Practice of Programming}
  22. \subsection{{\bfseries\sffamily TODO} Model Calibration and Parameter Estimation}
  23. \subsection{{\bfseries\sffamily TODO} Hitchhiker's Guide to the Galaxy\hfill{}\textsc{hate}}
  24. \subsection{{\bfseries\sffamily TODO} Thomas Hunt Pragmatic Programmer}
  25. \subsection{{\bfseries\sffamily TODO} r-5.org}
  26. \subsection{{\bfseries\sffamily TODO} otoro.net machine learning research blog}
  27. \subsection{{\bfseries\sffamily TODO} Weinberg The Trouble With Quantum Mechanics}
  28. \subsection{{\bfseries\sffamily TODO} Elements of Statistical Learning}
  29. \subsection{{\bfseries\sffamily TODO} Tufte Book on graphs}
  30. \subsection{{\bfseries\sffamily TODO} sumofsquares.org book}
  31. \subsection{{\bfseries\sffamily TODO} Gabriel Wyner Fluent Forever How To Learn Any Language}
  32. \subsection{{\bfseries\sffamily TODO} {https://en.wikipedia.org/wiki/Scientific\_community\_metaphor} and subbooks}
  33. \subsection{{\bfseries\sffamily TODO} {https://www.amazon.com/dp/0201433117/?tag=stackoverfl08-20}}
  34. \subsection{{\bfseries\sffamily TODO} {http://immersivemath.com/ila/index.html}{Immersive Linear Algebra}}
  35. \subsection{{\bfseries\sffamily TODO} {http://discrete.openmathbooks.org/dmoi3.html}{Discrete Mathematics Open Book}}
  36. \subsection{{\bfseries\sffamily TODO} danijar.com}
  37. \subsection{{\bfseries\sffamily TODO} Terry Tang Yuan github.io}
  38. \subsection{{\bfseries\sffamily TODO} blog.mdda.net}
  39. \subsection{{\bfseries\sffamily TODO} brilliant.org blog}
  40. \subsection{{\bfseries\sffamily TODO} {http://gaudisite.nl/newspage.html}{Gaudi Systems Architecture}}
  41. \subsection{{\bfseries\sffamily TODO} Farnam Street}
  42. \subsection{{\bfseries\sffamily TODO} {http://www.mitchr.me/SS/books/Catigory\_index.html} and subbooks}
  43. \subsection{{\bfseries\sffamily TODO} {https://www.scrumalliance.org/labs}{Scrum Alliance}}
  44. \subsection{{\bfseries\sffamily TODO} {http://flibusta.is/b/482781}{Gippenreiter-2+3}}
  45. \subsection{{\bfseries\sffamily TODO} {http://timmurphy.org/2018/05/22/combining-pdf-documents-using-latex/}{Tim Murphy's Blog}}
  46. \subsection{{\bfseries\sffamily TODO} {http://flibusta.is/b/122923}{Ruth Benedict Chrysanthemum and Sword}}
  47. \subsection{{\bfseries\sffamily TODO} {https://www.amazon.com/Mathematicians-Lament-School-Fascinating-Imaginative/dp/1934137170/ref=pd\_aw\_sbs\_14\_1/146-9551928-4683768?\_encoding=UTF8\&pd\_rd\_i=1934137170\&pd\_rd\_r=ebc1f528-5232-11e9-a585-0fccb0784f1b\&pd\_rd\_w=gnvYP\&pd\_rd\_wg=V2MnV\&pf\_rd\_p=aae79475-6dc9-4a12-80e8-27b63108fa72\&pf\_rd\_r=GC659QJ4DRN1YBNG4HZE\&psc=1\&refRID=GC659QJ4DRN1YBNG4HZE}{Mathematician's Lament}}
  48. \subsection{{\bfseries\sffamily TODO} Tech books}
  49. \subsubsection{{\bfseries\sffamily TODO} Lamport Latex}
  50. \subsubsection{{\bfseries\sffamily TODO} Spivak, JoyOfTex}
  51. \subsubsection{{\bfseries\sffamily TODO} Knuth TeXbook}
  52. \subsubsection{{\bfseries\sffamily TODO} FreeCAD}
  53. \subsubsection{{\bfseries\sffamily TODO} SWIG}
  54. \subsubsection{{\bfseries\sffamily TODO} Emacs Lisp}
  55. \subsubsection{{\bfseries\sffamily TODO} Kernigan-Pike}
  56. \subsubsection{{\bfseries\sffamily TODO} Pragmatic Programmer}
  57. \subsubsection{{\bfseries\sffamily TODO} GDB}
  58. \subsubsection{{\bfseries\sffamily TODO} IDA Pro}
  59. \subsubsection{{\bfseries\sffamily TODO} Togaf}
  60. \subsubsection{{\bfseries\sffamily TODO} Craig Scott CMAKE}
  61. \subsubsection{{\bfseries\sffamily TODO} OpenSCAD}
  62. \subsubsection{{\bfseries\sffamily DONE} AUCTeX}
  63. \subsubsection{{\bfseries\sffamily DONE} Magit}
  64. \subsection{{\bfseries\sffamily TODO} Science Books}
  65. \subsubsection{{\bfseries\sffamily TODO} Shen Kolmogorov Komplexity}
  66. \subsubsection{{\bfseries\sffamily TODO} Arora-Barak}
  67. \subsubsection{{\bfseries\sffamily TODO} Strandh}
  68. \subsubsection{{\bfseries\sffamily TODO} Kleinberg-Tardos}
  69. \subsubsection{{\bfseries\sffamily TODO} Sipser Introduction to theory of computation}
  70. \subsubsection{{\bfseries\sffamily TODO} Romanyuk}
  71. \subsubsection{{\bfseries\sffamily TODO} Papoulis}
  72. \subsubsection{{\bfseries\sffamily TODO} Model Calibration and Parameter Estimation}
  73. \subsection{{\bfseries\sffamily TODO} Work}
  74. \subsubsection{{\bfseries\sffamily TODO} Patents}
  75. \subsubsection{{\bfseries\sffamily TODO} POSA-5}
  76. \subsubsection{{\bfseries\sffamily TODO} MBSA}
  77. \subsubsection{{\bfseries\sffamily TODO} ASML}
  78. \subsubsection{{\bfseries\sffamily TODO} Wymore}
  79. \subsection{{\bfseries\sffamily TODO} Culture}
  80. \subsubsection{{\bfseries\sffamily TODO} Sources of Chinese Tradition}
  81. \subsection{{\bfseries\sffamily TODO} Books that `If I have time'}
  82. \subsubsection{{\bfseries\sffamily TODO} The \LaTeX{} Companion by Goossens, Mittelbach}
  83. \subsubsection{{\bfseries\sffamily TODO} \LaTeX{} Web Companion}
  84. \subsubsection{{\bfseries\sffamily TODO} Simmons Modern Analysis}
  85. \subsubsection{{\bfseries\sffamily TODO} Sussman, A computational model of Skill Acquisition}
  86. \subsubsection{{\bfseries\sffamily TODO} Julie Sussman, I can read that a traveler's introduction to Chinese}
  87. \subsubsection{{\bfseries\sffamily TODO} Michael Kerrisk Linux API}
  88. \subsubsection{{\bfseries\sffamily TODO} Acoff-Emery on purposeful systems}
  89. \subsubsection{{\bfseries\sffamily TODO} Gabriel Wyner How to learn any language and never forget}
  90. \subsubsection{{\bfseries\sffamily TODO} Structure and interpretation of classical mechanics}
  91. \subsubsection{{\bfseries\sffamily TODO} Russel/Norvig Artificial Intelligence Modern Approach (STRIPS algorithm)}
  92. \subsubsection{{\bfseries\sffamily TODO} Han Abelson Lower Bounds on Information Transfer in Distributed Computations}
  93. \subsubsection{{\bfseries\sffamily TODO} Abelson Blown to Bits}
  94. \subsubsection{{\bfseries\sffamily TODO} Shirko, Nonlinear Continual Mechanics}
  95. \subsubsection{{\bfseries\sffamily TODO} Dougherty Random Processes for Image Processing}
  96. \subsection{{\bfseries\sffamily TODO} Philosophy}
  97. \subsubsection{{\bfseries\sffamily TODO} Proudhon}
  98. \subsubsection{{\bfseries\sffamily TODO} Das Kapital}
  99. \subsubsection{{\bfseries\sffamily TODO} Wittgenstein}
  100. \subsubsection{{\bfseries\sffamily TODO} Zhorzhh Durua ( George Durois?)}
  101. \subsubsection{{\bfseries\sffamily TODO} Ludwig von Mises}
  102. \end{document}

lockywolf
Posts: 3
Joined: Tue Aug 27, 2019 4:18 am

Postby lockywolf » Tue Aug 27, 2019 8:45 am

This is wonderful! Works like charm!

As you may have guessed, this list is not written by me, at least not directly. It is generated by Emacs' org-mode from an arbitrary depth nested tree, of which (by default) the first three levels are typeset as headings, whereas the rest is, indeed, typeset as list items. And the arbitrary number 3 is customizable, just as completely unpredictable are the number and contents of those sections (the majority of those will be indeed, empty, but not necessarily, as they may have tables and pictures inside.

As a side-note, I see nothing wrong about breaking a page after a heading, as I almost always view pdfs in a 'continous scroll' mode, and the need for pages only arises when I need to offload or backup some files. Indeed, I probably should have asked how to disable paging completely, but that must be a much harder issue.

Thank you very much any way, this seems to be solving my question.

User avatar
Ijon Tichy
Posts: 392
Joined: Mon Dec 24, 2018 10:12 am

Postby Ijon Tichy » Tue Aug 27, 2019 9:46 am

lockywolf wrote:I probably should have asked how to disable paging completely, but that must be a much harder issue.

Completely is not possible, but almost is easy. Add, e.g.
\usepackage[paperheight=\maxdimen,vmargin={.5in,.5in}]{geometry}
to your preamble.


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 4 guests