summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FILES.byname381
-rw-r--r--FILES.byname.gzbin2484748 -> 2484780 bytes
-rw-r--r--FILES.last07days708
-rw-r--r--biblio/ctan-bibdata/ctan.bib41
-rw-r--r--biblio/ctan-bibdata/ctan.pdfbin3627271 -> 3627937 bytes
-rw-r--r--macros/latex/contrib/lineno/CHANGEs.txt165
-rw-r--r--macros/latex/contrib/lineno/COPYING.txt27
l---------macros/latex/contrib/lineno/README1
-rw-r--r--macros/latex/contrib/lineno/README.md146
-rw-r--r--macros/latex/contrib/lineno/README.txt204
-rw-r--r--macros/latex/contrib/lineno/SRCFILEs.txt15
-rw-r--r--macros/latex/contrib/lineno/doc/CHANGEs.txt189
-rw-r--r--macros/latex/contrib/lineno/doc/COPYING.txt25
-rw-r--r--macros/latex/contrib/lineno/doc/SRCFILEs.txt10
-rw-r--r--macros/latex/contrib/lineno/doc/fnlineno.pdfbin0 -> 198366 bytes
-rw-r--r--macros/latex/contrib/lineno/doc/lineno.pdfbin0 -> 367668 bytes
-rw-r--r--macros/latex/contrib/lineno/doc/linenoamsmathdemo.pdfbin0 -> 95318 bytes
-rw-r--r--macros/latex/contrib/lineno/doc/lnosuppl.pdfbin0 -> 161169 bytes
-rw-r--r--macros/latex/contrib/lineno/doc/ulineno.pdfbin0 -> 127130 bytes
-rw-r--r--macros/latex/contrib/lineno/ednmath0.sty202
-rw-r--r--macros/latex/contrib/lineno/edtable.sty571
-rw-r--r--macros/latex/contrib/lineno/fnlineno.pdfbin260298 -> 0 bytes
-rw-r--r--macros/latex/contrib/lineno/lineno.pdfbin283165 -> 0 bytes
-rw-r--r--macros/latex/contrib/lineno/lnosuppl.pdfbin167683 -> 0 bytes
-rw-r--r--macros/latex/contrib/lineno/lnosuppl.tex127
-rw-r--r--macros/latex/contrib/lineno/source/fnlineno.tex (renamed from macros/latex/contrib/lineno/fnlineno.tex)66
-rw-r--r--macros/latex/contrib/lineno/source/lineno.tex (renamed from macros/latex/contrib/lineno/lineno.tex)2676
-rw-r--r--macros/latex/contrib/lineno/source/linenoamsmathdemo.tex415
-rw-r--r--macros/latex/contrib/lineno/source/lnosuppl.tex127
-rw-r--r--macros/latex/contrib/lineno/source/ulineno.tex (renamed from macros/latex/contrib/lineno/ulineno.tex)92
-rw-r--r--macros/latex/contrib/lineno/tex/ednmath0.sty200
-rw-r--r--macros/latex/contrib/lineno/tex/edtable.sty571
-rw-r--r--macros/latex/contrib/lineno/tex/fnlineno.sty (renamed from macros/latex/contrib/lineno/fnlineno.sty)1008
-rw-r--r--macros/latex/contrib/lineno/tex/lineno.sty (renamed from macros/latex/contrib/lineno/lineno.sty)3651
-rw-r--r--macros/latex/contrib/lineno/tex/vplref.sty73
-rw-r--r--macros/latex/contrib/lineno/ulineno.pdfbin142217 -> 0 bytes
-rw-r--r--macros/latex/contrib/lineno/vplref.sty74
-rw-r--r--macros/latex/contrib/mathfont/README.txt8
-rw-r--r--macros/latex/contrib/mathfont/mathfont_code.dtx144
-rw-r--r--macros/latex/contrib/mathfont/mathfont_code.pdfbin363665 -> 364537 bytes
-rw-r--r--macros/latex/contrib/mathfont/mathfont_example_cormorant.pdfbin51367 -> 51296 bytes
-rw-r--r--macros/latex/contrib/mathfont/mathfont_example_kelvinch.pdfbin85049 -> 85047 bytes
-rw-r--r--macros/latex/contrib/mathfont/mathfont_example_roboto.pdfbin54342 -> 54342 bytes
-rw-r--r--macros/latex/contrib/mathfont/mathfont_example_typey.pdfbin47387 -> 47388 bytes
-rw-r--r--macros/latex/contrib/mathfont/mathfont_symbol_list.pdfbin186232 -> 186433 bytes
-rw-r--r--macros/latex/contrib/mathfont/mathfont_user_guide.pdfbin115314 -> 115613 bytes
-rw-r--r--macros/latex/contrib/setspace/README13
-rw-r--r--macros/latex/contrib/setspace/README.md13
-rw-r--r--macros/latex/contrib/setspace/setspace-doc.pdfbin0 -> 197440 bytes
-rw-r--r--macros/latex/contrib/setspace/setspace-doc.tex66
-rw-r--r--macros/latex/contrib/setspace/setspace-test.tex24
-rw-r--r--macros/latex/contrib/setspace/setspace.sty47
-rw-r--r--macros/latex/contrib/siunitx/CHANGELOG.md10
-rw-r--r--macros/latex/contrib/siunitx/siunitx-code.pdfbin617721 -> 617754 bytes
-rw-r--r--macros/latex/contrib/siunitx/siunitx-number.dtx2
-rw-r--r--macros/latex/contrib/siunitx/siunitx-table.dtx16
-rw-r--r--macros/latex/contrib/siunitx/siunitx.dtx2
-rw-r--r--macros/latex/contrib/siunitx/siunitx.pdfbin666266 -> 666266 bytes
-rw-r--r--obsolete/macros/latex/contrib/linenoamsmath/README (renamed from macros/latex/contrib/linenoamsmath/README)0
-rw-r--r--obsolete/macros/latex/contrib/linenoamsmath/linenoamsmath.dtx (renamed from macros/latex/contrib/linenoamsmath/linenoamsmath.dtx)0
-rw-r--r--obsolete/macros/latex/contrib/linenoamsmath/linenoamsmath.ins (renamed from macros/latex/contrib/linenoamsmath/linenoamsmath.ins)0
-rw-r--r--obsolete/macros/latex/contrib/linenoamsmath/linenoamsmath.pdf (renamed from macros/latex/contrib/linenoamsmath/linenoamsmath.pdf)bin224791 -> 224791 bytes
-rw-r--r--support/latexindent/LatexIndent/ModifyLineBreaks.pm59
-rw-r--r--support/latexindent/LatexIndent/Version.pm4
-rw-r--r--support/latexindent/README2
-rw-r--r--support/latexindent/bin/linux/latexindentbin6159922 -> 6159918 bytes
-rw-r--r--support/latexindent/bin/macos/latexindentbin6389393 -> 6389449 bytes
-rw-r--r--support/latexindent/defaultSettings.yaml2
-rw-r--r--support/latexindent/documentation/latexindent-yaml-schema.json2
-rw-r--r--support/latexindent/documentation/latexindent.pdfbin1105223 -> 1166672 bytes
-rw-r--r--support/latexindent/documentation/latexindent.tex2728
-rwxr-xr-xsupport/latexindent/latexindent.pl2
-rw-r--r--systems/texlive/tlnet/tlpkg/installer/ctan-mirrors.pl6
-rw-r--r--systems/texlive/tlnet/tlpkg/texlive.tlpdb360
-rw-r--r--systems/texlive/tlnet/tlpkg/texlive.tlpdb.md52
-rw-r--r--systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha5122
-rw-r--r--systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc14
-rw-r--r--systems/texlive/tlnet/tlpkg/texlive.tlpdb.xzbin2430876 -> 2429200 bytes
-rw-r--r--timestamp2
79 files changed, 8104 insertions, 7191 deletions
diff --git a/FILES.byname b/FILES.byname
index f6e22733f4..ea7800ff26 100644
--- a/FILES.byname
+++ b/FILES.byname
@@ -2035,12 +2035,12 @@
2022/09/23 | 1673 | biblio/citation-style-language/README.md
2022/09/23 | 11958 | biblio/citation-style-language/vancouver.csl
2022/09/23 | 591448 | biblio/citation-style-language.zip
-2022/12/04 | 1678 | biblio/ctan-bibdata/biblatex-ctan/ctan.bbx
+2022/12/05 | 1678 | biblio/ctan-bibdata/biblatex-ctan/ctan.bbx
2022/10/08 | 127 | biblio/ctan-bibdata/biblatex-ctan/ctan.cbx
-2022/12/04 | 2747421 | biblio/ctan-bibdata/ctan.bib
-2022/12/04 | 3626862 | biblio/ctan-bibdata/ctan.pdf
+2022/12/05 | 2748160 | biblio/ctan-bibdata/ctan.bib
+2022/12/05 | 3627271 | biblio/ctan-bibdata/ctan.pdf
2022/10/08 | 1415 | biblio/ctan-bibdata/README
-2022/12/04 | 4020175 | biblio/ctan-bibdata.zip
+2022/12/05 | 4020567 | biblio/ctan-bibdata.zip
2022/02/06 | 3110 | biblio/pbibtex/pbibtex-base/cpp.awk
2022/02/06 | 1009 | biblio/pbibtex/pbibtex-base/generate.sh
2022/02/06 | 22422 | biblio/pbibtex/pbibtex-base/jabbrv.bst
@@ -5414,7 +5414,7 @@
1990/10/02 | 5440 | dviware/vutex/vaxvms.hlp
1990/10/02 | 812 | dviware/vutex/vaxvms.ins
1990/10/02 | 127576 | dviware/vutex/vutex.web
-2022/12/04 | 450079 | FILES.last07days
+2022/12/05 | 392526 | FILES.last07days
2021/07/24 | 1139410 | fonts/aboensis/Aboensis.glyphs
2021/07/24 | 18907382 | fonts/aboensis/aboensis.pdf
2021/07/24 | 137860 | fonts/aboensis/Aboensis-Regular.otf
@@ -190369,7 +190369,6 @@
2013/06/21 | 449281 | install/macros/latex/contrib/lengthconvert.tds.zip
2019/12/03 | 297356 | install/macros/latex/contrib/letltxmacro.tds.zip
2020/04/13 | 1087604 | install/macros/latex/contrib/lettre.tds.zip
-2011/02/16 | 814656 | install/macros/latex/contrib/lineno.tds.zip
2013/05/28 | 283699 | install/macros/latex/contrib/linguex.tds.zip
2019/12/10 | 304979 | install/macros/latex/contrib/listingsutf8.tds.zip
2017/12/11 | 219276 | install/macros/latex/contrib/lithuanian.tds.zip
@@ -190455,7 +190454,7 @@
2021/11/10 | 657160 | install/macros/latex/contrib/sdaps.tds.zip
2022/11/22 | 1491160 | install/macros/latex/contrib/se2thesis.tds.zip
2019/12/10 | 544332 | install/macros/latex/contrib/selinput.tds.zip
-2022/11/16 | 1514317 | install/macros/latex/contrib/siunitx.tds.zip
+2022/12/05 | 1514621 | install/macros/latex/contrib/siunitx.tds.zip
2019/10/15 | 315856 | install/macros/latex/contrib/skmath.tds.zip
2019/10/16 | 345652 | install/macros/latex/contrib/skrapport.tds.zip
2019/12/15 | 357584 | install/macros/latex/contrib/soulutf8.tds.zip
@@ -223698,29 +223697,26 @@
2011/02/25 | 192294 | macros/latex/contrib/linegoal/linegoal.pdf
2010/08/27 | 558 | macros/latex/contrib/linegoal/README
2011/02/25 | 154300 | macros/latex/contrib/linegoal.zip
-2021/09/29 | 18021 | macros/latex/contrib/linenoamsmath/linenoamsmath.dtx
-2021/09/29 | 802 | macros/latex/contrib/linenoamsmath/linenoamsmath.ins
-2021/09/29 | 224791 | macros/latex/contrib/linenoamsmath/linenoamsmath.pdf
-2021/09/29 | 547 | macros/latex/contrib/linenoamsmath/README
-2021/09/29 | 226470 | macros/latex/contrib/linenoamsmath.zip
-2011/02/16 | 5298 | macros/latex/contrib/lineno/CHANGEs.txt
-2011/02/16 | 1036 | macros/latex/contrib/lineno/COPYING.txt
-2005/01/10 | 7261 | macros/latex/contrib/lineno/ednmath0.sty
-2005/10/03 | 24993 | macros/latex/contrib/lineno/edtable.sty
-2011/02/16 | 260298 | macros/latex/contrib/lineno/fnlineno.pdf
-2011/02/09 | 48521 | macros/latex/contrib/lineno/fnlineno.sty
-2011/02/14 | 3422 | macros/latex/contrib/lineno/fnlineno.tex
-2005/11/02 | 283165 | macros/latex/contrib/lineno/lineno.pdf
-2005/11/02 | 151738 | macros/latex/contrib/lineno/lineno.sty
-2005/11/02 | 113032 | macros/latex/contrib/lineno/lineno.tex
-2011/02/16 | 167683 | macros/latex/contrib/lineno/lnosuppl.pdf
-2011/02/16 | 4586 | macros/latex/contrib/lineno/lnosuppl.tex
-2011/02/16 | 7738 | macros/latex/contrib/lineno/README.txt
-2011/02/16 | 574 | macros/latex/contrib/lineno/SRCFILEs.txt
-2004/10/20 | 142217 | macros/latex/contrib/lineno/ulineno.pdf
-2011/02/13 | 35763 | macros/latex/contrib/lineno/ulineno.tex
-2011/02/13 | 2423 | macros/latex/contrib/lineno/vplref.sty
-2011/02/16 | 812556 | macros/latex/contrib/lineno.zip
+2022/12/05 | 6295 | macros/latex/contrib/lineno/doc/CHANGEs.txt
+2022/12/05 | 911 | macros/latex/contrib/lineno/doc/COPYING.txt
+2022/12/05 | 198366 | macros/latex/contrib/lineno/doc/fnlineno.pdf
+2022/12/05 | 95318 | macros/latex/contrib/lineno/doc/linenoamsmathdemo.pdf
+2022/12/05 | 367668 | macros/latex/contrib/lineno/doc/lineno.pdf
+2022/12/05 | 161169 | macros/latex/contrib/lineno/doc/lnosuppl.pdf
+2022/12/05 | 677 | macros/latex/contrib/lineno/doc/SRCFILEs.txt
+2022/12/05 | 127130 | macros/latex/contrib/lineno/doc/ulineno.pdf
+2022/12/05 | 6021 | macros/latex/contrib/lineno/README.md
+2022/12/05 | 3476 | macros/latex/contrib/lineno/source/fnlineno.tex
+2022/12/05 | 12067 | macros/latex/contrib/lineno/source/linenoamsmathdemo.tex
+2022/12/05 | 113295 | macros/latex/contrib/lineno/source/lineno.tex
+2022/12/05 | 4536 | macros/latex/contrib/lineno/source/lnosuppl.tex
+2022/12/05 | 35655 | macros/latex/contrib/lineno/source/ulineno.tex
+2022/12/05 | 7093 | macros/latex/contrib/lineno/tex/ednmath0.sty
+2022/12/05 | 24495 | macros/latex/contrib/lineno/tex/edtable.sty
+2022/12/05 | 48016 | macros/latex/contrib/lineno/tex/fnlineno.sty
+2022/12/05 | 151624 | macros/latex/contrib/lineno/tex/lineno.sty
+2022/12/05 | 2373 | macros/latex/contrib/lineno/tex/vplref.sty
+2022/12/05 | 934594 | macros/latex/contrib/lineno.zip
2016/10/12 | 299052 | macros/latex/contrib/ling-macros/ling-macros-doc.pdf
2016/10/12 | 24055 | macros/latex/contrib/ling-macros/ling-macros-doc.tex
2016/10/12 | 19563 | macros/latex/contrib/ling-macros/ling-macros.sty
@@ -224398,16 +224394,16 @@
2018/12/30 | 302307 | macros/latex/contrib/mathfixs/mathfixs.pdf
2018/12/30 | 1191 | macros/latex/contrib/mathfixs/README.txt
2018/12/30 | 303875 | macros/latex/contrib/mathfixs.zip
-2022/12/04 | 314877 | macros/latex/contrib/mathfont/mathfont_code.dtx
-2022/12/04 | 363665 | macros/latex/contrib/mathfont/mathfont_code.pdf
-2022/12/04 | 51367 | macros/latex/contrib/mathfont/mathfont_example_cormorant.pdf
-2022/12/04 | 85049 | macros/latex/contrib/mathfont/mathfont_example_kelvinch.pdf
-2022/12/04 | 54342 | macros/latex/contrib/mathfont/mathfont_example_roboto.pdf
-2022/12/04 | 47387 | macros/latex/contrib/mathfont/mathfont_example_typey.pdf
-2022/12/04 | 186232 | macros/latex/contrib/mathfont/mathfont_symbol_list.pdf
-2022/12/04 | 115314 | macros/latex/contrib/mathfont/mathfont_user_guide.pdf
-2022/12/04 | 5306 | macros/latex/contrib/mathfont/README.txt
-2022/12/04 | 952303 | macros/latex/contrib/mathfont.zip
+2022/12/05 | 316989 | macros/latex/contrib/mathfont/mathfont_code.dtx
+2022/12/05 | 364537 | macros/latex/contrib/mathfont/mathfont_code.pdf
+2022/12/05 | 51296 | macros/latex/contrib/mathfont/mathfont_example_cormorant.pdf
+2022/12/05 | 85047 | macros/latex/contrib/mathfont/mathfont_example_kelvinch.pdf
+2022/12/05 | 54342 | macros/latex/contrib/mathfont/mathfont_example_roboto.pdf
+2022/12/05 | 47388 | macros/latex/contrib/mathfont/mathfont_example_typey.pdf
+2022/12/05 | 186433 | macros/latex/contrib/mathfont/mathfont_symbol_list.pdf
+2022/12/05 | 115613 | macros/latex/contrib/mathfont/mathfont_user_guide.pdf
+2022/12/04 | 5313 | macros/latex/contrib/mathfont/README.txt
+2022/12/05 | 953793 | macros/latex/contrib/mathfont.zip
2016/02/22 | 17992 | macros/latex/contrib/mathpartir/COPYING
2016/02/24 | 38822 | macros/latex/contrib/mathpartir/mathpartir.dtx
2016/02/22 | 2555 | macros/latex/contrib/mathpartir/mathpartir.ins
@@ -231138,10 +231134,11 @@
2019/01/17 | 1484 | macros/latex/contrib/sesstime/sesstime.ins
2019/01/17 | 322937 | macros/latex/contrib/sesstime/sesstime.pdf
2019/01/18 | 328033 | macros/latex/contrib/sesstime.zip
-2011/12/19 | 569 | macros/latex/contrib/setspace/README
-2011/12/19 | 22913 | macros/latex/contrib/setspace/setspace.sty
-2011/12/19 | 426 | macros/latex/contrib/setspace/setspace-test.tex
-2011/12/19 | 8554 | macros/latex/contrib/setspace.zip
+2022/12/05 | 401 | macros/latex/contrib/setspace/README.md
+2022/12/05 | 197440 | macros/latex/contrib/setspace/setspace-doc.pdf
+2022/12/05 | 2354 | macros/latex/contrib/setspace/setspace-doc.tex
+2022/12/05 | 22490 | macros/latex/contrib/setspace/setspace.sty
+2022/12/05 | 203454 | macros/latex/contrib/setspace.zip
2022/03/28 | 1380 | macros/latex/contrib/seu-ml-assign/README.md
2022/03/28 | 14164 | macros/latex/contrib/seu-ml-assign/seu-ml-assign.cls
2022/03/28 | 173930 | macros/latex/contrib/seu-ml-assign/seu-ml-assign-doc.pdf
@@ -231610,33 +231607,33 @@
2007/12/02 | 2971 | macros/latex/contrib/SIunits/SIunits.ins
2007/12/02 | 328621 | macros/latex/contrib/SIunits/SIunits.pdf
2007/12/02 | 296391 | macros/latex/contrib/SIunits.zip
-2022/11/16 | 69758 | macros/latex/contrib/siunitx/CHANGELOG.md
-2022/11/16 | 996 | macros/latex/contrib/siunitx/README.md
-2022/11/16 | 10812 | macros/latex/contrib/siunitx/siunitx-abbreviation.dtx
-2022/11/16 | 4748 | macros/latex/contrib/siunitx/siunitx-abbreviations.cfg
-2022/11/16 | 16709 | macros/latex/contrib/siunitx/siunitx-angle.dtx
-2022/11/16 | 1729 | macros/latex/contrib/siunitx/siunitx-binary.cfg
-2022/11/16 | 2883 | macros/latex/contrib/siunitx/siunitx-binary.dtx
-2022/11/16 | 617721 | macros/latex/contrib/siunitx/siunitx-code.pdf
-2022/11/16 | 2620 | macros/latex/contrib/siunitx/siunitx-code.tex
-2022/11/16 | 8798 | macros/latex/contrib/siunitx/siunitx-command.dtx
-2022/11/16 | 38097 | macros/latex/contrib/siunitx/siunitx-complex.dtx
-2022/11/16 | 33799 | macros/latex/contrib/siunitx/siunitx-compound.dtx
-2022/11/16 | 21684 | macros/latex/contrib/siunitx/siunitx.dtx
-2022/11/16 | 32418 | macros/latex/contrib/siunitx/siunitx-emulation.dtx
-2022/11/16 | 3687 | macros/latex/contrib/siunitx/siunitx.ins
-2022/11/16 | 5481 | macros/latex/contrib/siunitx/siunitx-locale.dtx
-2022/11/16 | 147311 | macros/latex/contrib/siunitx/siunitx-number.dtx
-2022/11/16 | 666266 | macros/latex/contrib/siunitx/siunitx.pdf
-2022/11/16 | 35916 | macros/latex/contrib/siunitx/siunitx-print.dtx
-2022/11/16 | 15611 | macros/latex/contrib/siunitx/siunitx-quantity.dtx
-2022/11/16 | 9912 | macros/latex/contrib/siunitx/siunitx-symbol.dtx
-2022/11/16 | 50961 | macros/latex/contrib/siunitx/siunitx-table.dtx
-2022/11/16 | 158764 | macros/latex/contrib/siunitx/siunitx.tex
-2022/11/16 | 103909 | macros/latex/contrib/siunitx/siunitx-unit.dtx
-2022/11/16 | 273398 | macros/latex/contrib/siunitx/siunitx-v2.sty
-2022/11/16 | 31738 | macros/latex/contrib/siunitx/siunitx-version-1.cfg
-2022/11/16 | 1470083 | macros/latex/contrib/siunitx.zip
+2022/12/05 | 69997 | macros/latex/contrib/siunitx/CHANGELOG.md
+2022/12/05 | 996 | macros/latex/contrib/siunitx/README.md
+2022/12/05 | 10812 | macros/latex/contrib/siunitx/siunitx-abbreviation.dtx
+2022/12/05 | 4748 | macros/latex/contrib/siunitx/siunitx-abbreviations.cfg
+2022/12/05 | 16709 | macros/latex/contrib/siunitx/siunitx-angle.dtx
+2022/12/05 | 1729 | macros/latex/contrib/siunitx/siunitx-binary.cfg
+2022/12/05 | 2883 | macros/latex/contrib/siunitx/siunitx-binary.dtx
+2022/12/05 | 617754 | macros/latex/contrib/siunitx/siunitx-code.pdf
+2022/12/05 | 2620 | macros/latex/contrib/siunitx/siunitx-code.tex
+2022/12/05 | 8798 | macros/latex/contrib/siunitx/siunitx-command.dtx
+2022/12/05 | 38097 | macros/latex/contrib/siunitx/siunitx-complex.dtx
+2022/12/05 | 33799 | macros/latex/contrib/siunitx/siunitx-compound.dtx
+2022/12/05 | 21684 | macros/latex/contrib/siunitx/siunitx.dtx
+2022/12/05 | 32418 | macros/latex/contrib/siunitx/siunitx-emulation.dtx
+2022/12/05 | 3687 | macros/latex/contrib/siunitx/siunitx.ins
+2022/12/05 | 5481 | macros/latex/contrib/siunitx/siunitx-locale.dtx
+2022/12/05 | 147312 | macros/latex/contrib/siunitx/siunitx-number.dtx
+2022/12/05 | 666266 | macros/latex/contrib/siunitx/siunitx.pdf
+2022/12/05 | 35916 | macros/latex/contrib/siunitx/siunitx-print.dtx
+2022/12/05 | 15611 | macros/latex/contrib/siunitx/siunitx-quantity.dtx
+2022/12/05 | 9912 | macros/latex/contrib/siunitx/siunitx-symbol.dtx
+2022/12/05 | 51383 | macros/latex/contrib/siunitx/siunitx-table.dtx
+2022/12/05 | 158764 | macros/latex/contrib/siunitx/siunitx.tex
+2022/12/05 | 103909 | macros/latex/contrib/siunitx/siunitx-unit.dtx
+2022/12/05 | 273398 | macros/latex/contrib/siunitx/siunitx-v2.sty
+2022/12/05 | 31738 | macros/latex/contrib/siunitx/siunitx-version-1.cfg
+2022/12/05 | 1470351 | macros/latex/contrib/siunitx.zip
2011/06/03 | 662398 | macros/latex/contrib/skb/doc/skb.pdf
2011/03/15 | 1485 | macros/latex/contrib/skb/doc/user-guide/database/acronyms.tex
2011/03/15 | 722 | macros/latex/contrib/skb/doc/user-guide/database/bibliography.tex
@@ -266715,6 +266712,11 @@
2013/09/13 | 19310 | obsolete/macros/latex/contrib/lgrx/README.html
2013/09/13 | 256361 | obsolete/macros/latex/contrib/lgrx.zip
2001/10/07 | 5423 | obsolete/macros/latex/contrib/LH.tar.gz
+2021/09/29 | 18021 | obsolete/macros/latex/contrib/linenoamsmath/linenoamsmath.dtx
+2021/09/29 | 802 | obsolete/macros/latex/contrib/linenoamsmath/linenoamsmath.ins
+2021/09/29 | 224791 | obsolete/macros/latex/contrib/linenoamsmath/linenoamsmath.pdf
+2021/09/29 | 547 | obsolete/macros/latex/contrib/linenoamsmath/README
+2021/09/29 | 226470 | obsolete/macros/latex/contrib/linenoamsmath.zip
1999/08/31 | 18007 | obsolete/macros/latex/contrib/ltxindex/copying.txt
2008/06/06 | 18009 | obsolete/macros/latex/contrib/ltxindex/ltxindex.dtx
2008/06/06 | 80113 | obsolete/macros/latex/contrib/ltxindex/ltxindex.pdf
@@ -276990,61 +276992,61 @@
2018/04/15 | 1313 | support/latex-git-log/po/de.po
2020/02/26 | 3353 | support/latex-git-log/README.md
2020/02/27 | 87742 | support/latex-git-log.zip
-2022/10/30 | 6159922 | support/latexindent/bin/linux/latexindent
-2022/10/30 | 6389393 | support/latexindent/bin/macos/latexindent
-2022/10/30 | 8700045 | support/latexindent/bin/windows/latexindent.exe
-2022/10/30 | 19920 | support/latexindent/defaultSettings.yaml
-2022/10/30 | 5206 | support/latexindent/documentation/contributors.bib
-2022/10/30 | 7161 | support/latexindent/documentation/figure-schematic.png
-2022/10/30 | 4402 | support/latexindent/documentation/latex-indent.bib
-2022/10/30 | 1105223 | support/latexindent/documentation/latexindent.pdf
-2022/10/30 | 408105 | support/latexindent/documentation/latexindent.tex
-2022/10/30 | 54383 | support/latexindent/documentation/latexindent-yaml-schema.json
-2022/10/30 | 44096 | support/latexindent/documentation/logo.png
-2022/10/30 | 65059 | support/latexindent/LatexIndent/AlignmentAtAmpersand.pm
-2022/10/30 | 24410 | support/latexindent/LatexIndent/Arguments.pm
-2022/10/30 | 7329 | support/latexindent/LatexIndent/BackUpFileProcedure.pm
-2022/10/30 | 4816 | support/latexindent/LatexIndent/BlankLines.pm
-2022/10/30 | 12646 | support/latexindent/LatexIndent/Braces.pm
-2022/10/30 | 5390 | support/latexindent/LatexIndent/Check.pm
-2022/10/30 | 10622 | support/latexindent/LatexIndent/Command.pm
-2022/10/30 | 22818 | support/latexindent/LatexIndent/Document.pm
-2022/10/30 | 1485 | support/latexindent/LatexIndent/DoubleBackSlash.pm
-2022/10/30 | 6023 | support/latexindent/LatexIndent/Else.pm
-2022/10/30 | 6808 | support/latexindent/LatexIndent/Environment.pm
-2022/10/30 | 11300 | support/latexindent/LatexIndent/FileContents.pm
-2022/10/30 | 8462 | support/latexindent/LatexIndent/FileExtension.pm
-2022/10/30 | 48856 | support/latexindent/LatexIndent/GetYamlSettings.pm
-2022/10/30 | 11142 | support/latexindent/LatexIndent/Heading.pm
-2022/10/30 | 13420 | support/latexindent/LatexIndent/HiddenChildren.pm
-2022/10/30 | 3482 | support/latexindent/LatexIndent/HorizontalWhiteSpace.pm
-2022/10/30 | 8829 | support/latexindent/LatexIndent/IfElseFi.pm
-2022/10/30 | 21564 | support/latexindent/LatexIndent/Indent.pm
-2022/10/30 | 6694 | support/latexindent/LatexIndent/Item.pm
-2022/10/30 | 5430 | support/latexindent/LatexIndent/KeyEqualsValuesBraces.pm
-2022/10/30 | 9843 | support/latexindent/LatexIndent/Lines.pm
-2022/10/30 | 12897 | support/latexindent/LatexIndent/LogFile.pm
-2022/10/30 | 2320 | support/latexindent/LatexIndent/Logger.pm
-2022/10/30 | 7280 | support/latexindent/LatexIndent/MandatoryArgument.pm
-2022/10/30 | 18321 | support/latexindent/LatexIndent/ModifyLineBreaks.pm
-2022/10/30 | 1558 | support/latexindent/latexindent-module-installer.pl
-2022/10/30 | 4340 | support/latexindent/LatexIndent/NamedGroupingBracesBrackets.pm
-2022/10/30 | 6522 | support/latexindent/LatexIndent/OptionalArgument.pm
-2022/10/30 | 3410 | support/latexindent/latexindent.pl
-2022/10/30 | 2690 | support/latexindent/LatexIndent/Preamble.pm
-2022/10/30 | 3747 | support/latexindent/LatexIndent/Replacement.pm
-2022/10/30 | 4365 | support/latexindent/LatexIndent/RoundBrackets.pm
-2022/10/30 | 20388 | support/latexindent/LatexIndent/Sentence.pm
-2022/10/30 | 13890 | support/latexindent/LatexIndent/Special.pm
-2022/10/30 | 2701 | support/latexindent/LatexIndent/Switches.pm
-2022/10/30 | 3339 | support/latexindent/LatexIndent/Tokens.pm
-2022/10/30 | 6964 | support/latexindent/LatexIndent/TrailingComments.pm
-2022/10/30 | 5809 | support/latexindent/LatexIndent/UnNamedGroupingBracesBrackets.pm
-2022/10/30 | 27328 | support/latexindent/LatexIndent/Verbatim.pm
-2022/10/30 | 836 | support/latexindent/LatexIndent/Version.pm
-2022/10/30 | 17979 | support/latexindent/LatexIndent/Wrap.pm
-2022/10/30 | 2006 | support/latexindent/README
-2022/10/30 | 11009879 | support/latexindent.zip
+2022/12/04 | 6159918 | support/latexindent/bin/linux/latexindent
+2022/12/04 | 6389449 | support/latexindent/bin/macos/latexindent
+2022/12/04 | 8699591 | support/latexindent/bin/windows/latexindent.exe
+2022/12/04 | 19922 | support/latexindent/defaultSettings.yaml
+2022/12/04 | 5206 | support/latexindent/documentation/contributors.bib
+2022/12/04 | 7161 | support/latexindent/documentation/figure-schematic.png
+2022/12/04 | 4402 | support/latexindent/documentation/latex-indent.bib
+2022/12/04 | 1166672 | support/latexindent/documentation/latexindent.pdf
+2022/12/04 | 408010 | support/latexindent/documentation/latexindent.tex
+2022/12/04 | 54385 | support/latexindent/documentation/latexindent-yaml-schema.json
+2022/12/04 | 44096 | support/latexindent/documentation/logo.png
+2022/12/04 | 65059 | support/latexindent/LatexIndent/AlignmentAtAmpersand.pm
+2022/12/04 | 24410 | support/latexindent/LatexIndent/Arguments.pm
+2022/12/04 | 7329 | support/latexindent/LatexIndent/BackUpFileProcedure.pm
+2022/12/04 | 4816 | support/latexindent/LatexIndent/BlankLines.pm
+2022/12/04 | 12646 | support/latexindent/LatexIndent/Braces.pm
+2022/12/04 | 5390 | support/latexindent/LatexIndent/Check.pm
+2022/12/04 | 10622 | support/latexindent/LatexIndent/Command.pm
+2022/12/04 | 22818 | support/latexindent/LatexIndent/Document.pm
+2022/12/04 | 1485 | support/latexindent/LatexIndent/DoubleBackSlash.pm
+2022/12/04 | 6023 | support/latexindent/LatexIndent/Else.pm
+2022/12/04 | 6808 | support/latexindent/LatexIndent/Environment.pm
+2022/12/04 | 11300 | support/latexindent/LatexIndent/FileContents.pm
+2022/12/04 | 8462 | support/latexindent/LatexIndent/FileExtension.pm
+2022/12/04 | 48856 | support/latexindent/LatexIndent/GetYamlSettings.pm
+2022/12/04 | 11142 | support/latexindent/LatexIndent/Heading.pm
+2022/12/04 | 13420 | support/latexindent/LatexIndent/HiddenChildren.pm
+2022/12/04 | 3482 | support/latexindent/LatexIndent/HorizontalWhiteSpace.pm
+2022/12/04 | 8829 | support/latexindent/LatexIndent/IfElseFi.pm
+2022/12/04 | 21564 | support/latexindent/LatexIndent/Indent.pm
+2022/12/04 | 6694 | support/latexindent/LatexIndent/Item.pm
+2022/12/04 | 5430 | support/latexindent/LatexIndent/KeyEqualsValuesBraces.pm
+2022/12/04 | 9843 | support/latexindent/LatexIndent/Lines.pm
+2022/12/04 | 12897 | support/latexindent/LatexIndent/LogFile.pm
+2022/12/04 | 2320 | support/latexindent/LatexIndent/Logger.pm
+2022/12/04 | 7280 | support/latexindent/LatexIndent/MandatoryArgument.pm
+2022/12/04 | 18522 | support/latexindent/LatexIndent/ModifyLineBreaks.pm
+2022/12/04 | 1558 | support/latexindent/latexindent-module-installer.pl
+2022/12/04 | 4340 | support/latexindent/LatexIndent/NamedGroupingBracesBrackets.pm
+2022/12/04 | 6522 | support/latexindent/LatexIndent/OptionalArgument.pm
+2022/12/04 | 3412 | support/latexindent/latexindent.pl
+2022/12/04 | 2690 | support/latexindent/LatexIndent/Preamble.pm
+2022/12/04 | 3747 | support/latexindent/LatexIndent/Replacement.pm
+2022/12/04 | 4365 | support/latexindent/LatexIndent/RoundBrackets.pm
+2022/12/04 | 20388 | support/latexindent/LatexIndent/Sentence.pm
+2022/12/04 | 13890 | support/latexindent/LatexIndent/Special.pm
+2022/12/04 | 2701 | support/latexindent/LatexIndent/Switches.pm
+2022/12/04 | 3339 | support/latexindent/LatexIndent/Tokens.pm
+2022/12/04 | 6964 | support/latexindent/LatexIndent/TrailingComments.pm
+2022/12/04 | 5809 | support/latexindent/LatexIndent/UnNamedGroupingBracesBrackets.pm
+2022/12/04 | 27328 | support/latexindent/LatexIndent/Verbatim.pm
+2022/12/04 | 838 | support/latexindent/LatexIndent/Version.pm
+2022/12/04 | 17979 | support/latexindent/LatexIndent/Wrap.pm
+2022/12/04 | 2008 | support/latexindent/README
+2022/12/05 | 11069290 | support/latexindent.zip
2021/10/26 | 16439 | support/latex-make/figlatex.dtx
2021/10/26 | 238535 | support/latex-make/figlatex.pdf
2001/06/07 | 302 | support/latexmake/latexmake.diz
@@ -284100,8 +284102,8 @@
2022/03/17 | 351632 | systems/texlive/tlnet/archive/altsubsup.doc.r62738.tar.xz
2022/03/17 | 1572 | systems/texlive/tlnet/archive/altsubsup.r62738.tar.xz
2022/03/17 | 4952 | systems/texlive/tlnet/archive/altsubsup.source.r62738.tar.xz
-2020/06/04 | 99476 | systems/texlive/tlnet/archive/amiri.doc.r55403.tar.xz
-2020/06/04 | 495748 | systems/texlive/tlnet/archive/amiri.r55403.tar.xz
+2022/12/04 | 24708 | systems/texlive/tlnet/archive/amiri.doc.r65191.tar.xz
+2022/12/04 | 467744 | systems/texlive/tlnet/archive/amiri.r65191.tar.xz
2020/11/08 | 169360 | systems/texlive/tlnet/archive/amiweb2c-guide.doc.r56878.tar.xz
2020/11/08 | 536 | systems/texlive/tlnet/archive/amiweb2c-guide.r56878.tar.xz
2022/09/13 | 209324 | systems/texlive/tlnet/archive/amsaddr.doc.r64357.tar.xz
@@ -285073,8 +285075,8 @@
2022/09/17 | 40200 | systems/texlive/tlnet/archive/biblatex-philosophy.source.r64414.tar.xz
2020/06/24 | 456536 | systems/texlive/tlnet/archive/biblatex-phys.doc.r55643.tar.xz
2020/06/24 | 3420 | systems/texlive/tlnet/archive/biblatex-phys.r55643.tar.xz
-2022/10/25 | 423724 | systems/texlive/tlnet/archive/biblatex-publist.doc.r64802.tar.xz
-2022/10/25 | 12172 | systems/texlive/tlnet/archive/biblatex-publist.r64802.tar.xz
+2022/12/04 | 423876 | systems/texlive/tlnet/archive/biblatex-publist.doc.r65182.tar.xz
+2022/12/04 | 12200 | systems/texlive/tlnet/archive/biblatex-publist.r65182.tar.xz
2022/07/13 | 254224 | systems/texlive/tlnet/archive/biblatex.r63878.tar.xz
2022/01/10 | 27192 | systems/texlive/tlnet/archive/biblatex-readbbl.doc.r61549.tar.xz
2022/01/10 | 1444 | systems/texlive/tlnet/archive/biblatex-readbbl.r61549.tar.xz
@@ -285231,9 +285233,9 @@
2019/02/28 | 362388 | systems/texlive/tlnet/archive/bitelist.doc.r25779.tar.xz
2019/02/28 | 5352 | systems/texlive/tlnet/archive/bitelist.r25779.tar.xz
2019/02/28 | 6228 | systems/texlive/tlnet/archive/bitelist.source.r25779.tar.xz
-2022/10/31 | 1027740 | systems/texlive/tlnet/archive/bithesis.doc.r64871.tar.xz
-2022/10/31 | 21848 | systems/texlive/tlnet/archive/bithesis.r64871.tar.xz
-2022/10/31 | 40088 | systems/texlive/tlnet/archive/bithesis.source.r64871.tar.xz
+2022/12/04 | 1030676 | systems/texlive/tlnet/archive/bithesis.doc.r65195.tar.xz
+2022/12/04 | 21928 | systems/texlive/tlnet/archive/bithesis.r65195.tar.xz
+2022/12/04 | 40224 | systems/texlive/tlnet/archive/bithesis.source.r65195.tar.xz
2019/02/28 | 175700 | systems/texlive/tlnet/archive/bitpattern.doc.r39073.tar.xz
2019/02/28 | 2156 | systems/texlive/tlnet/archive/bitpattern.r39073.tar.xz
2019/02/28 | 6764 | systems/texlive/tlnet/archive/bitpattern.source.r39073.tar.xz
@@ -286123,7 +286125,7 @@
2022/10/12 | 1552 | systems/texlive/tlnet/archive/collection-pictures.r64681.tar.xz
2022/11/15 | 980 | systems/texlive/tlnet/archive/collection-plaingeneric.r65016.tar.xz
2021/12/17 | 812 | systems/texlive/tlnet/archive/collection-pstricks.r61329.tar.xz
-2022/12/02 | 1664 | systems/texlive/tlnet/archive/collection-publishers.r65159.tar.xz
+2022/12/04 | 1664 | systems/texlive/tlnet/archive/collection-publishers.r65192.tar.xz
2020/03/04 | 340 | systems/texlive/tlnet/archive/collection-texworks.r54074.tar.xz
2020/03/04 | 388 | systems/texlive/tlnet/archive/collection-wintools.r54074.tar.xz
2022/11/08 | 660 | systems/texlive/tlnet/archive/collection-xetex.r64951.tar.xz
@@ -288983,8 +288985,8 @@
2022/09/24 | 604 | systems/texlive/tlnet/archive/graphics-def.doc.r64487.tar.xz
2022/09/24 | 10740 | systems/texlive/tlnet/archive/graphics-def.r64487.tar.xz
2022/11/02 | 2503676 | systems/texlive/tlnet/archive/graphics.doc.r64892.tar.xz
-2022/09/30 | 2248 | systems/texlive/tlnet/archive/graphics-pln.doc.r64553.tar.xz
-2022/09/30 | 8948 | systems/texlive/tlnet/archive/graphics-pln.r64553.tar.xz
+2022/12/04 | 2252 | systems/texlive/tlnet/archive/graphics-pln.doc.r65187.tar.xz
+2022/12/04 | 8960 | systems/texlive/tlnet/archive/graphics-pln.r65187.tar.xz
2022/11/02 | 15836 | systems/texlive/tlnet/archive/graphics.r64892.tar.xz
2022/11/02 | 57072 | systems/texlive/tlnet/archive/graphics.source.r64892.tar.xz
2019/02/28 | 438064 | systems/texlive/tlnet/archive/graphicxbox.doc.r32630.tar.xz
@@ -289259,6 +289261,8 @@
2019/02/28 | 123256 | systems/texlive/tlnet/archive/hf-tikz.doc.r34733.tar.xz
2019/02/28 | 3276 | systems/texlive/tlnet/archive/hf-tikz.r34733.tar.xz
2019/02/28 | 9924 | systems/texlive/tlnet/archive/hf-tikz.source.r34733.tar.xz
+2022/12/04 | 475516 | systems/texlive/tlnet/archive/hfutexam.doc.r65192.tar.xz
+2022/12/04 | 4364 | systems/texlive/tlnet/archive/hfutexam.r65192.tar.xz
2022/08/02 | 799628 | systems/texlive/tlnet/archive/hfutthesis.doc.r64025.tar.xz
2022/08/02 | 25440 | systems/texlive/tlnet/archive/hfutthesis.r64025.tar.xz
2020/03/04 | 362248 | systems/texlive/tlnet/archive/hhtensor.doc.r54080.tar.xz
@@ -290003,13 +290007,13 @@
2022/02/27 | 43232 | systems/texlive/tlnet/archive/kpathsea.amd64-freebsd.r62206.tar.xz
2022/02/27 | 38772 | systems/texlive/tlnet/archive/kpathsea.amd64-netbsd.r62220.tar.xz
2022/04/21 | 32388 | systems/texlive/tlnet/archive/kpathsea.armhf-linux.r63092.tar.xz
-2022/11/30 | 1061960 | systems/texlive/tlnet/archive/kpathsea.doc.r65137.tar.xz
+2022/12/05 | 1061956 | systems/texlive/tlnet/archive/kpathsea.doc.r65200.tar.xz
2022/03/01 | 47900 | systems/texlive/tlnet/archive/kpathsea.i386-cygwin.r62282.tar.xz
2022/02/27 | 39432 | systems/texlive/tlnet/archive/kpathsea.i386-freebsd.r62206.tar.xz
2022/02/27 | 43092 | systems/texlive/tlnet/archive/kpathsea.i386-linux.r62210.tar.xz
2022/02/27 | 35528 | systems/texlive/tlnet/archive/kpathsea.i386-netbsd.r62220.tar.xz
2022/02/27 | 41304 | systems/texlive/tlnet/archive/kpathsea.i386-solaris.r62206.tar.xz
-2022/11/30 | 32468 | systems/texlive/tlnet/archive/kpathsea.r65137.tar.xz
+2022/12/05 | 32468 | systems/texlive/tlnet/archive/kpathsea.r65200.tar.xz
2022/02/28 | 83960 | systems/texlive/tlnet/archive/kpathsea.universal-darwin.r62258.tar.xz
2022/02/27 | 487520 | systems/texlive/tlnet/archive/kpathsea.win32.r62199.tar.xz
2022/03/01 | 45928 | systems/texlive/tlnet/archive/kpathsea.x86_64-cygwin.r62279.tar.xz
@@ -290199,9 +290203,9 @@
2022/11/03 | 66328 | systems/texlive/tlnet/archive/latex-amsmath-dev.source.r64899.tar.xz
2020/06/08 | 147412 | systems/texlive/tlnet/archive/latexbangla.doc.r55475.tar.xz
2020/06/08 | 3268 | systems/texlive/tlnet/archive/latexbangla.r55475.tar.xz
-2022/11/03 | 31168412 | systems/texlive/tlnet/archive/latex-base-dev.doc.r64899.tar.xz
-2022/11/03 | 229100 | systems/texlive/tlnet/archive/latex-base-dev.r64899.tar.xz
-2022/11/03 | 719528 | systems/texlive/tlnet/archive/latex-base-dev.source.r64899.tar.xz
+2022/12/04 | 31515420 | systems/texlive/tlnet/archive/latex-base-dev.doc.r65180.tar.xz
+2022/12/04 | 229684 | systems/texlive/tlnet/archive/latex-base-dev.r65180.tar.xz
+2022/12/04 | 721712 | systems/texlive/tlnet/archive/latex-base-dev.source.r65180.tar.xz
2020/03/03 | 384 | systems/texlive/tlnet/archive/latex-bin.aarch64-linux.r54018.tar.xz
2020/03/03 | 384 | systems/texlive/tlnet/archive/latex-bin.amd64-freebsd.r54018.tar.xz
2020/03/03 | 380 | systems/texlive/tlnet/archive/latex-bin.amd64-netbsd.r54018.tar.xz
@@ -290303,9 +290307,9 @@
2019/02/28 | 348 | systems/texlive/tlnet/archive/latexfileversion.x86_64-linuxmusl.r46840.tar.xz
2019/02/28 | 344 | systems/texlive/tlnet/archive/latexfileversion.x86_64-linux.r25012.tar.xz
2019/02/28 | 344 | systems/texlive/tlnet/archive/latexfileversion.x86_64-solaris.r25012.tar.xz
-2022/11/03 | 262444 | systems/texlive/tlnet/archive/latex-firstaid-dev.doc.r64899.tar.xz
-2022/11/03 | 3360 | systems/texlive/tlnet/archive/latex-firstaid-dev.r64899.tar.xz
-2022/11/03 | 7968 | systems/texlive/tlnet/archive/latex-firstaid-dev.source.r64899.tar.xz
+2022/12/04 | 265128 | systems/texlive/tlnet/archive/latex-firstaid-dev.doc.r65181.tar.xz
+2022/12/04 | 3472 | systems/texlive/tlnet/archive/latex-firstaid-dev.r65181.tar.xz
+2022/12/04 | 8284 | systems/texlive/tlnet/archive/latex-firstaid-dev.source.r65181.tar.xz
2019/02/28 | 1128 | systems/texlive/tlnet/archive/latex-fonts.doc.r28888.tar.xz
2019/02/28 | 17972 | systems/texlive/tlnet/archive/latex-fonts.r28888.tar.xz
2022/10/09 | 2009952 | systems/texlive/tlnet/archive/latex-for-undergraduates.doc.r64647.tar.xz
@@ -291363,9 +291367,9 @@
2019/02/28 | 293968 | systems/texlive/tlnet/archive/mathfixs.doc.r49547.tar.xz
2019/02/28 | 2796 | systems/texlive/tlnet/archive/mathfixs.r49547.tar.xz
2019/02/28 | 11900 | systems/texlive/tlnet/archive/mathfixs.source.r49547.tar.xz
-2022/01/24 | 855308 | systems/texlive/tlnet/archive/mathfont.doc.r61719.tar.xz
-2022/01/24 | 21164 | systems/texlive/tlnet/archive/mathfont.r61719.tar.xz
-2022/01/24 | 62736 | systems/texlive/tlnet/archive/mathfont.source.r61719.tar.xz
+2022/12/04 | 871220 | systems/texlive/tlnet/archive/mathfont.doc.r65193.tar.xz
+2022/12/04 | 21264 | systems/texlive/tlnet/archive/mathfont.r65193.tar.xz
+2022/12/04 | 61740 | systems/texlive/tlnet/archive/mathfont.source.r65193.tar.xz
2019/02/28 | 1650056 | systems/texlive/tlnet/archive/math-into-latex-4.doc.r44131.tar.xz
2019/02/28 | 548 | systems/texlive/tlnet/archive/math-into-latex-4.r44131.tar.xz
2020/03/12 | 2436 | systems/texlive/tlnet/archive/mathlig.r54244.tar.xz
@@ -292260,9 +292264,9 @@
2022/03/06 | 210180 | systems/texlive/tlnet/archive/njustthesis.doc.r62451.tar.xz
2022/03/06 | 4484 | systems/texlive/tlnet/archive/njustthesis.r62451.tar.xz
2022/03/06 | 4832 | systems/texlive/tlnet/archive/njustthesis.source.r62451.tar.xz
-2022/10/24 | 1189824 | systems/texlive/tlnet/archive/njuthesis.doc.r64797.tar.xz
-2022/10/24 | 19416 | systems/texlive/tlnet/archive/njuthesis.r64797.tar.xz
-2022/10/24 | 64580 | systems/texlive/tlnet/archive/njuthesis.source.r64797.tar.xz
+2022/12/04 | 1167612 | systems/texlive/tlnet/archive/njuthesis.doc.r65196.tar.xz
+2022/12/04 | 19636 | systems/texlive/tlnet/archive/njuthesis.r65196.tar.xz
+2022/12/04 | 65444 | systems/texlive/tlnet/archive/njuthesis.source.r65196.tar.xz
2022/01/10 | 637816 | systems/texlive/tlnet/archive/njuvisual.doc.r61555.tar.xz
2022/01/10 | 169212 | systems/texlive/tlnet/archive/njuvisual.r61555.tar.xz
2022/01/10 | 176228 | systems/texlive/tlnet/archive/njuvisual.source.r61555.tar.xz
@@ -292504,13 +292508,13 @@
2021/07/04 | 340 | systems/texlive/tlnet/archive/optexcount.x86_64-linuxmusl.r59817.tar.xz
2021/07/04 | 336 | systems/texlive/tlnet/archive/optexcount.x86_64-linux.r59817.tar.xz
2021/07/04 | 336 | systems/texlive/tlnet/archive/optexcount.x86_64-solaris.r59817.tar.xz
-2022/08/05 | 1473012 | systems/texlive/tlnet/archive/optex.doc.r64050.tar.xz
+2022/12/04 | 1519012 | systems/texlive/tlnet/archive/optex.doc.r65185.tar.xz
2020/02/16 | 320 | systems/texlive/tlnet/archive/optex.i386-cygwin.r53804.tar.xz
2020/02/16 | 316 | systems/texlive/tlnet/archive/optex.i386-freebsd.r53804.tar.xz
2020/02/16 | 316 | systems/texlive/tlnet/archive/optex.i386-linux.r53804.tar.xz
2020/02/16 | 316 | systems/texlive/tlnet/archive/optex.i386-netbsd.r53804.tar.xz
2020/02/16 | 316 | systems/texlive/tlnet/archive/optex.i386-solaris.r53804.tar.xz
-2022/08/05 | 815472 | systems/texlive/tlnet/archive/optex.r64050.tar.xz
+2022/12/04 | 828596 | systems/texlive/tlnet/archive/optex.r65185.tar.xz
2021/02/25 | 320 | systems/texlive/tlnet/archive/optex.universal-darwin.r57908.tar.xz
2022/02/27 | 864 | systems/texlive/tlnet/archive/optex.win32.r62199.tar.xz
2020/02/16 | 324 | systems/texlive/tlnet/archive/optex.x86_64-cygwin.r53804.tar.xz
@@ -292777,8 +292781,8 @@
2019/12/11 | 342644 | systems/texlive/tlnet/archive/pdfescape.doc.r53082.tar.xz
2019/12/11 | 4264 | systems/texlive/tlnet/archive/pdfescape.r53082.tar.xz
2019/12/11 | 8308 | systems/texlive/tlnet/archive/pdfescape.source.r53082.tar.xz
-2022/01/24 | 641676 | systems/texlive/tlnet/archive/pdfextra.doc.r61719.tar.xz
-2022/01/24 | 25320 | systems/texlive/tlnet/archive/pdfextra.r61719.tar.xz
+2022/12/04 | 629000 | systems/texlive/tlnet/archive/pdfextra.doc.r65184.tar.xz
+2022/12/04 | 25512 | systems/texlive/tlnet/archive/pdfextra.r65184.tar.xz
2019/11/19 | 340 | systems/texlive/tlnet/archive/pdfjam.aarch64-linux.r52858.tar.xz
2019/11/19 | 340 | systems/texlive/tlnet/archive/pdfjam.amd64-freebsd.r52858.tar.xz
2019/11/19 | 340 | systems/texlive/tlnet/archive/pdfjam.amd64-netbsd.r52858.tar.xz
@@ -293231,14 +293235,14 @@
2019/11/16 | 344 | systems/texlive/tlnet/archive/platex.armhf-linux.r52800.tar.xz
2019/02/28 | 531356 | systems/texlive/tlnet/archive/platexcheat.doc.r49557.tar.xz
2019/02/28 | 568 | systems/texlive/tlnet/archive/platexcheat.r49557.tar.xz
-2022/08/08 | 1500064 | systems/texlive/tlnet/archive/platex.doc.r64072.tar.xz
+2022/12/04 | 1500064 | systems/texlive/tlnet/archive/platex.doc.r65197.tar.xz
2019/11/16 | 344 | systems/texlive/tlnet/archive/platex.i386-cygwin.r52812.tar.xz
2019/11/16 | 340 | systems/texlive/tlnet/archive/platex.i386-freebsd.r52800.tar.xz
2019/11/16 | 344 | systems/texlive/tlnet/archive/platex.i386-linux.r52800.tar.xz
2019/11/16 | 344 | systems/texlive/tlnet/archive/platex.i386-netbsd.r52800.tar.xz
2019/11/16 | 344 | systems/texlive/tlnet/archive/platex.i386-solaris.r52800.tar.xz
-2022/08/08 | 41924 | systems/texlive/tlnet/archive/platex.r64072.tar.xz
-2022/08/08 | 139172 | systems/texlive/tlnet/archive/platex.source.r64072.tar.xz
+2022/12/04 | 41936 | systems/texlive/tlnet/archive/platex.r65197.tar.xz
+2022/12/04 | 139172 | systems/texlive/tlnet/archive/platex.source.r65197.tar.xz
2022/08/08 | 575052 | systems/texlive/tlnet/archive/platex-tools.doc.r64072.tar.xz
2022/08/08 | 8256 | systems/texlive/tlnet/archive/platex-tools.r64072.tar.xz
2021/02/25 | 340 | systems/texlive/tlnet/archive/platex.universal-darwin.r57908.tar.xz
@@ -293372,8 +293376,9 @@
2019/02/28 | 317360 | systems/texlive/tlnet/archive/ppr-prv.doc.r15878.tar.xz
2019/02/28 | 5596 | systems/texlive/tlnet/archive/ppr-prv.r15878.tar.xz
2019/02/28 | 9460 | systems/texlive/tlnet/archive/ppr-prv.source.r15878.tar.xz
-2022/09/20 | 226360 | systems/texlive/tlnet/archive/ppt-slides.doc.r64445.tar.xz
-2022/09/20 | 3932 | systems/texlive/tlnet/archive/ppt-slides.r64445.tar.xz
+2022/12/04 | 788536 | systems/texlive/tlnet/archive/ppt-slides.doc.r65194.tar.xz
+2022/12/04 | 4160 | systems/texlive/tlnet/archive/ppt-slides.r65194.tar.xz
+2022/12/04 | 6308 | systems/texlive/tlnet/archive/ppt-slides.source.r65194.tar.xz
2022/01/24 | 386136 | systems/texlive/tlnet/archive/pracjourn.doc.r61719.tar.xz
2022/01/24 | 4628 | systems/texlive/tlnet/archive/pracjourn.r61719.tar.xz
2022/01/24 | 15248 | systems/texlive/tlnet/archive/pracjourn.source.r61719.tar.xz
@@ -294468,8 +294473,8 @@
2019/12/12 | 6840 | systems/texlive/tlnet/archive/selinput.source.r53098.tar.xz
2019/02/28 | 509908 | systems/texlive/tlnet/archive/selnolig.doc.r38721.tar.xz
2019/02/28 | 54008 | systems/texlive/tlnet/archive/selnolig.r38721.tar.xz
-2022/10/05 | 419840 | systems/texlive/tlnet/archive/semantex.doc.r64611.tar.xz
-2022/10/05 | 26344 | systems/texlive/tlnet/archive/semantex.r64611.tar.xz
+2022/12/04 | 420248 | systems/texlive/tlnet/archive/semantex.doc.r65183.tar.xz
+2022/12/04 | 26516 | systems/texlive/tlnet/archive/semantex.r65183.tar.xz
2019/02/28 | 357820 | systems/texlive/tlnet/archive/semantic.doc.r15878.tar.xz
2020/01/31 | 270076 | systems/texlive/tlnet/archive/semantic-markup.doc.r53607.tar.xz
2020/01/31 | 2500 | systems/texlive/tlnet/archive/semantic-markup.r53607.tar.xz
@@ -295564,7 +295569,7 @@
2022/09/13 | 600 | systems/texlive/tlnet/archive/texlive-scripts.amd64-freebsd.r64356.tar.xz
2022/09/13 | 596 | systems/texlive/tlnet/archive/texlive-scripts.amd64-netbsd.r64356.tar.xz
2022/09/13 | 596 | systems/texlive/tlnet/archive/texlive-scripts.armhf-linux.r64356.tar.xz
-2022/12/03 | 423444 | systems/texlive/tlnet/archive/texlive-scripts.doc.r65164.tar.xz
+2022/12/05 | 423552 | systems/texlive/tlnet/archive/texlive-scripts.doc.r65199.tar.xz
2020/01/27 | 916 | systems/texlive/tlnet/archive/texlive-scripts-extra.aarch64-linux.r53577.tar.xz
2020/01/27 | 924 | systems/texlive/tlnet/archive/texlive-scripts-extra.amd64-freebsd.r53577.tar.xz
2020/01/27 | 916 | systems/texlive/tlnet/archive/texlive-scripts-extra.amd64-netbsd.r53577.tar.xz
@@ -295588,7 +295593,7 @@
2022/09/13 | 592 | systems/texlive/tlnet/archive/texlive-scripts.i386-linux.r64356.tar.xz
2022/09/13 | 596 | systems/texlive/tlnet/archive/texlive-scripts.i386-netbsd.r64356.tar.xz
2022/09/13 | 596 | systems/texlive/tlnet/archive/texlive-scripts.i386-solaris.r64356.tar.xz
-2022/12/03 | 113704 | systems/texlive/tlnet/archive/texlive-scripts.r65164.tar.xz
+2022/12/05 | 113652 | systems/texlive/tlnet/archive/texlive-scripts.r65199.tar.xz
2022/09/13 | 580 | systems/texlive/tlnet/archive/texlive-scripts.universal-darwin.r64356.tar.xz
2022/11/29 | 36264 | systems/texlive/tlnet/archive/texlive-scripts.win32.r65128.tar.xz
2022/09/13 | 596 | systems/texlive/tlnet/archive/texlive-scripts.x86_64-cygwin.r64356.tar.xz
@@ -296588,14 +296593,14 @@
2019/11/16 | 344 | systems/texlive/tlnet/archive/uplatex.amd64-freebsd.r52800.tar.xz
2019/11/16 | 344 | systems/texlive/tlnet/archive/uplatex.amd64-netbsd.r52800.tar.xz
2019/11/16 | 348 | systems/texlive/tlnet/archive/uplatex.armhf-linux.r52800.tar.xz
-2022/08/08 | 777388 | systems/texlive/tlnet/archive/uplatex.doc.r64072.tar.xz
+2022/12/04 | 777388 | systems/texlive/tlnet/archive/uplatex.doc.r65197.tar.xz
2019/11/16 | 344 | systems/texlive/tlnet/archive/uplatex.i386-cygwin.r52812.tar.xz
2019/11/16 | 344 | systems/texlive/tlnet/archive/uplatex.i386-freebsd.r52800.tar.xz
2019/11/16 | 344 | systems/texlive/tlnet/archive/uplatex.i386-linux.r52800.tar.xz
2019/11/16 | 344 | systems/texlive/tlnet/archive/uplatex.i386-netbsd.r52800.tar.xz
2019/11/16 | 344 | systems/texlive/tlnet/archive/uplatex.i386-solaris.r52800.tar.xz
-2022/08/08 | 14836 | systems/texlive/tlnet/archive/uplatex.r64072.tar.xz
-2022/08/08 | 50748 | systems/texlive/tlnet/archive/uplatex.source.r64072.tar.xz
+2022/12/04 | 14844 | systems/texlive/tlnet/archive/uplatex.r65197.tar.xz
+2022/12/04 | 50744 | systems/texlive/tlnet/archive/uplatex.source.r65197.tar.xz
2021/02/25 | 336 | systems/texlive/tlnet/archive/uplatex.universal-darwin.r57908.tar.xz
2021/02/25 | 884 | systems/texlive/tlnet/archive/uplatex.win32.r57883.tar.xz
2019/11/16 | 348 | systems/texlive/tlnet/archive/uplatex.x86_64-cygwin.r52812.tar.xz
@@ -296643,14 +296648,14 @@
2019/02/28 | 340 | systems/texlive/tlnet/archive/urlbst.amd64-freebsd.r23262.tar.xz
2019/02/28 | 340 | systems/texlive/tlnet/archive/urlbst.amd64-netbsd.r30191.tar.xz
2019/02/28 | 336 | systems/texlive/tlnet/archive/urlbst.armhf-linux.r30015.tar.xz
-2020/07/08 | 238148 | systems/texlive/tlnet/archive/urlbst.doc.r55777.tar.xz
+2022/12/04 | 251788 | systems/texlive/tlnet/archive/urlbst.doc.r65190.tar.xz
2019/02/28 | 336 | systems/texlive/tlnet/archive/urlbst.i386-cygwin.r23262.tar.xz
2019/02/28 | 340 | systems/texlive/tlnet/archive/urlbst.i386-freebsd.r23262.tar.xz
2019/02/28 | 336 | systems/texlive/tlnet/archive/urlbst.i386-linux.r23262.tar.xz
2019/02/28 | 336 | systems/texlive/tlnet/archive/urlbst.i386-netbsd.r30191.tar.xz
2019/02/28 | 336 | systems/texlive/tlnet/archive/urlbst.i386-solaris.r23262.tar.xz
-2020/07/08 | 13668 | systems/texlive/tlnet/archive/urlbst.r55777.tar.xz
-2020/07/08 | 22884 | systems/texlive/tlnet/archive/urlbst.source.r55777.tar.xz
+2022/12/04 | 14108 | systems/texlive/tlnet/archive/urlbst.r65190.tar.xz
+2022/12/04 | 23272 | systems/texlive/tlnet/archive/urlbst.source.r65190.tar.xz
2021/02/25 | 336 | systems/texlive/tlnet/archive/urlbst.universal-darwin.r57908.tar.xz
2019/02/28 | 680 | systems/texlive/tlnet/archive/urlbst.win32.r23262.tar.xz
2019/02/28 | 340 | systems/texlive/tlnet/archive/urlbst.x86_64-cygwin.r33557.tar.xz
@@ -297017,9 +297022,9 @@
2022/04/24 | 693304 | systems/texlive/tlnet/archive/xduthesis.doc.r63116.tar.xz
2022/04/24 | 113392 | systems/texlive/tlnet/archive/xduthesis.r63116.tar.xz
2022/04/24 | 15976 | systems/texlive/tlnet/archive/xduthesis.source.r63116.tar.xz
-2022/12/02 | 304744 | systems/texlive/tlnet/archive/xduts.doc.r65160.tar.xz
-2022/12/02 | 521608 | systems/texlive/tlnet/archive/xduts.r65160.tar.xz
-2022/12/02 | 39448 | systems/texlive/tlnet/archive/xduts.source.r65160.tar.xz
+2022/12/04 | 305984 | systems/texlive/tlnet/archive/xduts.doc.r65186.tar.xz
+2022/12/04 | 521960 | systems/texlive/tlnet/archive/xduts.r65186.tar.xz
+2022/12/04 | 40000 | systems/texlive/tlnet/archive/xduts.source.r65186.tar.xz
2022/03/01 | 527308 | systems/texlive/tlnet/archive/xdvi.aarch64-linux.r62280.tar.xz
2022/02/27 | 566196 | systems/texlive/tlnet/archive/xdvi.amd64-freebsd.r62206.tar.xz
2022/02/27 | 488448 | systems/texlive/tlnet/archive/xdvi.amd64-netbsd.r62220.tar.xz
@@ -297439,16 +297444,16 @@
2020/07/18 | 47816 | systems/texlive/tlnet/archive/zztex.doc.r55862.tar.xz
2020/07/18 | 101724 | systems/texlive/tlnet/archive/zztex.r55862.tar.xz
2022/07/17 | 124404 | systems/texlive/tlnet/install-tl
-2022/12/03 | 5834544 | systems/texlive/tlnet/install-tl-unx.tar.gz
-2022/12/03 | 152 | systems/texlive/tlnet/install-tl-unx.tar.gz.sha512
-2022/12/03 | 455 | systems/texlive/tlnet/install-tl-unx.tar.gz.sha512.asc
+2022/12/05 | 5834346 | systems/texlive/tlnet/install-tl-unx.tar.gz
+2022/12/05 | 152 | systems/texlive/tlnet/install-tl-unx.tar.gz.sha512
+2022/12/05 | 455 | systems/texlive/tlnet/install-tl-unx.tar.gz.sha512.asc
2021/04/11 | 4945 | systems/texlive/tlnet/install-tl-windows.bat
-2022/12/03 | 20435502 | systems/texlive/tlnet/install-tl-windows.exe
-2022/12/03 | 153 | systems/texlive/tlnet/install-tl-windows.exe.sha512
-2022/12/03 | 455 | systems/texlive/tlnet/install-tl-windows.exe.sha512.asc
-2022/12/03 | 25518541 | systems/texlive/tlnet/install-tl.zip
-2022/12/03 | 145 | systems/texlive/tlnet/install-tl.zip.sha512
-2022/12/03 | 455 | systems/texlive/tlnet/install-tl.zip.sha512.asc
+2022/12/05 | 20435502 | systems/texlive/tlnet/install-tl-windows.exe
+2022/12/05 | 153 | systems/texlive/tlnet/install-tl-windows.exe.sha512
+2022/12/05 | 455 | systems/texlive/tlnet/install-tl-windows.exe.sha512.asc
+2022/12/05 | 25518496 | systems/texlive/tlnet/install-tl.zip
+2022/12/05 | 145 | systems/texlive/tlnet/install-tl.zip.sha512
+2022/12/05 | 455 | systems/texlive/tlnet/install-tl.zip.sha512.asc
2022/04/03 | 1229 | systems/texlive/tlnet/README.md
2022/04/03 | 0 | systems/texlive/tlnet/TEXLIVE_2022
2022/02/28 | 7791 | systems/texlive/tlnet/tlpkg/gpg/pubring.gpg
@@ -297458,7 +297463,7 @@
2022/02/28 | 1280 | systems/texlive/tlnet/tlpkg/gpg/trustdb.gpg
2022/10/09 | 49938 | systems/texlive/tlnet/tlpkg/installer/config.guess
2010/11/11 | 11651 | systems/texlive/tlnet/tlpkg/installer/COPYING.MinGW-runtime.txt
-2022/12/02 | 7382 | systems/texlive/tlnet/tlpkg/installer/ctan-mirrors.pl
+2022/12/04 | 7161 | systems/texlive/tlnet/tlpkg/installer/ctan-mirrors.pl
2022/10/13 | 225403 | systems/texlive/tlnet/tlpkg/installer/curl/curl-ca-bundle.crt
2020/04/15 | 2606592 | systems/texlive/tlnet/tlpkg/installer/curl/curl.exe
2017/04/16 | 2629 | systems/texlive/tlnet/tlpkg/installer/installer-options.txt
@@ -297501,12 +297506,12 @@
2021/05/16 | 20371 | systems/texlive/tlnet/tlpkg/TeXLive/TLCrypto.pm
2021/12/21 | 5429 | systems/texlive/tlnet/tlpkg/TeXLive/TLDownload.pm
2021/12/21 | 27582 | systems/texlive/tlnet/tlpkg/TeXLive/TLPaper.pm
-2022/12/03 | 17879282 | systems/texlive/tlnet/tlpkg/texlive.tlpdb
-2022/12/03 | 48 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5
+2022/12/05 | 17881373 | systems/texlive/tlnet/tlpkg/texlive.tlpdb
+2022/12/05 | 48 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5
2022/04/18 | 86658 | systems/texlive/tlnet/tlpkg/TeXLive/TLPDB.pm
-2022/12/03 | 144 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512
-2022/12/03 | 455 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc
-2022/12/03 | 2430876 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz
+2022/12/05 | 144 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512
+2022/12/05 | 455 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc
+2022/12/05 | 2429200 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz
2022/09/14 | 58922 | systems/texlive/tlnet/tlpkg/TeXLive/TLPOBJ.pm
2022/10/04 | 42404 | systems/texlive/tlnet/tlpkg/TeXLive/TLPSRC.pm
2021/12/21 | 16130 | systems/texlive/tlnet/tlpkg/TeXLive/TLTREE.pm
@@ -307606,7 +307611,7 @@
2014/07/05 | 611 | systems/win32/yandy/README
2014/07/05 | 1004628 | systems/win32/yandy/yandy-src.tar.xz
2014/07/05 | 1012416 | systems/win32/yandy.zip
-2022/12/05 | 186 | timestamp
+2022/12/06 | 186 | timestamp
2002/08/26 | 61898 | usergrps/dante/antrag.pdf
2002/08/26 | 118217 | usergrps/dante/antrag.ps
2022/02/28 | 917 | usergrps/dante/dtk/doc/beispiel.bib
diff --git a/FILES.byname.gz b/FILES.byname.gz
index 51b2c96640..38af4be996 100644
--- a/FILES.byname.gz
+++ b/FILES.byname.gz
Binary files differ
diff --git a/FILES.last07days b/FILES.last07days
index 827d55bfb6..7a8d742c53 100644
--- a/FILES.last07days
+++ b/FILES.last07days
@@ -1,70 +1,242 @@
-2022/12/04 | 952303 | macros/latex/contrib/mathfont.zip
+2022/12/05 | 996 | macros/latex/contrib/siunitx/README.md
+2022/12/05 | 9912 | macros/latex/contrib/siunitx/siunitx-symbol.dtx
+2022/12/05 | 953793 | macros/latex/contrib/mathfont.zip
+2022/12/05 | 95318 | macros/latex/contrib/lineno/doc/linenoamsmathdemo.pdf
+2022/12/05 | 934594 | macros/latex/contrib/lineno.zip
+2022/12/05 | 911 | macros/latex/contrib/lineno/doc/COPYING.txt
+2022/12/05 | 8798 | macros/latex/contrib/siunitx/siunitx-command.dtx
+2022/12/05 | 85047 | macros/latex/contrib/mathfont/mathfont_example_kelvinch.pdf
+2022/12/05 | 7093 | macros/latex/contrib/lineno/tex/ednmath0.sty
+2022/12/05 | 69997 | macros/latex/contrib/siunitx/CHANGELOG.md
+2022/12/05 | 677 | macros/latex/contrib/lineno/doc/SRCFILEs.txt
+2022/12/05 | 666266 | macros/latex/contrib/siunitx/siunitx.pdf
+2022/12/05 | 6295 | macros/latex/contrib/lineno/doc/CHANGEs.txt
+2022/12/05 | 617754 | macros/latex/contrib/siunitx/siunitx-code.pdf
+2022/12/05 | 6021 | macros/latex/contrib/lineno/README.md
+2022/12/05 | 5834346 | systems/texlive/tlnet/install-tl-unx.tar.gz
+2022/12/05 | 5481 | macros/latex/contrib/siunitx/siunitx-locale.dtx
+2022/12/05 | 54342 | macros/latex/contrib/mathfont/mathfont_example_roboto.pdf
+2022/12/05 | 51383 | macros/latex/contrib/siunitx/siunitx-table.dtx
+2022/12/05 | 51296 | macros/latex/contrib/mathfont/mathfont_example_cormorant.pdf
+2022/12/05 | 48 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5
+2022/12/05 | 48016 | macros/latex/contrib/lineno/tex/fnlineno.sty
+2022/12/05 | 4748 | macros/latex/contrib/siunitx/siunitx-abbreviations.cfg
+2022/12/05 | 47388 | macros/latex/contrib/mathfont/mathfont_example_typey.pdf
+2022/12/05 | 455 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc
+2022/12/05 | 455 | systems/texlive/tlnet/install-tl.zip.sha512.asc
+2022/12/05 | 455 | systems/texlive/tlnet/install-tl-windows.exe.sha512.asc
+2022/12/05 | 455 | systems/texlive/tlnet/install-tl-unx.tar.gz.sha512.asc
+2022/12/05 | 4536 | macros/latex/contrib/lineno/source/lnosuppl.tex
+2022/12/05 | 423552 | systems/texlive/tlnet/archive/texlive-scripts.doc.r65199.tar.xz
+2022/12/05 | 4020567 | biblio/ctan-bibdata.zip
+2022/12/05 | 401 | macros/latex/contrib/setspace/README.md
+2022/12/05 | 38097 | macros/latex/contrib/siunitx/siunitx-complex.dtx
+2022/12/05 | 3687 | macros/latex/contrib/siunitx/siunitx.ins
+2022/12/05 | 367668 | macros/latex/contrib/lineno/doc/lineno.pdf
+2022/12/05 | 364537 | macros/latex/contrib/mathfont/mathfont_code.pdf
+2022/12/05 | 3627271 | biblio/ctan-bibdata/ctan.pdf
+2022/12/05 | 35916 | macros/latex/contrib/siunitx/siunitx-print.dtx
+2022/12/05 | 35655 | macros/latex/contrib/lineno/source/ulineno.tex
+2022/12/05 | 3476 | macros/latex/contrib/lineno/source/fnlineno.tex
+2022/12/05 | 33799 | macros/latex/contrib/siunitx/siunitx-compound.dtx
+2022/12/05 | 32468 | systems/texlive/tlnet/archive/kpathsea.r65200.tar.xz
+2022/12/05 | 32418 | macros/latex/contrib/siunitx/siunitx-emulation.dtx
+2022/12/05 | 31738 | macros/latex/contrib/siunitx/siunitx-version-1.cfg
+2022/12/05 | 316989 | macros/latex/contrib/mathfont/mathfont_code.dtx
+2022/12/05 | 2883 | macros/latex/contrib/siunitx/siunitx-binary.dtx
+2022/12/05 | 2748160 | biblio/ctan-bibdata/ctan.bib
+2022/12/05 | 273398 | macros/latex/contrib/siunitx/siunitx-v2.sty
+2022/12/05 | 2620 | macros/latex/contrib/siunitx/siunitx-code.tex
+2022/12/05 | 25518496 | systems/texlive/tlnet/install-tl.zip
+2022/12/05 | 24495 | macros/latex/contrib/lineno/tex/edtable.sty
+2022/12/05 | 2429200 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz
+2022/12/05 | 2373 | macros/latex/contrib/lineno/tex/vplref.sty
+2022/12/05 | 2354 | macros/latex/contrib/setspace/setspace-doc.tex
+2022/12/05 | 22490 | macros/latex/contrib/setspace/setspace.sty
+2022/12/05 | 21684 | macros/latex/contrib/siunitx/siunitx.dtx
+2022/12/05 | 20435502 | systems/texlive/tlnet/install-tl-windows.exe
+2022/12/05 | 203454 | macros/latex/contrib/setspace.zip
+2022/12/05 | 198366 | macros/latex/contrib/lineno/doc/fnlineno.pdf
+2022/12/05 | 197440 | macros/latex/contrib/setspace/setspace-doc.pdf
+2022/12/05 | 186433 | macros/latex/contrib/mathfont/mathfont_symbol_list.pdf
+2022/12/05 | 17881373 | systems/texlive/tlnet/tlpkg/texlive.tlpdb
+2022/12/05 | 1729 | macros/latex/contrib/siunitx/siunitx-binary.cfg
+2022/12/05 | 1678 | biblio/ctan-bibdata/biblatex-ctan/ctan.bbx
+2022/12/05 | 16709 | macros/latex/contrib/siunitx/siunitx-angle.dtx
+2022/12/05 | 161169 | macros/latex/contrib/lineno/doc/lnosuppl.pdf
+2022/12/05 | 158764 | macros/latex/contrib/siunitx/siunitx.tex
+2022/12/05 | 15611 | macros/latex/contrib/siunitx/siunitx-quantity.dtx
+2022/12/05 | 153 | systems/texlive/tlnet/install-tl-windows.exe.sha512
+2022/12/05 | 152 | systems/texlive/tlnet/install-tl-unx.tar.gz.sha512
+2022/12/05 | 151624 | macros/latex/contrib/lineno/tex/lineno.sty
+2022/12/05 | 1514621 | install/macros/latex/contrib/siunitx.tds.zip
+2022/12/05 | 147312 | macros/latex/contrib/siunitx/siunitx-number.dtx
+2022/12/05 | 1470351 | macros/latex/contrib/siunitx.zip
+2022/12/05 | 145 | systems/texlive/tlnet/install-tl.zip.sha512
+2022/12/05 | 144 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512
+2022/12/05 | 127130 | macros/latex/contrib/lineno/doc/ulineno.pdf
+2022/12/05 | 12067 | macros/latex/contrib/lineno/source/linenoamsmathdemo.tex
+2022/12/05 | 115613 | macros/latex/contrib/mathfont/mathfont_user_guide.pdf
+2022/12/05 | 113652 | systems/texlive/tlnet/archive/texlive-scripts.r65199.tar.xz
+2022/12/05 | 113295 | macros/latex/contrib/lineno/source/lineno.tex
+2022/12/05 | 11069290 | support/latexindent.zip
+2022/12/05 | 10812 | macros/latex/contrib/siunitx/siunitx-abbreviation.dtx
+2022/12/05 | 1061956 | systems/texlive/tlnet/archive/kpathsea.doc.r65200.tar.xz
+2022/12/05 | 103909 | macros/latex/contrib/siunitx/siunitx-unit.dtx
+2022/12/04 | 9843 | support/latexindent/LatexIndent/Lines.pm
2022/12/04 | 95057 | macros/latex/contrib/hfutexam/hfutexam_shijuan.pdf
2022/12/04 | 94352 | macros/latex/contrib/ppt-slides/socrates.jpg
2022/12/04 | 932594 | macros/latex/contrib/ppt-slides/ppt-slides.pdf
2022/12/04 | 92519 | macros/latex/contrib/hfutexam/hfutexam_cankaodaan.pdf
+2022/12/04 | 8960 | systems/texlive/tlnet/archive/graphics-pln.r65187.tar.xz
+2022/12/04 | 8829 | support/latexindent/LatexIndent/IfElseFi.pm
2022/12/04 | 88026 | biblio/bibtex/contrib/urlbst/configure
-2022/12/04 | 85049 | macros/latex/contrib/mathfont/mathfont_example_kelvinch.pdf
+2022/12/04 | 871220 | systems/texlive/tlnet/archive/mathfont.doc.r65193.tar.xz
+2022/12/04 | 8699591 | support/latexindent/bin/windows/latexindent.exe
+2022/12/04 | 8462 | support/latexindent/LatexIndent/FileExtension.pm
+2022/12/04 | 838 | support/latexindent/LatexIndent/Version.pm
+2022/12/04 | 828596 | systems/texlive/tlnet/archive/optex.r65185.tar.xz
+2022/12/04 | 8284 | systems/texlive/tlnet/archive/latex-firstaid-dev.source.r65181.tar.xz
+2022/12/04 | 788536 | systems/texlive/tlnet/archive/ppt-slides.doc.r65194.tar.xz
+2022/12/04 | 777388 | systems/texlive/tlnet/archive/uplatex.doc.r65197.tar.xz
+2022/12/04 | 7329 | support/latexindent/LatexIndent/BackUpFileProcedure.pm
+2022/12/04 | 7280 | support/latexindent/LatexIndent/MandatoryArgument.pm
+2022/12/04 | 721712 | systems/texlive/tlnet/archive/latex-base-dev.source.r65180.tar.xz
+2022/12/04 | 7161 | systems/texlive/tlnet/tlpkg/installer/ctan-mirrors.pl
+2022/12/04 | 7161 | support/latexindent/documentation/figure-schematic.png
2022/12/04 | 70715 | macros/latex/contrib/hfutexam/hfutexam_datizhi.pdf
+2022/12/04 | 6964 | support/latexindent/LatexIndent/TrailingComments.pm
+2022/12/04 | 6808 | support/latexindent/LatexIndent/Environment.pm
2022/12/04 | 6735 | biblio/bibtex/contrib/urlbst/urlbst.bib
+2022/12/04 | 6694 | support/latexindent/LatexIndent/Item.pm
+2022/12/04 | 65444 | systems/texlive/tlnet/archive/njuthesis.source.r65196.tar.xz
+2022/12/04 | 6522 | support/latexindent/LatexIndent/OptionalArgument.pm
+2022/12/04 | 65059 | support/latexindent/LatexIndent/AlignmentAtAmpersand.pm
2022/12/04 | 644931 | support/digestif.zip
+2022/12/04 | 6389449 | support/latexindent/bin/macos/latexindent
+2022/12/04 | 6308 | systems/texlive/tlnet/archive/ppt-slides.source.r65194.tar.xz
+2022/12/04 | 629000 | systems/texlive/tlnet/archive/pdfextra.doc.r65184.tar.xz
+2022/12/04 | 61740 | systems/texlive/tlnet/archive/mathfont.source.r65193.tar.xz
+2022/12/04 | 6159918 | support/latexindent/bin/linux/latexindent
+2022/12/04 | 6023 | support/latexindent/LatexIndent/Else.pm
+2022/12/04 | 5809 | support/latexindent/LatexIndent/UnNamedGroupingBracesBrackets.pm
2022/12/04 | 578424 | macros/latex/contrib/hfutexam.zip
-2022/12/04 | 54342 | macros/latex/contrib/mathfont/mathfont_example_roboto.pdf
+2022/12/04 | 54385 | support/latexindent/documentation/latexindent-yaml-schema.json
+2022/12/04 | 5430 | support/latexindent/LatexIndent/KeyEqualsValuesBraces.pm
+2022/12/04 | 5390 | support/latexindent/LatexIndent/Check.pm
2022/12/04 | 5325 | biblio/bibtex/contrib/urlbst/Makefile.in
-2022/12/04 | 5306 | macros/latex/contrib/mathfont/README.txt
-2022/12/04 | 51367 | macros/latex/contrib/mathfont/mathfont_example_cormorant.pdf
+2022/12/04 | 5313 | macros/latex/contrib/mathfont/README.txt
+2022/12/04 | 521960 | systems/texlive/tlnet/archive/xduts.r65186.tar.xz
+2022/12/04 | 5206 | support/latexindent/documentation/contributors.bib
2022/12/04 | 5087 | macros/latex/contrib/hfutexam/hfutexam_cankaodaan.tex
+2022/12/04 | 50744 | systems/texlive/tlnet/archive/uplatex.source.r65197.tar.xz
+2022/12/04 | 48856 | support/latexindent/LatexIndent/GetYamlSettings.pm
2022/12/04 | 484 | macros/latex/contrib/hfutexam/CHANGELOG.md
-2022/12/04 | 47387 | macros/latex/contrib/mathfont/mathfont_example_typey.pdf
-2022/12/04 | 4020175 | biblio/ctan-bibdata.zip
+2022/12/04 | 4816 | support/latexindent/LatexIndent/BlankLines.pm
+2022/12/04 | 475516 | systems/texlive/tlnet/archive/hfutexam.doc.r65192.tar.xz
+2022/12/04 | 467744 | systems/texlive/tlnet/archive/amiri.r65191.tar.xz
+2022/12/04 | 44096 | support/latexindent/documentation/logo.png
+2022/12/04 | 4402 | support/latexindent/documentation/latex-indent.bib
+2022/12/04 | 4365 | support/latexindent/LatexIndent/RoundBrackets.pm
+2022/12/04 | 4364 | systems/texlive/tlnet/archive/hfutexam.r65192.tar.xz
+2022/12/04 | 4340 | support/latexindent/LatexIndent/NamedGroupingBracesBrackets.pm
+2022/12/04 | 423876 | systems/texlive/tlnet/archive/biblatex-publist.doc.r65182.tar.xz
+2022/12/04 | 420248 | systems/texlive/tlnet/archive/semantex.doc.r65183.tar.xz
+2022/12/04 | 41936 | systems/texlive/tlnet/archive/platex.r65197.tar.xz
+2022/12/04 | 4160 | systems/texlive/tlnet/archive/ppt-slides.r65194.tar.xz
+2022/12/04 | 408010 | support/latexindent/documentation/latexindent.tex
+2022/12/04 | 40224 | systems/texlive/tlnet/archive/bithesis.source.r65195.tar.xz
+2022/12/04 | 40000 | systems/texlive/tlnet/archive/xduts.source.r65186.tar.xz
2022/12/04 | 3989 | macros/latex/contrib/ppt-slides/ppt-templates/ppt-9x6.tex
2022/12/04 | 3812 | macros/latex/contrib/hfutexam/hfutexam_shijuan.tex
+2022/12/04 | 3747 | support/latexindent/LatexIndent/Replacement.pm
2022/12/04 | 3720 | macros/unicodetex/latex/bithesis/bithesis.ins
-2022/12/04 | 363665 | macros/latex/contrib/mathfont/mathfont_code.pdf
-2022/12/04 | 3626862 | biblio/ctan-bibdata/ctan.pdf
2022/12/04 | 36234 | biblio/bibtex/contrib/urlbst/alphaurl.bst
+2022/12/04 | 3482 | support/latexindent/LatexIndent/HorizontalWhiteSpace.pm
+2022/12/04 | 3472 | systems/texlive/tlnet/archive/latex-firstaid-dev.r65181.tar.xz
+2022/12/04 | 3412 | support/latexindent/latexindent.pl
+2022/12/04 | 3339 | support/latexindent/LatexIndent/Tokens.pm
2022/12/04 | 32940 | biblio/bibtex/contrib/urlbst/plainurl.bst
2022/12/04 | 329334 | biblio/bibtex/contrib/urlbst.zip
2022/12/04 | 32656 | biblio/bibtex/contrib/urlbst/abbrvurl.bst
-2022/12/04 | 314877 | macros/latex/contrib/mathfont/mathfont_code.dtx
+2022/12/04 | 31515420 | systems/texlive/tlnet/archive/latex-base-dev.doc.r65180.tar.xz
+2022/12/04 | 305984 | systems/texlive/tlnet/archive/xduts.doc.r65186.tar.xz
2022/12/04 | 30357 | biblio/bibtex/contrib/urlbst/unsrturl.bst
2022/12/04 | 297 | macros/latex/contrib/hfutexam/README.md
2022/12/04 | 29492 | biblio/bibtex/contrib/urlbst/urlbst
2022/12/04 | 29433 | biblio/bibtex/contrib/urlbst/urlbst.in
-2022/12/04 | 2747421 | biblio/ctan-bibdata/ctan.bib
+2022/12/04 | 27328 | support/latexindent/LatexIndent/Verbatim.pm
2022/12/04 | 272 | macros/latex/contrib/ppt-slides/DEPENDS.txt
+2022/12/04 | 2701 | support/latexindent/LatexIndent/Switches.pm
+2022/12/04 | 2690 | support/latexindent/LatexIndent/Preamble.pm
+2022/12/04 | 26516 | systems/texlive/tlnet/archive/semantex.r65183.tar.xz
+2022/12/04 | 265128 | systems/texlive/tlnet/archive/latex-firstaid-dev.doc.r65181.tar.xz
2022/12/04 | 2643 | macros/unicodetex/latex/bithesis/contributing-zh.md
2022/12/04 | 2640 | macros/latex/contrib/ppt-slides/ppt-slides.ins
+2022/12/04 | 25512 | systems/texlive/tlnet/archive/pdfextra.r65184.tar.xz
+2022/12/04 | 251788 | systems/texlive/tlnet/archive/urlbst.doc.r65190.tar.xz
+2022/12/04 | 24708 | systems/texlive/tlnet/archive/amiri.doc.r65191.tar.xz
+2022/12/04 | 24410 | support/latexindent/LatexIndent/Arguments.pm
2022/12/04 | 2422 | biblio/bibtex/contrib/urlbst/README
2022/12/04 | 2332 | macros/unicodetex/latex/bithesis/contributing.md
+2022/12/04 | 23272 | systems/texlive/tlnet/archive/urlbst.source.r65190.tar.xz
+2022/12/04 | 2320 | support/latexindent/LatexIndent/Logger.pm
+2022/12/04 | 229684 | systems/texlive/tlnet/archive/latex-base-dev.r65180.tar.xz
+2022/12/04 | 22818 | support/latexindent/LatexIndent/Document.pm
+2022/12/04 | 2252 | systems/texlive/tlnet/archive/graphics-pln.doc.r65187.tar.xz
2022/12/04 | 222858 | biblio/bibtex/contrib/urlbst/urlbst.pdf
+2022/12/04 | 21928 | systems/texlive/tlnet/archive/bithesis.r65195.tar.xz
2022/12/04 | 21779 | biblio/bibtex/contrib/urlbst/urlbst.html
2022/12/04 | 2166 | biblio/bibtex/contrib/urlbst/configure.ac
+2022/12/04 | 21564 | support/latexindent/LatexIndent/Indent.pm
+2022/12/04 | 21264 | systems/texlive/tlnet/archive/mathfont.r65193.tar.xz
2022/12/04 | 20663 | biblio/bibtex/contrib/urlbst/urlbst.tex
+2022/12/04 | 20388 | support/latexindent/LatexIndent/Sentence.pm
+2022/12/04 | 2008 | support/latexindent/README
2022/12/04 | 200040 | macros/latex/contrib/hfutexam/hfutexam.pdf
2022/12/04 | 1993 | macros/unicodetex/latex/bithesis/README.md
+2022/12/04 | 19922 | support/latexindent/defaultSettings.yaml
+2022/12/04 | 19636 | systems/texlive/tlnet/archive/njuthesis.r65196.tar.xz
2022/12/04 | 194792 | macros/unicodetex/latex/bithesis/bithesis.dtx
2022/12/04 | 19106 | biblio/bibtex/contrib/urlbst/LICENCE-lppl.txt
-2022/12/04 | 186232 | macros/latex/contrib/mathfont/mathfont_symbol_list.pdf
+2022/12/04 | 18522 | support/latexindent/LatexIndent/ModifyLineBreaks.pm
2022/12/04 | 18502 | macros/latex/contrib/ppt-slides/ppt-slides.dtx
2022/12/04 | 18092 | biblio/bibtex/contrib/urlbst/LICENCE-gpl-2.0.txt
-2022/12/04 | 1678 | biblio/ctan-bibdata/biblatex-ctan/ctan.bbx
+2022/12/04 | 17979 | support/latexindent/LatexIndent/Wrap.pm
+2022/12/04 | 1664 | systems/texlive/tlnet/archive/collection-publishers.r65192.tar.xz
2022/12/04 | 1620 | macros/latex/contrib/ppt-slides/README.md
2022/12/04 | 1607 | macros/latex/contrib/hfutexam/hfutexam_datizhi.tex
+2022/12/04 | 1558 | support/latexindent/latexindent-module-installer.pl
+2022/12/04 | 1519012 | systems/texlive/tlnet/archive/optex.doc.r65185.tar.xz
+2022/12/04 | 1500064 | systems/texlive/tlnet/archive/platex.doc.r65197.tar.xz
+2022/12/04 | 1485 | support/latexindent/LatexIndent/DoubleBackSlash.pm
+2022/12/04 | 14844 | systems/texlive/tlnet/archive/uplatex.r65197.tar.xz
2022/12/04 | 1420 | macros/latex/contrib/ppt-slides/ppt-schemes/ppt-light.tex
2022/12/04 | 1420 | macros/latex/contrib/ppt-slides/ppt-schemes/ppt-light-mono.tex
2022/12/04 | 1420 | macros/latex/contrib/ppt-slides/ppt-schemes/ppt-dark.tex
2022/12/04 | 1420 | macros/latex/contrib/ppt-slides/ppt-schemes/ppt-dark-mono.tex
+2022/12/04 | 14108 | systems/texlive/tlnet/archive/urlbst.r65190.tar.xz
+2022/12/04 | 139172 | systems/texlive/tlnet/archive/platex.source.r65197.tar.xz
+2022/12/04 | 13890 | support/latexindent/LatexIndent/Special.pm
+2022/12/04 | 13420 | support/latexindent/LatexIndent/HiddenChildren.pm
2022/12/04 | 13418 | macros/latex/contrib/hfutexam/hfutexam.cls
+2022/12/04 | 12897 | support/latexindent/LatexIndent/LogFile.pm
+2022/12/04 | 12646 | support/latexindent/LatexIndent/Braces.pm
2022/12/04 | 12419 | macros/latex/contrib/hfutexam/hfutexam.tex
+2022/12/04 | 12200 | systems/texlive/tlnet/archive/biblatex-publist.r65182.tar.xz
2022/12/04 | 11 | biblio/bibtex/contrib/urlbst/VERSION
-2022/12/04 | 115314 | macros/latex/contrib/mathfont/mathfont_user_guide.pdf
+2022/12/04 | 1167612 | systems/texlive/tlnet/archive/njuthesis.doc.r65196.tar.xz
+2022/12/04 | 1166672 | support/latexindent/documentation/latexindent.pdf
+2022/12/04 | 11300 | support/latexindent/LatexIndent/FileContents.pm
+2022/12/04 | 11142 | support/latexindent/LatexIndent/Heading.pm
2022/12/04 | 110461 | macros/latex/contrib/hfutexam/hfutexam_simple.pdf
2022/12/04 | 1078 | macros/latex/contrib/ppt-slides/LICENSE.txt
2022/12/04 | 1076205 | macros/unicodetex/latex/bithesis.zip
+2022/12/04 | 10622 | support/latexindent/LatexIndent/Command.pm
2022/12/04 | 10530 | macros/latex/contrib/hfutexam/hfutexam_simple.tex
2022/12/04 | 1046235 | macros/unicodetex/latex/bithesis/bithesis.pdf
2022/12/04 | 1038670 | fonts/amiri.zip
+2022/12/04 | 1030676 | systems/texlive/tlnet/archive/bithesis.doc.r65195.tar.xz
2022/12/04 | 1018762 | macros/latex/contrib/ppt-slides.zip
2022/12/03 | 99 | macros/latex-dev/base/ltpara-code.tex
2022/12/03 | 998 | macros/latex/contrib/biblatex-contrib/biblatex-publist/publist.dbx
@@ -153,7 +325,6 @@
2022/12/03 | 5859 | macros/latex-dev/base/ltidxglo.dtx
2022/12/03 | 58592 | macros/luatex/generic/pdfextra/examples/pdfextra-example-part.prc
2022/12/03 | 58551 | macros/latex-dev/base/ltfssaxes.dtx
-2022/12/03 | 5834544 | systems/texlive/tlnet/install-tl-unx.tar.gz
2022/12/03 | 5825 | macros/latex-dev/base/ltnews10.tex
2022/12/03 | 5789493 | macros/latex-dev/base/source2e.pdf
2022/12/03 | 5775 | macros/latex-dev/base/ltnews16.tex
@@ -200,7 +371,6 @@
2022/12/03 | 5016 | systems/texlive/tlnet/archive/ffcode.source.r65170.tar.xz
2022/12/03 | 50069 | macros/latex-dev/base/ltfinal.dtx
2022/12/03 | 4945 | macros/latex-dev/base/lthyphen.dtx
-2022/12/03 | 48 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5
2022/12/03 | 4853 | support/digestif/LICENSE
2022/12/03 | 47896 | macros/latex-dev/base/lttab.dtx
2022/12/03 | 478686 | macros/latex-dev/base/ltcmdhooks-doc.pdf
@@ -211,10 +381,6 @@
2022/12/03 | 4607 | macros/latex-dev/required/firstaid/changes.txt
2022/12/03 | 45754 | macros/latex-dev/base/ltspace.dtx
2022/12/03 | 45712 | macros/latex-dev/base/ltboxes.dtx
-2022/12/03 | 455 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc
-2022/12/03 | 455 | systems/texlive/tlnet/install-tl.zip.sha512.asc
-2022/12/03 | 455 | systems/texlive/tlnet/install-tl-windows.exe.sha512.asc
-2022/12/03 | 455 | systems/texlive/tlnet/install-tl-unx.tar.gz.sha512.asc
2022/12/03 | 455242 | macros/latex/contrib/semantex.zip
2022/12/03 | 455107 | macros/latex-dev/base/ltnews29.pdf
2022/12/03 | 45347 | macros/latex-dev/base/latexrelease.dtx
@@ -234,7 +400,6 @@
2022/12/03 | 42708 | macros/latex-dev/base/changes.old.txt
2022/12/03 | 426584 | fonts/amiri/Amiri-BoldItalic.ttf
2022/12/03 | 4254 | macros/latex-dev/base/newdc.ins
-2022/12/03 | 423444 | systems/texlive/tlnet/archive/texlive-scripts.doc.r65164.tar.xz
2022/12/03 | 4219 | macros/latex-dev/base/latex209.ins
2022/12/03 | 4170 | macros/latex-dev/base/ltnews19.tex
2022/12/03 | 4152 | support/digestif/digestif/Schema.lua
@@ -324,7 +489,6 @@
2022/12/03 | 257314 | macros/latex-dev/base/cyrguide.pdf
2022/12/03 | 2565 | support/digestif/data/xparse.sty.tags
2022/12/03 | 25560 | fonts/amiri/NEWS.md
-2022/12/03 | 25518541 | systems/texlive/tlnet/install-tl.zip
2022/12/03 | 253925 | support/digestif/data/biblatex.sty.tags
2022/12/03 | 252140 | macros/latex-dev/base/lb2.pdf
2022/12/03 | 250660 | macros/xetex/latex/xduts/xduts.dtx
@@ -332,7 +496,6 @@
2022/12/03 | 2488994 | macros/optex.zip
2022/12/03 | 244867 | macros/latex-dev/base/ltnews21.pdf
2022/12/03 | 243286 | macros/latex-dev/base/ltxdoc.pdf
-2022/12/03 | 2430876 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz
2022/12/03 | 24286 | macros/latex-dev/base/ltcounts.dtx
2022/12/03 | 242468 | macros/latex-dev/base/doc.dtx
2022/12/03 | 241 | macros/latex-dev/base/ltfilehook-doc.tex
@@ -365,7 +528,6 @@
2022/12/03 | 204935 | macros/latex-dev/base/ltnews25.pdf
2022/12/03 | 204711 | macros/latex-dev/base/exscale.pdf
2022/12/03 | 20469 | macros/latex-dev/base/ltnews.cls
-2022/12/03 | 20435502 | systems/texlive/tlnet/install-tl-windows.exe
2022/12/03 | 2028 | fonts/amiri/README-Arabic.md
2022/12/03 | 20149 | support/digestif/digestif/util.lua
2022/12/03 | 200760 | macros/latex-dev/base/latexsym.pdf
@@ -387,7 +549,6 @@
2022/12/03 | 18223 | support/digestif/data/amsrefs.sty.tags
2022/12/03 | 182225 | macros/latex-dev/base/ltnews13.pdf
2022/12/03 | 182031 | macros/latex/contrib/semantex/semantex.tex
-2022/12/03 | 17879282 | systems/texlive/tlnet/tlpkg/texlive.tlpdb
2022/12/03 | 178723 | macros/latex-dev/base/ltoutput.dtx
2022/12/03 | 17779 | macros/latex-dev/base/cyrguide.tex
2022/12/03 | 174494 | macros/latex-dev/base/ltnews05.pdf
@@ -415,16 +576,12 @@
2022/12/03 | 156551 | macros/latex-dev/base/ltnews12.pdf
2022/12/03 | 156236 | macros/latex-dev/base/classes.dtx
2022/12/03 | 155053 | macros/latex-dev/base/ltnews08.pdf
-2022/12/03 | 153 | systems/texlive/tlnet/install-tl-windows.exe.sha512
2022/12/03 | 15384 | macros/latex-dev/base/ltvers.dtx
2022/12/03 | 15306 | macros/latex-dev/base/source2e.tex
-2022/12/03 | 152 | systems/texlive/tlnet/install-tl-unx.tar.gz.sha512
2022/12/03 | 152525 | macros/latex-dev/base/ltnews04.pdf
2022/12/03 | 15047 | macros/latex-dev/base/ltnews28.tex
2022/12/03 | 148294 | macros/latex-dev/base/ltoutenc.dtx
2022/12/03 | 146198 | macros/latex-dev/base/webcomp.pdf
-2022/12/03 | 145 | systems/texlive/tlnet/install-tl.zip.sha512
-2022/12/03 | 144 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512
2022/12/03 | 144369 | macros/latex-dev/base/ltclass.dtx
2022/12/03 | 14421 | macros/latex-dev/base/lppl-1-2.txt
2022/12/03 | 14341 | macros/latex-dev/base/lppl-1-1.txt
@@ -456,7 +613,6 @@
2022/12/03 | 1176569 | macros/unicodetex/latex/njuthesis/njuthesis.pdf
2022/12/03 | 11638 | support/digestif/digestif/data.lua
2022/12/03 | 1150 | support/digestif/data/hyperref.sty.tags
-2022/12/03 | 113704 | systems/texlive/tlnet/archive/texlive-scripts.r65164.tar.xz
2022/12/03 | 1136 | support/digestif/digestif/ManuscriptBibTeX.lua
2022/12/03 | 111948 | macros/latex-dev/base/ltnews11.pdf
2022/12/03 | 11124 | macros/latex-dev/base/manifest.txt
@@ -496,7 +652,6 @@
2022/12/02 | 750060 | systems/win32/miktex/tm/packages/next/files.csv.lzma
2022/12/02 | 74433 | systems/win32/miktex/tm/packages/next/miktex-web-bin-x64-2.9.tar.lzma
2022/12/02 | 73952 | systems/win32/miktex/tm/packages/next/miktex-lzma-bin-x64-2.9.tar.lzma
-2022/12/02 | 7382 | systems/texlive/tlnet/tlpkg/installer/ctan-mirrors.pl
2022/12/02 | 73354 | systems/win32/miktex/tm/packages/next/miktex-graphite2-bin-x64-2.9.tar.lzma
2022/12/02 | 7274 | macros/latex/contrib/csbulletin/doc/csbulletin.tex
2022/12/02 | 72746 | systems/win32/miktex/tm/packages/next/miktex-ps2pk-bin-x64-2.9.tar.lzma
@@ -534,7 +689,6 @@
2022/12/02 | 52654 | systems/win32/miktex/tm/packages/next/miktex-dvicopy-bin-x64-2.9.tar.lzma
2022/12/02 | 52568 | systems/win32/miktex/tm/packages/next/miktex-m-tx-bin-x64-2.9.tar.lzma
2022/12/02 | 525236 | systems/win32/miktex/tm/packages/xduts.tar.lzma
-2022/12/02 | 521608 | systems/texlive/tlnet/archive/xduts.r65160.tar.xz
2022/12/02 | 4935967 | fonts/simpleicons.zip
2022/12/02 | 48980 | systems/win32/miktex/tm/packages/next/miktex-expat-bin-x64-2.9.tar.lzma
2022/12/02 | 4864 | systems/texlive/tlnet/archive/ukbill.r65159.tar.xz
@@ -552,7 +706,6 @@
2022/12/02 | 4074 | macros/optex/base/optex.ini
2022/12/02 | 39859 | systems/win32/miktex/tm/packages/xduts__source.tar.lzma
2022/12/02 | 395125 | systems/win32/miktex/tm/packages/next/miktex-cairo-bin-x64-2.9.tar.lzma
-2022/12/02 | 39448 | systems/texlive/tlnet/archive/xduts.source.r65160.tar.xz
2022/12/02 | 3811 | macros/plain/graphics/README.md
2022/12/02 | 3739 | macros/latex/contrib/csbulletin/tex/csbulacronym.sty
2022/12/02 | 37393 | systems/win32/miktex/tm/packages/next/miktex-posix-bin-x64-2.9.tar.lzma
@@ -573,7 +726,6 @@
2022/12/02 | 305205 | systems/win32/miktex/tm/packages/miktex-zzdb1-2.9.tar.lzma
2022/12/02 | 305154 | systems/win32/miktex/tm/packages/next/miktex-zzdb1-2.9.tar.lzma
2022/12/02 | 30512 | systems/win32/miktex/tm/packages/next/miktex-lacheck-bin-x64-2.9.tar.lzma
-2022/12/02 | 304744 | systems/texlive/tlnet/archive/xduts.doc.r65160.tar.xz
2022/12/02 | 298879 | macros/latex/contrib/csbulletin.zip
2022/12/02 | 296303 | systems/win32/miktex/tm/packages/next/miktex-freetype2-bin-x64-2.9.tar.lzma
2022/12/02 | 28756 | systems/win32/miktex/tm/packages/next/miktex-findtexmf-bin-x64-2.9.tar.lzma
@@ -634,7 +786,6 @@
2022/12/02 | 1746421 | fonts/simpleicons/type1/SimpleIcons.pfb
2022/12/02 | 17445 | macros/latex/contrib/csbulletin/tex/csbulobalka.sty
2022/12/02 | 173437 | systems/win32/miktex/tm/packages/next/miktex-tex-bin-x64-2.9.tar.lzma
-2022/12/02 | 1664 | systems/texlive/tlnet/archive/collection-publishers.r65159.tar.xz
2022/12/02 | 1627957 | systems/win32/miktex/tm/packages/next/miktex-zzdb3-2.9.tar.lzma
2022/12/02 | 1627740 | systems/win32/miktex/tm/packages/miktex-zzdb3-2.9.tar.lzma
2022/12/02 | 1559 | fonts/simpleicons/tex/simpleicons.sty
@@ -2034,7 +2185,6 @@
2022/11/30 | 324 | macros/texinfo/texinfo/tp/tests/test_scripts/indices_index_entry_in_footnote_info.sh
2022/11/30 | 324 | macros/texinfo/texinfo/tp/tests/test_scripts/contents_double_contents_after_title.sh
2022/11/30 | 324 | macros/texinfo/texinfo/tp/tests/indices/res_parser/index_no_node_no_top/index_no_node_no_top.2
-2022/11/30 | 32468 | systems/texlive/tlnet/archive/kpathsea.r65137.tar.xz
2022/11/30 | 32468 | macros/texinfo/texinfo/tp/t/results/moreindices/nodes_before_top/res_html/first-before-top.html
2022/11/30 | 3242 | macros/texinfo/texinfo/tp/t/test_sort.t
2022/11/30 | 323 | macros/texinfo/texinfo/tp/tests/test_scripts/layout_formatting_html_no_texi2html.sh
@@ -3358,7 +3508,6 @@
2022/11/30 | 10640 | macros/texinfo/texinfo/tp/t/results/preformatted/text_on_display_command_line.pl
2022/11/30 | 106377 | macros/texinfo/texinfo/po/sr.gmo
2022/11/30 | 106376 | macros/texinfo/texinfo/tp/t/results/converters_tests/ref_error_formatting.pl
-2022/11/30 | 1061960 | systems/texlive/tlnet/archive/kpathsea.doc.r65137.tar.xz
2022/11/30 | 106168 | macros/texinfo/texinfo/po/cs.gmo
2022/11/30 | 10601 | macros/latex/base/makeindx.dtx
2022/11/30 | 105 | macros/latex/base/ltfilehook-code.tex
@@ -3755,488 +3904,3 @@
2022/11/29 | 10411 | macros/luatex/generic/lutabulartools/lutabulartools.sty
2022/11/29 | 1013494 | macros/unicodetex/latex/polyglossia/polyglossia.dtx
2022/11/29 | 10044 | systems/texlive/tlnet/archive/lt3rawobjects.source.r65121.tar.xz
-2022/11/28 | 999 | graphics/circuit_macros/examples/Fuses.m4
-2022/11/28 | 999 | graphics/circuit_macros/doc/FusesMan.m4
-2022/11/28 | 991 | graphics/circuit_macros/examples/Byte.m4
-2022/11/28 | 988 | graphics/circuit_macros/examples/dpv/VariableDPV.m4
-2022/11/28 | 9869 | graphics/circuit_macros/examples/tubedefs.m4
-2022/11/28 | 981 | graphics/circuit_macros/doc/EmarrowsMan.m4
-2022/11/28 | 977 | graphics/circuit_macros/examples/Emarrows.m4
-2022/11/28 | 973 | graphics/circuit_macros/examples/dpv/MoreTableDPV.m4
-2022/11/28 | 970 | graphics/circuit_macros/doc/Flowdiag.m4
-2022/11/28 | 966 | graphics/circuit_macros/examples/dpv/ex15DPV.m4
-2022/11/28 | 963 | graphics/circuit_macros/doc/MoreTableMan.m4
-2022/11/28 | 960 | graphics/circuit_macros/examples/MoreTable.m4
-2022/11/28 | 959 | graphics/circuit_macros/examples/dpv/FusesDPV.m4
-2022/11/28 | 953 | graphics/circuit_macros/examples/squiggle.m4
-2022/11/28 | 95140 | graphics/circuit_macros/examples/mf/cct.mf
-2022/11/28 | 947 | graphics/circuit_macros/examples/dpv/QuantumDPV.m4
-2022/11/28 | 944 | graphics/circuit_macros/doc/VariableMan.m4
-2022/11/28 | 937 | graphics/circuit_macros/examples/dpv/ByteDPV.m4
-2022/11/28 | 932 | graphics/circuit_macros/examples/Variable.m4
-2022/11/28 | 918 | graphics/circuit_macros/examples/Quantum.m4
-2022/11/28 | 917 | graphics/circuit_macros/examples/birds.m4
-2022/11/28 | 91701 | graphics/circuit_macros/libgen.m4
-2022/11/28 | 901 | graphics/circuit_macros/examples/dpv/quickDPV.m4
-2022/11/28 | 89812 | graphics/circuit_macros/examples/dpv/HeathkitDPV.svg
-2022/11/28 | 8833 | graphics/circuit_macros/examples/Smithchart.m4
-2022/11/28 | 8810 | graphics/circuit_macros/examples/dpv/SmithchartDPV.m4
-2022/11/28 | 8766904 | systems/win32/miktex/tm/packages/profcollege__doc.tar.lzma
-2022/11/28 | 8758 | systems/win32/miktex/tm/packages/jlreq__source.tar.lzma
-2022/11/28 | 865 | graphics/circuit_macros/examples/ex18.m4
-2022/11/28 | 855 | graphics/circuit_macros/examples/dpv/ex03DPV.m4
-2022/11/28 | 8517 | graphics/circuit_macros/examples/dpv/expDPV.m4
-2022/11/28 | 8387 | support/TeX4ht/source/mktex4ht-cnf.tex
-2022/11/28 | 8372 | graphics/circuit_macros/examples/exp.m4
-2022/11/28 | 835 | graphics/circuit_macros/doc/Opto.m4
-2022/11/28 | 831 | graphics/circuit_macros/doc/GroundsMan.m4
-2022/11/28 | 828 | graphics/circuit_macros/examples/Grounds.m4
-2022/11/28 | 8176 | support/TeX4ht/source/tex4ht-mathjax.tex
-2022/11/28 | 810 | graphics/circuit_macros/examples/dpv/GroundsDPV.m4
-2022/11/28 | 801 | graphics/circuit_macros/doc/Potentiometers.m4
-2022/11/28 | 8006 | graphics/circuit_macros/examples/dpv/controlDPV.m4
-2022/11/28 | 793 | graphics/circuit_macros/examples/dpv/CountingDPV.m4
-2022/11/28 | 783 | graphics/circuit_macros/doc/Oblique.m4
-2022/11/28 | 7778 | graphics/circuit_macros/examples/dpv/cscDPV.m4
-2022/11/28 | 774 | graphics/circuit_macros/examples/quick.m4
-2022/11/28 | 774 | graphics/circuit_macros/examples/dpv/quick.m4
-2022/11/28 | 774 | graphics/circuit_macros/doc/quick.m4
-2022/11/28 | 7734 | graphics/circuit_macros/examples/csc.m4
-2022/11/28 | 772 | graphics/circuit_macros/examples/Incleps.m4
-2022/11/28 | 771 | graphics/circuit_macros/examples/Attention.m4
-2022/11/28 | 7708 | graphics/circuit_macros/examples/shapes.m4
-2022/11/28 | 7670 | graphics/circuit_macros/examples/Chuck.m4
-2022/11/28 | 764 | graphics/circuit_macros/examples/mf/cct.tfm
-2022/11/28 | 758 | graphics/circuit_macros/examples/dpv/Np.m4
-2022/11/28 | 7546 | graphics/circuit_macros/examples/dpv/RectifiersDPV.m4
-2022/11/28 | 7546 | graphics/circuit_macros/examples/dpv/ByteDPV.svg
-2022/11/28 | 749 | graphics/circuit_macros/examples/mpost/README-mpost
-2022/11/28 | 7494 | graphics/circuit_macros/examples/dpv/shapesDPV.m4
-2022/11/28 | 747 | graphics/circuit_macros/examples/SampleFlow.m4
-2022/11/28 | 7464 | graphics/circuit_macros/doc/SLDsMan.m4
-2022/11/28 | 745 | graphics/circuit_macros/examples/dpv/DecoderDPV.m4
-2022/11/28 | 7418 | graphics/circuit_macros/examples/dpv/CsourceDPV.m4
-2022/11/28 | 7404 | graphics/circuit_macros/examples/dpv/NportDPV.svg
-2022/11/28 | 724 | graphics/circuit_macros/examples/Connectors.m4
-2022/11/28 | 7203 | graphics/circuit_macros/examples/dpv/lcctDPV.m4
-2022/11/28 | 715 | graphics/circuit_macros/examples/psfrag/examplespsfrag.tex
-2022/11/28 | 715 | graphics/circuit_macros/examples/dpv/ConnectorsDPV.m4
-2022/11/28 | 7127 | graphics/circuit_macros/examples/lcct.m4
-2022/11/28 | 709 | graphics/circuit_macros/examples/Inclpdf.m4
-2022/11/28 | 706 | graphics/circuit_macros/psfrag.m4
-2022/11/28 | 7034 | graphics/circuit_macros/examples/control.m4
-2022/11/28 | 7006 | graphics/circuit_macros/examples/Rectifiers.m4
-2022/11/28 | 685 | graphics/circuit_macros/examples/mpost/mptest
-2022/11/28 | 6854 | graphics/circuit_macros/examples/dpv/DiniDPV.m4
-2022/11/28 | 6854 | graphics/circuit_macros/examples/Dini.m4
-2022/11/28 | 682 | graphics/circuit_macros/examples/dpv/ujtDPV.m4
-2022/11/28 | 673 | graphics/circuit_macros/examples/ex03.m4
-2022/11/28 | 660 | graphics/circuit_macros/examples/ujt.m4
-2022/11/28 | 660 | graphics/circuit_macros/doc/ujtMan.m4
-2022/11/28 | 656 | graphics/circuit_macros/examples/Zcos.m4
-2022/11/28 | 655 | graphics/circuit_macros/examples/Decoder.m4
-2022/11/28 | 654 | graphics/circuit_macros/examples/diamond.m4
-2022/11/28 | 645 | graphics/circuit_macros/examples/Floor.m4
-2022/11/28 | 6413 | graphics/circuit_macros/examples/dpv/CanLogicDPV.m4
-2022/11/28 | 63 | graphics/circuit_macros/examples/dpv/local_init.m4
-2022/11/28 | 6371 | graphics/circuit_macros/examples/CanLogic.m4
-2022/11/28 | 6285 | graphics/circuit_macros/examples/dpv/EscherDPV.m4
-2022/11/28 | 6282 | graphics/circuit_macros/examples/Escher.m4
-2022/11/28 | 6270 | graphics/circuit_macros/examples/ASME_Y14-5.m4
-2022/11/28 | 6216 | graphics/circuit_macros/examples/dpv/LgateDPV.m4
-2022/11/28 | 6215 | graphics/circuit_macros/examples/Plate.m4
-2022/11/28 | 6153 | graphics/circuit_macros/examples/dpv/quick.pic
-2022/11/28 | 6153 | graphics/circuit_macros/examples/dpv/PlateDPV.m4
-2022/11/28 | 614 | graphics/circuit_macros/doc/BigResistor.m4
-2022/11/28 | 609 | graphics/circuit_macros/examples/dpv/README_svg
-2022/11/28 | 609 | graphics/circuit_macros/examples/dpv/diamondDPV.m4
-2022/11/28 | 6003 | graphics/circuit_macros/examples/CSlight.m4
-2022/11/28 | 5992 | graphics/circuit_macros/examples/dpv/Makefile
-2022/11/28 | 5969 | graphics/circuit_macros/examples/xfig/xfiglib.m4
-2022/11/28 | 591 | graphics/circuit_macros/examples/test.m4
-2022/11/28 | 5892 | graphics/circuit_macros/examples/dpv/quick.tex
-2022/11/28 | 5889 | graphics/circuit_macros/examples/Csource.m4
-2022/11/28 | 56 | graphics/circuit_macros/doc/opampex.m4
-2022/11/28 | 563 | graphics/circuit_macros/examples/dpv/RotboxDPV.m4
-2022/11/28 | 555 | graphics/circuit_macros/examples/dpv/FontsDPV.m4
-2022/11/28 | 5546 | graphics/circuit_macros/examples/dpv/FontsDPV.svg
-2022/11/28 | 551 | graphics/circuit_macros/examples/Counting.m4
-2022/11/28 | 5486 | graphics/circuit_macros/examples/graysurf.m4
-2022/11/28 | 5485 | graphics/circuit_macros/examples/rose.m4
-2022/11/28 | 5485 | graphics/circuit_macros/examples/dpv/roseDPV.m4
-2022/11/28 | 5469 | graphics/circuit_macros/examples/dpv/graysurfDPV.m4
-2022/11/28 | 538 | graphics/circuit_macros/examples/dpv/AmpTableDPV.m4
-2022/11/28 | 538186 | systems/win32/miktex/tm/packages/lt3rawobjects__doc.tar.lzma
-2022/11/28 | 5365 | graphics/circuit_macros/examples/dpv/fetDPV.m4
-2022/11/28 | 535 | graphics/circuit_macros/doc/Tline.m4
-2022/11/28 | 533 | graphics/circuit_macros/examples/Rotbox.m4
-2022/11/28 | 532 | graphics/circuit_macros/examples/dpv/NLGDPV.m4
-2022/11/28 | 5315 | graphics/circuit_macros/doc/fetMan.m4
-2022/11/28 | 5311 | graphics/circuit_macros/examples/fet.m4
-2022/11/28 | 529850 | systems/win32/miktex/tm/packages/jlreq__doc.tar.lzma
-2022/11/28 | 5228 | graphics/circuit_macros/examples/dpv/GeometryDPV.m4
-2022/11/28 | 5171 | graphics/circuit_macros/examples/dpv/FlowDPV.m4
-2022/11/28 | 5132 | graphics/circuit_macros/examples/dpv/SwitchesDPV.m4
-2022/11/28 | 50 | graphics/circuit_macros/doc/bitr.m4
-2022/11/28 | 5093 | graphics/circuit_macros/examples/Geometry.m4
-2022/11/28 | 5013 | graphics/circuit_macros/examples/AntiqueClock.m4
-2022/11/28 | 499 | graphics/circuit_macros/examples/NLG.m4
-2022/11/28 | 499 | graphics/circuit_macros/doc/NLGMan.m4
-2022/11/28 | 497 | graphics/circuit_macros/examples/mpost/examplesmpost.tex
-2022/11/28 | 4969 | graphics/circuit_macros/doc/Makefile
-2022/11/28 | 494 | graphics/circuit_macros/examples/AmpTable.m4
-2022/11/28 | 494 | graphics/circuit_macros/doc/AmpTableMan.m4
-2022/11/28 | 489 | graphics/circuit_macros/examples/Koch.m4
-2022/11/28 | 4885 | graphics/circuit_macros/examples/EEP.m4
-2022/11/28 | 483 | graphics/circuit_macros/doc/eboxdims.m4
-2022/11/28 | 482 | graphics/circuit_macros/examples/clock.m4
-2022/11/28 | 4784 | graphics/circuit_macros/examples/psfrag/Makefile
-2022/11/28 | 4782 | graphics/circuit_macros/examples/Switches.m4
-2022/11/28 | 47825 | graphics/circuit_macros/liblog.m4
-2022/11/28 | 4780 | graphics/circuit_macros/doc/SwitchesMan.m4
-2022/11/28 | 4761 | graphics/circuit_macros/examples/dpv/sfgDPV.m4
-2022/11/28 | 4757 | graphics/circuit_macros/examples/dpv/EEPDPV.m4
-2022/11/28 | 4751 | graphics/circuit_macros/examples/Flow.m4
-2022/11/28 | 464 | graphics/circuit_macros/examples/tsttikz.tex
-2022/11/28 | 4638 | graphics/circuit_macros/examples/Ball.m4
-2022/11/28 | 462 | graphics/circuit_macros/Copying
-2022/11/28 | 4615 | graphics/circuit_macros/examples/mf/font.m4
-2022/11/28 | 460 | graphics/circuit_macros/examples/debug1.tex
-2022/11/28 | 45528 | graphics/circuit_macros/examples/dpv/CsourceDPV.svg
-2022/11/28 | 45323 | graphics/circuit_macros/examples/Incl.eps.gz
-2022/11/28 | 4501 | graphics/circuit_macros/examples/Lyap.m4
-2022/11/28 | 449 | graphics/circuit_macros/examples/Wheat.m4
-2022/11/28 | 449 | graphics/circuit_macros/doc/woodchips.m4
-2022/11/28 | 4376 | graphics/circuit_macros/examples/dpv/slddiagsDPV.m4
-2022/11/28 | 4361 | graphics/circuit_macros/examples/mpost/Makefile
-2022/11/28 | 4343 | graphics/circuit_macros/doc/Circuit_macros.bib
-2022/11/28 | 4340 | graphics/circuit_macros/examples/dpv/AlogixDPV.m4
-2022/11/28 | 4313 | graphics/circuit_macros/examples/ex09.m4
-2022/11/28 | 4292 | graphics/circuit_macros/examples/dpv/InclepsDPV.m4
-2022/11/28 | 4292 | graphics/circuit_macros/examples/dpv/BtreeDPV.m4
-2022/11/28 | 425564 | systems/win32/miktex/tm/packages/pagecolor__doc.tar.lzma
-2022/11/28 | 4226 | graphics/circuit_macros/examples/dpv/quickDPV.svg
-2022/11/28 | 421 | graphics/circuit_macros/doc/Sinus.m4
-2022/11/28 | 4205 | graphics/circuit_macros/examples/Alogix.m4
-2022/11/28 | 419 | graphics/circuit_macros/examples/Sixpole.m4
-2022/11/28 | 419 | graphics/circuit_macros/examples/dpv/SixpoleDPV.m4
-2022/11/28 | 418 | graphics/circuit_macros/examples/mpost/tstmpost.tex
-2022/11/28 | 417 | graphics/circuit_macros/examples/dpv/SQUIDDPV.m4
-2022/11/28 | 416 | graphics/circuit_macros/examples/testpdf.tex
-2022/11/28 | 4119 | graphics/circuit_macros/examples/dpv/ex09DPV.m4
-2022/11/28 | 409 | graphics/circuit_macros/examples/tst.tex
-2022/11/28 | 404 | graphics/circuit_macros/doc/Series.m4
-2022/11/28 | 4002 | graphics/circuit_macros/examples/Euro.m4
-2022/11/28 | 3991 | graphics/circuit_macros/examples/sfg.m4
-2022/11/28 | 3963 | graphics/pstricks/base/Changes
-2022/11/28 | 3954 | graphics/circuit_macros/examples/PushPull.m4
-2022/11/28 | 387 | graphics/circuit_macros/doc/lrarrows.m4
-2022/11/28 | 3825 | graphics/circuit_macros/examples/recycle.m4
-2022/11/28 | 3825 | graphics/circuit_macros/examples/dpv/recycleDPV.m4
-2022/11/28 | 380 | graphics/circuit_macros/examples/SQUID.m4
-2022/11/28 | 3794 | graphics/circuit_macros/INSTALL
-2022/11/28 | 3785 | graphics/circuit_macros/examples/Mixer.m4
-2022/11/28 | 3778 | graphics/circuit_macros/examples/dpv/PushPullDPV.m4
-2022/11/28 | 3756 | graphics/circuit_macros/examples/dpv/randomDPV.m4
-2022/11/28 | 3749 | graphics/circuit_macros/examples/Shaky.m4
-2022/11/28 | 3727 | graphics/circuit_macros/examples/random.m4
-2022/11/28 | 371 | graphics/circuit_macros/examples/psfrag/tstpsfrag.tex
-2022/11/28 | 370 | graphics/circuit_macros/examples/snake.m4
-2022/11/28 | 369 | graphics/circuit_macros/doc/sampleIC.m4
-2022/11/28 | 3676 | systems/win32/miktex/tm/packages/lt3rawobjects.tar.lzma
-2022/11/28 | 365 | graphics/circuit_macros/examples/rotellipse.m4
-2022/11/28 | 3646 | graphics/circuit_macros/examples/dpv/ContactDPV.m4
-2022/11/28 | 3631 | graphics/circuit_macros/examples/dpv/wormDPV.m4
-2022/11/28 | 3567 | graphics/circuit_macros/examples/dpv/ButtonsDPV.m4
-2022/11/28 | 353 | graphics/circuit_macros/examples/windows.m4
-2022/11/28 | 353 | graphics/circuit_macros/examples/dpv/windows.m4
-2022/11/28 | 3522 | graphics/circuit_macros/examples/dpv/ex12DPV.m4
-2022/11/28 | 3510 | graphics/circuit_macros/examples/ex05.m4
-2022/11/28 | 3509 | graphics/circuit_macros/examples/Buttons.m4
-2022/11/28 | 3489 | graphics/circuit_macros/examples/dpv/MixerDPV.m4
-2022/11/28 | 3473 | graphics/circuit_macros/examples/dpv/MCDPV.m4
-2022/11/28 | 3464 | graphics/circuit_macros/examples/Contact.m4
-2022/11/28 | 3420 | graphics/circuit_macros/examples/README-examples
-2022/11/28 | 34203 | graphics/circuit_macros/examples/dpv/controlDPV.svg
-2022/11/28 | 3390 | graphics/circuit_macros/examples/dpv/ex05DPV.m4
-2022/11/28 | 337 | graphics/circuit_macros/examples/xfig/Makefile
-2022/11/28 | 3346 | graphics/circuit_macros/examples/Windings.m4
-2022/11/28 | 3346 | graphics/circuit_macros/doc/WindingsMan.m4
-2022/11/28 | 3339 | graphics/circuit_macros/examples/ex12.m4
-2022/11/28 | 3326 | graphics/circuit_macros/doc/ContactMan.m4
-2022/11/28 | 3321 | graphics/circuit_macros/examples/thyristor.m4
-2022/11/28 | 3321 | graphics/circuit_macros/doc/thyristorMan.m4
-2022/11/28 | 3310 | graphics/circuit_macros/examples/dpv/thyristorDPV.m4
-2022/11/28 | 33087 | graphics/circuit_macros/examples/dpv/FlowDPV.svg
-2022/11/28 | 32 | graphics/circuit_macros/examples/Incl.eps.bb
-2022/11/28 | 329 | graphics/circuit_macros/doc/FF.m4
-2022/11/28 | 32750 | graphics/circuit_macros/examples/dpv/ConnectorsDPV.svg
-2022/11/28 | 32742 | graphics/circuit_macros/libSLD.m4
-2022/11/28 | 3198 | graphics/circuit_macros/examples/Btree.m4
-2022/11/28 | 317 | graphics/circuit_macros/examples/psfrag/README-psfrag.txt
-2022/11/28 | 3175 | graphics/circuit_macros/examples/Blogix.m4
-2022/11/28 | 3091 | graphics/circuit_macros/examples/dpv/TtreeDPV.m4
-2022/11/28 | 3061 | systems/win32/miktex/tm/packages/pagecolor.tar.lzma
-2022/11/28 | 30451 | graphics/circuit_macros/examples/dpv/LoglogDPV.m4
-2022/11/28 | 3019 | graphics/circuit_macros/doc/Circuit_macros.tex
-2022/11/28 | 2994 | graphics/circuit_macros/examples/dpv/WindingsDPV.m4
-2022/11/28 | 2989 | graphics/circuit_macros/examples/dpv/AutoencoderDPV.m4
-2022/11/28 | 2986 | graphics/circuit_macros/examples/MC.m4
-2022/11/28 | 29772 | graphics/circuit_macros/examples/Incl.pdf
-2022/11/28 | 295 | graphics/circuit_macros/examples/ShadeSector.m4
-2022/11/28 | 2912 | graphics/circuit_macros/doc/Workflow.m4
-2022/11/28 | 2846 | graphics/circuit_macros/examples/Metamodel.m4
-2022/11/28 | 2834 | graphics/circuit_macros/postscript.m4
-2022/11/28 | 28340 | graphics/circuit_macros/examples/dpv/EEPDPV.svg
-2022/11/28 | 2801 | graphics/circuit_macros/examples/worm.m4
-2022/11/28 | 2792 | graphics/circuit_macros/examples/OpAmpFilter.m4
-2022/11/28 | 2720 | graphics/circuit_macros/examples/dpv/AudioDPV.m4
-2022/11/28 | 27105 | graphics/circuit_macros/examples/Consumption.m4
-2022/11/28 | 26 | graphics/circuit_macros/doc/DCsymbol.m4
-2022/11/28 | 26 | graphics/circuit_macros/doc/ACsymbol.m4
-2022/11/28 | 269 | graphics/circuit_macros/doc/Loop.m4
-2022/11/28 | 2685 | graphics/circuit_macros/examples/dpv/ex11DPV.m4
-2022/11/28 | 2634 | graphics/circuit_macros/examples/Audio.m4
-2022/11/28 | 2634 | graphics/circuit_macros/doc/AudioMan.m4
-2022/11/28 | 2629 | graphics/circuit_macros/examples/dpv/ex01DPV.m4
-2022/11/28 | 2571 | graphics/circuit_macros/examples/IntersectingPlanes.m4
-2022/11/28 | 2562 | graphics/circuit_macros/examples/Crow.m4
-2022/11/28 | 2559 | graphics/circuit_macros/examples/dpv/ex08DPV.m4
-2022/11/28 | 2556 | graphics/circuit_macros/examples/ex08.m4
-2022/11/28 | 2551 | graphics/circuit_macros/examples/dpv/OptoisoDPV.m4
-2022/11/28 | 2542 | graphics/circuit_macros/examples/brace.m4
-2022/11/28 | 2528 | graphics/circuit_macros/examples/dpv/AdderDPV.m4
-2022/11/28 | 2525 | graphics/circuit_macros/examples/dpv/CrowDPV.m4
-2022/11/28 | 2517 | graphics/circuit_macros/examples/Autoencoder.m4
-2022/11/28 | 24811 | graphics/circuit_macros/examples/dpv/examplesDPVs.htmx
-2022/11/28 | 24807 | graphics/circuit_macros/examples/dpv/examplesDPV.htmx
-2022/11/28 | 2443 | graphics/circuit_macros/examples/dpv/ex00DPV.m4
-2022/11/28 | 2442 | graphics/circuit_macros/examples/Optoiso.m4
-2022/11/28 | 24138 | graphics/circuit_macros/examples/dpv/UNODPV.m4
-2022/11/28 | 2412 | graphics/circuit_macros/examples/ex00.m4
-2022/11/28 | 2402 | graphics/circuit_macros/examples/Adder.m4
-2022/11/28 | 2389 | graphics/circuit_macros/doc/Dac.m4
-2022/11/28 | 23650 | graphics/circuit_macros/dpictools.pic
-2022/11/28 | 2362 | graphics/circuit_macros/examples/Jack.m4
-2022/11/28 | 2362 | graphics/circuit_macros/doc/JackMan.m4
-2022/11/28 | 2361 | graphics/circuit_macros/examples/ex11.m4
-2022/11/28 | 23616 | graphics/circuit_macros/examples/UNO.m4
-2022/11/28 | 233 | graphics/circuit_macros/examples/Ccurve.m4
-2022/11/28 | 2304 | graphics/circuit_macros/examples/Loglog.m4
-2022/11/28 | 2294 | graphics/circuit_macros/examples/ex01.m4
-2022/11/28 | 2225 | graphics/circuit_macros/doc/SourcesMan.m4
-2022/11/28 | 221 | graphics/circuit_macros/examples/rotate.tex
-2022/11/28 | 219 | graphics/circuit_macros/examples/tst1.tex
-2022/11/28 | 217 | graphics/circuit_macros/doc/stringdims.m4
-2022/11/28 | 2179 | graphics/circuit_macros/doc/ConnMan.m4
-2022/11/28 | 2178 | graphics/circuit_macros/examples/Conn.m4
-2022/11/28 | 2171 | graphics/circuit_macros/examples/dpv/I2LDPV.m4
-2022/11/28 | 2165 | graphics/circuit_macros/examples/Sources.m4
-2022/11/28 | 21398 | graphics/circuit_macros/examples/xfig/xfiglib.fig
-2022/11/28 | 21384 | graphics/circuit_macros/examples/dpv/Incl.jpg
-2022/11/28 | 2136102 | systems/win32/miktex/tm/packages/profcollege__source.tar.lzma
-2022/11/28 | 2119 | graphics/circuit_macros/examples/Logic.m4
-2022/11/28 | 2119 | graphics/circuit_macros/doc/LogicMan.m4
-2022/11/28 | 2111 | graphics/circuit_macros/examples/dpv/ConnDPV.m4
-2022/11/28 | 2099 | graphics/circuit_macros/pstricks.m4
-2022/11/28 | 2086 | graphics/circuit_macros/examples/relaycoil.m4
-2022/11/28 | 2086 | graphics/circuit_macros/examples/Eye.m4
-2022/11/28 | 2086 | graphics/circuit_macros/doc/relaycoilMan.m4
-2022/11/28 | 2085 | graphics/circuit_macros/pgf.m4
-2022/11/28 | 2069 | graphics/circuit_macros/examples/dpv/relaycoilDPV.m4
-2022/11/28 | 2068 | graphics/circuit_macros/examples/I2L.m4
-2022/11/28 | 2051 | graphics/circuit_macros/examples/dpv/JackDPV.m4
-2022/11/28 | 2027 | graphics/circuit_macros/examples/dpv/pwrsupplyDPV.m4
-2022/11/28 | 2018 | graphics/circuit_macros/examples/dpv/ex06DPV.m4
-2022/11/28 | 2014 | graphics/circuit_macros/examples/pwrsupply.m4
-2022/11/28 | 2013 | graphics/circuit_macros/doc/HybridPi.m4
-2022/11/28 | 2000 | graphics/circuit_macros/examples/ex21.m4
-2022/11/28 | 1997 | graphics/circuit_macros/examples/Pconn.m4
-2022/11/28 | 1996 | graphics/circuit_macros/examples/dpv/FourbarDPV.m4
-2022/11/28 | 1995 | graphics/circuit_macros/doc/Corners.m4
-2022/11/28 | 1985 | graphics/circuit_macros/examples/dpv/XORDPV.m4
-2022/11/28 | 1982 | graphics/circuit_macros/doc/PconnMan.m4
-2022/11/28 | 1975 | graphics/circuit_macros/doc/FlipFlop.m4
-2022/11/28 | 1966 | graphics/circuit_macros/examples/Drive.m4
-2022/11/28 | 1966 | graphics/circuit_macros/examples/dpv/DriveDPV.m4
-2022/11/28 | 1962 | graphics/circuit_macros/examples/Autologix.m4
-2022/11/28 | 1959 | graphics/circuit_macros/examples/debug2.m4
-2022/11/28 | 1955 | graphics/circuit_macros/examples/dpv/ABlogixDPV.m4
-2022/11/28 | 1953 | graphics/circuit_macros/examples/dpv/MotorControlDPV.m4
-2022/11/28 | 1953 | graphics/circuit_macros/doc/Buffer.m4
-2022/11/28 | 19397 | graphics/circuit_macros/examples/files.tex
-2022/11/28 | 1931 | graphics/circuit_macros/examples/dpv/LogicDPV.m4
-2022/11/28 | 1922 | graphics/circuit_macros/examples/MotorControl.m4
-2022/11/28 | 19176 | graphics/circuit_macros/Licence.txt
-2022/11/28 | 1916 | graphics/circuit_macros/examples/venus.m4
-2022/11/28 | 1907 | graphics/circuit_macros/examples/dpv/SourcesDPV.m4
-2022/11/28 | 1906 | graphics/circuit_macros/examples/SPM.m4
-2022/11/28 | 1897548 | graphics/circuit_macros/examples/examples.pdf
-2022/11/28 | 1894 | graphics/circuit_macros/examples/dpv/ArrowFnDPV.m4
-2022/11/28 | 1893 | graphics/circuit_macros/examples/dpv/ex16DPV.m4
-2022/11/28 | 1891 | graphics/circuit_macros/examples/dpv/ex04DPV.m4
-2022/11/28 | 1882 | graphics/circuit_macros/examples/dpv/ex21DPV.m4
-2022/11/28 | 1879 | graphics/circuit_macros/examples/Cruller.m4
-2022/11/28 | 1875 | graphics/circuit_macros/examples/dpv/GrayCodeDPV.m4
-2022/11/28 | 1874 | graphics/circuit_macros/examples/dpv/CrullerDPV.m4
-2022/11/28 | 1865 | graphics/circuit_macros/examples/ex16.m4
-2022/11/28 | 1860 | graphics/circuit_macros/doc/bi_trans.m4
-2022/11/28 | 1857 | graphics/circuit_macros/doc/Composite.m4
-2022/11/28 | 1852 | graphics/circuit_macros/examples/Orbits.m4
-2022/11/28 | 18477 | graphics/circuit_macros/examples/dpv/examplesDPVs.html
-2022/11/28 | 1837 | graphics/circuit_macros/examples/dpv/SchottkyDPV.m4
-2022/11/28 | 1823 | graphics/circuit_macros/examples/XOR.m4
-2022/11/28 | 1818 | graphics/circuit_macros/examples/GrayCode.m4
-2022/11/28 | 1812 | graphics/circuit_macros/examples/dpv/BipDPV.m4
-2022/11/28 | 179685 | graphics/circuit_macros/libcct.m4
-2022/11/28 | 1795 | graphics/circuit_macros/examples/Stator.m4
-2022/11/28 | 1790 | graphics/circuit_macros/doc/DiodesMan.m4
-2022/11/28 | 1787 | graphics/circuit_macros/examples/Diodes.m4
-2022/11/28 | 1786 | graphics/circuit_macros/examples/ArrowFn.m4
-2022/11/28 | 1781 | graphics/circuit_macros/examples/dpv/PconnDPV.m4
-2022/11/28 | 1778 | graphics/circuit_macros/examples/Schottky.m4
-2022/11/28 | 1766 | graphics/circuit_macros/examples/examples.tex
-2022/11/28 | 1737 | graphics/circuit_macros/examples/dpv/ContactsDPV.m4
-2022/11/28 | 1730 | graphics/circuit_macros/examples/ABlogix.m4
-2022/11/28 | 1700 | graphics/circuit_macros/examples/ex06.m4
-2022/11/28 | 1700 | graphics/circuit_macros/examples/dpv/EyeDPV.m4
-2022/11/28 | 1699 | graphics/circuit_macros/examples/dpv/ex10DPV.m4
-2022/11/28 | 1668 | graphics/circuit_macros/examples/IC10107.m4
-2022/11/28 | 1668 | graphics/circuit_macros/examples/dpv/Banking.m4
-2022/11/28 | 165 | graphics/circuit_macros/doc/tranbody.m4
-2022/11/28 | 1654 | graphics/circuit_macros/examples/ex04.m4
-2022/11/28 | 1647 | graphics/circuit_macros/examples/dpv/DiodesDPV.m4
-2022/11/28 | 1640 | graphics/circuit_macros/mpost.m4
-2022/11/28 | 1639 | graphics/circuit_macros/Makefile
-2022/11/28 | 1630 | graphics/circuit_macros/examples/dpv/TTLnandDPV.m4
-2022/11/28 | 1626 | graphics/circuit_macros/examples/dpv/ArrestersDPV.m4
-2022/11/28 | 1624 | graphics/circuit_macros/doc/ParSeries.m4
-2022/11/28 | 1619 | graphics/circuit_macros/examples/Bip.m4
-2022/11/28 | 1619 | graphics/circuit_macros/doc/BipMan.m4
-2022/11/28 | 1618 | graphics/circuit_macros/doc/ArrestersMan.m4
-2022/11/28 | 1615 | graphics/circuit_macros/examples/Arresters.m4
-2022/11/28 | 1612 | graphics/circuit_macros/examples/dpv/TimerDPV.m4
-2022/11/28 | 1585 | graphics/circuit_macros/examples/Contacts.m4
-2022/11/28 | 1585 | graphics/circuit_macros/doc/ContactsMan.m4
-2022/11/28 | 15834 | graphics/circuit_macros/README
-2022/11/28 | 1575 | graphics/circuit_macros/doc/mplex.m4
-2022/11/28 | 1559 | graphics/circuit_macros/examples/dpv/XformDPV.m4
-2022/11/28 | 1558 | graphics/circuit_macros/examples/TTLnand.m4
-2022/11/28 | 15560 | graphics/circuit_macros/examples/dpv/ex01DPV.svg
-2022/11/28 | 1546 | graphics/circuit_macros/examples/dpv/Xtest.m4
-2022/11/28 | 154219 | graphics/circuit_macros/doc/body.tex
-2022/11/28 | 15366 | graphics/circuit_macros/examples/dpv/ConnectorsDPV.pic
-2022/11/28 | 1529 | graphics/circuit_macros/examples/mf/Makefile
-2022/11/28 | 1526 | graphics/circuit_macros/examples/Xform.m4
-2022/11/28 | 1526 | graphics/circuit_macros/doc/XformMan.m4
-2022/11/28 | 1525 | graphics/circuit_macros/examples/rotatetext.m4
-2022/11/28 | 150 | graphics/circuit_macros/doc/Thermal.m4
-2022/11/28 | 1492 | graphics/circuit_macros/examples/ex10.m4
-2022/11/28 | 1485 | graphics/circuit_macros/examples/Demultiplexer.m4
-2022/11/28 | 1485 | graphics/circuit_macros/doc/DemultiplexerMan.m4
-2022/11/28 | 1463 | graphics/circuit_macros/doc/Taps.m4
-2022/11/28 | 1458 | graphics/circuit_macros/examples/header.tex
-2022/11/28 | 1444 | graphics/circuit_macros/examples/dpv/ThreeDPV.m4
-2022/11/28 | 1443 | graphics/circuit_macros/examples/Resolver.m4
-2022/11/28 | 1443 | graphics/circuit_macros/examples/Inductors.m4
-2022/11/28 | 1433 | graphics/circuit_macros/examples/Opamp.m4
-2022/11/28 | 1433 | graphics/circuit_macros/doc/OpampMan.m4
-2022/11/28 | 1431 | graphics/circuit_macros/examples/dpv/RelayDPV.m4
-2022/11/28 | 14279 | graphics/circuit_macros/darrow.m4
-2022/11/28 | 142140 | systems/win32/miktex/tm/packages/jlreq.tar.lzma
-2022/11/28 | 1419 | graphics/circuit_macros/examples/person.m4
-2022/11/28 | 1406 | graphics/circuit_macros/examples/ShiftR.m4
-2022/11/28 | 1406 | graphics/circuit_macros/doc/ShiftRMan.m4
-2022/11/28 | 1403 | graphics/circuit_macros/examples/dpv/MultiplexerDPV.m4
-2022/11/28 | 1400 | graphics/circuit_macros/examples/Multiplexer.m4
-2022/11/28 | 1400 | graphics/circuit_macros/doc/MultiplexerMan.m4
-2022/11/28 | 13 | graphics/circuit_macros/doc/Version.tex
-2022/11/28 | 13829 | graphics/circuit_macros/CHANGES
-2022/11/28 | 137 | graphics/circuit_macros/doc/opampexbody.m4
-2022/11/28 | 1373 | graphics/circuit_macros/examples/dpv/DemultiplexerDPV.m4
-2022/11/28 | 13505 | graphics/circuit_macros/examples/dpv/tstDPV.htmx
-2022/11/28 | 1343 | graphics/circuit_macros/examples/dpv/InductorsDPV.m4
-2022/11/28 | 1342 | graphics/circuit_macros/doc/InductorsMan.m4
-2022/11/28 | 13420 | graphics/circuit_macros/examples/Heathkit.m4
-2022/11/28 | 1331 | graphics/circuit_macros/examples/Sierpinski.m4
-2022/11/28 | 1331 | graphics/circuit_macros/examples/dpv/SierpinskiDPV.m4
-2022/11/28 | 1329 | graphics/circuit_macros/doc/currents.m4
-2022/11/28 | 13294 | graphics/circuit_macros/examples/Tubediags.m4
-2022/11/28 | 131 | graphics/circuit_macros/doc/Axes.m4
-2022/11/28 | 1313 | graphics/circuit_macros/examples/dpv/ShiftRDPV.m4
-2022/11/28 | 130 | graphics/circuit_macros/doc/bitrbody.m4
-2022/11/28 | 1292 | graphics/circuit_macros/doc/ConfigC.m4
-2022/11/28 | 1287 | graphics/circuit_macros/examples/Three.m4
-2022/11/28 | 12765 | graphics/circuit_macros/lib3D.m4
-2022/11/28 | 12711 | graphics/circuit_macros/examples/dpv/HeathkitDPV.m4
-2022/11/28 | 1268427 | systems/win32/miktex/tm/packages/profcollege.tar.lzma
-2022/11/28 | 1265 | graphics/circuit_macros/examples/dpv/HeadersDPV.m4
-2022/11/28 | 1259 | graphics/circuit_macros/examples/Relay.m4
-2022/11/28 | 1259 | graphics/circuit_macros/doc/RelayMan.m4
-2022/11/28 | 1258 | graphics/circuit_macros/doc/ConfigB.m4
-2022/11/28 | 125396 | graphics/pstricks/base/generic/pstricks.tex
-2022/11/28 | 12478 | graphics/circuit_macros/examples/dpv/TubediagsDPV.m4
-2022/11/28 | 124711769 | systems/win32/TLW64/tl-win64.zip
-2022/11/28 | 1238 | graphics/circuit_macros/examples/dpv/NportDPV.m4
-2022/11/28 | 1230 | graphics/circuit_macros/examples/Antennas.m4
-2022/11/28 | 1230 | graphics/circuit_macros/doc/AntennasMan.m4
-2022/11/28 | 1229 | graphics/circuit_macros/doc/fbfilter.m4
-2022/11/28 | 1222 | graphics/circuit_macros/examples/Chips.m4
-2022/11/28 | 1214 | graphics/circuit_macros/examples/dpv/ChipsDPV.m4
-2022/11/28 | 1204 | graphics/circuit_macros/examples/dpv/ex17DPV.m4
-2022/11/28 | 1201 | graphics/circuit_macros/examples/Capacitors.m4
-2022/11/28 | 11995 | graphics/circuit_macros/svg.m4
-2022/11/28 | 11948 | systems/win32/miktex/tm/packages/pagecolor__source.tar.lzma
-2022/11/28 | 1188 | graphics/circuit_macros/examples/dpv/ResistorsDPV.m4
-2022/11/28 | 1185 | graphics/circuit_macros/boxdims.sty
-2022/11/28 | 118060 | graphics/circuit_macros/examples/keyboard.pdf
-2022/11/28 | 1174 | graphics/circuit_macros/examples/PPA.m4
-2022/11/28 | 11646312 | graphics/pstricks/base.zip
-2022/11/28 | 1160 | graphics/circuit_macros/examples/dpv/CapacitorsDPV.m4
-2022/11/28 | 11601 | graphics/circuit_macros/examples/dpv/icsDPV.m4
-2022/11/28 | 1157 | graphics/circuit_macros/examples/dpv/NPDTDPV.m4
-2022/11/28 | 1151 | graphics/circuit_macros/doc/Darlington.m4
-2022/11/28 | 1149 | graphics/circuit_macros/doc/ResistorsMan.m4
-2022/11/28 | 1147 | graphics/circuit_macros/examples/Resistors.m4
-2022/11/28 | 11440 | graphics/circuit_macros/examples/ics.m4
-2022/11/28 | 113485 | graphics/circuit_macros/examples/dpv/paletteDPV.svg
-2022/11/28 | 1132 | graphics/circuit_macros/examples/Headers.m4
-2022/11/28 | 1132 | graphics/circuit_macros/doc/HeadersMan.m4
-2022/11/28 | 1128 | graphics/circuit_macros/examples/NPDT.m4
-2022/11/28 | 1128 | graphics/circuit_macros/doc/NPDTMan.m4
-2022/11/28 | 1126 | graphics/circuit_macros/examples/ex17.m4
-2022/11/28 | 11255 | graphics/circuit_macros/examples/FlowchartDefs.m4
-2022/11/28 | 1121 | graphics/circuit_macros/doc/ConfigA.m4
-2022/11/28 | 11170 | graphics/circuit_macros/examples/Makefile
-2022/11/28 | 1114 | graphics/circuit_macros/mfpic.m4
-2022/11/28 | 1100 | graphics/circuit_macros/examples/ex02.m4
-2022/11/28 | 1093 | graphics/circuit_macros/examples/dpv/ex02DPV.m4
-2022/11/28 | 1090 | graphics/circuit_macros/examples/dpv/AntennasDPV.m4
-2022/11/28 | 10871 | graphics/circuit_macros/examples/dpv/EVplugsDPV.m4
-2022/11/28 | 10836 | graphics/circuit_macros/examples/EVplugs.m4
-2022/11/28 | 1076 | graphics/circuit_macros/examples/mf/mftest
-2022/11/28 | 1075 | graphics/circuit_macros/examples/bistable.m4
-2022/11/28 | 1074 | graphics/circuit_macros/doc/bistableMan.m4
-2022/11/28 | 1071 | graphics/circuit_macros/examples/dpv/EmarrowsDPV.m4
-2022/11/28 | 10699 | graphics/circuit_macros/examples/keyboard.m4
-2022/11/28 | 10699 | graphics/circuit_macros/examples/dpv/keyboardDPV.m4
-2022/11/28 | 1065 | graphics/circuit_macros/examples/dpv/ex18DPV.m4
-2022/11/28 | 1063 | graphics/circuit_macros/doc/CapacitorsMan.m4
-2022/11/28 | 105650 | graphics/circuit_macros/doc/defines.tex
-2022/11/28 | 1055 | graphics/circuit_macros/examples/dpv/TgateDPV.m4
-2022/11/28 | 1050 | graphics/circuit_macros/examples/dpv/DPVconfig.m4
-2022/11/28 | 1040 | graphics/circuit_macros/examples/Nport.m4
-2022/11/28 | 1040 | graphics/circuit_macros/doc/NportMan.m4
-2022/11/28 | 1039 | graphics/circuit_macros/examples/chaos.m4
-2022/11/28 | 1034 | graphics/circuit_macros/examples/dpv/OpampDPV.m4
-2022/11/28 | 10345 | systems/win32/miktex/tm/packages/lt3rawobjects__source.tar.lzma
-2022/11/28 | 1030606 | graphics/circuit_macros/doc/Circuit_macros.pdf
-2022/11/28 | 1029 | graphics/circuit_macros/xfig.m4
-2022/11/28 | 10238 | graphics/circuit_macros/examples/dpv/paletteDPV.m4
-2022/11/28 | 1022 | graphics/circuit_macros/examples/Tgate.m4
-2022/11/28 | 1022 | graphics/circuit_macros/doc/TgateMan.m4
-2022/11/28 | 1019 | graphics/circuit_macros/gpic.m4
-2022/11/28 | 10193 | graphics/circuit_macros/examples/paletteSVG.m4
-2022/11/28 | 1017 | graphics/circuit_macros/doc/arrowex.m4
-2022/11/28 | 1015692 | graphics/pstricks/base/doc/pst-news22.pdf
-2022/11/28 | 1003 | graphics/circuit_macros/examples/ex15.m4
diff --git a/biblio/ctan-bibdata/ctan.bib b/biblio/ctan-bibdata/ctan.bib
index 981bead8c1..400a652efb 100644
--- a/biblio/ctan-bibdata/ctan.bib
+++ b/biblio/ctan-bibdata/ctan.bib
@@ -1,7 +1,7 @@
%% bib file of all CTAN packages
%% (C) Herbert Voß
%%
-%% created at 05-12-2022, 02:00:16
+%% created at 06-12-2022, 02:02:29
%%
%% This file is provided under the terms of the LPPL v1.3 or
@@ -18211,7 +18211,7 @@
title = {The \texttt{digestif} package},
subtitle = {Editor plugin for \LaTeX{}, ConTeXt etc.},
author = {Augusto Stoffel},
- date = {2022-12-04},
+ date = {2022-12-05},
version = {0.5},
license = {gpl3+,lppl1.3c,fdl},
mirror = {https://mirror.ctan.org/support/digestif},
@@ -25788,10 +25788,10 @@
@manual{ctan-fnlineno,
title = {The \texttt{fnlineno} package},
subtitle = {Number the lines of footnotes},
- author = {Uwe Lück},
- date = {2017-05-06},
+ author = {Uwe Lück and Karl Wette},
+ date = {2022-12-05},
version = {0.55},
- license = {lppl1.3},
+ license = {lppl1.3c},
mirror = {https://mirror.ctan.org/macros/latex/contrib/lineno},
url = {https://ctan.org/pkg/fnlineno},
}
@@ -31000,7 +31000,7 @@
title = {The \texttt{HFUTExam} package},
subtitle = {Exam class for Hefei University of Technology (China)},
author = {Shenxing Zhang},
- date = {2022-12-04},
+ date = {2022-12-05},
version = {1.5},
license = {lppl1.3c},
mirror = {https://mirror.ctan.org/macros/latex/contrib/hfutexam},
@@ -37521,8 +37521,8 @@
title = {The \texttt{latexindent} package},
subtitle = {Indent a \LaTeX{} document, highlighting the programming structure},
author = {Chris Hughes},
- date = {2022-10-30},
- version = {3.19},
+ date = {2022-12-05},
+ version = {3.19.1},
license = {gpl3},
mirror = {https://mirror.ctan.org/support/latexindent},
url = {https://ctan.org/pkg/latexindent},
@@ -38796,9 +38796,9 @@
title = {The \texttt{lineno} package},
subtitle = {Line numbers on paragraphs},
author = {Stephan Böttcher and Uwe Lück and Karl Wette},
- date = {2021-12-10},
- version = {4.41},
- license = {lppl},
+ date = {2022-12-05},
+ version = {5.0},
+ license = {lppl1.3a},
mirror = {https://mirror.ctan.org/macros/latex/contrib/lineno},
url = {https://ctan.org/pkg/lineno},
}
@@ -38807,14 +38807,11 @@
title = {The \texttt{linenoamsmath} package},
subtitle = {Use the lineno package together with amsmath},
author = {Karl Wette},
- date = {2021-10-04},
+ date = {2022-12-05},
version = {1.0},
license = {lppl1.3},
- mirror = {https://mirror.ctan.org/macros/latex/contrib/linenoamsmath},
+ mirror = {https://mirror.ctan.org/obsolete/macros/latex/contrib/linenoamsmath},
url = {https://ctan.org/pkg/linenoamsmath},
- annotation = {This package patches the
- package to work with the
- package.},
}
@manual{ctan-ling-macros,
@@ -42583,8 +42580,8 @@
title = {The \texttt{mathfont} package},
subtitle = {Use TrueType and OpenType fonts in math mode},
author = {Conrad Kosowsky},
- date = {2022-12-04},
- version = {2.2},
+ date = {2022-12-05},
+ version = {2.2a},
license = {lppl1.3c},
mirror = {https://mirror.ctan.org/macros/latex/contrib/mathfont},
url = {https://ctan.org/pkg/mathfont},
@@ -60405,8 +60402,8 @@
title = {The \texttt{setspace} package},
subtitle = {Set space between lines},
author = {Erica Harris and Geoffrey Tobin and Robin Fairbairns and David Carlisle},
- date = {2018-09-14},
- version = {6.7a},
+ date = {2022-12-05},
+ version = {6.7b},
license = {lppl1.3},
mirror = {https://mirror.ctan.org/macros/latex/contrib/setspace},
url = {https://ctan.org/pkg/setspace},
@@ -61494,8 +61491,8 @@
title = {The \texttt{siunitx} package},
subtitle = {A comprehensive (SI) units package},
author = {Joseph Wright},
- date = {2022-11-16},
- version = {3.1.10},
+ date = {2022-12-05},
+ version = {3.1.11},
license = {lppl1.3c},
mirror = {https://mirror.ctan.org/macros/latex/contrib/siunitx},
url = {https://ctan.org/pkg/siunitx},
diff --git a/biblio/ctan-bibdata/ctan.pdf b/biblio/ctan-bibdata/ctan.pdf
index 944b3781fd..e408adfd2d 100644
--- a/biblio/ctan-bibdata/ctan.pdf
+++ b/biblio/ctan-bibdata/ctan.pdf
Binary files differ
diff --git a/macros/latex/contrib/lineno/CHANGEs.txt b/macros/latex/contrib/lineno/CHANGEs.txt
deleted file mode 100644
index 36df3fabef..0000000000
--- a/macros/latex/contrib/lineno/CHANGEs.txt
+++ /dev/null
@@ -1,165 +0,0 @@
-
-CHANGES for lineno bundle 2011/02/16:
-
-1. new fnlineno.sty for numbering footnote lines + \linelabel,
-described in fnlineno.pdf
-
-2. new overview SRCFILEs.txt
-
-
-CHANGES for lineno.sty v4.41 2005/11/02:
-
-1. Loadable after amsmath.
-
-2. Removed some nonsense from documentation.
-
-
-CHANGES for lineno.sty v4.4 2005/10/27
-[failed to be uploaded to CTAN, but distributed by mail]:
-
-1. Proper effective line depth at end of paragraphs.
- The spacing bug was quite obvious in two-column mode
- when a paragraph end was at a column bottom.
-
-2. Another bug concerning two-column mode that had been
- introduced in v4.22 has been removed again.
-
-3. Support for \addvspace introduced more and more bugs
- in versions of v4.32 and v4.33. The reasons seem to
- be clear now, and v4.4 should be stable.
-
-
-CHANGES for lineno.sty v4.32 2005/10/17:
-
-1. Support for \addvspace
- (a math display or a list meets a heading -- or a sub-heading
- follows a heading -- or the like)
-
-2. Clearly explained former option `displaymath' and its change
- to a default.
-
-
-CHANGES for lineno.sty v4.31 2005/10/01:
-
-1. \modulolinenumbers* and a package option `modulo*' for
- printing first line number after interrupting editor's
- text, regardless of the modulo.
-
-2. Improved explanation of \firstlinenumber and package
- options.
-
-
-CHANGES for lineno.sty v4.3 2005/05/16:
-
-1. Option `displaymath' (proper numbering at paragraphs
- containing math displays) becomes default.
-
-2. Compatibility with hyperref now indeed (at least much more).
-
-3. Tidied up documentation: terrible confusion of \newcounter
- vs. \stepcounter; sections on the same matter written at
- different times; ...
-
-4. Additional internal improvements that perhaps hardly are
- observable (no more spurious linenumbers in math displays
- from vertical mode; some compatibity with packages that use
- \holdinginserts; \linelabel in headings etc.).
-
-
-CHANGES for lineno.sty v4.22 2005/05/09:
-
-1. Restored "global" version of numbering lines of a \parbox or
- minipage or ... (I had missed and disabled this in taking
- over lineno.sty), explained in documentation (lineno.pdf/dvi
- subsec. 7.2).
-
-2. Enabled \flushbottom in two-column pagewise or switching
- mode.
-
-3. Re-implemented modulo mode -- disabling certain users' tricks
- see lineno.pdf sec. 5.5, also for a still supported
- substituting trick.
-
-4. Tidied up setting the next line number globally vs. locally
- (TeXbook p. 301).
-
-5. Tidied up discussions (in documentation) of possible changes
- in implementation.
-
-
-CHANGES for lineno.sty v4.21 2005/04/28:
-
-Removed serious flaws with math display, + something ...
-
-
-CHANGES for lineno.sty v4.2 2005/04/26:
-
-1. Re-enabled package option `displaymath' (needed rearrangement
- after sec. 5).
-
-2. New package option `addpageno' for adding page numbers to
- line number references -- see sec. 6.1 of lineno.pdf.
-
-3. Improved support for \includeonly (and improved sec. 5.3,
- p. 27).
-
-4. Improved compatibility with other packages that change \output
- (tameflts.sty, e.g., for saving footnotes against \marginpar
- and floats), added advice on this matter -- sec. 2.3,
- pp. 7, 14f.
-
-
-CHANGES for lineno.sty v4.11 2005/03/08:
-
-1. The `edtable' option now supports math environments like
-`array'. This requires updating edtable.sty to v1.3. (The claim
-in previous versions of edtable on this support simply was
-wrong, sorry.) For how to make use of this support, we urge you
-to read the usage instructions in edtable.sty (v1.3). These have
-been extended very much, structured more clearly, and supplied
-with examples.
-
-2. \linelabel now complains when appearing outside line
-numbering mode. This counters Stephan Boettcher's original
-intention, but I generalize from my own experience that it is
-helpful to be told when you have forgotten to switch into line
-numbering mode and (e.g.) wonder why all the line number
-references are 1 ... ednotes.sty users profit as well (at least
-I expect and hope that anybody profits, which, to be sure, does
-not mean that I hope that anybody forgets to switch ...).
-
-3. The subsection on `edtable' in lineno.sty/tex/pdf was not
-quite correct or complete -- corrected, improved.
-
-4. The final list of user commands in lineno.sty/tex/pdf has not
-been complete. This has not changed, but it is briefly explained
-what is missing and where it can be found.
-
-
-CHANGE 2005/01/20:
-
-We have devised macros for indexing with line numbers,
-yet we don't take the time to release them officially.
-If you are interested, please ask via
-
- http://contact-ednotes.sty.de.vu
-
-
-CHANGES for lineno.sty v4.1 2004/10/19:
-
-Extension packages from the Ednotes bundle for enabling
-\linelabel in math mode and tabular environments are now
-handled through new package options `mathrefs', `edtable',
-`longtable', and `nolongtablepatch'. Two of these extension
-packages moved from the ednotes folder to the lineno folder.
-lineno.tex/pdf has been updated accordingly.
-
-
-CHANGES for lineno.sty v4.00 2004/09/03:
-
-o incorporated earlier extension packages linenox0.sty,
- linenox1.sty, lnopatch.sty (which belonged to the
- Ednotes bundle before);
-
-o adopted LaTeX Project Public License v1.3.
-
diff --git a/macros/latex/contrib/lineno/COPYING.txt b/macros/latex/contrib/lineno/COPYING.txt
deleted file mode 100644
index 60ad89a860..0000000000
--- a/macros/latex/contrib/lineno/COPYING.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-% lineno.sty
-%
-% The files in this directory are
-%
-% Copyright 1995--2003 Stephan I. B"ottcher <boettcher@physik.uni-kiel.de>;
-% Copyright 2002--2005 Uwe L"uck, http://contact-ednotes.sty.de.vu,
-% for versions 4.x and code from former Ednotes
-% bundle--author-maintained.
-% Copyright 2011 Uwe L"uck, http://contact-ednotes.sty.de.vu,
-% for fnlineno.sty/tex/pdf
-%
-% The files can be redistributed and/or modified under
-% the terms of the LaTeX Project Public License; either
-% version 1.3a of the License, or any later version.
-% The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
-% We did our best to help you, but there is NO WARRANTY.
-%
-% ============================================================================
-<- (UL) End of official declaration.
-
-History:
-add. fnlineno 2011/02/16 ul
-This file -> The files 2004/10/12 ul
-$Id: COPYING,v 3.0.2.1 2004/09/13 20:15:47 stephan Exp $
-LPPL v1.3a 2004/10/26
-
diff --git a/macros/latex/contrib/lineno/README b/macros/latex/contrib/lineno/README
deleted file mode 120000
index c3ca07460a..0000000000
--- a/macros/latex/contrib/lineno/README
+++ /dev/null
@@ -1 +0,0 @@
-README.txt \ No newline at end of file
diff --git a/macros/latex/contrib/lineno/README.md b/macros/latex/contrib/lineno/README.md
new file mode 100644
index 0000000000..b543e53029
--- /dev/null
+++ b/macros/latex/contrib/lineno/README.md
@@ -0,0 +1,146 @@
+# lineno.sty v5.0, fnlineno.sty v0.55
+
+2022-11-29
+
+The LaTeX package lineno.sty provides line numbers on paragraphs. After TeX has
+broken a paragraph into lines there will be line numbers attached to them, with
+the possibility to make references through the LaTeX \ref, \pageref cross
+reference mechanism.
+
+- Copyright 1995--2003 Stephan I. Böttcher
+- Copyright 2002--2005 Uwe Lück for versions 4.x and code from former Ednotes
+- Copyright 2011 Uwe Lück for fnlineno.sty/tex/pdf
+- Copyright 2021--2022 Karl Wette for versions 5.x
+
+The files can be redistributed and/or modified under
+the terms of the LaTeX Project Public License; either
+version 1.3a of the License, or any later version.
+The latest version of this license is in http://www.latex-project.org/lppl.txt.
+We did our best to help you, but there is NO WARRANTY.
+
+Home: http://mirror.ctan.org/macros/latex/contrib/lineno/
+
+Authors:
+
+- Stephan I. Böttcher
+- Uwe Lück
+- Karl Wette
+
+## Compatibility with other packages:
+
+- `wrapfig.sty`: works since v2.05
+
+- `multicol.sty`: works partly since 3.02. Do NOT use \linelabel. Do NOT put a
+ multicol in internal vertical mode {table}, {figure}, etc.
+
+- `hyperref.sty`: \ref to a \linelabel works since v3.03.
+
+- `longtable.sty`: broke with lineno.sty loaded, but not enabled. This is fixed
+ in v3.04.
+
+- `amsmath.sty`: loadable, but not fully supported, with v4.41. Fully supported
+ with v5.0.
+
+## Installation and usage (UL, v4.1):
+
+For being able to use ALL the new `lineno.sty` options, the following files must
+be "visible" to (La)TeX ("visible" explained below for beginners):
+
+```lineno.sty, edtable.sty, ednmath0.sty, ltabptch.sty```
+
+as above ("Home", note that clicking on "entire directory" suffices);
+
+`longtable.sty` -- from the standard LaTeX Tools bundle.
+
+Usage always starts with loading lineno.sty by `\usepackage`. The remaining
+`.sty` files are loaded automatically on the `lineno.sty` options (and we
+recommend not to load them through [the mandatory argument of] `\usepackage`).
+
+For details, see `lineno.tex/pdf` and the `.sty` files mentioned above--search
+especially for tabular and math mode. (+ `print' below here).
+
+"Visible to (LaTeX)": Some users don't understand this "visibility" for a while,
+and indeed it may be somewhat non-trivial. These users may find help in
+https://mirrors.ctan.org/macros/latex/contrib/ednotes/visible.txt . E.g., former users of
+lineno.sty may just put all the .sty files into the folder (at their workplace)
+where they had placed lineno.sty before. (/UL, /v4.1)
+
+To print the documented source: Take the style-file `lineno.sty`, and feed it to
+a Un*x shell. (Or download the extracted source documentation `lineno.tex'.)
+```
+csh> source ./lineno.sty
+sh> . ./lineno.sty
+```
+[ i.e., type `sh lineno.sty` (e.g.) as a UNIX command line. Problems with awk
+may arise. I therefore switched to nawk in lineno.sty v4.00, but this may
+trouble you as well. (UL) ] (Please ignore the error message at the beginning
+about the iffalse.)
+
+## Files
+
+(cf. `SRCFILEs.txt`):
+
+- `README.txt`: This file. (v4.1: UL)
+- `CHANGEs.txt`: Differences to previous versions. (v4.1: UL)
+- `COPYING.txt`: The LPPL header.
+- `SCRFILEs.txt`: Source file infos (UL 2011)
+- `lineno.sty`: The package itself, ready to use.
+- `edtable.sty`: Module for tabular environments. (UL, v4.1)
+- `ednmath0.sty`: Module for \linelabel in math mode. (UL, v4.1)
+- `fnlineno.sty`: Add-on for footnote line numbers (UL, v0.55)
+- `lineno.tex`: The source for the documentation (generated)
+- `lineno.pdf`: PDF deriving from the former. (v4.1: UL)
+- `lnosuppl.pdf`: PDF listing of present non-PDF files
+- `ulineno.tex`: The pathetic attempt of a users' manual. [Describes v3.1 currently.] (UL, v4.1)
+- `ulineno.pdf`: PDF of former.
+- `vplref.sty`: Conditionally include page number in line number references (UL, v4.2)
+- `linenoamsmathdemo.tex`: Demo of making amsmath work with lineno (KW, v5.0)
+
+As of version v3.00, the extension packages for lineno have all been
+incorporated into `lineno.sty` itself. Except for `itemrule.sty`, which was
+removed.
+
+## History
+
+(Prior to my taking over maintenance of the package -- KW)
+
+ ** [ UL: A few festive words on history and responsibility **
+ ** are next preceding hard facts as to (see lower) **
+ ** o `Files' and **
+ ** o `Installation and usage'. ] **
+
+ 2004-09-13 Uwe L"uck [(UL)] is new maintainer for lineno.sty.
+
+ lineno.sty served the purpose for which I wrote it years ago. Uwe
+ L"uck uses lineno.sty with his Ednotes package, which required quite a
+ few changes and fixes. His package depends on lineno, therefore
+ Uwe agreed to take over the maintenance of lineno.sty.
+
+ lineno.sty v4.0 includes most of the well tested changes that Uwe
+ needs for Ednotes. These changes blend well into the concepts of the
+ package, so I am happy to let it go.
+
+ From here on it is Uwe's, and he may proceed to mangle it as he likes.
+ Expect some radical changes. You may find him to be quite a bit
+ friendlier towards the poor souls who still use Windows :-).
+ Currently, you need some kind of Unix environment to extract the
+ source documentation from the sty file.
+
+ If some version 3 users run into difficulties with Uwe's newer
+ versions, but need a minor bug-fix in version 3, please do not
+ hesitate to ask me for help. But all requests for new features or
+ major changes shall go to Uwe.
+
+ Cheers
+ Stephan
+
+ [ Thanks! And please let me know as well should
+ compatibility problems arise! The announced radical
+ changes are postponed again this time (v4.1).
+ --Ednotes is in
+ http://mirror.ctan.org/macros/latex/contrib/ednotes.
+ Uwe ]
+
+ Please have a look at a similar work of Michal Jaegermann and James
+ Fortune:
+ http://mirror.ctan.org/obsolete/macros/latex/contrib/numline/
diff --git a/macros/latex/contrib/lineno/README.txt b/macros/latex/contrib/lineno/README.txt
deleted file mode 100644
index b8fcb4a9f0..0000000000
--- a/macros/latex/contrib/lineno/README.txt
+++ /dev/null
@@ -1,204 +0,0 @@
-README
- lineno.sty v4.41
- fnlineno.sty v0.55
-
- 2011-02-16
-
-The LaTeX package lineno.sty provides line numbers on paragraphs.
-After TeX has broken a paragraph into lines there will be line numbers
-attached to them, with the possibility to make references through the
-LaTeX \ref, \pageref cross reference mechanism.
-
-% Copyright 1995--2003 Stephan I. B"ottcher <boettcher@physik.uni-kiel.de>;
-% Copyright 2002--2005 Uwe L"uck, http://www.contact-ednotes.sty.de.vu,
-% for versions 4.x and code from former Ednotes
-% Copyright 2011 Uwe L"uck as above, for fnlineno.sty/tex/pdf
-% bundle--author-maintained.
-%
-% The files listed below can be redistributed and/or modified under
-% the terms of the LaTeX Project Public License; either
-% version 1.3a of the License, or any later version.
-% The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
-% We did our best to help you, but there is NO WARRANTY.
-
-** [ UL: A few festive words on history and responsibility **
-** are next preceding hard facts as to (see lower) **
-** o `Files' and **
-** o `Installation and usage'. ] **
-
-2004-09-13 Uwe L"uck [(UL)] is new maintainer for lineno.sty.
-
-lineno.sty served the purpose for which I wrote it years ago. Uwe
-L"uck uses lineno.sty with his Ednotes package, which required quite a
-few changes and fixes. His package depends on lineno, therefore
-Uwe agreed to take over the maintenance of lineno.sty.
-
-lineno.sty v4.0 includes most of the well tested changes that Uwe
-needs for Ednotes. These changes blend well into the concepts of the
-package, so I am happy to let it go.
-
-From here on it is Uwe's, and he may proceed to mangle it as he likes.
-Expect some radical changes. You may find him to be quite a bit
-friendlier towards the poor souls who still use Windows :-).
-Currently, you need some kind of Unix environment to extract the
-source documentation from the sty file.
-
-If some version 3 users run into difficulties with Uwe's newer
-versions, but need a minor bug-fix in version 3, please do not
-hesitate to ask me for help. But all requests for new features or
-major changes shall go to Uwe.
-
-Cheers
-Stephan
-
-
-[ Thanks! And please let me know as well should
- compatibility problems arise! The announced radical
- changes are postponed again this time (v4.1).
- --Ednotes is in
- http://mirror.ctan.org/macros/latex/contrib/ednotes.
- Uwe ]
-
-
-Changes: see CHANGEs.txt; earlier:
-
- 2004-10-19 UL: package options for tabular and math
- 2004-09-03 UL: merge Ednotes changes, taking over lineno.sty
-
- 2002 .. 2003 FMi, UL, SiB: bug fixes
- 2001-08-04 SiB: linenomath wrapping for \[ \]
- 2001-07-30 SiB: [hyperref] option obsolete.
- 2001-01-17 SiB: LaTeX class option [twocolumn] support
- 2001-01-04 SiB: LaTeX class option [fleqn] support
- 2000-12-18 SiB: longtable compatibility
- 2000-07-01 SiB: extra \newlabel items, [hyperref] option
- 2000-03-10 SiB: indirect call of \output, to work with multicol.
- 1999-08-28 SiB: fixed the footnote problem using \holdinginserts
- 1999-06-11 SiB: included the extensions into lineno.sty
- 1999-03-02 SIB: Added LPPL License
-
-
-Files (cf. SRCFILEs.txt):
-
- README.txt This file. (v4.1: UL)
- CHANGEs.txt Differences to previous versions. (v4.1: UL)
- COPYING.txt The LPPL header.
- SCRFILEs.txt Source file infos (UL 2011)
- lineno.sty The package itself, ready to use.
- edtable.sty Module for tabular environments. (UL, v4.1)
- ednmath0.sty Module for \linelabel in math mode. (UL, v4.1)
- fnlineno.sty Add-on for footnote line numbers (UL, v0.55)
- lineno.tex The source for the documentation (generated)
- lineno.pdf PDF deriving from the former. (v4.1: UL)
- lnosuppl.pdf PDF listing of present non-PDF files
- ulineno.tex The pathetic attempt of a users' manual.
- [Describes v3.1 currently.] (UL, v4.1)
- ulineno.pdf PDF of former.
- vplref.sty Conditionally include page number in
- line number references (UL, v4.2)
-
- As of version v3.00, the extension packages for lineno have all been
- incorporated into lineno.sty itself. Except for itemrule.sty,
- which was removed.
-
-Home:
-
- http://mirror.ctan.org/macros/latex/contrib/lineno/
-
-TDS version:
-
- http://mirror.ctan.org/install/macros/latex/contrib/lineno.tds.zip
-
-Authors:
-
- Uwe L"uck <http://contact-ednotes.sty@web.de>
- Stephan I. B"ottcher <boettcher@physik.uni-kiel.de>
-
-Compatibility with other packages:
-
- wrapfig.sty works since v2.05
-
- multicol.sty works partly since 3.02.
- Do NOT use \linelabel. Do NOT put a multicol in
- internal vertical mode {table}, {figure}, etc.
-
- hyperref.sty \ref to a \linelabel works since v3.03.
-
- longtable.sty broke with lineno.sty loaded, but not enabled.
- This is fixed in v3.04.
-
- amsmath.sty loadable, but not fully supported, with v4.41
-
-Installation and usage (UL, v4.1):
-
- For being able to use ALL the new lineno.sty options, the
- following files must be "visible" to (La)TeX ("visible"
- explained below for beginners):
-
- lineno.sty, edtable.sty, ednmath0.sty, ltabptch.sty
-
- as above ("Home", note that clicking on "entire directory"
- suffices);
-
- longtable.sty -- from the standard LaTeX Tools bundle.
-
- Usage always starts with loading lineno.sty by \usepackage.
- The remaining .sty files are loaded automatically on the
- lineno.sty options (and we recommend not to load them through
- [the mandatory argument of] \usepackage).
-
- For details, see lineno.tex/pdf and the .sty files mentioned
- above--search especially for tabular and math mode.
- (+ `print' below here).
-
- "Visible to (LaTeX)": Some users don't understand this
- "visibility" for a while, and indeed it may be somewhat
- non-trivial. These users may find help in
-
- http://mirror.ctan.org/macros/latex/ednotes/visible.txt .
-
- E.g., former users of lineno.sty may just put all the .sty
- files into the folder (at their workplace) where they had
- placed lineno.sty before. (/UL, /v4.1)
-
-To print the documented source:
-
- Take the style-file `lineno.sty', and feed it to a Un*x shell.
- (Or download the extracted source documentation `lineno.tex'.)
-
- csh> source ./lineno.sty
- sh> . ./lineno.sty
-
- [ I.e., type `sh lineno.sty' (e.g.) as a UNIX command line.
- Problems with awk may arise. I therefore switched to nawk
- in lineno.sty v4.00, but this may trouble you as well. (UL) ]
-
- (Please ignore the error message at the beginning about the iffalse.)
-
-
-Please have a look at a similar work of Michal Jaegermann and James
-Fortune:
- http://mirror.ctan.org/obsolete/macros/latex/contrib/numline/
-
-
-
-
-
-==============================================================================
-<- End of official README.txt (UL)
-
-Changes Feb. 2011: numline obsolete, mirror.ctan.org, fnlineno,
-amsmath compatibility, CHANGEs.txt, lineno.tds.zip
-Changes for v4.1 (Oct. 2004): minor fixes (removed `supported/', e.g.);
-bracketed text; lines with `(UL)'; redistribution with README only.
-Formerly:
-
- lineno.sty v4.0
-
- $Id: README,v 3.6.2.1 2004/09/13 20:15:47 stephan Exp $
-
- CTAN:macros/latex/contrib/supported/lineno
- CTAN:macros/latex/contrib/supported/numline/
-
-
diff --git a/macros/latex/contrib/lineno/SRCFILEs.txt b/macros/latex/contrib/lineno/SRCFILEs.txt
deleted file mode 100644
index 5f5a1a5991..0000000000
--- a/macros/latex/contrib/lineno/SRCFILEs.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-
- *File List*
- edtable.sty 2005/10/03 v1.3c arrays with lineno + ednotes (ul)
-ednmath0.sty 2005/01/10 v0.2b math support for lineno/ednotes (ul)
-fnlineno.sty 2011/01/07 v0.55 numbers to footnote lines (UL)
- lineno.sty 2005/11/02 line numbers on paragraphs v4.41
- vplref.sty 2005/04/25 v0.2a page-line cross-refs
-fnlineno.tex 2011/02/14 documenting fnlineno.sty (UL)
-lnosuppl.tex 2011/02/16 documenting supplementary files
- ulineno.tex 2001/08/03 lineno.sty users manual
- ***********
-
- List made at 2011/02/16, 12:41
- from script file srcfiles.tex
-
diff --git a/macros/latex/contrib/lineno/doc/CHANGEs.txt b/macros/latex/contrib/lineno/doc/CHANGEs.txt
new file mode 100644
index 0000000000..db95e5304e
--- /dev/null
+++ b/macros/latex/contrib/lineno/doc/CHANGEs.txt
@@ -0,0 +1,189 @@
+CHANGES for lineno pkg v5.0 2022/07/30:
+
+1. Merge in `linenoamsmath' patches.
+
+
+CHANGES for lineno pkg 2011/02/16:
+
+1. new fnlineno.sty for numbering footnote lines + \linelabel,
+described in fnlineno.pdf
+
+2. new overview SRCFILEs.txt
+
+(From README.txt -- KW) numline obsolete, mirror.ctan.org, fnlineno,
+amsmath compatibility, CHANGEs.txt, lineno.tds.zip
+
+
+CHANGES for lineno.sty v4.41 2005/11/02:
+
+1. Loadable after amsmath.
+
+2. Removed some nonsense from documentation.
+
+
+CHANGES for lineno.sty v4.4 2005/10/27:
+[failed to be uploaded to CTAN, but distributed by mail]:
+
+1. Proper effective line depth at end of paragraphs.
+ The spacing bug was quite obvious in two-column mode
+ when a paragraph end was at a column bottom.
+
+2. Another bug concerning two-column mode that had been
+ introduced in v4.22 has been removed again.
+
+3. Support for \addvspace introduced more and more bugs
+ in versions of v4.32 and v4.33. The reasons seem to
+ be clear now, and v4.4 should be stable.
+
+
+CHANGES for lineno.sty v4.32 2005/10/17:
+
+1. Support for \addvspace
+ (a math display or a list meets a heading -- or a sub-heading
+ follows a heading -- or the like)
+
+2. Clearly explained former option `displaymath' and its change
+ to a default.
+
+
+CHANGES for lineno.sty v4.31 2005/10/01:
+
+1. \modulolinenumbers* and a package option `modulo*' for
+ printing first line number after interrupting editor's
+ text, regardless of the modulo.
+
+2. Improved explanation of \firstlinenumber and package
+ options.
+
+
+CHANGES for lineno.sty v4.3 2005/05/16:
+
+1. Option `displaymath' (proper numbering at paragraphs
+ containing math displays) becomes default.
+
+2. Compatibility with hyperref now indeed (at least much more).
+
+3. Tidied up documentation: terrible confusion of \newcounter
+ vs. \stepcounter; sections on the same matter written at
+ different times; ...
+
+4. Additional internal improvements that perhaps hardly are
+ observable (no more spurious linenumbers in math displays
+ from vertical mode; some compatibity with packages that use
+ \holdinginserts; \linelabel in headings etc.).
+
+
+CHANGES for lineno.sty v4.22 2005/05/09:
+
+1. Restored "global" version of numbering lines of a \parbox or
+ minipage or ... (I had missed and disabled this in taking
+ over lineno.sty), explained in documentation (lineno.pdf/dvi
+ subsec. 7.2).
+
+2. Enabled \flushbottom in two-column pagewise or switching
+ mode.
+
+3. Re-implemented modulo mode -- disabling certain users' tricks
+ see lineno.pdf sec. 5.5, also for a still supported
+ substituting trick.
+
+4. Tidied up setting the next line number globally vs. locally
+ (TeXbook p. 301).
+
+5. Tidied up discussions (in documentation) of possible changes
+ in implementation.
+
+
+CHANGES for lineno.sty v4.21 2005/04/28:
+
+Removed serious flaws with math display, + something ...
+
+
+CHANGES for lineno.sty v4.2 2005/04/26:
+
+1. Re-enabled package option `displaymath' (needed rearrangement
+ after sec. 5).
+
+2. New package option `addpageno' for adding page numbers to
+ line number references -- see sec. 6.1 of lineno.pdf.
+
+3. Improved support for \includeonly (and improved sec. 5.3,
+ p. 27).
+
+4. Improved compatibility with other packages that change \output
+ (tameflts.sty, e.g., for saving footnotes against \marginpar
+ and floats), added advice on this matter -- sec. 2.3,
+ pp. 7, 14f.
+
+
+CHANGES for lineno.sty v4.11 2005/03/08:
+
+1. The `edtable' option now supports math environments like
+`array'. This requires updating edtable.sty to v1.3. (The claim
+in previous versions of edtable on this support simply was
+wrong, sorry.) For how to make use of this support, we urge you
+to read the usage instructions in edtable.sty (v1.3). These have
+been extended very much, structured more clearly, and supplied
+with examples.
+
+2. \linelabel now complains when appearing outside line
+numbering mode. This counters Stephan Boettcher's original
+intention, but I generalize from my own experience that it is
+helpful to be told when you have forgotten to switch into line
+numbering mode and (e.g.) wonder why all the line number
+references are 1 ... ednotes.sty users profit as well (at least
+I expect and hope that anybody profits, which, to be sure, does
+not mean that I hope that anybody forgets to switch ...).
+
+3. The subsection on `edtable' in lineno.sty/tex/pdf was not
+quite correct or complete -- corrected, improved.
+
+4. The final list of user commands in lineno.sty/tex/pdf has not
+been complete. This has not changed, but it is briefly explained
+what is missing and where it can be found.
+
+
+CHANGE 2005/01/20:
+
+We have devised macros for indexing with line numbers,
+yet we don't take the time to release them officially.
+If you are interested, please ask via
+
+ http://contact-ednotes.sty.de.vu
+
+
+CHANGES for lineno.sty v4.1 2004/10/19:
+
+Extension packages from the Ednotes bundle for enabling
+\linelabel in math mode and tabular environments are now
+handled through new package options `mathrefs', `edtable',
+`longtable', and `nolongtablepatch'. Two of these extension
+packages moved from the ednotes folder to the lineno folder.
+lineno.tex/pdf has been updated accordingly.
+(From README.txt -- KW) minor fixes (removed `supported/', e.g.);
+bracketed text; lines with `(UL)'; redistribution with README only.
+
+CHANGES for lineno.sty v4.00 2004/09/03:
+
+o incorporated earlier extension packages linenox0.sty,
+ linenox1.sty, lnopatch.sty (which belonged to the
+ Ednotes bundle before);
+
+o adopted LaTeX Project Public License v1.3.
+
+
+EARLIER CHANGES (From README.txt -- KW)
+
+- 2004-10-19 UL: package options for tabular and math
+- 2004-09-03 UL: merge Ednotes changes, taking over lineno.sty
+- 2002 .. 2003 FMi, UL, SiB: bug fixes
+- 2001-08-04 SiB: linenomath wrapping for \[ \]
+- 2001-07-30 SiB: [hyperref] option obsolete.
+- 2001-01-17 SiB: LaTeX class option [twocolumn] support
+- 2001-01-04 SiB: LaTeX class option [fleqn] support
+- 2000-12-18 SiB: longtable compatibility
+- 2000-07-01 SiB: extra \newlabel items, [hyperref] option
+- 2000-03-10 SiB: indirect call of \output, to work with multicol.
+- 1999-08-28 SiB: fixed the footnote problem using \holdinginserts
+- 1999-06-11 SiB: included the extensions into lineno.sty
+- 1999-03-02 SIB: Added LPPL License
diff --git a/macros/latex/contrib/lineno/doc/COPYING.txt b/macros/latex/contrib/lineno/doc/COPYING.txt
new file mode 100644
index 0000000000..e5742fdb85
--- /dev/null
+++ b/macros/latex/contrib/lineno/doc/COPYING.txt
@@ -0,0 +1,25 @@
+% lineno.sty
+%
+% The files in this directory are
+%
+% Copyright 1995--2003 Stephan I. Böttcher
+% Copyright 2002--2005 Uwe Lück for versions 4.x and code from former Ednotes
+% Copyright 2011 Uwe Lück for fnlineno.sty/tex/pdf
+% Copyright 2021--2022 Karl Wette for versions 5.x
+%
+% The files can be redistributed and/or modified under
+% the terms of the LaTeX Project Public License; either
+% version 1.3a of the License, or any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% We did our best to help you, but there is NO WARRANTY.
+%
+% ============================================================================
+<- (UL) End of official declaration.
+
+History:
+Update for version 5.x 2022/12/05 kw
+add. fnlineno 2011/02/16 ul
+This file -> The files 2004/10/12 ul
+$Id: COPYING,v 3.0.2.1 2004/09/13 20:15:47 stephan Exp $
+LPPL v1.3a 2004/10/26
diff --git a/macros/latex/contrib/lineno/doc/SRCFILEs.txt b/macros/latex/contrib/lineno/doc/SRCFILEs.txt
new file mode 100644
index 0000000000..71ca2cc217
--- /dev/null
+++ b/macros/latex/contrib/lineno/doc/SRCFILEs.txt
@@ -0,0 +1,10 @@
+ednmath0.sty 2005/01/10 v0.2b math support for lineno/ednotes (ul)
+edtable.sty 2005/10/03 v1.3c arrays with lineno + ednotes (ul)
+fnlineno.sty 2011/01/07 v0.55 numbers to footnote lines (UL)
+lineno.sty 2022/07/30 line numbers on paragraphs v5.0
+vplref.sty 2005/04/25 v0.2a page-line cross-refs
+fnlineno.tex 2011/02/14 documenting fnlineno.sty (UL)
+lineno.tex 2022/07/30 line numbers on paragraphs v5.0
+lnosuppl.tex 2011/02/16 documenting supplementary files
+ulineno.tex 2001/08/03 lineno.sty users manual
+linenoamsmathdemo.tex 2021/09/30 Make amsmath work with lineno
diff --git a/macros/latex/contrib/lineno/doc/fnlineno.pdf b/macros/latex/contrib/lineno/doc/fnlineno.pdf
new file mode 100644
index 0000000000..d1fa5af387
--- /dev/null
+++ b/macros/latex/contrib/lineno/doc/fnlineno.pdf
Binary files differ
diff --git a/macros/latex/contrib/lineno/doc/lineno.pdf b/macros/latex/contrib/lineno/doc/lineno.pdf
new file mode 100644
index 0000000000..e7e96f8f41
--- /dev/null
+++ b/macros/latex/contrib/lineno/doc/lineno.pdf
Binary files differ
diff --git a/macros/latex/contrib/lineno/doc/linenoamsmathdemo.pdf b/macros/latex/contrib/lineno/doc/linenoamsmathdemo.pdf
new file mode 100644
index 0000000000..a60815f470
--- /dev/null
+++ b/macros/latex/contrib/lineno/doc/linenoamsmathdemo.pdf
Binary files differ
diff --git a/macros/latex/contrib/lineno/doc/lnosuppl.pdf b/macros/latex/contrib/lineno/doc/lnosuppl.pdf
new file mode 100644
index 0000000000..41c01581bf
--- /dev/null
+++ b/macros/latex/contrib/lineno/doc/lnosuppl.pdf
Binary files differ
diff --git a/macros/latex/contrib/lineno/doc/ulineno.pdf b/macros/latex/contrib/lineno/doc/ulineno.pdf
new file mode 100644
index 0000000000..709008c75b
--- /dev/null
+++ b/macros/latex/contrib/lineno/doc/ulineno.pdf
Binary files differ
diff --git a/macros/latex/contrib/lineno/ednmath0.sty b/macros/latex/contrib/lineno/ednmath0.sty
deleted file mode 100644
index 363c6c6aa5..0000000000
--- a/macros/latex/contrib/lineno/ednmath0.sty
+++ /dev/null
@@ -1,202 +0,0 @@
-%% Macro package `ednmath0.sty' for LaTeX2e,
-%% copyright (C) 2004 Uwe L\"uck,
-%% http://www.contact-ednotes.sty.de.vu
-%% --author-maintained;
-%% math support for `lineno.sty' and `ednotes.sty'.
-%%
-\def\fileversion{v0.2b} \def\filedate{2005/01/10}
-%% This program can be redistributed and/or modified under the
-%% terms of the LaTeX Project Public License distributed from
-%% CTAN archives in directory macros/latex/base/lppl.txt; either
-%% version 1.3a of the License, or any later version.
-%% The latest version of this license is in
-%% http://www.latex-project.org/lppl.txt
-%% There is NO WARRANTY.
-%% This code is very EXPERIMENTAL!
-%%
-%% Please report bugs, problems, and suggestions via
-%%
-%% http://www.contact-ednotes.sty@web.de
-%
-%% * MAIN FEATURE *
-%
-% lineno.sty's \linelabel and ednotes.sty's commands are enabled
-% to work in math mode if it's "entered in outer mode"
-% (including `displaymath' and `equation' environments).
-% (lineno.sty is the package by Stephan Boettcher.)
-% They will even work in tabular environments that are adjusted
-% to notes by package `edtable.sty'.
-%
-% CAVEATS:
-% -- Does not work yet in environments like LaTeX's
-% `eqnarray'. (This could probably repaired along the lines
-% of Edtable.sty--we're short of time and will try later.)
-% -- Useful error messages when (i) math mode is entered from
-% inner mode or when (ii) a math display gets not line number
-% are missing at present.
-%
-%% * USAGE: *
-%
-% * Most simple: *
-% --If you are working with ednotes and want to use its
-% commands in math mode, load ednotes.sty--version 0.8
-% onwards--with its package option `mathnotes'.
-% --If you don't work with ednotes, only with lineno, you
-% get the main feature of making \linelabel work in math mode
-% by loading lineno.sty--version 4.1 onwards--with its
-% package option `mathrefs'.
-%
-% * Switch off and on: *
-% To reduce danger resulting from missing error messages
-% ("caveat" above), you may switch these new math facilities
-% off by \NoNotesToMath where you don't expect to need them.
-% You may switch them on again by \NotesToMath where you want
-% to use them, being aware of the danger. Both commands work
-% locally, so you can replace one of them by enclosing it in
-% a group. E.g., even, after \NoNotesToMath you can use an
-% environment as follows:
-% \begin{NotesToMath}
-% <text>
-% \end{NotesToMath}
-% (I am not quite sure that this is useful.)
-%
-% * Customize ellipsis: *
-% ednotes' \lemmaellipsis is changed to expand to
-% \mathlemmaellipsis when entering math, and this is preset
-% to be LaTeX's \mathellipsis. (This is three dots as
-% \mathinner.) You can change this by redefining
-% \mathlemmaellipsis, e.g.:
-% \renewcommand{\mathlemmaellipsis}{\cdots}
-% If you need \cdots as the ellipsis at a single place only,
-% you may, of course, use the `<...>' option of \<, e.g.:
-% $ x = \Anote{a\<<\cdots>bcd\>e}{Indeed?} - y $
-%
-% * Customize note mode: *
-% For variant readings, you may want that the note is
-% usually set in math mode--so you may want that you
-% needn't type the dollar signs in the note text.
-% Note that you can do this by customizing \notefmt,
-% and you can do this by customizing \Anotefmt (e.g.)
-% to have this feature for \Anote only.
-%
-
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ednmath0}[\filedate\space\fileversion\space
- math support for lineno/ednotes (ul)]
-%
-%% User commands:
-\def\NotesToMath{\let\@LN@mathhook\@LN@labelinmath
- \@bsphack \@esphack
-% For \begin{NotesToMath}
-}
-\def\NoNotesToMath{\@bsphack
- \def\@LN@mathhook{\@parmoderr\@gobble}%
- \@esphack
-}
-\def\endNotesToMath{\@bsphack\@Esphack}
-\let\endNoNotesToMath\endNotesToMath
-%
-%% Core code for lineno.sty:
-\@ifundefined{@LN@postlabel}{%
- \PackageError{ednmath0}{%
- Bad lineno.sty version%
- }{%
- lineno.sty from 2004/08/16 or later
- must be loaded earlier.%
- }%
-}{%
- \def\@LN@labelinmath#1{%
- \ifmmode
- \@LN@postlabel{#1}%
- \else
- \@parmoderr
- \fi
- }
-}
-%
-%% Core code for ednotes.sty:
-\@ifundefined{@EN@note}{%
-% v0.01 sent a warning in this case. Considered superfluous now.
-}{%
- \def\@EN@themathlemmatag{%
- \ifmmode
- \toks@\expandafter{\@EN@lemmatag}%
- \edef\@EN@lemmatag{%
- $%
- \def\noexpand\lemmaellipsis{%
- \noexpand\mathlemmaellipsis}%
- \the\toks@
- $%
- }%
-% \expandafter \def \expandafter \@EN@lemmatag
-% \expandafter {\expandafter $\expandafter
-% \def \expandafter \lemmaellipsis \expandafter {%
-% \expandafter \mathlemmaellipsis \expandafter }%
-% \@EN@lemmatag $}%
- \fi
- }
-% To be sure, \lemmaellipsis doesn't need to be changed when
-% ednotes `\<...\>' feature is not used. Though I prefer to
-% use one hook only in ednotes for both situations, with and
-% without `\<...\>'.
-%
-% The final \unskip in ednotes' \@EN@lemmatag would undo a final
-% \quad. That's OK: outside math the same happens.
-% In v0.01, \NoNotesToMath undid ednotes changes for math mode.
-% However, re-appearence of \linelabel error messages suffices.
-%
-% Now add lemma switch to the left of \[No]NotesToMath:
- \toks@\expandafter{\NotesToMath}
- \edef\NotesToMath{%
- \let \noexpand\@EN@mathlemmatag \noexpand\@EN@themathlemmatag
- \the\toks@
- }
-% \typeout{\string\NotesToMath: \meaning\NotesToMath}
- \toks@\expandafter{\NoNotesToMath}
- \edef\NoNotesToMath{%
- \let \noexpand\@EN@mathlemmatag \relax
- \the\toks@
- }
-% \typeout{\string\NoNotesToMath: \meaning\NoNotesToMath}
-}
-% We need no extra device for a choice for users whether the *note*
-% should be set in math mode or in horizontal mode by default
-% (which might depend on the kind ["layer"] of notes).
-% This can be done already by customization of ednotes' \notefmt.
-% However, we might change ednotes' default \notefmt to default
-% \renewcommand*{\notefmt}[1]{$#1$}
-%
-\let\mathlemmaellipsis\mathellipsis
-%% TODO: Since when has LaTeX provided \mathellipsis?
-%% -> \Needs...
-%
-% Default:
-\NotesToMath
-%
-\endinput
-
-%% TODO: Without \linenumberdisplaymath, in displaymath,
-%% an error should be shown. Use, e.g., that in a displaymath
-%% \ifinner is false.
-%% TODO: E.g., by changing \everymath, perhaps can be warned
-%% that the math group is in a box already, so the vertical
-%% items will get lost.
-%% TODO: Adjust `eqnarray' (in Edtable?) as well.
-
-%% VERSION HISTORY:
-v0.01 2004/08/16 First version, sent to Christian.
-v0.02 2004/08/16 Considerably simplified for ednotes.
- 2004/08/19 Added ellipsis stuff, documentation, and
- instructions. Uncapitalized package names.
- Added \end[No]NotesToMath.
- 2004/08/20 Added \@bsphack and \@esphack; corrected
- ednotes extension (too much deleted, completely
- wrong), introducing \@EN@themathlemmatag.
-v0.02b .../08/31 Rearranged preamble concerning maintenance.
-v0.1 2004/09/20 Removed mentions of `linenox0.sty'.
-v0.2 2004/10/07 Removed another mention of `linenox0.sty';
- Instructions: `lineno' or `ednotes.sty' option.
-v0.2a 2004/11/07 LPPL v1.3a.
-v0.2b 2005/01/10 Contact via http.
-
-
diff --git a/macros/latex/contrib/lineno/edtable.sty b/macros/latex/contrib/lineno/edtable.sty
deleted file mode 100644
index 206347539e..0000000000
--- a/macros/latex/contrib/lineno/edtable.sty
+++ /dev/null
@@ -1,571 +0,0 @@
-%% `edtable.sty'---Uwe L"uck, direction Christian Tapp.
-%% LaTeX package for tables with line numbers and
-%% editorial notes.
-%%
-%% Copyright (C) 2003-2005 Uwe L"uck--author-maintained.
-%%
-\def\fileversion{1.3c} \def\filedate{2005/10/03}
-%%
-%% This file can be redistributed and/or modified under
-%% the terms of the LaTeX Project Public License; either
-%% version 1.3 of the License, or any later version.
-%% The latest version of this license is in
-%% http://www.latex-project.org/lppl.txt
-%% We did our best to help you, but there is NO WARRANTY.
-%%
-%% Please send your comments via
-%%
-%% http://www.contact-ednotes.sty.de.vu
-%%
-%% * USAGE: *
-%
-% *Requirements/overview:*
-%
-% The package is made for the background of the LaTeX2e macro
-% package and enhances functionality of the following packages:
-% 1.) Stephan I. B"ottcher's `lineno.sty' for printing line
-% numbers in the margin and a \label version \linelabel
-% relating labels to line numbers;
-% 2.) our `ednotes.sty' for indicating variant readings and
-% other editorial remarks in separate footnote apparatuses;
-% 3.) David Carlisle's `longtable.sty' for multi-page tables.
-% %% TODO: supertabular etc.!?
-% 4.) our `ltabptch.sty' for a patch of `longtable.sty'
-% (i.e., optionally, see below).
-%
-% Actually, only the first package is necessary for using the
-% present one. The present one needs your line numbering commands
-% according to the first one and its documentation to which we
-% refer here. We likewise refer to the remaining packages for the
-% details of their functionality.
-%
-% `lineno.sty' version 4.1 and (in case it is used) `ednotes.sty'
-% version 0.8 (onwards) are needed. For obtaining recent versions
-% of required packages, see the CTAN folder
-% /macros/latex/contrib/ednotes.
-%
-% *Install/load:*
-% 1.) To be used, the present file must be put into a folder
-% that (La)TeX searches. You should have obtained a file
-% containing more detailed hints about this.
-% 2.) We recommend loading this file *not* by
-% \usepackage[<options>]{edtable} but by loading `lineno.sty'
-% or `ednotes.sty' with package option `edtable'.
-% 3.) To use the package options `longtable' and
-% `nolongtablepatch' that are described below, enter them
-% as options for `lineno.sty' or `ednotes.sty'.
-%
-% *User Commands:*
-%
-% 1. The package defines an environment `edtable' -- for its
-% syntax we consider two cases:
-% (a) Let <stdtable> be a tabular environment "like `tabular'".
-% "Like" here means: (i) we have tested it with `tabular', but
-% it should work with many more (e.g., from the `array' and
-% `tabularx' packages) -- which share certain properties of
-% implementation and requirements. Sorry, you must try, or we
-% hope you will (and tell us). (For wizards: <stdtable> may
-% probably be anything using a single \halign and \tabskip=0pt.)
-% Definitively:
-% (ii) LaTeX's standard `array' and other environments are *not*
-% "like" `tabular'. Namely, environments that work only in math
-% mode are not meant here. They are considered below in `b.'.
-% (iii) `longtable' from the `longtable' package of the `tools'
-% bundle neither is meant. An option of the present package
-% deals with it as described below. Neither `supertabular' is
-% meant.
-% (iv) In general, usage with tabular environments that can
-% break across pages as in (iii) is not recommended, at least
-% when working with `ednotes.sty'. Even if some worked here, a
-% shortcoming with `ednotes.sty' would be that the footnotes can
-% appear on bad pages.
-% -- Now the syntax is:
-% \begin{edtable}{<stdtable>}<args><entries>\end{edtable}
-% -- where <args> and <entries> are usual arguments and entries
-% for <stdtable>. So an example is:
-% \begin{edtable}{tabular}{cc}
-% left upper & right upper \\ left lower & right lower
-% \end{edtable}
-% This produces just what <stdtable> does in an extra line,
-% only adding line numbers in the margin and processing `ednotes'
-% commands in the entries appropriately.
-% (b) Let <stdarray> be an "array environment" like -- standard
-% LaTeX's `array'! "Like" here means (i) ... analogously to
-% <stdtable> above. (ii) "Text" ... oh, sorry, this is not clear
-% to me at present, and I am in a hurry. %% TODO
-% (iii) Nothing from the `amsmath' package seems to work here,
-% sorry, I have tried a lot ... (iv) For standard LaTeX's
-% `eqnarray', it is better to try the `linenomath' environment
-% of `lineno.sty' [with package option `mathlines']. Its
-% modifications in `amsmath' produce (at best) a spurious line
-% number with the `linenomath' environment (up to now).
-% -- Now the syntax is:
-% \begin{edtable}[<$$$>]{<stdarray>}
-% <args><entries>\end{edtable}
-% -- where <args> and <entries> are usual arguments and entries
-% for <stdarray>. <$$$> can be one of `$' or `$$'. Indeed, the
-% <stdtable> syntax above (without [<$$$>]) *does not work*
-% inside $...$ or $$...$$. -- An example:
-% \begin{edtable}[$$]{array}{cc}
-% a_{11} & a_{12} \\ a_{21} & a_{22}
-% \end{edtable}
-% Now, this produces just what <stdarray> does in an extra line
-% etc. as with <stdtable>. However, \linelabel and `ednotes.sty'
-% footnotes may need the `mathrefs' option of `lineno.sty'. For
-% the difference between `[$]' and `[$$]', see below.
-%
-% 2. When working with `ednotes.sty', in
-% \Anote{L1\<L2\>L3}{NOTE}
-% L2 may contain &'s and \\'s, but L1, L3 must not! Analogously
-% for \Bnote, etc., \Anotelabel...\donote..., etc. -- Well this
-% holds for <stdtable>, hardly for <stdarray> ... %% TODO
-%
-% 3. On positioning: You may have wondered about `extra line'
-% above. This means that `edtable' starts a new line at
-% \begin{edtable} and at \end{edtable}. %% TODO: sure!?
-% (a) It should be placed within a `center', `flushleft', or
-% `flushright' environment for proper (vertical) spacing, but
-% also works without. However, with <stdarray> and optional
-% parameter `$$' of `edtable' (i.e., \begin{edtable}[$$]...),
-% you can obtain the usual math display spacing *within a
-% paragraph*; especially, the vertical space is less when the
-% previous line is short ... and so on.
-% (b) Horizontal positioning of line numbers (usually) needs a
-% second run (after changing a table)! %% TODO: automatic warning.
-% (For wizards: It may fail if some of \leftskip, \rightskip,
-% \linewidth, and \@totalleftmargin are used in an unusual way.)
-% A <dimen> register \ETextraoffset is provided whose value is
-% 0pt by default and which additionally moves line numbers
-% to the left (right) if given a positive (negative) value.
-% %% TODO: any use?
-%
-% *Package options:*
-%
-% 1. Option `longtable' adjusts the `longtable' environment
-% defined by David Carlisle's longtable.sty for use with
-% `lineno.sty' and `ednotes.sty'. The option makes `longtable'
-% environments appear with line numbers in the margin, according
-% to `lineno.sty', and process `ednotes.sty' commands if line
-% numbering is active according to `lineno.sty'.
-% [We maintain an alternative package with just this function
-% in a slightly different implementation.] %% -> ulnltab.sty.
-% Lemmas may go across table entries as with `edtable' (see above).
-% ---There might be options like `supertabular' for adjusting
-% other tabular environments that cannot be handled by the
-% `edtable' environment provided here---they have not been
-% implemented yet! %% TODO
-%
-% 2. Option `nolongtablepatch' avoids loading/asking for
-% `ltabptch.sty'. I.e.: according to LaTeX bugs database,
-% tools/3180 and tools/3485, there have been problems with
-% vertical spacing around `longtable' environments. By default
-% the present package loads our `ltabptch.sty' or asks for it.
-% Option `nolongtablepatch' overrides this. This is useful when
-% you don't want to have the patch, especially when you use an
-% "emergency stop" installation of TeX.
-%
-% *Wizard interface:*
-% Macros \@ET@makeLineNumber, \@ET@use@outerhook,
-% \@ET@execute@outerhook, \@ET@ampnotes \@ET@startlinewith,
-% \@ET@trivialize@linelabel are provided as tools for adjusting
-% tabular environments for use with `lineno.sty' and
-% `ednotes.sty'. \@ET@step@linenumber is \let \stepLineNumber
-% (from `lineno.sty'), but could be used as a hook for
-% something different. See Environment `edtable' and Option
-% `longtable' below for examples of application.
-% %% TODO: specification here.
-%
-%
-%% * Acknowledgements: *
-%
-% Stephan I. B"ottcher told us how to do it in extensive discussion
-% and by providing some first code lines. We changed these essentially
-% in some respects, but kept his general ideas and some parts of his
-% macros, the latter even without knowing what we are doing.
-%
-% v1.3 is due to a request by Martin Brandenburg.
-%
-% * Now for internals: *
-%
-\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-% 1994/12/01: \newenvironment* etc. %% TODO: more recent needed?
-\ProvidesPackage{edtable}[\filedate\space v\fileversion\space
- arrays with lineno + ednotes (ul)]
-%
-% Alternative ideas for implementation:
-% 1. There is a German package `TABMAC' enhancing `EDMAC' (cf.
-% documentation of `ednotes.sty'). We could have rewritten its
-% macros so it would work with `lineno.sty' and `ednotes.sty'
-% in place of `EDMAC'. [TODO: "tabmac.sty"]
-% 2. We redefine `longtable' by Option `longtable' because
-% there seems to be only one reasonable use of the `longtable'
-% environment in the course of a critical edition. This may be
-% different for environments like `array' and `tabular' which
-% can be used within text lines. Therefore, these environments
-% are not redefined.
-% 3. One might use \everycr, however: (a) it is executed
-% before the first row, (b) it is executed in fake lines that
-% `longtable' uses.
-% 4. As an alternative to \everycr, there is the approach of
-% redefining \cr and \crcr for setting \noalign. This needs
-% redefining \@tabularcr etc.---not nice. We use this approach
-% here for `longtable' which uses a stretching \tabskip.
-% For \tabskip=0pt, we attach line numbers by a template.
-%
-% \RequirePackage{lineno}[2004/10/06]
-% Wanted to check lineno version--causes unknown option error.
-% See LaTeX bug latex/3730.
-
-% Options:
-
-%% TODO: underful page with `longtable.sty'!?
-\let\if@ET@longtable\iffalse % \newif\if@ET@longtable@
-\DeclareOption{longtable}{\let\if@ET@longtable\iftrue}
-\let\if@ET@ltabptch\iftrue
-\DeclareOption{nolongtablepatch}{\let\if@ET@ltabptch\iffalse}
-\ProcessOptions
-
-% Redefine \longtable if option:
-\if@ET@longtable
- % Stephan's direction for attaching a line number to each row
- % is using \noalign in the course of \\.
- % However, (1) the user should not worry about closing the table
- % with \\ or without, and (2) the line number thing should not
- % happen twice if \\ is the last token before \end{longtable}.
- % Our solution: attach something to the beginning of \endlongtable
- % which attaches line number unless an unsucceeded \\ has done it.
- % This thing is activated by each row start and turned off by \\.
- % Since the switch at row start may happen to be in a pbox,
- % let it act globally on \endlongtable. (The \crcr at the beginning
- % of \endlongtable must not be changed directly, since original
- % \crcr may be required in table entries using \oalign etc.)
- %
- \RequirePackage{longtable}%
-% \IfFileExists{longtable.sty}{\RequirePackage{longtable}}%
-% {\RequirePackage{longtabl}}%
-% For Atari problem, it suffices to rename `longtable.sty'
-% into `longtabl.sty'.
-%
-% Patch for tools/3180 and tools/3485 of LaTeX bug database:
- \if@ET@ltabptch
- \IfFileExists{ltabptch.sty}{\RequirePackage{ltabptch}}{%
- \PackageError{edtable}{%
- ltabptch.sty (for improving spacing around\MessageBreak
- longtable) missing! Be sure to use it always\MessageBreak
- or never!%
- }{%
- To omit ltabptch.sty *and* escape this error,\MessageBreak
- use package option `nolongtablepatch'.%
- }%
- }
- \fi
- \let\@ET@@longtable\longtable
- \def\longtable{%
- \ifLineNumbers
- \expandafter\@ET@longtable
- \else
- \let\@ET@sw@cr\@ET@crcr % ... in \endlongtable.
- \expandafter\@ET@@longtable
- \fi
- }
- \def\@ET@longtable{%
- % Since we have made it anyway, we use the method of redefining
- % \halign for inserting the activating row start as well.
- % However, redefinition must be repeated before every \LT@bchunk.
- % \longtable and \LT@get@withs are good places for this.
- \@ET@startlinewith\@ET@sw@cr@on
- \@ET@trivialize@linelabel
- \@ET@use@outerhook
- \@ET@ampnotes
- \let\LT@tabularcr\@ET@LT@tabularcr
- \expandafter\def\expandafter\LT@get@widths\expandafter
- {\LT@get@widths\@ET@startlinewith\@ET@sw@cr@on}
- % Admittedly, we could make it less of a hack by using @{...}
- % ---we could then leave \LT@get@widths untouched.
- \@ET@@longtable
- }
- \def\@ET@sw@cr@on{\global\let\@ET@sw@cr\@ET@cr@attach}
- % We are hacking a longtable version offering
- % \def\LT@tabularcr{%
- % \relax\iffalse{\fi\ifnum0=`}\fi
- % \@ifstar
- % {\def\crcr{\LT@crcr\noalign{\nobreak}}\let\cr\crcr
- % \LT@t@bularcr}%
- % {\LT@t@bularcr}}
- % We need a redefinition of \cr which is not overridden by \@ifstar:
- \def\@ET@LT@tabularcr{%
- \relax\iffalse{\fi\ifnum0=`}\fi
- \def\cr{\@ET@sw@cr}%
- % So \crcr is affected by change of \@ET@sw@cr, cf. below.
- \let\crcr\cr
- \@ifstar
- {\gdef\@ET@sw@nobreak{\nobreak
- \global\let\@ET@sw@nobreak\relax}%
- % {\def\cr{\@ET@sw@cr\noalign{\nobreak}}\let\cr\crcr
- % Why didn't this work? %% TODO: try shorter again.
- \LT@t@bularcr}%
- \LT@t@bularcr
- % {\let\cr\@ET@sw@cr \let\crcr\cr
- % \LT@t@bularcr}% This accompanied \def\cr... above.
- }
- % Attach \@ET@sw@cr to beginning of \endlongtable:
- \expandafter\def\expandafter\endlongtable\expandafter
- {\expandafter\@ET@sw@cr\endlongtable}
- \def\@ET@cr@attach{% Actually attaching line numbers.
- \@ET@crcr\noalign{% Basically Stephan's approach.
- % If we were not careful, following box containing line number
- % could fool interline glue after longtable, even if tools/3485
- % is repaired in some way. This box should have same depth as
- % the line composed previously.
- \nobreak %% \@ET@ex... might cause page break. 2003/10/30.
- \setbox\z@\@ET@makeLineNumber
- \ht\z@-\prevdepth \dp\z@\prevdepth \box\z@
- \@ET@step@linenumber
- \global\let\@ET@sw@cr\@ET@crcr % ... if called by \\.
- % This also resets the \crcr starting \LT@echunk following
- % \@xargarraycr or \@yargarraycr in \LT@argtabularcr.
- % \let...\relax seems to suffice at well, but in case ...
- \@ET@execute@outerhook %% 2003/10/30.
- \@ET@sw@nobreak
-% \@ET@execute@outerhook
- }%
- }
- \let\@ET@crcr\crcr
- \global\let\@ET@sw@nobreak\relax % Just to remind ...
-\fi
-
-\let\@ET@step@linenumber\stepLineNumber
-% \def\@ET@step@linenumber{\global\advance\c@linenumber\@ne}
-\def\@ET@makeLineNumber{\hb@xt@\z@{\makeLineNumber}}
-%% TODO: export to lineno.sty!?
-% Special \halign:
-% For `array' etc., we insert line numbers by a leftmost template.
-% @{...} in the last argument of `array' etc. is difficult for this
-% since `tabular*' has an additional argument. So we redefine
-% \halign to put something to the right of the next \bgroup.
-% Now, as a macro, \halign would break in an \edef or \xdef.
-% Horribly, this danger has become quite real in longtable.sty's
-% definition of \LT@bchunk. Only its latest version 4.10 has
-% preceded \halign by a \noexpand (for mathtext.sty which
-% redefines \halign as well). We need not rely on such a
-% provision if we let \halign expand to \the<token register>
-% for some token register. However, using \toks@ or \@temptokena
-% is neither very safe---might be filled by macro ahead with
-% something new. So reserve an own token register.
-\newtoks\@ET@toks
-\@ET@toks{\@ET@specialhalign}
-% v1.3: In 'AMSmath', there are \halign's followed by explicit
-% left braces. Thus '\def\@ET@specialhalign#1\bgroup{%' broke.
-%% TODO ...
-\def\@ET@specialhalign{%
- \ifmeasuring@ \expandafter\@firstoftwo
-% v1.3 2005/03/04, for `amsmath'.
- \else \expandafter\@secondoftwo
- \fi
- {\let\halign\@ET@@halign \halign}%
- {\@ifnextchar\bgroup\@ET@replace@arg\@ET@sphalign@to}}
-%% TODO: change back, commenting out code above, report
-%% error with `alignat'.
-% \@ifnextchar\bgroup\@ET@replace@arg\@ET@sphalign@to}
-% If `amsmath' not loaded (v1.3):
-\AtBeginDocument{\@ifundefined{measuring@true}{%
- \let\ifmeasuring@\iffalse}\relax}
-\def\@ET@replace@arg#1{%
- \def\@EN@tempa{#1}\def\@EN@tempb{\bgroup}% Corr. after v1.3b.
- \ifx\@EN@tempa\@EN@tempb
- \def\@EN@tempa{\@ET@sphalign@to\bgroup}%
- \else
- \def\@EN@tempa{\@ET@sphalign@to{#1}}%
-% This may be wrong, #1 might be `t' from `to' ...
- \fi
- \@EN@tempa}
-\def\@ET@sphalign@to#1\bgroup{%
- \let\halign\@ET@@halign % Reset for nested arrays.
- \halign#1\bgroup
-% \ifmeasuring@\else % For `amsmath', moved backwards.
- \@ET@startline % [Wizard interface, via \@ET@starlinewith.]
-% \fi
-}
-% Wizard interface:
-\def\@ET@startlinewith{% Next token precedes preamble.
-% \let\@ET@@halign\halign % Or \AtBeginDocument?
-% ... indeed: bad loop with long longtable (\LT@get@widths!?)
- \def\halign{\the\@ET@toks}%
- \let\@ET@startline
-}
-\AtBeginDocument{\let\@ET@@halign\halign}
-% Or save it at start of environment only
-% (don't repeat inside longtable).
-%
-% Outer hook for inserts: (wizard interface)
-\def\@ET@execute@outerhook{% To be placed outside inner mode.
- \@ET@outerhook \global\let\@ET@outerhook\@empty
-}
-\global\let\@ET@outerhook\@empty % Just to remind: global!
-% \@EN@hookfn (ednotes) sends to outer hook:
-\def\@ET@use@outerhook{% Wizard interface.
- \def\@EN@hookfn{\g@addto@macro\@ET@outerhook}%
-}%% TODO: move last line to `ednotes', \let\@ET@use...\@empty.
-%% But this requires re-installing both packages
-%% at the same time. See the `ampnotes' thing as well.
-%
-% Trivialize \linelabel: (wizard interface)
-\def\@ET@trivialize@linelabel{\let\linelabel\@ET@linelabel}
-\def\@ET@linelabel{%
- \protected@edef\@currentlabel{\theLineNumber}%
- \label
-}
-% Change ampersand at \Anote etc.: (wizard interface)
-%% 2003/10/31.
-% & is changed by \Anote etc. No \begin...\endgroup,
-% next \\ or & after % note/donote command switches back.
-% ---Global change seems to break table setup.
-\begingroup
-\gdef\@ET@hideamps{\catcode`\&\active}
-\@ET@hideamps
-\gdef\@ET@ampnotes{%
- \let&\@ET@hideamp
- %% & would be undefined after \\ in lemma.
- \let\@ET@EN@rnote\@EN@note
- \def\@EN@note{\@ET@hideamps\@ET@EN@rnote}%
- \let\@ET@EN@rnotelb\@EN@notelabel
- \def\@EN@notelabel{\@ET@hideamps\@ET@EN@rnotelb}%
-}
-%% TODO: & and \\ in \@EN@lemmaexpands!?
-\endgroup
-\def\@ET@hideamp{&}
-
-\newenvironment*{edtable}[2][]{%
-% #1 $ or $$, #2 standard environment name.
-%% TODO: star version!? cf. lineno.sty's `numquote'.
- \def\@ET@mode{#1}%
- \def\@ET@currenvir{#2}%
- \ifhmode \ifnum\the\lastpenalty=-\@M\else
-% \par must be executed for printing/stopping line numbers:
- \@centercr\relax \noindent
- \fi \fi
- \ifvmode \noindent \fi % Otherwise linenumbers are indented
-% -- however, not recommended.
- \@ET@use@outerhook
- \@ET@trivialize@linelabel
- \@ET@ampnotes
- \@ET@startlinewith\@ET@normal@startline
- \global\advance\c@linenumber\m@ne % Stepping correction.
-% (Must come after closing previous paragraph.)
-% Calculate offset:
- \global\advance\c@ET@array\@ne
-% Saving/calling width of table (`longtable's algorithm).
-% Test if there is \@flushglue on the left (center or flushleft):
- \edef\@EN@tempa{\the\@flushglue}%
-% ... v1.3: fool this for "$$".
- \in@{$$}{#1\@nil}% \in@{#1}{#2} searches #1 in #2#1 ...
- \edef\@EN@tempb{\the\ifin@\@flushglue\else\leftskip\fi}%
- \ifx\@EN@tempa\@EN@tempb
-% Assume \@ET@offset is 0pt else here.
- \@ET@offset\linewidth
- \advance\@ET@offset-%
- \@ifundefined\@ET@arraywidth@csn % Shortened for v1.3.
- {\linewidth\G@refundefinedtrue
- \PackageWarningNoLine{edtab}{^^JLine numbers at
- \@ET@currenvir\space need \jobname.aux}}%
- {\csname\@ET@arraywidth@csn\endcsname}%
-% Test if \@flushglue on the right (center):
-% ... v1.3: fool it again. Repeat \in@ in case ...
- \in@{$$}{#1\@nil}%
- \edef\@EN@tempb{\the\ifin@\@flushglue\else\rightskip\fi}%
- \ifx\@EN@tempa\@EN@tempb \divide\@ET@offset\tw@ \fi
- \fi
- \advance\@ET@offset\@totalleftmargin
- \advance\@ET@offset\ETextraoffset % Offset ready.
- \setbox\@tempboxa\hbox\bgroup
-% v1.3: `alignat' complains later when this is \vbox instead.
-% \vbox\bgroup % Tried in vain.
- \ifx\@ET@mode\@empty\else $\fi
- \csname#2\endcsname
-}{%
- \csname end\@ET@currenvir \endcsname
- \ifx\@ET@mode\@empty\else $\fi
- \egroup
- \@ET@step@linenumber % Stepping correction.
- \if@filesw
- \immediate\write\@auxout{%
- \gdef\expandafter\noexpand
- \csname\@ET@arraywidth@csn\endcsname
- {\the\wd\@tempboxa}}%
-%% TODO: warning if changed!?
- \fi
-% No automatic line number at array line:
- \nolinenumbers
- \@ET@mode\ensuremath{\vcenter{\box\@tempboxa}}\@ET@mode % v1.3.
- \@ET@execute@outerhook
- \ifhmode \@centercr\relax \fi
-% \par must be executed for proper restart of printing line numbers
-% (think so).
- \@endpetrue % Outside \@flushglue environment, avoid indent ahead.
-%% TODO: slightly change for math mode around? Or give an error
-%% in math mode.
-}
-%% TODO: make \edtable \outer!?
-\def\@ET@normal@startline{%
- \@ET@step@linenumber
- \llap{\@ET@makeLineNumber \hskip\@ET@offset}%
-}
-\newdimen\@ET@offset
-\newdimen\ETextraoffset
-%% TODO: export to lineno.sty!?
-\newcount\c@ET@array
-\def\@ET@arraywidth@csn{ET@a@\romannumeral\c@ET@array}
-%
-%% TODO: .dtx
-\endinput
-
-%% VERSION HISTORY:
-v0.22 2003/01/13 First version, named `edtab02.sty', sent around,
- together with ednotes.sty.
-v0.23 2003/01/22 Added version history.
-v0.24 2003/01/27 Copyright notice.
-%%% v0.3 2003/03/03 Requires linenox0.sty. %% RETREATED
-%% TODO: reconsider, see `lineno[x].sty'.
-v0.25 2003/03/05 Added <ednotes.sty@web.de>.
-v0.26 2003/03/23 Added \@ET@startlinewith to wizard command list;
- moved redefinition \LT@get@widths from option code
- into \@ET@longtable so this really happens in
- line number mode only; moved \let\@ET@@halign\halign
- from \@ET@startlinewith to \AtBeginDocument.
-v0.27 2003/06/02 Added \ifvmode \noindent \fi to `edtable' definition;
- 2003/06/10 added `lemma cannot run' to instructions.
-v0.28 2003/10/31 \@ET@cr@attach: moved \@ET@execu..., added \nobreak.
- Added \@ET@ampnotes and documentation: now working
- across entries.
-v1.0 2004/05/13 `ednotes.sty' etc., updated copyright. Renamed as
- `edtable.sty' for TUGboat article.
- \RequirePackage{lineno}, changed doc. accordingly.
- Removed `may be released under different name'.
-v1.10 2004/07/27 Looking for `longtabl.sty' for my Atari!
- 2004/08/22 Added warning (screen/documentation) concerning
- ltabptch.sty.
- 2004/08/23 Added suggestion of option `nolongtablepatch';
- LPPL v1.3.
-v1.2 2004/08/31 Rearranged preamble concerning maintenance,
- removed `preliminary release'.
- 2004/10/06 \newif -> \let...; option `nolongtablepatch';
- changed documentation accordingly and for
- loading edtable.sty by lineno/ednotes option;
- \let\@ET@step@linenumber\stepLineNumber; use
- \ifLineNumbers.
- 2004/10/07 Needed version numbers.
- 2004/10/08 ltabptch warning -> error!
- 2004/10/11 Disabled \RequirePackage{lineno}[...]; undid
- the `longtabl.sty' thing from 2004/07/27.
- 2004/10/12 latex/3730.
-v1.2a 2004/11/07 LPPL v1.3a.
-v1.2b 2005/01/10 Contact via http.
-v1.3b 2005/03/04 Support for environments like `array'
- environment. The description of `edtable' was
- wrong in this respect!
-v1.3 2005/03/07 Adaptations in documentation, and extended usage
- instructions very much, correcting some
- errors as well. Acknowledgement to M. B.
-v1.3a 2005/03/09 Corrected numbering in `usage'.
-v1.3c 2005/03/15 \@centercr\relax, TODO on math mode.
- 2005/04/09 `editory' -> `editorial'.
diff --git a/macros/latex/contrib/lineno/fnlineno.pdf b/macros/latex/contrib/lineno/fnlineno.pdf
deleted file mode 100644
index f2b7f47632..0000000000
--- a/macros/latex/contrib/lineno/fnlineno.pdf
+++ /dev/null
Binary files differ
diff --git a/macros/latex/contrib/lineno/lineno.pdf b/macros/latex/contrib/lineno/lineno.pdf
deleted file mode 100644
index 725b602f12..0000000000
--- a/macros/latex/contrib/lineno/lineno.pdf
+++ /dev/null
Binary files differ
diff --git a/macros/latex/contrib/lineno/lnosuppl.pdf b/macros/latex/contrib/lineno/lnosuppl.pdf
deleted file mode 100644
index dd49cf07be..0000000000
--- a/macros/latex/contrib/lineno/lnosuppl.pdf
+++ /dev/null
Binary files differ
diff --git a/macros/latex/contrib/lineno/lnosuppl.tex b/macros/latex/contrib/lineno/lnosuppl.tex
deleted file mode 100644
index 98088f25a0..0000000000
--- a/macros/latex/contrib/lineno/lnosuppl.tex
+++ /dev/null
@@ -1,127 +0,0 @@
-%% LNoSuppl.tex -- U.L.
-\ProvidesFile{lnosuppl.tex}
- [2011/02/16 documenting supplementary files]
-\title{\LARGE \bf Supplementary files belonging \\
- to the \textit{lineno.sty} distribution \\[1ex]
- \normalfont \Large
- Lazy \texttt{ASCII}\,$\to$\,\texttt{PDF} listings}
-\author{Uwe L\"uck}
-\documentclass[10pt]{article}
-\usepackage{verbatim}
-%% hyperref settings from makedoc.cfg 2011/02/14:
-\RequirePackage{ifpdf}
-\usepackage[%
- \ifpdf
-% bookmarks=false, %% 2010/12/22
-% bookmarksnumbered,
- bookmarksopen, %% 2011/01/24!?
- bookmarksopenlevel=2, %% 2011/01/23
-% pdfpagemode=UseNone,
-% pdfstartpage=10,
-% pdfstartview=FitH,
- citebordercolor={ .6 1 .6},
- filebordercolor={1 .6 1},
- linkbordercolor={1 .9 .7},
- urlbordercolor={ .7 1 1}, %% playing 2011/01/24
- \else
- draft
- \fi
-]{hyperref}
-\usepackage{hypertoc}
-\pagestyle{headings}
-\newcommand*{\cs}[1]{\texttt{\char"5C#1}}
-\newcommand*{\lcurl}[2][]{%% `mirror', \url #2 2011/02/14
- \texttt{#2}\footnote{%
- \url{http://mirror.ctan.org/macros/latex/contrib/#1#2}}}
-\newcommand*{\Verbatiminput}[1]{%% 2011/02/14
- \small\verbatiminput{#1}\normalsize}
-\makeatletter
-\newcommand*{\notinaux}[1]{%
- \ifx\protect\@typeset@protect #1%
- \else
- \ifdim\lastskip>\z@\ignorespaces\fi
- \fi}
-\makeatother
-\begin{document}
-\maketitle
-\section*{Preface}
-
-\texttt{lineno.sty} is a macro package made by
-Stephan~I.~B\"ottcher for attaching line numbers to
-\LaTeX\ documents. Some people have used it for revising
-submittings in collaboration with referees or co-authors.
-Documentations are nowadays preferred to be in
-Adobe's \texttt{PDF}---so \texttt{lineno.sty}'s
-documentation is \lcurl[lineno/]{lineno.pdf}.
-
-\texttt{ednotes.sty} uses \texttt{lineno.sty} for critical
-editions, combining it with Alexander~I.~Rozhenko's
-\texttt{manyfoot.sty}---this was Christian Tapp's idea,
-who then hired me for adding the \TeX nical details.
-In doing this, I had to change some internals of
-\texttt{lineno.sty}, so Stephan transferred maintenance
-to me; then some of my macro files that I originally had
-made for \texttt{ednotes.sty} wandered into the
-\texttt{lineno} directory of CTAN---because they turned
-out not to need \texttt{ednotes.sty},
-just to work as extensions of \texttt{lineno.sty}\,.
-
-Now, I haven't had the time for making \texttt{.dtx} versions
-of the \texttt{.sty} files for \texttt{ednotes}.
-Therefore, ordinary \texttt{.pdf} documentation for
-the remaining \texttt{.sty} files of \texttt{lineno}
-is missing.
-What you see here is nothing but a somewhat structured listing
-of the additional \texttt{.txt} and \texttt{.sty} files in
-\texttt{PDF}, deriving from the \texttt{verbatim} package and
-its \cs{verbatiminput} command. I hope the high quality
-(scalable) output is worth it.
-
-By contrast, the new package \texttt{fnlineno.sty} added in 2011 for
-footnote line numbers is documented in \lcurl[lineno/]{fnlineno.pdf}
-in high quality, using the \lcurl{nicetext} bundle.
-
-\leavevmode\hfill \textit{U.\,L.}
-
-\newpage
-\tableofcontents
-
-\section{The \texttt{.txt} files}
-\subsection{Summary: \texttt{README.txt}}
-\verbatiminput{README.txt}
-\subsection{Licenses/Copyright: \texttt{COPYING.txt}}
-\verbatiminput{COPYING.txt}
-\subsection{Update summaries: \texttt{CHANGEs.txt}}
-\verbatiminput{CHANGEs.txt}
-%% rm. 2011/02/16:
-% \subsection{Files and subdirectories: \texttt{FILEs.txt}}
-% \verbatiminput{FILEs.txt}
-\subsection{Source file infos: \texttt{SRCFILEs.txt}}
-\verbatiminput{SRCFILEs.txt}
-
-\section{Tabular and array environments}
-\texttt{lineno.sty}'s package options \texttt{edtable},
-\texttt{longtable}, and \texttt{nolongtablepatch}
-redefine \LaTeX\ tabular and array environments
-such that \texttt{lineno} and \texttt{ednotes} commands
-can be used inside. The code for these options resides
-in separate files at present. We are listing them here.
-\subsection{\texttt{edtable.sty}}
-\verbatiminput{edtable.sty}
-\subsection{\texttt{ltabptch.sty}}
-\verbatiminput{ltabptch.sty}
-
-\section{\cs{linelabel} and notes from \textit{math} mode:
- \notinaux{\\} \texttt{ednmath0.sty}}
-\verbatiminput{ednmath0.sty}
-
-\section{Extended line number references: \texttt{vplref.sty}}
-\texttt{vplref.sty} is input through the \texttt{lineno}
-package option \texttt{addpageno}. This adds page numbers
-to line number references to distant sides---using the
-\texttt{varioref} package from the \LaTeX\ distribution.
-\verbatiminput{vplref.sty}
-
-\end{document}
-
-end of LNoSuppl.tex
diff --git a/macros/latex/contrib/lineno/fnlineno.tex b/macros/latex/contrib/lineno/source/fnlineno.tex
index 15ff24a436..2aa81de8d6 100644
--- a/macros/latex/contrib/lineno/fnlineno.tex
+++ b/macros/latex/contrib/lineno/source/fnlineno.tex
@@ -1,16 +1,17 @@
-\ProvidesFile{fnlineno.tex}[2011/02/14 documenting fnlineno.sty (UL)]
-\title{\textsf{fnlineno.sty}\\---\\Numbering Footnote Lines\thanks{This
+\ProvidesFile{fnlineno.tex}
+ [2011/02/14 documenting fnlineno.sty (UL)]
+\title{\textsf{fnlineno.sty}\\---\\Numbering Footnote Lines\thanks{This
document %%% manual %% 2010/12/28
- describes version
- \textcolor{blue}{\UseVersionOf{fnlineno.sty}}
+ describes version
+ \textcolor{blue}{\UseVersionOf{fnlineno.sty}}
of \textsf{fnlineno.sty} as of \UseDateOf{fnlineno.sty}.}}
% \listfiles %% 2010/12/22
-{ \RequirePackage{makedoc}[2010/12/20] \ProcessLineMessage{}
+{ \RequirePackage{makedoc}[2010/12/20] \ProcessLineMessage{}
\MakeJobDoc{19}{\SectionLevelThreeParseInput} %% 2010/12/16
}
\documentclass{article}%% TODO paper dimensions!?
\input{makedoc.cfg} %% shared formatting settings
-\newcommand*{\lt}{<} \newcommand*{\gt}{>} %% 2010/12/22
+%% 2022/07/30 \newcommand*{\lt}{<} \newcommand*{\gt}{>} %% 2010/12/22
\providecommand*{\strong}{\textbf} %% 2010/12/15
\ReadPackageInfos{fnlineno}
\usepackage{color}
@@ -23,50 +24,50 @@
\begin{document}
\maketitle
\begin{abstract}\noindent
-'fnlineno.sty' extends
-% Stephan~I. B\"ottcher's
+'fnlineno.sty' extends
+% Stephan~I. B\"ottcher's
\CtanPkgRef{lineno}{lineno.sty}\urlpkgfoot{lineno}
-(created by Stephan~I. B\"ottcher)
-such that even
+(created by Stephan~I. B\"ottcher)
+such that even
`\footnote' %% `\' 2010/12/09
-lines are numbered and can be referred to
-using `\linelabel', `\ref', etc.
+lines are numbered and can be referred to
+using `\linelabel', `\ref', etc.
%% rm. 2011/02/09:
-% Version v0.5 aims at working as a user expects
+% Version v0.5 aims at working as a user expects
% (just cf.~``Limitations"), otherwise please complain!
-Making the package was motivated as support for
+Making the package was motivated as support for
\emph{critical editions}
-% of scientific work from an age when footnotes
-% were a standard in publishing in print,
+% of scientific work from an age when footnotes
+% were a standard in publishing in print,
%% <- 2011/02/09 ->
-of \emph{printed works with footnotes}
-as opposed to scholarly critical editions of \emph{manuscripts.}
+of \emph{printed works with footnotes}
+as opposed to scholarly critical editions of \emph{manuscripts.}
For this purpose, an extension 'edfnotes' of the \ctanpkgref{ednotes}
-package for critical editions, building on 'fnlineno', is provided
+package for critical editions, building on 'fnlineno', is provided
by the \textit{ednotes} bundle.\urlfoot{CtanPkgRef}{ednotes}
-'lineno.sty' has also been used for the revision process
-of \emph{submissions.}
-With 'fnlineno.sty', reference to footnotes
-in the submitted work may become possible.
+'lineno.sty' has also been used for the revision process
+of \emph{submissions.}
+With 'fnlineno.sty', reference to footnotes
+in the submitted work may become possible.
%% rm. 2011/02/09:
-% Another standalone package 'finstrut' is described.
+% Another standalone package 'finstrut' is described.
As to \emph{implementation:} %% 2011/02/14
-1.~Some included tools for
-\emph{storing and restoring global settings}
-may be ``exported" as standalone packages later.
-2.~The method of typesetting footnotes on the main vertical list
-may later lead to applying the line numbering method to
-several \emph{parallel} texts (with footnotes) and to
+1.~Some included tools for
+\emph{storing and restoring global settings}
+may be ``exported" as standalone packages later.
+2.~The method of typesetting footnotes on the main vertical list
+may later lead to applying the line numbering method to
+several \emph{parallel} texts (with footnotes) and to
`inner' material such as table cells.
%% <- 2011/02/14 ->
% \dots
%% new 2011/02/09:
\smallskip\noindent
-\strong{Keywords:}\quad line numbers; footnotes, pagewise,
+\strong{Keywords:}\quad line numbers; footnotes, pagewise,
critical editions, revision
\end{abstract}
\tableofcontents
@@ -82,9 +83,10 @@ VERSION HISTORY
2010/12/08 for v0.1 very first
2010/12/09 for v0.2 moved much to .sty
2010/12/15 for v0.4 \strong
-2010/12/16 \SectionLevelThree...
+2010/12/16 \SectionLevelThree...
2010/12/22ff. beginparpenalty varied
2010/12/28 for v0.5 abstract extended
2011/02/09 removing `finstrut'; mention `edfnotes'
2011/02/10 using \urlpkgfoot etc.
2011/02/14 abstract modified
+2022/07/30 comment out \lt, \gt commands
diff --git a/macros/latex/contrib/lineno/lineno.tex b/macros/latex/contrib/lineno/source/lineno.tex
index e2530c0e07..7e706e6bec 100644
--- a/macros/latex/contrib/lineno/lineno.tex
+++ b/macros/latex/contrib/lineno/source/lineno.tex
@@ -1,23 +1,24 @@
-\def\fileversion{v4.41} \def\filedate{2005/11/02}
+\def\fileversion{v5.0} \def\filedate{2022/07/30}
-\title{\texttt{\itshape
-lineno.sty \ \fileversion\ \filedate
+\title{\texttt{\itshape
+lineno.sty \ \fileversion\ \filedate
\unskip}\\\ \\
-A \LaTeX\ package to attach
+A \LaTeX\ package to attach
\\ line numbers to paragraphs
-\unskip}\author{%
-Stephan I. B\"ottcher
-\\ Uwe L\"uck
-\unskip}\date{%
-boettcher@physik.uni-kiel.de
-\\ http://contact-ednotes.sty.de.vu
+\unskip}\author{%
+Stephan I. B\"ottcher
+\\ Uwe L\"uck
+\unskip}\date{%
+boettcher@physik.uni-kiel.de
+\\ http://contact-ednotes.sty.de.vu
\\}
\documentclass[a4paper,12pt]{article}%D
-\usepackage{lineno}%D
-\catcode`\_\active\let_~
-\def~{\verb~}
-\let\lessthan<
+\usepackage{lineno}%D
+\usepackage{hyperref}%D
+\catcode`\_\active\let_~
+\def~{\verb~}
+\let\lessthan<
\catcode`\<\active
\def<#1>{$\langle${\itshape#1}\/$\rangle$}
\catcode`\|\active
@@ -29,7 +30,7 @@ boettcher@physik.uni-kiel.de
\footnotesize
\def\linenumberfont
{\normalfont\tiny\itshape}}
-{}
+{}
{\makeatletter \gdef\scs#1{\texttt
{\protect\@backslashchar#1}}}
\def\old{\par\footnotesize}
@@ -40,22 +41,22 @@ boettcher@physik.uni-kiel.de
\begin{document}%D
\pagewiselinenumbers
-\maketitle
+\maketitle
\pagestyle{headings}
\tableofcontents
\sloppy
\section{%
-Introductions
+Introductions
\unskip}
-(New v4.00) Parts of former first section
-have been rendered separate subsections for package
-version_v4.00. (/New v4.00)
+(New v4.00) Parts of former first section
+have been rendered separate subsections for package
+version_v4.00. (/New v4.00)
-\subsection{%
+\subsection{%
Introduction to versions $\textrm{v}\lessthan4$
-\unskip}
+\unskip}
This package provides line numbers on paragraphs.
After \TeX\ has broken a paragraph into lines there will
@@ -80,8 +81,8 @@ transcriptions of interviews. This allows her to
precisely refer to passages in the text. It works well
together with ~\marginpar~s, but not too well with displaymath.
~\footnote~s are a problem, especially when they
-are split, but we may get there.
-(New v4.00 UL) Version v4.00 overcomes the problem, I believe.
+are split, but we may get there.
+(New v4.00 UL) Version v4.00 overcomes the problem, I believe.
(/UL /New v4.00)
lineno.sty works
@@ -92,151 +93,151 @@ please tell me, and if it does not, tell me as
well, so I can try to fix it.
\subsection{%
-Introduction to versions v4.00ff. (UL)
+Introduction to versions v4.00ff. (UL)
\unskip}
~lineno.sty~ has been maintained by Stephan until version_v3.14.
-From version_v4.00 onwards, maintenance is shifting towards
-Uwe L\"uck (UL), who is the author of v4\dots code and of v4\dots
-changes in documentation. This came about as follows.
+From version_v4.00 onwards, maintenance is shifting towards
+Uwe L\"uck (UL), who is the author of v4\dots code and of v4\dots
+changes in documentation. This came about as follows.
-Since late 2002, Christian Tapp and Uwe L\"uck have employed
-~lineno.sty~ for their ~ednotes.sty~, a package supporting
+Since late 2002, Christian Tapp and Uwe L\"uck have employed
+~lineno.sty~ for their ~ednotes.sty~, a package supporting
critical editions---cf.
-\[\mbox{\tt
-http://ednotes.sty.de.vu
+\[\mbox{\tt
+http://ednotes.sty.de.vu
\unskip}\]
----while you find ~ednotes.sty~ and surrounding files in
+---while you find ~ednotes.sty~ and surrounding files in
CTAN folder \path{macros/latex/contrib/ednotes}.
-Soon, some weaknesses of ~lineno.sty~ showed up, mainly since
-Christian's critical editions (using ~ednotes.sty~) needed lots
-of ~\linelabel~s and footnotes. (These weaknesses are due to
-weaknesses of \LaTeX's ~\marginpar~ mechanism that Stephan
-used for ~\linelabel~.) So we changed some ~lineno.sty~
-definitions in some extra files, which moreover offered new
-features. We sent these files to Stephan, hoping he would take
-the changes into ~lineno.sty~. However, he was too short of time.
-
-Writing a TUGboat article on Ednotes in 2004, we hoped to
-reduce the number of files in the Ednotes bundle and so asked
-Stephan again. Now he generously offered maintenance to me, so
-I could execute the changes on my own.
-
-The improvements are as follows:
-\begin{itemize}\item
-[(i)] Footnotes placement approaches intentions better
-(footnotes formerly liked to pile up at late pages).
-\item
-[(ii)] The number of ~\linelabel~s in one paragraph is no longer
-limited to 18.
-\item
-[(iii)] ~\pagebreak~, ~\nopagebreak~, ~\vspace~, and the star
-and optional versions of ~\\~ work as one would expect
+Soon, some weaknesses of ~lineno.sty~ showed up, mainly since
+Christian's critical editions (using ~ednotes.sty~) needed lots
+of ~\linelabel~s and footnotes. (These weaknesses are due to
+weaknesses of \LaTeX's ~\marginpar~ mechanism that Stephan
+used for ~\linelabel~.) So we changed some ~lineno.sty~
+definitions in some extra files, which moreover offered new
+features. We sent these files to Stephan, hoping he would take
+the changes into ~lineno.sty~. However, he was too short of time.
+
+Writing a TUGboat article on Ednotes in 2004, we hoped to
+reduce the number of files in the Ednotes bundle and so asked
+Stephan again. Now he generously offered maintenance to me, so
+I could execute the changes on my own.
+
+The improvements are as follows:
+\begin{itemize}\item
+[(i)] Footnotes placement approaches intentions better
+(footnotes formerly liked to pile up at late pages).
+\item
+[(ii)] The number of ~\linelabel~s in one paragraph is no longer
+limited to 18.
+\item
+[(iii)] ~\pagebreak~, ~\nopagebreak~, ~\vspace~, and the star
+and optional versions of ~\\~ work as one would expect
(section_\ref{s:MVadj}). %% Added for v4.1
-\item
-[(iv)] A command is offered which chooses the first line number
-to be printed in the margin
+\item
+[(iv)] A command is offered which chooses the first line number
+to be printed in the margin
(subsection_\ref{ss:Mod}). %% Added for v4.1
-\item
-[(v)] (New v4.1) \LaTeX\ tabular environments (optionally)
-get line numbers as well, and you can refer to them in the
-usual automatic way. (It may be considered a shortcoming that,
-precisely, \emph{rows} are numbered, not lines.---See
-subsection_\ref{ss:Tab}.)
-\item
-[(vi)] We are moving towards referring to math items
-(subsection_\ref{ss:MathRef} and the hooks in
-subsection_\ref{ss:LL}).
-(/New v4.1)
+\item
+[(v)] (New v4.1) \LaTeX\ tabular environments (optionally)
+get line numbers as well, and you can refer to them in the
+usual automatic way. (It may be considered a shortcoming that,
+precisely, \emph{rows} are numbered, not lines.---See
+subsection_\ref{ss:Tab}.)
+\item
+[(vi)] We are moving towards referring to math items
+(subsection_\ref{ss:MathRef} and the hooks in
+subsection_\ref{ss:LL}).
+(/New v4.1)
\end{itemize}
(Thanks to Stephan for making this possible!)
-Ednotes moreover profits from Stephan's offer with regard
-to the documentation of our code which yielded these
-improvements formerly. This documentation now becomes
-printable, being part of the ~lineno.sty~ documentation.
-
-Of course, Stephan's previous ~lineno.sty~ versions were a great
-and ingenious work and exhibit greatest \TeX pertise. I never
-could have done this. I learnt a lot in studying the code when
-Christian pointed out strange output results and error
-messages, and there are still large portions of ~lineno.sty~
-which I don't understand (consider only pagewise numbering of
-lines). Fortunately, Stephan has offered future help if
-needed.---My code for attaching line numbers to \emph{tabular
-environments} (as mentioned above, now still in
+Ednotes moreover profits from Stephan's offer with regard
+to the documentation of our code which yielded these
+improvements formerly. This documentation now becomes
+printable, being part of the ~lineno.sty~ documentation.
+
+Of course, Stephan's previous ~lineno.sty~ versions were a great
+and ingenious work and exhibit greatest \TeX pertise. I never
+could have done this. I learnt a lot in studying the code when
+Christian pointed out strange output results and error
+messages, and there are still large portions of ~lineno.sty~
+which I don't understand (consider only pagewise numbering of
+lines). Fortunately, Stephan has offered future help if
+needed.---My code for attaching line numbers to \emph{tabular
+environments} (as mentioned above, now still in
~edtable.sty~) %% %% TODO
-developed from macros which Stephan and Christian experimented
-with in December 2002. Stephan built the basics.
-(However, I then became too proud to follow his advice only to
+developed from macros which Stephan and Christian experimented
+with in December 2002. Stephan built the basics.
+(However, I then became too proud to follow his advice only to
use and modify ~longtable.sty~.)
-There are some issues concerning use of counters on which I
-don't agree with Stephan and where I would like to change the
-code if ~lineno.sty~ is ``mine'' as Stephan offered. However,
-Stephan is afraid of compatibility problems from which, in
-particular, his wife could suffer in the near future. So he
-demanded that I change as little as possible for my first
-version. Instead of executing changes that I plan I just offer
-my opinions at the single occasions. I hope to get in touch
-this way with users who consider subtle features vital which I
-consider strange.
-
-On the other hand, the sections on improvements of the
-implementation have been blown up very much and may be tiring
-and litte understandable for mere \emph{users}. These users
-may profit from the present presentation just by jumping to
-sections_\ref{s:Opts} and_\ref{s:UserCmds}. There is a user's
-guide ulineno.tex which may be even more helpful, but it has
+There are some issues concerning use of counters on which I
+don't agree with Stephan and where I would like to change the
+code if ~lineno.sty~ is ``mine'' as Stephan offered. However,
+Stephan is afraid of compatibility problems from which, in
+particular, his wife could suffer in the near future. So he
+demanded that I change as little as possible for my first
+version. Instead of executing changes that I plan I just offer
+my opinions at the single occasions. I hope to get in touch
+this way with users who consider subtle features vital which I
+consider strange.
+
+On the other hand, the sections on improvements of the
+implementation have been blown up very much and may be tiring
+and litte understandable for mere \emph{users}. These users
+may profit from the present presentation just by jumping to
+sections_\ref{s:Opts} and_\ref{s:UserCmds}. There is a user's
+guide ulineno.tex which may be even more helpful, but it has
not been updated for a while. %% TODO
\subsection{%
-Availability
+Availability
\unskip}
-In case you have found the present file otherwise than from
-CTAN: A recent version and documentation of this package
-should be available from CTAN folder
+In case you have found the present file otherwise than from
+CTAN: A recent version and documentation of this package
+should be available from CTAN folder
\path{macros/latex/contrib/lineno}.
-Or mail to one of the addresses at top of file.
+Or mail to one of the addresses at top of file.
-\subsection{%
+\subsection{%
Introductory code
\unskip}
This style option is written for \LaTeXe, November 1994 or later,
-since we need the ~\protected@write~ macro.
+since we need the ~\protected@write~ macro.
-(New v4.00) And we use ~\newcommand*~ for
-controlling length of user macro arguments, which has been
-available since December 1994.
+(New v4.00) And we use ~\newcommand*~ for
+controlling length of user macro arguments, which has been
+available since December 1994.
\begin{code}\begin{verbatim}
-\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{lineno}
- [\filedate\space line numbers on paragraphs \fileversion]
+\NeedsTeXFormat{LaTeX2e}[1994/12/01]
+\ProvidesPackage{lineno}
+ [\filedate\space line numbers on paragraphs \fileversion]
\end{verbatim}
\end{code}
-(/New v4.00)
+(/New v4.00)
\section{%
Put the line numbers to the lines
\unskip}
-(New v4.00) This section contained the most
-basic package code previously. For various purposes of
-version_4\dots, much of these basics have been to be modified.
-Much of my (UL's) reasoning on these modifications has been to
-be reported. Sorry, the present section has been blown up
-awfully thus and contains ramifications that may be difficult
-to trace. We add some ~\subsection~ commands in order to cope
-with the new situation. (/New v4.00)
+(New v4.00) This section contained the most
+basic package code previously. For various purposes of
+version_4\dots, much of these basics have been to be modified.
+Much of my (UL's) reasoning on these modifications has been to
+be reported. Sorry, the present section has been blown up
+awfully thus and contains ramifications that may be difficult
+to trace. We add some ~\subsection~ commands in order to cope
+with the new situation. (/New v4.00)
-\subsection{%
+\subsection{%
Basic code of \texttt{lineno.sty} \scs{output}
-\unskip}\label{ss:output}
+\unskip}\label{ss:output}
The line numbers have to be attached by the output
routine. We simply set the ~\interlinepenalty~ to $-100000$.
@@ -245,31 +246,31 @@ paragraph, except the last, where we trigger by ~\par~.
The ~\linenopenalty~ is small enough to compensate a bunch of
penalties (e.g., with ~\samepage~).
-(New v3.04) Longtable uses
-~\penalty~$-30000$. The lineno penalty range was
+(New v3.04) Longtable uses
+~\penalty~$-30000$. The lineno penalty range was
shrunk to $-188000 \dots -32000$. (/New v3.04)
-(New v4.00) New values are listed below (11111f.). (/New v4.00)
+(New v4.00) New values are listed below (11111f.). (/New v4.00)
\begin{code}\begin{verbatim}
\newcount\linenopenalty\linenopenalty=-100000
\end{verbatim}
\end{code}
-(UL) Hm. It is never needed below
-that this is a counter. ~\def\linenopenalty{-100000\relax}~
-would do. (I guess this consumes more memory, but it
-is more important to save counters than to save memory.)
-I was frightened by ~-\linenopenalty~ below, but indeed
-\TeX\ interprets the string ~--100000~ as 100000.
-Has any user or extension package writer ever called
-~\linenopenalty=xxx~, or could I really change this?---The
-counter is somewhat faster than the macro. Together with the
-compatibility question this seems to support keeping the
-counter. (???)
-(/UL)
+(UL) Hm. It is never needed below
+that this is a counter. ~\def\linenopenalty{-100000\relax}~
+would do. (I guess this consumes more memory, but it
+is more important to save counters than to save memory.)
+I was frightened by ~-\linenopenalty~ below, but indeed
+\TeX\ interprets the string ~--100000~ as 100000.
+Has any user or extension package writer ever called
+~\linenopenalty=xxx~, or could I really change this?---The
+counter is somewhat faster than the macro. Together with the
+compatibility question this seems to support keeping the
+counter. (???)
+(/UL)
\begin{code}\begin{verbatim}
\mathchardef\linenopenaltypar=32000
\end{verbatim}
\end{code}
-So let's make a hook to ~\output~, the direct way. The \LaTeX\
+So let's make a hook to ~\output~, the direct way. The \LaTeX\
macro ~\@reinserts~ puts the footnotes back on the page.
(New v3.01) ~\@reinserts~ badly
@@ -279,7 +280,7 @@ top part will be put back there after the bottom
part. Thus, since lineno.sty does not play well
with ~\inserts~ anyway, we can safely experiment
with ~\holdinginserts~, without making things
-much worse.
+much worse.
Or that's what I thought, but: Just activating
~\holdinginserts~ while doing the ~\par~ will
@@ -294,9 +295,9 @@ break, then we reset ~\holdinginserts~ and
restart ~\output~.
Then, again, how do we keep the remaining
-~\inserts~ while doing further line numbers?
+~\inserts~ while doing further line numbers?
-If we find ~\holdinginserts~=$-3$ we activate it again
+If we find ~\holdinginserts~=$-3$ we activate it again
after doing ~\output~. (/New v3.01)
(New v3.02) To work with
@@ -305,48 +306,48 @@ called indirectly, instead of being replaced.
When multicol.sty changes ~\output~, it is a
toks register, not the real thing. (/New v3.02)
-(New v4.00) Two further complications are added.
+(New v4.00) Two further complications are added.
\begin{itemize}\item
-[(i)] Problems with footnotes formerly resulted from
-\LaTeX's ~\@reinserts~ in ~\@specialoutput~ which Stephan's
-~\linelabel~ called via the ~\marginpar~ mechanism.
+[(i)] Problems with footnotes formerly resulted from
+\LaTeX's ~\@reinserts~ in ~\@specialoutput~ which Stephan's
+~\linelabel~ called via the ~\marginpar~ mechanism.
\item
-[(ii)] \LaTeX\ commands using ~\vadjust~ formerly didn't work
-as one would have hoped. The problem is as follows:
-Printing the line number results from
-a box that the output routine inserts at the place of the
-~\interlinepenalty~. ~\vadjust~ items appear \emph{above} the
-~\interlinepenalty~ (\TeX book p._105). So ~\pagebreak~, e.g.,
-formerly sent the line number to the next page, while the
-penalty from ~\nopagebreak~ could not tie the following line,
-since it was screened off by the line number box.---Our trick
-is putting the ~\vadjust~ items into a list macro from which
-the output routine transfers them into the vertical list,
-below the line number box.
+[(ii)] \LaTeX\ commands using ~\vadjust~ formerly didn't work
+as one would have hoped. The problem is as follows:
+Printing the line number results from
+a box that the output routine inserts at the place of the
+~\interlinepenalty~. ~\vadjust~ items appear \emph{above} the
+~\interlinepenalty~ (\TeX book p._105). So ~\pagebreak~, e.g.,
+formerly sent the line number to the next page, while the
+penalty from ~\nopagebreak~ could not tie the following line,
+since it was screened off by the line number box.---Our trick
+is putting the ~\vadjust~ items into a list macro from which
+the output routine transfers them into the vertical list,
+below the line number box.
\end{itemize}
-In this case_(ii), like in case_(i), footnotes would suffer
-if ~\holdinginserts~ were non-positive. Indeed, in both
-cases_(i) and_(ii) we tackle the footnote problem by extending
-that part of Stephan's output routine that is active when
-~\holdinginserts~ is positive. This extension writes the line
-number ~\newlabel~ to the .aux file (which was formerly done
-under $~\holdinginserts~=-3$) and handles the ~\vadjust~
-items.---To trigger ~\output~ and its ~\linelabel~ or, resp.,
-~\vadjust~ part, the list of signal penalties started
-immediately before is increased here (first for ~\linelabel~,
-second for postponed ~\vadjust~ items):
-\begin{code}\begin{verbatim}
-\mathchardef\@Mllbcodepen=11111
-\mathchardef\@Mppvacodepen=11112
-\end{verbatim}
-\end{code}
-(/New v4.00) (New v4.2) David Kastrup urges to use a private
-name instead of ~\the\output~ (LaTeX-L-list). Otherwise an
-~\output~ routine loaded later and using ~\newtoks\output~
-again may get lost entirely. So we change use of ~\@LN@output~,
-using it for the former purpose. Reference to what appeared
-with the name of ~\output~ here lasts for a few lines and then
-is given away.
+In this case_(ii), like in case_(i), footnotes would suffer
+if ~\holdinginserts~ were non-positive. Indeed, in both
+cases_(i) and_(ii) we tackle the footnote problem by extending
+that part of Stephan's output routine that is active when
+~\holdinginserts~ is positive. This extension writes the line
+number ~\newlabel~ to the .aux file (which was formerly done
+under $~\holdinginserts~=-3$) and handles the ~\vadjust~
+items.---To trigger ~\output~ and its ~\linelabel~ or, resp.,
+~\vadjust~ part, the list of signal penalties started
+immediately before is increased here (first for ~\linelabel~,
+second for postponed ~\vadjust~ items):
+\begin{code}\begin{verbatim}
+\mathchardef\@Mllbcodepen=11111
+\mathchardef\@Mppvacodepen=11112
+\end{verbatim}
+\end{code}
+(/New v4.00) (New v4.2) David Kastrup urges to use a private
+name instead of ~\the\output~ (LaTeX-L-list). Otherwise an
+~\output~ routine loaded later and using ~\newtoks\output~
+again may get lost entirely. So we change use of ~\@LN@output~,
+using it for the former purpose. Reference to what appeared
+with the name of ~\output~ here lasts for a few lines and then
+is given away.
\begin{code}\begin{verbatim}
\let\@tempa\output
\newtoks\output
@@ -366,60 +367,60 @@ Now we add two cases to Stephan's output routine. (New v4.00)
\end{verbatim}
\end{code}
(New v4.00)
-We insert recognition of waiting ~\linelabel~ items---
+We insert recognition of waiting ~\linelabel~ items---
\begin{code}\begin{verbatim}
- \ifnum\outputpenalty=-\@Mllbcodepen
- \WriteLineNo
+ \ifnum\outputpenalty=-\@Mllbcodepen
+ \WriteLineNo
\end{verbatim}
\end{code}
----and of waiting ~\vadjust~ items:
+---and of waiting ~\vadjust~ items:
\begin{code}\begin{verbatim}
- \else
- \ifnum\outputpenalty=-\@Mppvacodepen
- \PassVadjustList
- \else
+ \else
+ \ifnum\outputpenalty=-\@Mppvacodepen
+ \PassVadjustList
+ \else
\end{verbatim}
\end{code}
-(/New v4.00) (New v4.2) Outsource ``Standard'' output
----which occurs so rarely---to subsection_\ref{ss:LLO}:
+(/New v4.00) (New v4.2) Outsource ``Standard'' output
+---which occurs so rarely---to subsection_\ref{ss:LLO}:
\begin{code}\begin{verbatim}
- \LineNoLaTeXOutput
+ \LineNoLaTeXOutput
\end{verbatim}
\end{code}
-(/New v4.2) (New v4.00)
-Two new ~\fi~s for the ~\linelabel~ and ~\vadjust~ tests---
+(/New v4.2) (New v4.00)
+Two new ~\fi~s for the ~\linelabel~ and ~\vadjust~ tests---
\begin{code}\begin{verbatim}
- \fi
- \fi
+ \fi
+ \fi
\end{verbatim}
\end{code}
----and the remaining is
-Stephan's code again:
-(/New v4.00)
+---and the remaining is
+Stephan's code again:
+(/New v4.00)
\begin{code}\begin{verbatim}
- \else
+ \else
\MakeLineNo
\fi
}
\end{verbatim}
\end{code}
-(New v4.00) Our new macros
-~\WriteLineNo~ and ~\PassVadjustList~ will be dealt with in
-sections_\ref{s:LNref} and_\ref{ss:PVadj}. (/New v4.00)
+(New v4.00) Our new macros
+~\WriteLineNo~ and ~\PassVadjustList~ will be dealt with in
+sections_\ref{s:LNref} and_\ref{ss:PVadj}. (/New v4.00)
\subsection{%
\scs{LineNoTest}
-\unskip}
+\unskip}
The float mechanism inserts ~\interlinepenalty~s during
~\output~. So carefully reset it before going on. Else
we get doubled line numbers on every float placed in
-horizontal mode, e.g, from ~\linelabel~.
+horizontal mode, e.g, from ~\linelabel~.
Sorry, neither a ~\linelabel~ nor a ~\marginpar~ should
insert a penalty, else the following linenumber
could go to the next page. Nor should any other
-float. So let us suppress the ~\interlinepenalty~
+float. So let us suppress the ~\interlinepenalty~
altogether with the ~\@nobreak~ switch.
Since (ltspace.dtx, v1.2p)[1996/07/26], the ~\@nobreaktrue~ does
@@ -442,458 +443,458 @@ it's job globally. We need to do it locally here.
\def\@LN@nobreaktrue{\let\if@nobreak\iftrue} % renamed v4.33
\end{verbatim}
\end{code}
-(UL) I thought here were
-another case of the save stack problem explained in \TeX book,
-p._301, namely through both local and global changing
-~\if@nobreak~. However, ~\@LN@nobreak~ is called during
-~\@LN@output~ only, while ~\@nobreaktrue~ is called by \LaTeX's
-~\@startsection~ only. The latter never happens during
-~\@LN@output~. So there is no local value of ~\if@nobreak~ on
-save stack when ~\@nobreaktrue~ acts, since ~\the\@LN@output~
-(where ~\@LN@output~ is a new name for the original ~\output~)
+(UL) I thought here were
+another case of the save stack problem explained in \TeX book,
+p._301, namely through both local and global changing
+~\if@nobreak~. However, ~\@LN@nobreak~ is called during
+~\@LN@output~ only, while ~\@nobreaktrue~ is called by \LaTeX's
+~\@startsection~ only. The latter never happens during
+~\@LN@output~. So there is no local value of ~\if@nobreak~ on
+save stack when ~\@nobreaktrue~ acts, since ~\the\@LN@output~
+(where ~\@LN@output~ is a new name for the original ~\output~)
is executed within a group (\TeX book p._21).
-(/UL)
+(/UL)
\subsection{%
Other output routines (v4.2)
-\unskip}\label{ss:LLO}
+\unskip}\label{ss:LLO}
-I had thought of dealing with bad interference of footnotes
-(and ~\enlargethispage~) with (real) ~\marginpar~s and floats
-\emph{here}. Yet this is done in
+I had thought of dealing with bad interference of footnotes
+(and ~\enlargethispage~) with (real) ~\marginpar~s and floats
+\emph{here}. Yet this is done in
\[
~http://~\mbox{[CTAN]}
~/macros/latex/contrib/tamefloats/tameflts.sty~
\]
-now, and I prefer striving for compatibility with the latter.
+now, and I prefer striving for compatibility with the latter.
(See there for expanding on the problem.)
-This requires returning the special absolute value of
-~\holdinginserts~ that ~lineno.sty~ finds at the end of a newly
+This requires returning the special absolute value of
+~\holdinginserts~ that ~lineno.sty~ finds at the end of a newly
typeset paragraph---now done in subsection_\ref{ss:calls}
-(~\linenumberpar~).
-The former ~\LineNoHoldInsertsTest~ has been filled into here.
-Note: when the following code is invoked, we have
-~\if@tempswa~_ =_~\iftrue~.
-WARNING: I am still not sure whether the present code is good
-for cooperating with other packages that use ~\holdinginserts~.
-\begin{code}\begin{verbatim}
-\def\LineNoLaTeXOutput{%
+(~\linenumberpar~).
+The former ~\LineNoHoldInsertsTest~ has been filled into here.
+Note: when the following code is invoked, we have
+~\if@tempswa~_ =_~\iftrue~.
+WARNING: I am still not sure whether the present code is good
+for cooperating with other packages that use ~\holdinginserts~.
+\begin{code}\begin{verbatim}
+\def\LineNoLaTeXOutput{%
\ifnum \holdinginserts=\thr@@ % v4.33 without \@tempswafalse
- \global\holdinginserts-\thr@@
- \unvbox\@cclv
- \ifnum \outputpenalty=\@M \else \penalty\outputpenalty \fi
+ \global\holdinginserts-\thr@@
+ \unvbox\@cclv
+ \ifnum \outputpenalty=\@M \else \penalty\outputpenalty \fi
\else
\if@twocolumn \let\@makecol\@LN@makecol \fi
- \the\@LN@output % finally following David Kastrup's advice.
- \ifnum \holdinginserts=-\thr@@
- \global\holdinginserts\thr@@ \fi
+ \the\@LN@output % finally following David Kastrup's advice.
+ \ifnum \holdinginserts=-\thr@@
+ \global\holdinginserts\thr@@ \fi
\fi
}
\end{verbatim}
\end{code}
-\textit{More on dealing with output routines from other
-packages:}
-Since ~lineno.sty~'s output routine is called at least once
-for each output line, I think it should be in \TeX's
-original ~\output~, while output routines dealing with
-building pages and with floats etc.\ should be filled into
-registers addressed by ~\output~ after ~\newtoks\output~.
+\textit{More on dealing with output routines from other
+packages:}
+Since ~lineno.sty~'s output routine is called at least once
+for each output line, I think it should be in \TeX's
+original ~\output~, while output routines dealing with
+building pages and with floats etc.\ should be filled into
+registers addressed by ~\output~ after ~\newtoks\output~.
Therefore \begin{enumerate}
-\item
-~tameflts.sty~ should be loaded \emph{after} ~lineno.sty~;
-\item
-if a class changes ~\output~ (APS journal class revtex4,
-e.g.), ~lineno.sty~ should be loaded by ~\RequirePackage~
-[here presumably following some options in
-brackets]~{lineno}~ \emph{preceding} ~\documentclass~.
-\item
-If you actually maintain such a class, please consider
-loading ~lineno.sty~ on some draft option. The bunch of
-lineno's package options may be a problem, but perhaps the
-purpose of your class is offering only very few of lineno's
-options anyway, maybe just one.
-\end{enumerate}
-The latter may also be needed with classes that don't follow
-David Kastrup's rule on changing ~\output~.
+\item
+~tameflts.sty~ should be loaded \emph{after} ~lineno.sty~;
+\item
+if a class changes ~\output~ (APS journal class revtex4,
+e.g.), ~lineno.sty~ should be loaded by ~\RequirePackage~
+[here presumably following some options in
+brackets]~{lineno}~ \emph{preceding} ~\documentclass~.
+\item
+If you actually maintain such a class, please consider
+loading ~lineno.sty~ on some draft option. The bunch of
+lineno's package options may be a problem, but perhaps the
+purpose of your class is offering only very few of lineno's
+options anyway, maybe just one.
+\end{enumerate}
+The latter may also be needed with classes that don't follow
+David Kastrup's rule on changing ~\output~.
\subsection{%
-\scs{MakeLineNo}: Actually attach line number
-\unskip}\label{ss:MLN}
+\scs{MakeLineNo}: Actually attach line number
+\unskip}\label{ss:MLN}
We have to return all the page to the current page, and
add a box with the line number, without adding
breakpoints, glue or space. The depth of our line number
should be equal to the previous depth of the page, in
case the page breaks here, and the box has to be moved up
-by that depth.
+by that depth.
The ~\interlinepenalty~ comes after the ~\vadjust~ from a
~\linelabel~, so we increment the line number \emph{after}
printing it. The macro ~\makeLineNumber~ produces the
text of the line number, see section \ref{appearance}.
-(UL) I needed a while to understand
-the sentence on incrementing. Correctly: writing the
-~\newlabel~ to the .aux file is triggered by the signal
-penalty that ~\end@float~ inserts via ~\vadjust~.
-However, this could be changed by our new ~\PostponeVadjust~.
-After ~\c@linenumber~ has been introduced as a \LaTeX\
-counter, it might be preferable that it behaved like standard
-\LaTeX\ counters which are incremented shortly before printing.
-But this may be of little practical relevance in this case,
-as ~\c@linenumber~ is driven in a very non-standard
-way.---However still, this behaviour of ~\c@linenumber~
-generates a problem with our ~edtable.sty~.
-(/UL).
+(UL) I needed a while to understand
+the sentence on incrementing. Correctly: writing the
+~\newlabel~ to the .aux file is triggered by the signal
+penalty that ~\end@float~ inserts via ~\vadjust~.
+However, this could be changed by our new ~\PostponeVadjust~.
+After ~\c@linenumber~ has been introduced as a \LaTeX\
+counter, it might be preferable that it behaved like standard
+\LaTeX\ counters which are incremented shortly before printing.
+But this may be of little practical relevance in this case,
+as ~\c@linenumber~ is driven in a very non-standard
+way.---However still, this behaviour of ~\c@linenumber~
+generates a problem with our ~edtable.sty~.
+(/UL).
Finally we put in the natural ~\interlinepenalty~, except
-after the last line.
+after the last line.
-(New v3.10) Frank Mittelbach points out that box255 may be
-less deep than the last box inside, so he proposes to
+(New v3.10) Frank Mittelbach points out that box255 may be
+less deep than the last box inside, so he proposes to
measure the page depth with ~\boxmaxdepth=\maxdimen~.
(/New v3.10)
-(UL, New v4.00) We also resume the matter of
-~\vadjust~ items that was started in section_\ref{ss:output}.
-
-\TeX\ puts only nonzero interline
-penalties into the vertical list (\TeX book p._105), while
-~lineno.sty~ formerly replaced the signal interline penalty by
-something closing with an explicit penalty of the value that
-the interline penalty would have without ~lineno.sty~.
-This is usually 0. Now, explicit vertical penalties can be
-very nasty with respect to ~\nopagebreak~, e.g., a low (even
-positive) ~\widowpenalty~ may force a widow where you
-explicitly tried to forbid it by ~\nopagebreak~
-(see explanation soon below).
-The ~\nopagebreak~ we create here would never work if all
-those zero penalties were present.---On
-the other hand, we cannot just omit Stephan's zero penalties,
-because \TeX\ puts a penalty of 10000 after what ~lineno.sty~
-inserts (\TeX book p._125). This penalty must be overridden
-to allow page breaks between ordinary lines. To revive
-~\nopagebreak~, we therefore replace those zero (or low)
-penalties by penalties that the user demanded by
-~\nopagebreak~.---This mechanism is not perfect and does not
-exactly restore the original \LaTeX\ working of ~\pagebreak~
-and ~\nopagebreak~. Viz., if there are several vertical
-penalties after a line which were produced by closely sitting
-~\[no]pagebreak~s, without ~lineno.sty~ the lowest penalty would
-be effective (cf._\TeX book exercise_14.10). Our mechanism, by
-contrast, chooses the \emph{last} user-set penalty of the line
-as the effective one. It would not be very difficult to come
-more close to the original mechanism, but until someone urges
-us we will cling to the present simple way. You may consider an
-advantage of the difference between our mechanism and the
-original one that the user here can actually override low
-penalties by ~\nopagebreak~, which may be what a lay \LaTeX\
-user would expect.
-(/UL, /New v4.00)
+(UL, New v4.00) We also resume the matter of
+~\vadjust~ items that was started in section_\ref{ss:output}.
+
+\TeX\ puts only nonzero interline
+penalties into the vertical list (\TeX book p._105), while
+~lineno.sty~ formerly replaced the signal interline penalty by
+something closing with an explicit penalty of the value that
+the interline penalty would have without ~lineno.sty~.
+This is usually 0. Now, explicit vertical penalties can be
+very nasty with respect to ~\nopagebreak~, e.g., a low (even
+positive) ~\widowpenalty~ may force a widow where you
+explicitly tried to forbid it by ~\nopagebreak~
+(see explanation soon below).
+The ~\nopagebreak~ we create here would never work if all
+those zero penalties were present.---On
+the other hand, we cannot just omit Stephan's zero penalties,
+because \TeX\ puts a penalty of 10000 after what ~lineno.sty~
+inserts (\TeX book p._125). This penalty must be overridden
+to allow page breaks between ordinary lines. To revive
+~\nopagebreak~, we therefore replace those zero (or low)
+penalties by penalties that the user demanded by
+~\nopagebreak~.---This mechanism is not perfect and does not
+exactly restore the original \LaTeX\ working of ~\pagebreak~
+and ~\nopagebreak~. Viz., if there are several vertical
+penalties after a line which were produced by closely sitting
+~\[no]pagebreak~s, without ~lineno.sty~ the lowest penalty would
+be effective (cf._\TeX book exercise_14.10). Our mechanism, by
+contrast, chooses the \emph{last} user-set penalty of the line
+as the effective one. It would not be very difficult to come
+more close to the original mechanism, but until someone urges
+us we will cling to the present simple way. You may consider an
+advantage of the difference between our mechanism and the
+original one that the user here can actually override low
+penalties by ~\nopagebreak~, which may be what a lay \LaTeX\
+user would expect.
+(/UL, /New v4.00)
\begin{code}\begin{verbatim}
\def\MakeLineNo{%
- \@LN@maybe@normalLineNumber % v4.31
+ \@LN@maybe@normalLineNumber % v4.31
\boxmaxdepth\maxdimen\setbox\z@\vbox{\unvbox\@cclv}%
\@tempdima\dp\z@ \unvbox\z@
\sbox\@tempboxa{\hb@xt@\z@{\makeLineNumber}}%
\end{verbatim}
\end{code}
-(New v4.00) Previously,
+(New v4.00) Previously,
\begin{old}\begin{verbatim}
% \stepcounter{linenumber}%
\end{verbatim}
\end{old}
-followed. (Of course, there was no
-comment mark; I put it there to make
-reading the actual code easy.)
+followed. (Of course, there was no
+comment mark; I put it there to make
+reading the actual code easy.)
-(New v4.22: improved) Why not just
+(New v4.22: improved) Why not just
\[~\global\advance\c@linenumber\@ne~?\]
-~\stepcounter~ additionally resets ``subordinate''
-counters, but which could these (usefully) be?
-Again, may be column counters with ~edtable.sty~!?
+~\stepcounter~ additionally resets ``subordinate''
+counters, but which could these (usefully) be?
+Again, may be column counters with ~edtable.sty~!?
-But then, our ~edtable.sty~ and its ~longtable~ option
-should use it as well. So use a shorthand supporting
-uniformity. You can even use it as a hook for choosing
-~\global\advance\c@linenumber\@ne~ instead of our choice.
-(/New v4.22)
+But then, our ~edtable.sty~ and its ~longtable~ option
+should use it as well. So use a shorthand supporting
+uniformity. You can even use it as a hook for choosing
+~\global\advance\c@linenumber\@ne~ instead of our choice.
+(/New v4.22)
\begin{code}\begin{verbatim}
\stepLineNumber
\end{verbatim}
\end{code}
-(New v4.4) Now
+(New v4.4) Now
\begin{code}\begin{verbatim}
- \ht\@tempboxa\z@ \@LN@depthbox
+ \ht\@tempboxa\z@ \@LN@depthbox
\end{verbatim}
\end{code}
-appends the box containing the line number without changing
-~\prevdepth~---see end of section.
-Now is the time for inserting the $\dots$ (/New v4.4)
-~\vadjust~ items. We cannot do this much later, because
-their right place is above the artificial interline
-penalty which Stephan's code will soon insert
-(cf._\TeX book p._105). The next command is just ~\relax~
-if no ~\vadjust~ items have been accumulated for the
-current line. Otherwise it is a list macro inserting
-the ~\vadjust~ items and finally resetting itself.
+appends the box containing the line number without changing
+~\prevdepth~---see end of section.
+Now is the time for inserting the $\dots$ (/New v4.4)
+~\vadjust~ items. We cannot do this much later, because
+their right place is above the artificial interline
+penalty which Stephan's code will soon insert
+(cf._\TeX book p._105). The next command is just ~\relax~
+if no ~\vadjust~ items have been accumulated for the
+current line. Otherwise it is a list macro inserting
+the ~\vadjust~ items and finally resetting itself.
(This is made in section_\ref{ss:PVadj} below.)
-If the final item is a penalty, it is stored so it can
-compete with other things about page breaking.
+If the final item is a penalty, it is stored so it can
+compete with other things about page breaking.
\begin{code}\begin{verbatim}
- \@LN@do@vadjusts
- \count@\lastpenalty
+ \@LN@do@vadjusts
+ \count@\lastpenalty
\end{verbatim}
\end{code}
-At this place,
+At this place,
\begin{old}\begin{verbatim}
% \ifnum\outputpenalty=-\linenopenaltypar\else
\end{verbatim}
\end{old}
-originally followed. We need something \emph{before} the
-~\else~:
+originally followed. We need something \emph{before} the
+~\else~:
\begin{code}\begin{verbatim}
- \ifnum\outputpenalty=-\linenopenaltypar
- \ifnum\count@=\z@ \else
+ \ifnum\outputpenalty=-\linenopenaltypar
+ \ifnum\count@=\z@ \else
\end{verbatim}
\end{code}
-So final ~\pagebreak[0]~ or ~\nopagebreak[0]~ has no
-effect---but this will make a difference after headings only,
-where nobody should place such a thing anyway.
+So final ~\pagebreak[0]~ or ~\nopagebreak[0]~ has no
+effect---but this will make a difference after headings only,
+where nobody should place such a thing anyway.
\begin{code}\begin{verbatim}
- \xdef\@LN@parpgbrk{%
+ \xdef\@LN@parpgbrk{%
\penalty\the\count@
\global\let\noexpand\@LN@parpgbrk
- \noexpand\@LN@screenoff@pen}% v4.4
+ \noexpand\@LN@screenoff@pen}% v4.4
\end{verbatim}
\end{code}
-That penalty will replace former ~\kern\z@~ in
+That penalty will replace former ~\kern\z@~ in
~\linenumberpar~, see subsection_\ref{ss:calls}.---A
-few days earlier, I tried to send just a penalty value.
-However, the ~\kern\z@~ in ~\linenumberpar~ is crucial,
-as I then found out. See below.---The final penalty is
-repeated, but this does no harm. (It would not be very
-difficult to avoid the repeating, but it may even be
-less efficient.) It may be repeated due to the previous
-~\xdef~, but it may be repeated as well below in the
-present macro where artificial interline penalty is to
+few days earlier, I tried to send just a penalty value.
+However, the ~\kern\z@~ in ~\linenumberpar~ is crucial,
+as I then found out. See below.---The final penalty is
+repeated, but this does no harm. (It would not be very
+difficult to avoid the repeating, but it may even be
+less efficient.) It may be repeated due to the previous
+~\xdef~, but it may be repeated as well below in the
+present macro where artificial interline penalty is to
be overridden.
\begin{code}\begin{verbatim}
\fi
\else
\end{verbatim}
\end{code}
-(/New v4.00)
+(/New v4.00)
\begin{code}\begin{verbatim}
\@tempcnta\outputpenalty
\advance\@tempcnta -\linenopenalty
\end{verbatim}
\end{code}
-(New v4.00)
+(New v4.00)
\begin{old}\begin{verbatim}
% \penalty\@tempcnta
\end{verbatim}
\end{old}
-followed previously. To give ~\nopagebreak~ a chance,
-we do
+followed previously. To give ~\nopagebreak~ a chance,
+we do
\begin{code}\begin{verbatim}
- \penalty \ifnum\count@<\@tempcnta \@tempcnta \else \count@ \fi
+ \penalty \ifnum\count@<\@tempcnta \@tempcnta \else \count@ \fi
\end{verbatim}
\end{code}
-instead.---In ~linenox0.sty~, the ~\else~ thing once was omitted.
-Sergei Mariev's complaint (thanks!) showed that it is vital
-(see comment before ~\MakeLineNo~).
-The remaining ~\fi~ from previous package version closes the
-~\ifnum\outputpenalty~\dots
-(/New v4.00)
+instead.---In ~linenox0.sty~, the ~\else~ thing once was omitted.
+Sergei Mariev's complaint (thanks!) showed that it is vital
+(see comment before ~\MakeLineNo~).
+The remaining ~\fi~ from previous package version closes the
+~\ifnum\outputpenalty~\dots
+(/New v4.00)
\begin{code}\begin{verbatim}
\fi
}
\end{verbatim}
\end{code}
-(New v4.00)
+(New v4.00)
\begin{code}\begin{verbatim}
-\newcommand\stepLineNumber{\stepcounter{linenumber}}
+\newcommand\stepLineNumber{\stepcounter{linenumber}}
\end{verbatim}
\end{code}
-For reason, see use above. (/New v4.00)
+For reason, see use above. (/New v4.00)
-(New v4.4) The depth preserving trick is drawn here from
-~\MakeLineNo~ because it will be used again in
+(New v4.4) The depth preserving trick is drawn here from
+~\MakeLineNo~ because it will be used again in
section_\ref{ss:calls}.
\begin{code}\begin{verbatim}
-\def\@LN@depthbox{%
+\def\@LN@depthbox{%
\dp\@tempboxa=\@tempdima
- \nointerlineskip \kern-\@tempdima \box\@tempboxa}
+ \nointerlineskip \kern-\@tempdima \box\@tempboxa}
\end{verbatim}
\end{code}
-(/New v4.4)
+(/New v4.4)
\section{%
-Control line numbering
+Control line numbering
\unskip}
\subsection{%
-Inserting \scs{output} calls %% own subsec. v4.4.
+Inserting \scs{output} calls %% own subsec. v4.4.
\unskip}\label{ss:calls}
The line numbering is controlled via ~\par~. \LaTeX\
saved the \TeX-primitive ~\par~ in ~\@@par~. We push it
one level further out, and redefine ~\@@par~ to insert
the ~\interlinepenalty~ needed to trigger the
line numbering. And we need to allow pagebreaks after a
-paragraph.
+paragraph.
New (2.05beta): the prevgraf test. A paragraph that ends with a
displayed equation, a ~\noindent\par~ or ~wrapfig.sty~ produce empty
paragraphs. These should not get a spurious line number via
-~\linenopenaltypar~.
+~\linenopenaltypar~.
\begin{code}\begin{verbatim}
\let\@@@par\@@par
\newcount\linenoprevgraf
\end{verbatim}
\end{code}
-(UL) And needs ~\linenoprevgraf~
-to be a counter? Perhaps there may be a paragraph having
-thousands of lines, so ~\mathchardef~ doesn't suffice (really??).
-A macro ending on ~\relax~ might suffice, but would be
-somewhat slow. I think I will use ~\mathchardef~ next time.
-Or has any user used ~\linenoprevgraf~? (/UL)
+(UL) And needs ~\linenoprevgraf~
+to be a counter? Perhaps there may be a paragraph having
+thousands of lines, so ~\mathchardef~ doesn't suffice (really??).
+A macro ending on ~\relax~ might suffice, but would be
+somewhat slow. I think I will use ~\mathchardef~ next time.
+Or has any user used ~\linenoprevgraf~? (/UL)
\begin{code}\begin{verbatim}
-\def\linenumberpar{%
- \ifvmode \@@@par \else
+\def\linenumberpar{%
+ \ifvmode \@@@par \else
\ifinner \@@@par \else
- \xdef\@LN@outer@holdins{\the\holdinginserts}% v4.2
+ \xdef\@LN@outer@holdins{\the\holdinginserts}% v4.2
\advance \interlinepenalty \linenopenalty
\linenoprevgraf \prevgraf
- \global \holdinginserts \thr@@
+ \global \holdinginserts \thr@@
\@@@par
\ifnum\prevgraf>\linenoprevgraf
\penalty-\linenopenaltypar
\fi
\end{verbatim}
\end{code}
-(New v4.00)
+(New v4.00)
\begin{old}\begin{verbatim}
-% \kern\z@
+% \kern\z@
\end{verbatim}
\end{old}
-was here previously. What for?
-According to \TeX book p._125, Stephan's
-interline penalty is changed into 10000. At the end of a
-paragraph, the ~\parskip~ would follow that penalty of 10000,
-so there could be a page break neither at the
-~\parskip~ nor at the ~\baselineskip~ (\TeX book p._110)---so
-there could never be a page break between two paragraphs.
-So something must screen off the 10000 penalty.
-Indeed, the ~\kern~ is a place to break.
+was here previously. What for?
+According to \TeX book p._125, Stephan's
+interline penalty is changed into 10000. At the end of a
+paragraph, the ~\parskip~ would follow that penalty of 10000,
+so there could be a page break neither at the
+~\parskip~ nor at the ~\baselineskip~ (\TeX book p._110)---so
+there could never be a page break between two paragraphs.
+So something must screen off the 10000 penalty.
+Indeed, the ~\kern~ is a place to break.
(Stephan once knew this: see `allow pagebreaks' above.)
-Formerly, I tried to replace ~\kern\z@~ by
+Formerly, I tried to replace ~\kern\z@~ by
\begin{old}\begin{verbatim}
-% \penalty\@LN@parpgpen\relax
+% \penalty\@LN@parpgpen\relax
\end{verbatim}
\end{old}
----but this allows a page break after heading. So:
+---but this allows a page break after heading. So:
\begin{code}\begin{verbatim}
- \@LN@parpgbrk
+ \@LN@parpgbrk
\end{verbatim}
\end{code}
-These and similar changes were formerly done by ~linenox1.sty~.
-(/New v4.00)
+These and similar changes were formerly done by ~linenox1.sty~.
+(/New v4.00)
-(New v4.4)
-A ~\belowdisplayskip~ may precede the previous when the paragraph
-ends on a display-math; or there may be a ~\topsep~ from a list, etc.
-~\addvspace~ couldn't take account for it with ~\kern\z@~
-here. v4.32 therefore moved the space down -- with at least two
-bad consequences.
-Moreover, David Josef Dev observes that ~\kern\z@~ may
-inappropriately yield column depth 0pt.
-For these reasons, we introduce ~\@LN@screenoff@pen~ below.
-(/New v4.4)
+(New v4.4)
+A ~\belowdisplayskip~ may precede the previous when the paragraph
+ends on a display-math; or there may be a ~\topsep~ from a list, etc.
+~\addvspace~ couldn't take account for it with ~\kern\z@~
+here. v4.32 therefore moved the space down -- with at least two
+bad consequences.
+Moreover, David Josef Dev observes that ~\kern\z@~ may
+inappropriately yield column depth 0pt.
+For these reasons, we introduce ~\@LN@screenoff@pen~ below.
+(/New v4.4)
\begin{code}\begin{verbatim}
\global\holdinginserts\@LN@outer@holdins % v4.2
\advance\interlinepenalty -\linenopenalty
- \fi % from \ifinner ... \else
- \fi} % from \ifvmode ... \else
+ \fi % from \ifinner ... \else
+ \fi} % from \ifvmode ... \else
\end{verbatim}
\end{code}
-(New v4.00, v4.4) Initialize ~\@LN@parpgbrk~, accounting
-for earlier space and for appropriate columndepth.
-We use former ~\MakeLineNo~'s depth-preverving trick
-~\@LN@depthbox~ again:
+(New v4.00, v4.4) Initialize ~\@LN@parpgbrk~, accounting
+for earlier space and for appropriate columndepth.
+We use former ~\MakeLineNo~'s depth-preverving trick
+~\@LN@depthbox~ again:
\begin{code}\begin{verbatim}
-\def\@LN@screenoff@pen{%
- \ifdim\lastskip=\z@
- \@tempdima\prevdepth \setbox\@tempboxa\null
+\def\@LN@screenoff@pen{%
+ \ifdim\lastskip=\z@
+ \@tempdima\prevdepth \setbox\@tempboxa\null
\@LN@depthbox \fi}
-\global\let\@LN@parpgbrk\@LN@screenoff@pen
+\global\let\@LN@parpgbrk\@LN@screenoff@pen
\end{verbatim}
\end{code}
-(/New v4.4, v4.00)
+(/New v4.4, v4.00)
\subsection{%
Turning on/off %% own subsec. v4.4.
\unskip}\label{ss:OnOff}
The basic commands to enable and disable line numbers.
-~\@par~ and ~\par~ are only touched, when they are ~\let~
+~\@par~ and ~\par~ are only touched, when they are ~\let~
to ~\@@@par~/~\linenumberpar~. The line number may be
reset to 1 with the star-form, or set by an optional
-argument ~[~<number>~]~.
-
-(New v4.00) We add ~\ifLineNumbers~ etc.\ since
-a number of our new adjustments need to know whether
-linenumbering is active. This just provides a kind of
-shorthand for ~\ifx\@@par\linenumberpar~; moreover it is
-more stable: who knows what may happen to ~\@@par~?---A
-caveat: ~\ifLineNumbers~ may be wrong. E.g., it may be
-~\iffalse~ where it acts, while a ~\linenumbers~ a few
-lines below---in the same paragraph---brings about that
-the line where the ~\ifLineNumbers~ appears gets a
-marginal number.
-(New v4.3) Just noticed: Such tricks have been
-disallowed with v4.11, see subsections_\ref{ss:LL}
+argument ~[~<number>~]~.
+
+(New v4.00) We add ~\ifLineNumbers~ etc.\ since
+a number of our new adjustments need to know whether
+linenumbering is active. This just provides a kind of
+shorthand for ~\ifx\@@par\linenumberpar~; moreover it is
+more stable: who knows what may happen to ~\@@par~?---A
+caveat: ~\ifLineNumbers~ may be wrong. E.g., it may be
+~\iffalse~ where it acts, while a ~\linenumbers~ a few
+lines below---in the same paragraph---brings about that
+the line where the ~\ifLineNumbers~ appears gets a
+marginal number.
+(New v4.3) Just noticed: Such tricks have been
+disallowed with v4.11, see subsections_\ref{ss:LL}
and_\ref{ss:OnOff}.---Moreover, the switching between
-meanings of ~\linelabel~ for a possible error message
-as of v4.11 is removed. Speed is difficult to esteem
-and also depends on applications. Just use the most
-simple code you find. (/New v4.3)
+meanings of ~\linelabel~ for a possible error message
+as of v4.11 is removed. Speed is difficult to esteem
+and also depends on applications. Just use the most
+simple code you find. (/New v4.3)
\begin{code}\begin{verbatim}
-\newif\ifLineNumbers \LineNumbersfalse
+\newif\ifLineNumbers \LineNumbersfalse
\end{verbatim}
\end{code}
-(/New v4.00)
+(/New v4.00)
\begin{code}\begin{verbatim}
-\def\linenumbers{%
- \LineNumberstrue % v4.00
- \xdef\@LN@outer@holdins{\the\holdinginserts}% v4.3
+\def\linenumbers{%
+ \LineNumberstrue % v4.00
+ \xdef\@LN@outer@holdins{\the\holdinginserts}% v4.3
\end{verbatim}
\end{code}
-(New v4.3) The previous line is for ~{linenomath}~
-in a first numbered paragraph. (/New v4.3)
+(New v4.3) The previous line is for ~{linenomath}~
+in a first numbered paragraph. (/New v4.3)
\begin{code}\begin{verbatim}
\let\@@par\linenumberpar
- % \let\linelabel\@LN@linelabel % v4.11, removed v4.3
+ % \let\linelabel\@LN@linelabel % v4.11, removed v4.3
\ifx\@par\@@@par\let\@par\linenumberpar\fi
\ifx\par\@@@par\let\par\linenumberpar\fi
- \@LN@maybe@moduloresume % v4.31
+ \@LN@maybe@moduloresume % v4.31
\@ifnextchar[{\resetlinenumber}%]
{\@ifstar{\resetlinenumber}{}}%
}
-\def\nolinenumbers{%
+\def\nolinenumbers{%
\LineNumbersfalse % v4.00
\let\@@par\@@@par
- % \let\linelabel\@LN@LLerror % v4.11, removed v4.3
+ % \let\linelabel\@LN@LLerror % v4.11, removed v4.3
\ifx\@par\linenumberpar\let\@par\@@@par\fi
\ifx\par\linenumberpar\let\par\@@@par\fi
}
\end{verbatim}
\end{code}
-(New v4.00) Moreover, it is useful to switch to
-~\nolinenumbers~ in ~\@arrayparboxrestore~. We postpone this
-to section_\ref{ss:ReDef} where we'll have an appending macro
-for doing this. (/New v4.00)
+(New v4.00) Moreover, it is useful to switch to
+~\nolinenumbers~ in ~\@arrayparboxrestore~. We postpone this
+to section_\ref{ss:ReDef} where we'll have an appending macro
+for doing this. (/New v4.00)
What happens with a display math? Since ~\par~ is not executed,
when breaking the lines before a display, they will not get
@@ -906,14 +907,14 @@ display \ math
See the subsection below, for a wrapper environment to make
it work. But that requires to wrap each and every display
in your \LaTeX\ source %%.
-(see option ~displaymath~ in subsections_\ref{ss:v3opts}
-and_\ref{ss:display} for some relief [UL]).
+(see option ~displaymath~ in subsections_\ref{ss:v3opts}
+and_\ref{ss:display} for some relief [UL]).
The next two commands are provided to turn on line
numbering in a specific mode. Please note the difference:
for pagewise numbering, ~\linenumbers~ comes first to
inhibit it from seeing optional arguments, since
-re-/presetting the counter is useless.
+re-/presetting the counter is useless.
\begin{code}\begin{verbatim}
\def\pagewiselinenumbers{\linenumbers\setpagewiselinenumbers}
\def\runninglinenumbers{\setrunninglinenumbers\linenumbers}
@@ -923,20 +924,20 @@ Finally, it is a \LaTeX\ style, so we provide for the use
of environments, including the suppression of the
following paragraph's indentation.
-(UL) I am drawing the following
-private thoughts of Stephan's to publicity so that others may
-think about them---or to remind myself of them in an efficient
-way. (/UL)
-\begin{old}\begin{verbatim}
+(UL) I am drawing the following
+private thoughts of Stephan's to publicity so that others may
+think about them---or to remind myself of them in an efficient
+way. (/UL)
+\begin{old}\begin{verbatim}
% TO DO: add \par to \linenumbers, if called from an environment.
% To DO: add an \@endpe hack if \linenumbers are turned on
% in horizontal mode. {\par\parskip\z@\noindent} or
% something.
\end{verbatim}
-\end{old}
-(UL) However, I rather think that ~\linenumbers~ and %% v4.31
-~\nolinenumbers~ should execute a ~\par~ already. (Then the
-~\par~s in the following definitions should be removed.) (/UL)
+\end{old}
+(UL) However, I rather think that ~\linenumbers~ and %% v4.31
+~\nolinenumbers~ should execute a ~\par~ already. (Then the
+~\par~s in the following definitions should be removed.) (/UL)
\begin{code}\begin{verbatim}
\@namedef{linenumbers*}{\par\linenumbers*}
\@namedef{runninglinenumbers*}{\par\runninglinenumbers*}
@@ -954,19 +955,19 @@ way. (/UL)
Display math
\unskip}\label{ss:DM}
-Now we tackle the problem to get display math working.
+Now we tackle the problem to get display math working.
There are different options.
\begin{enumerate}\item[
-1.] Precede every display math with a ~\par~.
+1.] Precede every display math with a ~\par~.
Not too good.
\item[
-2.] Change ~\interlinepenalty~ and associates globally.
+2.] Change ~\interlinepenalty~ and associates globally.
Unstable.
\item[
-3.] Wrap each display math with a ~{linenomath}~
-environment.
+3.] Wrap each display math with a ~{linenomath}~
+environment.
\end{enumerate}
-We'll go for option 3. See if it works:
+We'll go for option 3. See if it works:
\begin{linenomath}
\begin{equation}
display \ math
@@ -978,7 +979,7 @@ of the display itself,
\begin{eqnarray}
multi && line \\
display && math \\
-&
+&
\begin{array}{c}
with \\
array
@@ -996,32 +997,32 @@ does not harm to add these wrappers in sections that are
not numbered. Nor does it harm to wrap a display
twice, e.q, in case you have some ~{equation}~s wrapped
explicitely, and later you redefine ~\equation~ to do it
-automatically.
+automatically.
-(New v4.3) To avoid the spurious line number above a
-display in vmode, I insert ~\ifhmode~. (/New v4.3)
+(New v4.3) To avoid the spurious line number above a
+display in vmode, I insert ~\ifhmode~. (/New v4.3)
\begin{code}\begin{verbatim}
\newcommand\linenomathNonumbers{%
- \ifLineNumbers
+ \ifLineNumbers
\ifnum\interlinepenalty>-\linenopenaltypar
- \global\holdinginserts\thr@@
+ \global\holdinginserts\thr@@
\advance\interlinepenalty \linenopenalty
- \ifhmode % v4.3
+ \ifhmode % v4.3
\advance\predisplaypenalty \linenopenalty
- \fi
+ \fi
\fi
\fi
\ignorespaces
}
\newcommand\linenomathWithnumbers{%
- \ifLineNumbers
+ \ifLineNumbers
\ifnum\interlinepenalty>-\linenopenaltypar
- \global\holdinginserts\thr@@
+ \global\holdinginserts\thr@@
\advance\interlinepenalty \linenopenalty
- \ifhmode % v4.3
+ \ifhmode % v4.3
\advance\predisplaypenalty \linenopenalty
- \fi
+ \fi
\advance\postdisplaypenalty \linenopenalty
\advance\interdisplaylinepenalty \linenopenalty
\fi
@@ -1045,11 +1046,11 @@ lines of the display or vice versa.
\@namedef{linenomath*}{\linenomathWithnumbers}%
}
-\def\endlinenomath{%
- \ifLineNumbers % v4.3
- \global\holdinginserts\@LN@outer@holdins % v4.21
- \fi
- \global % v4.21 support for LaTeX2e earlier than 1996/07/26.
+\def\endlinenomath{%
+ \ifLineNumbers % v4.3
+ \global\holdinginserts\@LN@outer@holdins % v4.21
+ \fi
+ \global % v4.21 support for LaTeX2e earlier than 1996/07/26.
\@ignoretrue
}
\expandafter\let\csname endlinenomath*\endcsname\endlinenomath
@@ -1065,21 +1066,21 @@ that behavior.
\section{%
Line number references
-\unskip}\label{s:LNref}
-\subsection{%
-Internals %% New subsec. v4.3.
+\unskip}\label{s:LNref}
+\subsection{%
+Internals %% New subsec. v4.3.
\unskip}
The only way to get a label to a line number in a
paragraph is to ask the output routine to mark it.
-(New v4.00) The following two paragraphs don't hold any
-longer, see below. (/New v4.00)
+(New v4.00) The following two paragraphs don't hold any
+longer, see below. (/New v4.00)
\begin{old}\begin{verbatim}
% We use the marginpar mechanism to hook to ~\output~ for a
% second time. Marginpars are floats with number $-1$, we
% fake marginpars with No $-2$. Originally, every negative
% numbered float was considered to be a marginpar.
-%
+%
% The float box number ~\@currbox~ is used to transfer the
% label name in a macro called ~\@LNL@~<box-number>.
\end{verbatim}
@@ -1087,14 +1088,14 @@ longer, see below. (/New v4.00)
A ~\newlabel~ is written to the aux-file. The reference
is to ~\theLineNumber~, \emph{not} ~\thelinenumber~.
This allows to hook in, as done below for pagewise line
-numbering.
+numbering.
(New v3.03) The ~\@LN@ExtraLabelItems~ are added for a hook
to keep packages like ~{hyperref}~ happy. (/New v3.03)
-(New v4.00)
-We fire the ~\marginpar~ mechanism, so we leave \LaTeX's
-~\@addmarginpar~ untouched.
+(New v4.00)
+We fire the ~\marginpar~ mechanism, so we leave \LaTeX's
+~\@addmarginpar~ untouched.
\begin{old}\begin{verbatim}
% \let\@LN@addmarginpar\@addmarginpar
% \def\@addmarginpar{%
@@ -1109,46 +1110,46 @@ We fire the ~\marginpar~ mechanism, so we leave \LaTeX's
% \fi}
\end{verbatim}
\end{old}
-OK, we keep Stephan's ~\@LN@ExtraLabelItems~:
-(/New v4.00)
+OK, we keep Stephan's ~\@LN@ExtraLabelItems~:
+(/New v4.00)
\begin{code}\begin{verbatim}
\let\@LN@ExtraLabelItems\@empty
\end{verbatim}
\end{code}
-(New v4.00)
-We imitate the ~\marginpar~ mechanism without using the
-~\@freelist~ boxes. ~\linelabel~ will indeed place a signal
-penalty (~\@Mllbcodepen~, new), and it will put a label into
-some list macro ~\@LN@labellist~. A new part of the output
-routine will take the labels from the list and will write
-~\newlabel~s to the .aux file.
+(New v4.00)
+We imitate the ~\marginpar~ mechanism without using the
+~\@freelist~ boxes. ~\linelabel~ will indeed place a signal
+penalty (~\@Mllbcodepen~, new), and it will put a label into
+some list macro ~\@LN@labellist~. A new part of the output
+routine will take the labels from the list and will write
+~\newlabel~s to the .aux file.
The following is a version of \LaTeX's ~\@xnext~.
\begin{code}\begin{verbatim}
\def\@LN@xnext#1\@lt#2\@@#3#4{\def#3{#1}\gdef#4{#2}}
\end{verbatim}
\end{code}
-This takes an item ~#1~ from a list ~#4~ into ~#3~;
-to be used as ~\expandafter\@LN@xnext#4\@@#3#4~.
-Our lists use ~\@lt~ after each item for separating.
-Indeed, there will be another list macro which can
-appear as argument ~#4~, this will be used for moving
-~\vadjust~ items (section_\ref{ss:PVadj}).
-The list for ~\linelabel~s is the following:
+This takes an item ~#1~ from a list ~#4~ into ~#3~;
+to be used as ~\expandafter\@LN@xnext#4\@@#3#4~.
+Our lists use ~\@lt~ after each item for separating.
+Indeed, there will be another list macro which can
+appear as argument ~#4~, this will be used for moving
+~\vadjust~ items (section_\ref{ss:PVadj}).
+The list for ~\linelabel~s is the following:
\begin{code}\begin{verbatim}
-\global\let\@LN@labellist\@empty
+\global\let\@LN@labellist\@empty
\end{verbatim}
\end{code}
-The next is the new part of the output routine writing the
-~\newlabel~ to the .aux file. Since it is no real page output,
-the page is put back to top of the main vertical list.
+The next is the new part of the output routine writing the
+~\newlabel~ to the .aux file. Since it is no real page output,
+the page is put back to top of the main vertical list.
\begin{code}\begin{verbatim}
-\def\WriteLineNo{%
- \unvbox\@cclv
- \expandafter \@LN@xnext \@LN@labellist \@@
- \@LN@label \@LN@labellist
- \protected@write\@auxout{}{\string\newlabel{\@LN@label}%
- {{\theLineNumber}{\thepage}\@LN@ExtraLabelItems}}%
+\def\WriteLineNo{%
+ \unvbox\@cclv
+ \expandafter \@LN@xnext \@LN@labellist \@@
+ \@LN@label \@LN@labellist
+ \protected@write\@auxout{}{\string\newlabel{\@LN@label}%
+ {{\theLineNumber}{\thepage}\@LN@ExtraLabelItems}}%
}
\end{verbatim}
\end{code}
@@ -1165,9 +1166,9 @@ that place.
\marginpar{\tiny\raggedright
See if it works: This paragraph
starts on page \pageref{demo}, line
-\ref{demo}.
+\ref{demo}.
\unskip}%
-(New v4.11)
+(New v4.11)
\begin{old}\begin{verbatim}
% If you use this command outside a ~\linenumbers~
% paragraph, you will get references to some bogus
@@ -1177,12 +1178,12 @@ starts on page \pageref{demo}, line
% or not. A ~\linelabel~ may legally appear earlier than
% ~\linenumbers~.
\end{verbatim}
-\end{old}
-This trick is better not allowed---see subsections_\ref{ss:LL}
+\end{old}
+This trick is better not allowed---see subsections_\ref{ss:LL}
and_\ref{ss:OnOff}.
(/New v4.11)
-~\linelabel~
+~\linelabel~
\begin{old}\begin{verbatim}
%, via a fake float number $-2$, %% new mechanism v4.00
\end{verbatim}
@@ -1199,57 +1200,57 @@ A ~\linelabel~ is allowed only in outer horizontal mode.
In outer vertical mode we start a paragraph, and ignore
trailing spaces (by fooling ~\@esphack~).
-(New v4.00) We aim at relaxing the previous condition.
-We insert a hook ~\@LN@mathhook~ and a shorthand
-~\@LN@postlabel~ to support the ~mathrefs~ option which
-allows ~\linelabel~ in math mode.
+(New v4.00) We aim at relaxing the previous condition.
+We insert a hook ~\@LN@mathhook~ and a shorthand
+~\@LN@postlabel~ to support the ~mathrefs~ option which
+allows ~\linelabel~ in math mode.
-The next paragraph is no longer valid.
+The next paragraph is no longer valid.
\begin{old}\begin{verbatim}
% The argument of ~\linelabel~ is put into a macro with a
% name derived from the number of the allocated float box.
% Much of the rest is dummy float setup.
\end{verbatim}
\end{old}
-(/New v4.00)
+(/New v4.00)
-(New v4.11)
-\begin{old}\begin{verbatim}
+(New v4.11)
+\begin{old}\begin{verbatim}
% \def\linelabel#1{%
\end{verbatim}
-\end{old}
-I forgot ~\linenumbers~ today, costed me hours or so.
+\end{old}
+I forgot ~\linenumbers~ today, costed me hours or so.
\begin{code}\begin{verbatim}
-\def\@LN@LLerror{\PackageError{lineno}{%
- \string\linelabel\space without \string\linenumbers}{%
+\def\@LN@LLerror{\PackageError{lineno}{%
+ \string\linelabel\space without \string\linenumbers}{%
Just see documentation. (New feature v4.11)}\@gobble}
\end{verbatim}
\end{code}
-(New v4.3) Here some things have changed for v4.3.
-The previous ~#1~ has been replaced by ~\@gobble~.
-Ensuing, the ~\linelabel~ error message is re-implemented.
-I find it difficult to compare efficiency of slight
-alternatives---so choose an easy one. Explicit switching
-in ~\linenumbers~ and ~\nolinenumbers~ is an additional
-command that may better be avoided.
+(New v4.3) Here some things have changed for v4.3.
+The previous ~#1~ has been replaced by ~\@gobble~.
+Ensuing, the ~\linelabel~ error message is re-implemented.
+I find it difficult to compare efficiency of slight
+alternatives---so choose an easy one. Explicit switching
+in ~\linenumbers~ and ~\nolinenumbers~ is an additional
+command that may better be avoided.
\begin{code}\begin{verbatim}
-\newcommand\linelabel{%
- \ifLineNumbers \expandafter \@LN@linelabel
+\newcommand\linelabel{%
+ \ifLineNumbers \expandafter \@LN@linelabel
\else \expandafter \@LN@LLerror \fi}
-\gdef\@LN@linelabel#1{%
+\gdef\@LN@linelabel#1{%
\end{verbatim}
\end{code}
-~\gdef~ for hyperref ``symbolically''. (/New v4.11)
+~\gdef~ for hyperref ``symbolically''. (/New v4.11)
\begin{code}\begin{verbatim}
- \ifx\protect\@typeset@protect
+ \ifx\protect\@typeset@protect
\end{verbatim}
\end{code}
-$\gets$ And a ~\linelabel~ should never be replicated in a
-mark or a TOC entry. (/New v4.3)
+$\gets$ And a ~\linelabel~ should never be replicated in a
+mark or a TOC entry. (/New v4.3)
\begin{code}\begin{verbatim}
\ifvmode
- \ifinner \else
+ \ifinner \else
\leavevmode \@bsphack \@savsk\p@
\fi
\else
@@ -1261,9 +1262,9 @@ mark or a TOC entry. (/New v4.3)
\else
\end{verbatim}
\end{code}
-(New v4.00)
+(New v4.00)
\begin{code}\begin{verbatim}
- \@LN@postlabel{#1}%
+ \@LN@postlabel{#1}%
\end{verbatim}
\end{code}
\begin{old}\begin{verbatim}
@@ -1277,22 +1278,22 @@ mark or a TOC entry. (/New v4.3)
% \endgroup
% \@ignorefalse \@esphack
\end{verbatim}
-\end{old}
-(/New v4.00)
+\end{old}
+(/New v4.00)
\begin{code}\begin{verbatim}
- \@esphack
+ \@esphack
\end{verbatim}
\end{code}
-(New v4.00)
-The ~\@ignorefalse~ was appropriate before because the
-~\@Esphack~ in ~\end@float~ set ~\@ignoretrue~. Cf._\LaTeX's
-~\@xympar~. (/New v4.00)
+(New v4.00)
+The ~\@ignorefalse~ was appropriate before because the
+~\@Esphack~ in ~\end@float~ set ~\@ignoretrue~. Cf._\LaTeX's
+~\@xympar~. (/New v4.00)
\begin{code}\begin{verbatim}
\fi
\else
\end{verbatim}
\end{code}
-(New v4.00)
+(New v4.00)
\begin{code}\begin{verbatim}
\@LN@mathhook{#1}%
\end{verbatim}
@@ -1300,36 +1301,36 @@ The ~\@ignorefalse~ was appropriate before because the
\begin{old}\begin{verbatim}
% \@parmoderr
\end{verbatim}
-\end{old}
-Instead of complaining, you may just do your job.
-(/New v4.00)
+\end{old}
+Instead of complaining, you may just do your job.
+(/New v4.00)
\begin{code}\begin{verbatim}
\fi
- \fi
+ \fi
}
\end{verbatim}
\end{code}
-(New v4.00) The shorthand just does what happened
-with ~linenox0.sty~ before ~ednmath0.sty~ (New v4.1:
-now ~mathrefs~ option) appeared, and
-the hook is initialized to serve the same purpose.
-So errors come just where Stephan had built them in,
-and this is just the \LaTeX\ ~\marginpar~ behaviour.
+(New v4.00) The shorthand just does what happened
+with ~linenox0.sty~ before ~ednmath0.sty~ (New v4.1:
+now ~mathrefs~ option) appeared, and
+the hook is initialized to serve the same purpose.
+So errors come just where Stephan had built them in,
+and this is just the \LaTeX\ ~\marginpar~ behaviour.
\begin{code}\begin{verbatim}
\def\@LN@postlabel#1{\g@addto@macro\@LN@labellist{#1\@lt}%
- \vadjust{\penalty-\@Mllbcodepen}}
+ \vadjust{\penalty-\@Mllbcodepen}}
\def\@LN@mathhook#1{\@parmoderr}
\end{verbatim}
\end{code}
-(/New v4.00)
+(/New v4.00)
-\modulolinenumbers[3]
+\modulolinenumbers[3]
\firstlinenumber{1}
\section{%
The appearance of the line numbers
\unskip}\label{appearance}
\subsection{%
-Basic code %% own subsec. v4.2.
+Basic code %% own subsec. v4.2.
\unskip}
The line numbers are set as ~\tiny\sffamily\arabic{linenumber}~,
@@ -1338,10 +1339,10 @@ right of the text, or . . .
. . . here are the hooks:
\begin{code}\begin{verbatim}
-\def\makeLineNumberLeft{%
+\def\makeLineNumberLeft{%
\hss\linenumberfont\LineNumber\hskip\linenumbersep}
-\def\makeLineNumberRight{%
+\def\makeLineNumberRight{%
\linenumberfont\hskip\linenumbersep\hskip\columnwidth
\hb@xt@\linenumberwidth{\hss\LineNumber}\hss}
@@ -1356,7 +1357,7 @@ right of the text, or . . .
\end{code}
Margin switching requires ~pagewise~ numbering mode, but
choosing the left or right margin for the numbers always
-works.
+works.
\begin{code}\begin{verbatim}
\def\switchlinenumbers{\@ifstar
{\let\makeLineNumberOdd\makeLineNumberRight
@@ -1408,57 +1409,57 @@ Only the running mode counter may be reset, or preset,
for individual paragraphs. The pagewise counter must
give a unique anonymous number for each line.
-(New v4.3) ~\newcounter{linenumber}~
-was the only ~\newcounter~ in the whole package, and
-formerly I was near using ~\newcount~ instead. Yet
-~\newcounter~ may be quite useful for ~\includeonly~.
-It also supports resetting ``subcounters'', but what
-could these be? Well, ~edtable~ might introduce a
-subcounter for columns.
-(Note that \LaTeX's setting commands would work with
-~\newcount\c@linenumber~ already, apart from this.
-And perhaps sometimes ~\refstepcounter{linenumber}~
-wouldn't work---cf._my discussion of ~\stepcounter~ in
-subsection_\ref{ss:MLN}, similarly ~\refstep...~ would
-be quite useless.
-Even the usual redefinitions of ~\thelinenumber~ would
-work. It is nice, on the other hand, that
-~\thelinenumber~ is predefined here. \LaTeX's
-initialization of the value perhaps just serves making
-clear \LaTeX\ counters should always be changed
-globally.---Shortened and improved the discussion here.)
-(/New v4.3)
-
-(New v4.22)
-~\c@linenumber~ usually is---globally---incremented by
-~\stepcounter~ (at present), so resetting it locally would
-raise the save stack problem of \TeX book p._301, moreover
-it would be is useless, there is no hope of keeping the
-values local (but see subsection_\ref{ss:ILN}). So I insert
-~\global~: (/New v4.22)
-\begin{code}\begin{verbatim}
-\newcommand*\resetlinenumber[1][\@ne]{%
+(New v4.3) ~\newcounter{linenumber}~
+was the only ~\newcounter~ in the whole package, and
+formerly I was near using ~\newcount~ instead. Yet
+~\newcounter~ may be quite useful for ~\includeonly~.
+It also supports resetting ``subcounters'', but what
+could these be? Well, ~edtable~ might introduce a
+subcounter for columns.
+(Note that \LaTeX's setting commands would work with
+~\newcount\c@linenumber~ already, apart from this.
+And perhaps sometimes ~\refstepcounter{linenumber}~
+wouldn't work---cf._my discussion of ~\stepcounter~ in
+subsection_\ref{ss:MLN}, similarly ~\refstep...~ would
+be quite useless.
+Even the usual redefinitions of ~\thelinenumber~ would
+work. It is nice, on the other hand, that
+~\thelinenumber~ is predefined here. \LaTeX's
+initialization of the value perhaps just serves making
+clear \LaTeX\ counters should always be changed
+globally.---Shortened and improved the discussion here.)
+(/New v4.3)
+
+(New v4.22)
+~\c@linenumber~ usually is---globally---incremented by
+~\stepcounter~ (at present), so resetting it locally would
+raise the save stack problem of \TeX book p._301, moreover
+it would be is useless, there is no hope of keeping the
+values local (but see subsection_\ref{ss:ILN}). So I insert
+~\global~: (/New v4.22)
+\begin{code}\begin{verbatim}
+\newcommand*\resetlinenumber[1][\@ne]{%
\global % v4.22
\c@runninglinenumber#1\relax}
\end{verbatim}
\end{code}
-(New v4.00)
+(New v4.00)
\begin{old}\begin{verbatim}
% \newcommand\resetlinenumber[1][1]{\c@runninglinenumber#1}
\end{verbatim}
\end{old}
-Added ~\relax~, being quite sure that this does no harm
-and is quite important, as with ~\setcounter~ etc.
-I consider this a bug fix (although perhaps no user has
-ever had a problem with this). (/New v4.00)
+Added ~\relax~, being quite sure that this does no harm
+and is quite important, as with ~\setcounter~ etc.
+I consider this a bug fix (although perhaps no user has
+ever had a problem with this). (/New v4.00)
-(v4.22: I had made much fuss about resetting subordinate
+(v4.22: I had made much fuss about resetting subordinate
counters here---removed, somewhat postponed.)
\subsection{%
Running line numbers
-\unskip}
+\unskip}
Running mode is easy, ~\LineNumber~ and ~\theLineNumber~
produce ~\thelinenumber~, which defaults to
@@ -1479,12 +1480,12 @@ counter. This is the default mode of operation.
\subsection{%
Pagewise line numbers
-\unskip}\label{ss:PW}
+\unskip}\label{ss:PW}
Difficult, if you think about it. The number has to be
printed when there is no means to know on which page it
-will end up, except through the aux-file. My solution
-is really expensive, but quite robust.
+will end up, except through the aux-file. My solution
+is really expensive, but quite robust.
With version ~v2.00~ the hashsize requirements are
reduced, because we do not need one controlsequence for
@@ -1525,53 +1526,53 @@ there might else be in ~\thepage~.
\end{verbatim}
\end{code}
(New v4.00) (UL)
-As Daniel Doherty observed, the earlier line
+As Daniel Doherty observed, the earlier line
\begin{old}\begin{verbatim}
% \string\@LN{\the\c@linenumber}{\noexpand\the\c@page}}}
\end{verbatim}
\end{old}
-here may lead into an infinite loop when the user resets
-the page number (think of ~\pagenumbering~, e.g.).
-Stephan and I brief\/ly discussed the matter and decided
-to introduce a ``physical''-page counter to which
-~\logtheLineNumber~ refers. It was Stephan's idea to use
-~\cl@page~ for reliably augmenting the ``physical''-page
-counter. However, this relies on the output routine once
-doing ~\stepcounter{page}~. Before Stephan's
-suggestion, I had thought of appending the stepping to
-\LaTeX's ~\@outputpage~.---So the macro definition ends
-as follows.
-\begin{code}\begin{verbatim}
- \string\@LN{\the\c@linenumber}{%
-\end{verbatim}
-\end{code}
-(New v4.2)
-The `truepage' counter must start with ~\c@~ so it works
-with ~\include~, and the ~\@addtoreset~ below is needed
-for the same purpose.
-\begin{code}\begin{verbatim}
- \noexpand\the\c@LN@truepage}}}
+here may lead into an infinite loop when the user resets
+the page number (think of ~\pagenumbering~, e.g.).
+Stephan and I brief\/ly discussed the matter and decided
+to introduce a ``physical''-page counter to which
+~\logtheLineNumber~ refers. It was Stephan's idea to use
+~\cl@page~ for reliably augmenting the ``physical''-page
+counter. However, this relies on the output routine once
+doing ~\stepcounter{page}~. Before Stephan's
+suggestion, I had thought of appending the stepping to
+\LaTeX's ~\@outputpage~.---So the macro definition ends
+as follows.
+\begin{code}\begin{verbatim}
+ \string\@LN{\the\c@linenumber}{%
+\end{verbatim}
+\end{code}
+(New v4.2)
+The `truepage' counter must start with ~\c@~ so it works
+with ~\include~, and the ~\@addtoreset~ below is needed
+for the same purpose.
+\begin{code}\begin{verbatim}
+ \noexpand\the\c@LN@truepage}}}
-\newcount\c@LN@truepage
+\newcount\c@LN@truepage
\g@addto@macro\cl@page{\global\advance\c@LN@truepage\@ne}
\@addtoreset{LN@truepage}{@ckpt}
\end{verbatim}
\end{code}
-(/New v4.2) I had thought of offering more
-features of a \LaTeX\ counter. However, the user should
-better \emph{not} have access to this counter. ~\c@page~
-should suffice as a pagewise master counter.---To be sure,
-along the present lines the user \emph{can} manipulate
-~\c@LN@truepage~ by ~\stepcounter{page}~. E.g., she might
-do this in order to manually insert a photograph. Well,
-seems not to harm.
+(/New v4.2) I had thought of offering more
+features of a \LaTeX\ counter. However, the user should
+better \emph{not} have access to this counter. ~\c@page~
+should suffice as a pagewise master counter.---To be sure,
+along the present lines the user \emph{can} manipulate
+~\c@LN@truepage~ by ~\stepcounter{page}~. E.g., she might
+do this in order to manually insert a photograph. Well,
+seems not to harm.
-The above usage of ~\g@addto@macro~ and ~\cl@page~ may be
-not as stable as Stephan intended. His proposal used
-~\xdef~ directly. But he used ~\cl@page~ as well, and who
-knows \dots{} And as to ~\g@addto@macro~, I have introduced
-it for list macros anyway.
-(/UL) (/New v4.00)
+The above usage of ~\g@addto@macro~ and ~\cl@page~ may be
+not as stable as Stephan intended. His proposal used
+~\xdef~ directly. But he used ~\cl@page~ as well, and who
+knows \dots{} And as to ~\g@addto@macro~, I have introduced
+it for list macros anyway.
+(/UL) (/New v4.00)
From the aux-file we get one macro ~\LN@P~<page> for each
page with line numbers on it. This macro calls four other
@@ -1582,7 +1583,7 @@ on which page the current line number is located.
We need sort of a pointer to the first page with line
numbers, initiallized to point to nothing:
\begin{code}\begin{verbatim}
-\def\LastNumberedPage{first}
+\def\LastNumberedPage{first}
\def\LN@Pfirst{\nextLN\relax}
\end{verbatim}
\end{code}
@@ -1597,7 +1598,7 @@ themselves in an ~\xdef~
\end{code}
During the end-document run through the aux-files, we
disable ~\@LN~. I may put in a check here later, to give
-a rerun recommendation.
+a rerun recommendation.
\begin{code}\begin{verbatim}
\AtEndDocument{\let\@LN\@gobbletwo}
\end{verbatim}
@@ -1611,7 +1612,7 @@ If ~\LN@P~<page> is undefined, initialize it with the
current page and line number, with the
\emph{pointer-to-the-next-page} pointing to nothing. And
the macro for the previous page will be redefined to point
-to the current one.
+to the current one.
If the macro for the current page already exists, just
redefine the \emph{last-line-number} entry.
@@ -1626,8 +1627,8 @@ following page later.
\def\@@LN#1#2#3#4{\ifx#1\relax
\ifx#2\relax\gdef#2{#3}\fi
- \expandafter\@@@LN\csname LN@P\LastNumberedPage\endcsname#1%
- \xdef#1{\lastLN{#3}\firstLN{#3}%
+ \expandafter\@@@LN\csname LN@P\LastNumberedPage\endcsname#1%
+ \xdef#1{\lastLN{#3}\firstLN{#3}%
\pageLN{#4}{\@LN@column}{#2}\nextLN\relax}%
\else
\def\lastLN##1{\noexpand\lastLN{#3}}%
@@ -1638,7 +1639,7 @@ following page later.
\end{code}
The previous page macro gets its pointer to the
current one, replacing the ~\relax~ with the cs-token
-~\LN@P~<page>.
+~\LN@P~<page>.
\begin{code}\begin{verbatim}
\def\@@@LN#1#2{{\def\nextLN##1{\noexpand\nextLN\noexpand#2}%
\xdef#1{#1}}}
@@ -1650,12 +1651,12 @@ the last one came from, or maybe the next page. However, it can
be a completely different one. We maintain a cache,
which is ~\let~ to the last page's macro. But for now
it is initialized to expand ~\LN@first~, where the poiner
-to the first numbered page has been stored in.
+to the first numbered page has been stored in.
\begin{code}\begin{verbatim}
\def\NumberedPageCache{\LN@Pfirst}
\end{verbatim}
\end{code}
-To find out on which page the current ~\c@linenumber~ is,
+To find out on which page the current ~\c@linenumber~ is,
we define the four dynamic macros to do something usefull
and execute the current cache macro. ~\lastLN~ is run
first, testing if the line number in question may be on a
@@ -1671,7 +1672,7 @@ Else, if ~\firstLN~ finds out that we need an earlier
page, we start over from the beginning. Else, ~\nextLN~
will be disabled, and ~\pageLN~ will run
~\gotNumberedPage~ with four arguments: the first line
-number on this column, the page number, the column
+number on this column, the page number, the column
number, and the first line on the page.
\begin{code}\begin{verbatim}
\def\testFirstNumberedPage#1{\ifnum#1>\c@linenumber
@@ -1697,7 +1698,7 @@ continue the search with the next page.
\end{verbatim}
\end{code}
When we switch to another page, we first have to make
-sure that it is there. If we are done with the last
+sure that it is there. If we are done with the last
page, we probably need to run \TeX\ again, but for the
rest of this run, the cache macro will just return four
zeros. This saves a lot of time, for example if you have
@@ -1705,7 +1706,7 @@ half of an aux-file from an aborted run, in the next run
the whole page-list would be searched in vain again and
again for the second half of the document.
-If there is another page, we iterate the search.
+If there is another page, we iterate the search.
\begin{code}\begin{verbatim}
\def\testNextNumberedPage#1{\ifx#1\relax
\global\def\NumberedPageCache{\gotNumberedPage0000}%
@@ -1722,10 +1723,10 @@ If there is another page, we iterate the search.
\linelabel{demo2}
\marginpar{\tiny\raggedright
Let's see if it finds the label
-on page \pageref{demo},
+on page \pageref{demo},
line \ref{demo}, and back here
on page \pageref{demo2}, line
-\ref{demo2}.
+\ref{demo2}.
\unskip}%
To separate the official hooks from the internals there is
this equivalence, to hook in later for whatever purpose:
@@ -1743,7 +1744,7 @@ the final line number to be printed.
\def\gotNumberedPage#1#2#3#4{\oddNumberedPagefalse
\ifodd \if@twocolumn #3\else #2\fi\relax\oddNumberedPagetrue\fi
- \advance\c@linenumber\@ne
+ \advance\c@linenumber\@ne
\ifcolumnwiselinenumbers
\subtractlinenumberoffset{#1}%
\else
@@ -1771,7 +1772,7 @@ the whole procedure, with the requested line number stored
in the ~\c@linenumber~ counter. This is what gets printed
to the aux-file to make a label:
\begin{code}\begin{verbatim}
-\def\thePagewiseLineNumber{\protect
+\def\thePagewiseLineNumber{\protect
\getpagewiselinenumber{\the\c@linenumber}}%
\end{verbatim}
\end{code}
@@ -1795,76 +1796,76 @@ numbered line
[MEM:] One macro per page. Great improvement over v1.02,
which had one control sequence per line in
addition. It blew the hash table after some five
-thousand lines.
+thousand lines.
\end{description}
\subsection{%
Twocolumn mode (New v3.06)
\unskip}
-Twocolumn mode requires another patch to the ~\output~
-routine, in order to print a column tag to the .aux
+Twocolumn mode requires another patch to the ~\output~
+routine, in order to print a column tag to the .aux
file.
\begin{code}\begin{verbatim}
-\AtBeginDocument{% v4.2, revtex4.cls (e.g.).
- % <- TODO v4.4+: Or better in \LineNoLaTeXOutput!?
- \let\@LN@orig@makecol\@makecol}
+\AtBeginDocument{% v4.2, revtex4.cls (e.g.).
+ % <- TODO v4.4+: Or better in \LineNoLaTeXOutput!?
+ \let\@LN@orig@makecol\@makecol}
\def\@LN@makecol{%
\@LN@orig@makecol
\setbox\@outputbox \vbox{%
\boxmaxdepth \@maxdepth
- \protected@write\@auxout{}{%
+ \protected@write\@auxout{}{%
\string\@LN@col{\if@firstcolumn1\else2\fi}%
}%
- \box\@outputbox
+ \box\@outputbox
}% \vbox
-} %% TODO cf. revtexln.sty.
+} %% TODO cf. revtexln.sty.
-\def\@LN@col{\def\@LN@column} % v4.22, removed #1.
+\def\@LN@col{\def\@LN@column} % v4.22, removed #1.
\@LN@col{1}
\end{verbatim}
\end{code}
\subsection{%
-Numbering modulo $m$, starting at $f$
-\unskip}\label{ss:Mod}
+Numbering modulo $m$, starting at $f$
+\unskip}\label{ss:Mod}
Most users want to have only one in five lines numbered.
~\LineNumber~ is supposed to produce the outfit of the
line number attached to the line, while ~\thelinenumber~
is used also for references, which should appear even if
-they are not multiples of five.
-
-(New v4.00) Moreover, some users want to
-control which line number should be printed first. Support
-of this is now introduced here---see ~\firstlinenumber~
-below.---~numline.sty~ by Michael Jaegermann and
-James Fortune offers controlling which \emph{final}
-line numbers should not be printed. What is
-it good for? We ignore this here until some user demands
-it.---Peter Wilson's ~ledmac.sty~ offers much different
-choices of line numbers to be printed, due to Wayne Sullivan.
-(/New v4.00)
-
-(New v4.22) ~\c@linenumbermodulo~ is rendered a
-fake counter, as discussed since v4.00. So it can
-no longer be set by ~\setcounter~. ~\modulolinenumbers~
-serves this purpose. Well, does anybody want to do
-what worked with ~\addtocounter~? (Then please tell
-me.)---At least, ~\value~ still works. For the same
-purpose I rename the fake `firstlinenumber' counter
-~\n@...~ to ~\c@...~. (/New v4.22)
+they are not multiples of five.
+
+(New v4.00) Moreover, some users want to
+control which line number should be printed first. Support
+of this is now introduced here---see ~\firstlinenumber~
+below.---~numline.sty~ by Michael Jaegermann and
+James Fortune offers controlling which \emph{final}
+line numbers should not be printed. What is
+it good for? We ignore this here until some user demands
+it.---Peter Wilson's ~ledmac.sty~ offers much different
+choices of line numbers to be printed, due to Wayne Sullivan.
+(/New v4.00)
+
+(New v4.22) ~\c@linenumbermodulo~ is rendered a
+fake counter, as discussed since v4.00. So it can
+no longer be set by ~\setcounter~. ~\modulolinenumbers~
+serves this purpose. Well, does anybody want to do
+what worked with ~\addtocounter~? (Then please tell
+me.)---At least, ~\value~ still works. For the same
+purpose I rename the fake `firstlinenumber' counter
+~\n@...~ to ~\c@...~. (/New v4.22)
\begin{old}\begin{verbatim}
-% \newcount\c@linenumbermodulo % removed for v4.22
+% \newcount\c@linenumbermodulo % removed for v4.22
\end{verbatim}
\end{old}
-(New v4.00) \par
-~\themodulolinenumber~ waits for being declared
-~\LineNumber~ by ~\modulolinenumbers~. (This has
-been so before, no change.) Here is how it
-looked before:
+(New v4.00) \par
+~\themodulolinenumber~ waits for being declared
+~\LineNumber~ by ~\modulolinenumbers~. (This has
+been so before, no change.) Here is how it
+looked before:
\begin{old}\begin{verbatim}
% \def\themodulolinenumber{{\@tempcnta\c@linenumber
% \divide\@tempcnta\c@linenumbermodulo
@@ -1872,219 +1873,219 @@ looked before:
% \ifnum\@tempcnta=\c@linenumber\thelinenumber\fi
% }}
\end{verbatim}
-\end{old}
-(UL) This was somewhat slow. This arithmetic
-happens at every line. This time I tend to declare an extra
-line counter (as opposed to my usual recommendations to use
-counters as rarely as possible) which is stepped every line.
-It could be incremented in the same way as ~\c@LN@truepage~
-is incremented via ~\cl@page~! This is another point in favour
-of ~{linenumber}~ being a \LaTeX\ counter!
-When this new counter equals ~\c@linenumbermodulo~, it is reset,
-and ~\thelinenumber~ is executed.---It gets much slower by my
-support of controlling the first line number below. I should
+\end{old}
+(UL) This was somewhat slow. This arithmetic
+happens at every line. This time I tend to declare an extra
+line counter (as opposed to my usual recommendations to use
+counters as rarely as possible) which is stepped every line.
+It could be incremented in the same way as ~\c@LN@truepage~
+is incremented via ~\cl@page~! This is another point in favour
+of ~{linenumber}~ being a \LaTeX\ counter!
+When this new counter equals ~\c@linenumbermodulo~, it is reset,
+and ~\thelinenumber~ is executed.---It gets much slower by my
+support of controlling the first line number below. I should
improve this.---On
-the other hand, time expense means very little nowadays,
-while the number of \TeX\ counters still is limited.
+the other hand, time expense means very little nowadays,
+while the number of \TeX\ counters still is limited.
-For the same purpose, moreover, attaching the line number
-box could be intercepted earlier (in ~\MakeLineNo~),
-without changing ~\LineNumber~. However, this may be
-bad for the latter's announcement as a wizard interface
+For the same purpose, moreover, attaching the line number
+box could be intercepted earlier (in ~\MakeLineNo~),
+without changing ~\LineNumber~. However, this may be
+bad for the latter's announcement as a wizard interface
in section_\ref{s:UserCmds}.
-(/UL)
+(/UL)
-Here is the new code. It is very near to my ~lnopatch.sty~
-code which introduced the first line number feature
-before.---I add starting with a ~\relax~ which is so often
-recommended---without understanding this really. At least,
-it will not harm.---Former group braces appear as
-~\begingroup~/~\endgroup~ here.
+Here is the new code. It is very near to my ~lnopatch.sty~
+code which introduced the first line number feature
+before.---I add starting with a ~\relax~ which is so often
+recommended---without understanding this really. At least,
+it will not harm.---Former group braces appear as
+~\begingroup~/~\endgroup~ here.
\begin{code}\begin{verbatim}
\def\themodulolinenumber{\relax
- \ifnum\c@linenumber<\c@firstlinenumber \else
- \begingroup
+ \ifnum\c@linenumber<\c@firstlinenumber \else
+ \begingroup
\@tempcnta\c@linenumber
- \advance\@tempcnta-\c@firstlinenumber
+ \advance\@tempcnta-\c@firstlinenumber
\divide\@tempcnta\c@linenumbermodulo
\multiply\@tempcnta\c@linenumbermodulo
- \advance\@tempcnta\c@firstlinenumber
+ \advance\@tempcnta\c@firstlinenumber
\ifnum\@tempcnta=\c@linenumber \thelinenumber \fi
- \endgroup
- \fi
+ \endgroup
+ \fi
}
\end{verbatim}
\end{code}
-(/New v4.00)
+(/New v4.00)
The user command to set the modulo counter:
-(New v4.31) \dots\ a star variant is introduced to implement
-Hillel Chayim Yisraeli's idea to print the first line number
-after an interruption of the edited text by some editor's
-text, regardless of the modulo. If it is 1, it is printed only
+(New v4.31) \dots\ a star variant is introduced to implement
+Hillel Chayim Yisraeli's idea to print the first line number
+after an interruption of the edited text by some editor's
+text, regardless of the modulo. If it is 1, it is printed only
with ~\firstlinenumber{1}~. I.e., you use ~\modulolinenumbers*~
-for the new feature, without the star you get the simpler
-behaviour that we have had so far. And you can switch back
-from the refined behaviour to the simple one by using
-~\modulolinenumbers~ without the star.---This enhancement
-is accompanied by a new package option ~modulo*~ which just
-executes ~\modulolinenumbers*~
-(subsection_\ref{ss:v3opts}).---`With ~\firstlinenumber{1}~'
-exactly means: `1' is printed if and only if the last
-~\firstlinenumber~ before or in the paragraph that follows
-the ``interruption'' has argument `1' (or something
-\emph{expanding} to `1', or (to) something that \TeX\
-``reads'' as 1, e.g.: a \TeX\ count register storing
-1).---At present, this behaviour may be unsatisfactory with
-pagewise line-numbering $\dots$ I'll make an experimental
+for the new feature, without the star you get the simpler
+behaviour that we have had so far. And you can switch back
+from the refined behaviour to the simple one by using
+~\modulolinenumbers~ without the star.---This enhancement
+is accompanied by a new package option ~modulo*~ which just
+executes ~\modulolinenumbers*~
+(subsection_\ref{ss:v3opts}).---`With ~\firstlinenumber{1}~'
+exactly means: `1' is printed if and only if the last
+~\firstlinenumber~ before or in the paragraph that follows
+the ``interruption'' has argument `1' (or something
+\emph{expanding} to `1', or (to) something that \TeX\
+``reads'' as 1, e.g.: a \TeX\ count register storing
+1).---At present, this behaviour may be unsatisfactory with
+pagewise line-numbering $\dots$ I'll make an experimental
extra package if someone complains \dots
\begin{code}\begin{verbatim}
-\newcommand\modulolinenumbers{%
+\newcommand\modulolinenumbers{%
\@ifstar
- {\def\@LN@maybe@moduloresume{%
+ {\def\@LN@maybe@moduloresume{%
\global\let\@LN@maybe@normalLineNumber
- \@LN@normalLineNumber}%
- \@LN@modulolinenos}%
+ \@LN@normalLineNumber}%
+ \@LN@modulolinenos}%
{\let\@LN@maybe@moduloresume\relax \@LN@modulolinenos}%
}
-\global\let\@LN@maybe@normalLineNumber\relax
-\let\@LN@maybe@moduloresume\relax
-\gdef\@LN@normalLineNumber{%
- \ifnum\c@linenumber=\c@firstlinenumber \else
+\global\let\@LN@maybe@normalLineNumber\relax
+\let\@LN@maybe@moduloresume\relax
+\gdef\@LN@normalLineNumber{%
+ \ifnum\c@linenumber=\c@firstlinenumber \else
\ifnum\c@linenumber>\@ne
- \def\LineNumber{\thelinenumber}%
- \fi
- \fi
+ \def\LineNumber{\thelinenumber}%
+ \fi
+ \fi
\end{verbatim}
\end{code}
-~\def~ instead of ~\let~ enables taking account of a
-redefinition of ~\thelinenumber~ in a present numbering
-environment (e.g.).
+~\def~ instead of ~\let~ enables taking account of a
+redefinition of ~\thelinenumber~ in a present numbering
+environment (e.g.).
\begin{code}\begin{verbatim}
\global\let\@LN@maybe@normalLineNumber\relax}
\end{verbatim}
\end{code}
-Instead of changing ~\LineNumber~ directly by
+Instead of changing ~\LineNumber~ directly by
~LN@moduloresume~, these tricks enable ~\modulolinenumbers*~
-to act as locally as I can make it. I don't know how to
-avoid that the output routine switches back to the normal
-modulo behaviour by a global change. (An ~\aftergroup~ may
+to act as locally as I can make it. I don't know how to
+avoid that the output routine switches back to the normal
+modulo behaviour by a global change. (An ~\aftergroup~ may
fail in admittedly improbable cases.)
\begin{code}\begin{verbatim}
\newcommand*\@LN@modulolinenos[1][\z@]{%
\end{verbatim}
\end{code}
-The definition of this macro is that of the former
-~\modulolinenumbers~. (/New v4.31)
+The definition of this macro is that of the former
+~\modulolinenumbers~. (/New v4.31)
\begin{code}\begin{verbatim}
\let\LineNumber\themodulolinenumber
- \ifnum#1>\@ne
- \chardef % v4.22, note below
+ \ifnum#1>\@ne
+ \chardef % v4.22, note below
\c@linenumbermodulo#1\relax
- \else\ifnum#1=\@ne
+ \else\ifnum#1=\@ne
\end{verbatim}
\end{code}
\begin{old}\begin{verbatim}
% \def\LineNumber{\thelinenumber}%
\end{verbatim}
-\end{old}
-(New v4.00) I am putting something here to enable
-~\firstlinenumber~ with $~\c@linenumbermodulo~=1$.
-With ~lnopatch.sty~, a trick was offered for this purpose.
-It is now obsolete.
+\end{old}
+(New v4.00) I am putting something here to enable
+~\firstlinenumber~ with $~\c@linenumbermodulo~=1$.
+With ~lnopatch.sty~, a trick was offered for this purpose.
+It is now obsolete.
\begin{code}\begin{verbatim}
- \def\LineNumber{\@LN@ifgreat\thelinenumber}%
+ \def\LineNumber{\@LN@ifgreat\thelinenumber}%
\end{verbatim}
\end{code}
-(/New v4.00)
+(/New v4.00)
\begin{code}\begin{verbatim}
\fi\fi
}
\end{verbatim}
\end{code}
-(New v4.00) The default of ~\@LN@ifgreat~ is
+(New v4.00) The default of ~\@LN@ifgreat~ is
\begin{code}\begin{verbatim}
\let\@LN@ifgreat\relax
\end{verbatim}
\end{code}
-The previous changes as soon as ~\firstlinenumber~ is used:
+The previous changes as soon as ~\firstlinenumber~ is used:
\begin{code}\begin{verbatim}
-\newcommand*\firstlinenumber[1]{%
- \chardef\c@firstlinenumber#1\relax
+\newcommand*\firstlinenumber[1]{%
+ \chardef\c@firstlinenumber#1\relax
\end{verbatim}
\end{code}
-No counter, little values allowed only---OK?---(UL)
-The change is local---OK? The good thing is that
-~\global\firstlinenumber{~<number>~}~ works. Moreover,
+No counter, little values allowed only---OK?---(UL)
+The change is local---OK? The good thing is that
+~\global\firstlinenumber{~<number>~}~ works. Moreover,
~\modulolinenumbers~ acts locally as well. (/UL)
-(New v4.31)
+(New v4.31)
\begin{code}\begin{verbatim}
- \let\@LN@ifgreat\@LN@ifgreat@critical}
+ \let\@LN@ifgreat\@LN@ifgreat@critical}
\def\@LN@ifgreat@critical{%
- \ifnum\c@linenumber<\c@firstlinenumber
- \expandafter \@gobble
- \fi}%
+ \ifnum\c@linenumber<\c@firstlinenumber
+ \expandafter \@gobble
+ \fi}%
\end{verbatim}
\end{code}
-(/New v4.31)
+(/New v4.31)
-The default
-value of ~\c@firstlinenumber~ %% v4.31
-is 0. This is best for what one would expect from modulo
-printing.
+The default
+value of ~\c@firstlinenumber~ %% v4.31
+is 0. This is best for what one would expect from modulo
+printing.
\begin{code}\begin{verbatim}
\let\c@firstlinenumber=\z@
\end{verbatim}
\end{code}
-For usage and effects of ~\modulolinenumbers~ and %% v4.31
-~\firstlinenumbers~, please consult section_\ref{s:UserCmds}.
-Two details on ~\firstlinenumbers~ here:
-(i)_~\firstlinenumber~ acts on a paragraph if and only if
-(a)_the paragraph is broken into lines ``in line-numbering
-mode'' (after ~\linenumbers~, e.g.);
-(b)_it is the last occurrence of a ~\firstlinenumbers~
-before or in the paragraph.
-(The practical applications of this that I can imagine
-don't seem appealing to me.)
-Cf._the explanation above of how ~\modulolinenumbers~ and
-~\firstlinenumbers~ interact---for this and for (ii),
-which is concerned with possible arguments for
-~\firstlinenumbers~.
+For usage and effects of ~\modulolinenumbers~ and %% v4.31
+~\firstlinenumbers~, please consult section_\ref{s:UserCmds}.
+Two details on ~\firstlinenumbers~ here:
+(i)_~\firstlinenumber~ acts on a paragraph if and only if
+(a)_the paragraph is broken into lines ``in line-numbering
+mode'' (after ~\linenumbers~, e.g.);
+(b)_it is the last occurrence of a ~\firstlinenumbers~
+before or in the paragraph.
+(The practical applications of this that I can imagine
+don't seem appealing to me.)
+Cf._the explanation above of how ~\modulolinenumbers~ and
+~\firstlinenumbers~ interact---for this and for (ii),
+which is concerned with possible arguments for
+~\firstlinenumbers~.
-Note that the line numbers of the present section
-demonstrate the two devices. (/New v4.00)
+Note that the line numbers of the present section
+demonstrate the two devices. (/New v4.00)
\begin{code}\begin{verbatim}
-\chardef\c@linenumbermodulo=5 % v4.2; ugly?
+\chardef\c@linenumbermodulo=5 % v4.2; ugly?
\modulolinenumbers[1]
\end{verbatim}
\end{code}
-(New v4.22) The new implementation through ~\chardef~
-decreases the functionality and raises certain compatibility
-problems. I face this without fear. The maximum modulo value
-is now ~255~. I expect that this suffices for usual applications.
-However, some users have ``abused'' ~lineno.sty~ to get
-~ednotes.sty~ features without line numbers, so have set the
-modulo to a value beyond the total number of lines in their
-edition. This ought to be replaced by
-~\let\makeLineNumber\relax~. (/New v4.22)
+(New v4.22) The new implementation through ~\chardef~
+decreases the functionality and raises certain compatibility
+problems. I face this without fear. The maximum modulo value
+is now ~255~. I expect that this suffices for usual applications.
+However, some users have ``abused'' ~lineno.sty~ to get
+~ednotes.sty~ features without line numbers, so have set the
+modulo to a value beyond the total number of lines in their
+edition. This ought to be replaced by
+~\let\makeLineNumber\relax~. (/New v4.22)
-\section{%
+\section{%
Package options
-\unskip}\label{s:Opts}
+\unskip}\label{s:Opts}
-(New v4.1)
-The last heading formerly was the heading of what is now
-subsection_\ref{ss:v3opts}. The options declared there were
-said to execute user commands only. This was wrong already
-concerning ~displaymath~ and ~hyperref~. At least, however,
-these options were no or almost no occasion to skip definitions
-or allocations. This is different with the options that we now
-insert.
+(New v4.1)
+The last heading formerly was the heading of what is now
+subsection_\ref{ss:v3opts}. The options declared there were
+said to execute user commands only. This was wrong already
+concerning ~displaymath~ and ~hyperref~. At least, however,
+these options were no or almost no occasion to skip definitions
+or allocations. This is different with the options that we now
+insert.
\subsection{%
@@ -2092,150 +2093,150 @@ Extended referencing to line numbers. (v4.2)
\unskip}
This subsection explains and declares package option ~addpageno~. %% v4.31
-If a line to whose number you refer by ~\ref~ is not on the
-present page, it may be useful to add the number of the page
-on which the line occurs---and perhaps it should not be added
-otherwise. In general, you could use the Standard \LaTeX\
-package varioref for this. However, the latter usually
+If a line to whose number you refer by ~\ref~ is not on the
+present page, it may be useful to add the number of the page
+on which the line occurs---and perhaps it should not be added
+otherwise. In general, you could use the Standard \LaTeX\
+package varioref for this. However, the latter usually
produces verbose output like `on the preceding page'---
-unless costumized---, while in critical editions, e.g., one
-may prefer just adding the page number and some mark on the
-left of the line number, irrespectively of how far the page is
-apart etc. To support this, package option ~addpageno~
-provides a command ~\vpagelineref~ to be used in place of
-~\ref~. This produces, e.g., `34.15' when referring to line_15
-on page_34 while the present page is not 34. You can customize
-the outcome, see the package file ~vplref.sty~ where the code
-and further details are. You may conceive of
-~\vpagelineref~ as a certain customization of varioref's
-~\vref~.
-
-This implies that option ~addpageno~ requires the files
-~vplref.sty~ and ~varioref.sty~. ~addpageno~ automatically
-loads both of them. Yet you can also load ~varioref.sty~
-on your own to use its package options.
-
-Of course, you might better introduce a shorter command name
-for ~\vpagelineref~ for your work, while we cannot predict
-here what shorthand will fit your work. E.g.,
+unless costumized---, while in critical editions, e.g., one
+may prefer just adding the page number and some mark on the
+left of the line number, irrespectively of how far the page is
+apart etc. To support this, package option ~addpageno~
+provides a command ~\vpagelineref~ to be used in place of
+~\ref~. This produces, e.g., `34.15' when referring to line_15
+on page_34 while the present page is not 34. You can customize
+the outcome, see the package file ~vplref.sty~ where the code
+and further details are. You may conceive of
+~\vpagelineref~ as a certain customization of varioref's
+~\vref~.
+
+This implies that option ~addpageno~ requires the files
+~vplref.sty~ and ~varioref.sty~. ~addpageno~ automatically
+loads both of them. Yet you can also load ~varioref.sty~
+on your own to use its package options.
+
+Of course, you might better introduce a shorter command name
+for ~\vpagelineref~ for your work, while we cannot predict
+here what shorthand will fit your work. E.g.,
~\newcommand{\lref}{\vpagelineref}~.
-If you really want to add the page number in \emph{any} case,
-use, e.g., some ~\myref~ instead of ~\ref~, after
-\[~newcommand*{\myref}{\pageref{#1}.\ref{#1}}~\]
-or what you like. You don't need the ~addpageno~ option in
-this case.
+If you really want to add the page number in \emph{any} case,
+use, e.g., some ~\myref~ instead of ~\ref~, after
+\[~newcommand*{\myref}{\pageref{#1}.\ref{#1}}~\]
+or what you like. You don't need the ~addpageno~ option in
+this case.
-~addpageno~ is due to a suggestion by Sergei Mariev.
+~addpageno~ is due to a suggestion by Sergei Mariev.
\begin{code}\begin{verbatim}
-\DeclareOption{addpageno}{%
- \AtEndOfPackage{\RequirePackage{vplref}[2005/04/25]}}
+\DeclareOption{addpageno}{%
+ \AtEndOfPackage{\RequirePackage{vplref}[2005/04/25]}}
\end{verbatim}
\end{code}
-\subsection{%
-\scs{linelabel} in math mode
+\subsection{%
+\scs{linelabel} in math mode
\unskip}\label{ss:MathRef}
-We have made some first steps towards allowing ~\linelabel~ in
-math mode. Because our code for this is presently experimental,
-we leave it to the user to decide for the experiment by calling
-option ~mathrefs~. We are in a hurry now and thus leave the
-code, explanations, and discussion in the separate package
-~ednmath0.sty~. Maybe we later find the time to improve the
-code and move the relevant content of ~ednmath0.sty~ to here.
-The optimal situation would be to define ~\linelabel~ from
-the start so it works in math mode, omitting the ~mathrefs~
-option.
+We have made some first steps towards allowing ~\linelabel~ in
+math mode. Because our code for this is presently experimental,
+we leave it to the user to decide for the experiment by calling
+option ~mathrefs~. We are in a hurry now and thus leave the
+code, explanations, and discussion in the separate package
+~ednmath0.sty~. Maybe we later find the time to improve the
+code and move the relevant content of ~ednmath0.sty~ to here.
+The optimal situation would be to define ~\linelabel~ from
+the start so it works in math mode, omitting the ~mathrefs~
+option.
-Actually, this package even provides adjustments for analogously
-allowing ~ednotes.sty~ commands in math mode. Loading the package
-is postponed to ~\AtBeginDocument~ when we know whether these
-adjustments are needed.
+Actually, this package even provides adjustments for analogously
+allowing ~ednotes.sty~ commands in math mode. Loading the package
+is postponed to ~\AtBeginDocument~ when we know whether these
+adjustments are needed.
\begin{code}\begin{verbatim}
-\DeclareOption{mathrefs}{\AtBeginDocument
- {\RequirePackage{ednmath0}[2004/08/20]}}
+\DeclareOption{mathrefs}{\AtBeginDocument
+ {\RequirePackage{ednmath0}[2004/08/20]}}
\end{verbatim}
\end{code}
-\subsection{%
+\subsection{%
Arrays, tabular environments (Revised v4.11)
-\unskip}\label{ss:Tab}
+\unskip}\label{ss:Tab}
This subsection explains and declares package options %% v4.31
~edtable~, ~longtable~, and ~nolongtablepatch~.
-The standard \LaTeX\ tabular environments come as single
-boxes, so the ~lineno.sty~ versions before v4.00 treated them as
-(parts of) single lines, printing (at most) one line number
-beside each and stepping the line number counter once only.
-Moreover, ~\linelabel~s got lost. Of course, tables are
-usually so high that you will want to treat each row like a
-line. (Christian Tapp even desires that the lines of table
-entries belonging to a single row are treated like ordinary
-lines.) Footnotes get lost in such environments as well, which
+The standard \LaTeX\ tabular environments come as single
+boxes, so the ~lineno.sty~ versions before v4.00 treated them as
+(parts of) single lines, printing (at most) one line number
+beside each and stepping the line number counter once only.
+Moreover, ~\linelabel~s got lost. Of course, tables are
+usually so high that you will want to treat each row like a
+line. (Christian Tapp even desires that the lines of table
+entries belonging to a single row are treated like ordinary
+lines.) Footnotes get lost in such environments as well, which
was bad for ~ednotes.sty~.
-We provide adjustments to count lines, print their numbers
-etc.\ as desired at least for \emph{some} \LaTeX\ tabular
-environments. (Like with other details, ``some'' is to some
-extent explained in ~edtable.sty~.) We do this similarly as
-with option ~mathrefs~ before. We leave code
-and explanations in the separate package ~edtable.sty~.
-(For wizards: this package provides adjustments for
-~ednotes.sty~ as well. However, in the present case we don't try
-to avoid them unless ~ednotes.sty~ is loaded.)
-Package option ~edtable~
-defines---by loading ~edtable.sty~---an environment ~{edtable}~
-which is able to change some \LaTeX\ tabular environments
-with the desired effects. (v4.11: ~edtable.sty~ v1.3 counts
-\LaTeX's ~{array}~ [etc.\@] as a ``tabular environment'' as
-well.)
-
-The ~{edtable}~ environment doesn't help with ~longtable.sty~,
-however. To make up for this, ~{longtable}~ is adjusted in a
-different way---and this happens only when another ~lineno.sty~
-option ~longtable~ is called. In this case, option ~edtable~
-needn't be called explicitly: option ~longtable~ works as if
-~edtable~ had been called.
-
-Now, we are convinced that vertical spacing around
-~{longtable}~ works wrongly---see \LaTeX\ bugs database
-tools/3180 and 3485, or see explanations in the package
+We provide adjustments to count lines, print their numbers
+etc.\ as desired at least for \emph{some} \LaTeX\ tabular
+environments. (Like with other details, ``some'' is to some
+extent explained in ~edtable.sty~.) We do this similarly as
+with option ~mathrefs~ before. We leave code
+and explanations in the separate package ~edtable.sty~.
+(For wizards: this package provides adjustments for
+~ednotes.sty~ as well. However, in the present case we don't try
+to avoid them unless ~ednotes.sty~ is loaded.)
+Package option ~edtable~
+defines---by loading ~edtable.sty~---an environment ~{edtable}~
+which is able to change some \LaTeX\ tabular environments
+with the desired effects. (v4.11: ~edtable.sty~ v1.3 counts
+\LaTeX's ~{array}~ [etc.\@] as a ``tabular environment'' as
+well.)
+
+The ~{edtable}~ environment doesn't help with ~longtable.sty~,
+however. To make up for this, ~{longtable}~ is adjusted in a
+different way---and this happens only when another ~lineno.sty~
+option ~longtable~ is called. In this case, option ~edtable~
+needn't be called explicitly: option ~longtable~ works as if
+~edtable~ had been called.
+
+Now, we are convinced that vertical spacing around
+~{longtable}~ works wrongly---see \LaTeX\ bugs database
+tools/3180 and 3485, or see explanations in the package
~ltabptch.sty~ (which is to be obtained from CTAN folder
\path{macros/latex/ltabptch}). Our conviction is so strong
that the ~longtable~ option loads---after ~longtable.sty~---the
patch package ~ltabptch.sty~. If the user doesn't want this
-(maybe preferring her own arrangement with the vertical
-spacing), she can forbid it by calling ~nolongtablepatch~.
-
-The following code just collects some choices, which are
-then executed in section_\ref{ss:ExOpt}. We use an ~\if...~
-without ~\newif~ since ~\if...true~ and ~\if...false~
-would occur at most two times and only within the present
-package. (~\AtEndOfClass{\RequirePackage{edtable}}~
-could be used instead, I just overlooked this. Now I don't
-change it because it allows to change the version requirement
+(maybe preferring her own arrangement with the vertical
+spacing), she can forbid it by calling ~nolongtablepatch~.
+
+The following code just collects some choices, which are
+then executed in section_\ref{ss:ExOpt}. We use an ~\if...~
+without ~\newif~ since ~\if...true~ and ~\if...false~
+would occur at most two times and only within the present
+package. (~\AtEndOfClass{\RequirePackage{edtable}}~
+could be used instead, I just overlooked this. Now I don't
+change it because it allows to change the version requirement
at one place only.)
\begin{code}\begin{verbatim}
-\let\if@LN@edtable\iffalse
+\let\if@LN@edtable\iffalse
\DeclareOption{edtable}{\let\if@LN@edtable\iftrue}
-\DeclareOption{longtable}{\let\if@LN@edtable\iftrue
+\DeclareOption{longtable}{\let\if@LN@edtable\iftrue
\PassOptionsToPackage{longtable}{edtable}}
-\DeclareOption{nolongtablepatch}{%
+\DeclareOption{nolongtablepatch}{%
\PassOptionsToPackage{nolongtablepatch}{edtable}}
\end{verbatim}
\end{code}
-(/New v4.1)
+(/New v4.1)
-\subsection{%
-Switch among settings
+\subsection{%
+Switch among settings
\unskip}\label{ss:v3opts}
-There is a bunch of package options that execute %% v4.2
-user commands only.
+There is a bunch of package options that execute %% v4.2
+user commands only.
Options ~left~ (~right~) put the line numbers on the left
(right) margin. This works in all modes. ~left~ is the
@@ -2261,9 +2262,9 @@ subtraction, getting sort of running numbers again. The
\runningpagewiselinenumbers}
\end{verbatim}
\end{code}
-In twocolumn mode, we can switch the line numbers to
+In twocolumn mode, we can switch the line numbers to
the outer margin, and/or start with number 1 in each
-column. Margin switching is covered by the ~switch~
+column. Margin switching is covered by the ~switch~
options.
\begin{code}\begin{verbatim}
\DeclareOption{columnwise}{\setpagewiselinenumbers
@@ -2281,7 +2282,7 @@ opportunity to establish the page on which they finally
come to rest. This allows the subtraction of the page
offset, getting the numbers starting with 1 on top of each
page, and margin switching in twoside formats becomes
-possible. The default mode is ~running~.
+possible. The default mode is ~running~.
The order of declaration of the options is important here
~pagewise~ must come after ~switch~, to overide running
@@ -2301,13 +2302,13 @@ real pagewise line numbers.
\end{verbatim}
\end{code}
The option ~modulo~ causes only those linenumbers to be
-printed which are multiples of five.
+printed which are multiples of five.
\begin{code}\begin{verbatim}
\DeclareOption{modulo}{\modulolinenumbers\relax}
\end{verbatim}
\end{code}
-Option ~modulo*~ modifies ~modulo~ in working like
-~\modulolinenumbers*~---see section_\ref{s:UserCmds}.
+Option ~modulo*~ modifies ~modulo~ in working like
+~\modulolinenumbers*~---see section_\ref{s:UserCmds}.
\begin{code}\begin{verbatim}
\DeclareOption{modulo*}{\modulolinenumbers*\relax}
\end{verbatim}
@@ -2322,28 +2323,28 @@ does. With this option, its just the opposite.
\DeclareOption{mathlines}{\linenumberdisplaymath}
\end{verbatim}
\end{code}
-~displaymath~ now calls for wrappers of the standard
-\LaTeX\ display math environment. This was previously
+~displaymath~ now calls for wrappers of the standard
+\LaTeX\ display math environment. This was previously
done by ~mlineno.sty~.
-(New v4.3) Option `displaymath' becomes default according
-to Erik \mbox{Luijten}'s suggestion. I was finally convinced
-of this as soon as I discovered how to avoid a spurious line
-number above ~\begin{linenomath}~ (subsection_\ref{ss:DM}).
-~\endlinenomath~ provides ~\ignorespaces~, so what could go
-wrong now?
+(New v4.3) Option `displaymath' becomes default according
+to Erik \mbox{Luijten}'s suggestion. I was finally convinced
+of this as soon as I discovered how to avoid a spurious line
+number above ~\begin{linenomath}~ (subsection_\ref{ss:DM}).
+~\endlinenomath~ provides ~\ignorespaces~, so what could go
+wrong now?
\begin{code}\begin{verbatim}
\DeclareOption{displaymath}{\PackageWarningNoLine{lineno}{%
- Option [displaymath] is obsolete -- default now!}}
+ Option [displaymath] is obsolete -- default now!}}
\end{verbatim}
\end{code}
-(/New v4.3)
+(/New v4.3)
\subsection{%
-Compatibility with \texttt{hyperref} %% own subsec. v4.3.
+Compatibility with \texttt{hyperref} %% own subsec. v4.3.
\unskip}
-The ~hyperref~ package, via ~nameref~, requires three more
-groups in the second argment of a ~\newlabel~. Well, why
+The ~hyperref~ package, via ~nameref~, requires three more
+groups in the second argment of a ~\newlabel~. Well, why
shouldn't it get them? (New v3.07) The presence of the
~nameref~ package is now detected automatically
~\AtBeginDocument~. (/New v3.07) (Fixed in v3.09) We try
@@ -2351,97 +2352,97 @@ to be smart, and test ~\AtBeginDocument~ if the ~nameref~
package is loaded, but ~hyperref~ postpones the loading of
~nameref~ too, so this is all in vain.
-(New v4.3) But we can also test at the first ~\linelabel~.
-Regarding the error-message for misplaced ~\linelabel~ from v4.11:
-previously, ~\linenumbers~ rendered ~\linelabel~ the genuine
-version of ~\linelabel~ from the start on. This doesn't work
-now, since ~\@LN@linelabel~ may change its meaning after the
-first ~\linenumbers~ and before a next one (if there is some).
-(/New v4.3)
+(New v4.3) But we can also test at the first ~\linelabel~.
+Regarding the error-message for misplaced ~\linelabel~ from v4.11:
+previously, ~\linenumbers~ rendered ~\linelabel~ the genuine
+version of ~\linelabel~ from the start on. This doesn't work
+now, since ~\@LN@linelabel~ may change its meaning after the
+first ~\linenumbers~ and before a next one (if there is some).
+(/New v4.3)
\begin{code}\begin{verbatim}
\DeclareOption{hyperref}{\PackageWarningNoLine{lineno}{%
- Option [hyperref] is obsolete.
+ Option [hyperref] is obsolete.
\MessageBreak The hyperref package is detected automatically.}}
-\AtBeginDocument{%
+\AtBeginDocument{%
\@ifpackageloaded{nameref}{%
\end{verbatim}
\end{code}
-(New v4.3) ``Global'' is merely ``symbolic'' ~\AtBeginDoc...~.
-If ~nameref~ is not detected here, the next ~\@LN@linelabel~
-will do almost the same, then globally indeed.
+(New v4.3) ``Global'' is merely ``symbolic'' ~\AtBeginDoc...~.
+If ~nameref~ is not detected here, the next ~\@LN@linelabel~
+will do almost the same, then globally indeed.
\begin{code}\begin{verbatim}
- \gdef\@LN@ExtraLabelItems{{}{}{}}%
+ \gdef\@LN@ExtraLabelItems{{}{}{}}%
}{%
- \global\let\@LN@@linelabel\@LN@linelabel
- \gdef\@LN@linelabel{%
+ \global\let\@LN@@linelabel\@LN@linelabel
+ \gdef\@LN@linelabel{%
\end{verbatim}
\end{code}
-~\@ifpackageloaded~ is ``preamble only'', its---very
-internal---preamble definition is replicated here:
+~\@ifpackageloaded~ is ``preamble only'', its---very
+internal---preamble definition is replicated here:
\begin{code}\begin{verbatim}
- \expandafter
- \ifx\csname ver@nameref.sty\endcsname\relax \else
- \gdef\@LN@ExtraLabelItems{{}{}{}}%
- \fi
+ \expandafter
+ \ifx\csname ver@nameref.sty\endcsname\relax \else
+ \gdef\@LN@ExtraLabelItems{{}{}{}}%
+ \fi
\end{verbatim}
\end{code}
-Now aim at the ``usual'' behaviour:
+Now aim at the ``usual'' behaviour:
\begin{code}\begin{verbatim}
- \global\let\@LN@linelabel\@LN@@linelabel
- \global\let\@LN@@linelabel\relax
+ \global\let\@LN@linelabel\@LN@@linelabel
+ \global\let\@LN@@linelabel\relax
\@LN@linelabel
- }%
+ }%
}%
-}
+}
\end{verbatim}
\end{code}
-(/New v4.3)
+(/New v4.3)
-(New v4.1)
-\subsection{%
-A note on calling so many options
-\unskip}
+(New v4.1)
+\subsection{%
+A note on calling so many options
+\unskip}
-The number of package options may stimulate worrying about how to
-\emph{enter} all the options that one would like to use---they may
-not fit into one line. Fortunately, you can safely break code lines
+The number of package options may stimulate worrying about how to
+\emph{enter} all the options that one would like to use---they may
+not fit into one line. Fortunately, you can safely break code lines
after the commas separating the option names in the ~\usepackage~
-command (no comment marks needed).
+command (no comment marks needed).
-\subsection{%
+\subsection{%
Execute options
\unskip}\label{ss:ExOpt}
-We stop declaring options and execute the ones that are
+We stop declaring options and execute the ones that are
called by the user. (/New v4.1)
\begin{code}\begin{verbatim}
\ProcessOptions
\end{verbatim}
\end{code}
-(New v4.1) Now we know whether ~edtable.sty~ is wanted
-and (if it is) with which options it is to be called.
+(New v4.1) Now we know whether ~edtable.sty~ is wanted
+and (if it is) with which options it is to be called.
\begin{code}\begin{verbatim}
-\if@LN@edtable \RequirePackage{edtable}[2005/03/07] \fi
+\if@LN@edtable \RequirePackage{edtable}[2005/03/07] \fi
\end{verbatim}
\end{code}
-(/New v4.1)
+(/New v4.1)
\section{%
-Former package extensions
+Former package extensions
\label{s:Xt}\unskip}
-The extensions in this section were previously supplied
-in separate ~.sty~ files.
+The extensions in this section were previously supplied
+in separate ~.sty~ files.
\subsection{%
$display math$
\unskip}\label{ss:display}
-(New v4.3) From now on, you no longer need to type
-the ~{linenomath}~ environment with the ~\[~, ~{equation}~,
-and ~{eqnarray}~ environments---and you no longer need to
-use the former package option ~displaymath~ for this feature.
-(/New v4.3)
+(New v4.3) From now on, you no longer need to type
+the ~{linenomath}~ environment with the ~\[~, ~{equation}~,
+and ~{eqnarray}~ environments---and you no longer need to
+use the former package option ~displaymath~ for this feature.
+(/New v4.3)
The standard \LaTeX\ display math environments are
wrapped in a ~{linenomath}~ environment.
@@ -2456,9 +2457,9 @@ the ~\mathindent~ register. (/New 3.05)
(New 3.05a) for ~{eqnarray}~s we rather keep the
old trick. (/New 3.05a)
-(New 3.08) Wrap ~\[~ and ~\]~ into ~{linenomath}~,
+(New 3.08) Wrap ~\[~ and ~\]~ into ~{linenomath}~,
instead of ~{displaymath}~. Also save the definition
-of ~\equation~, instead of replicating the current
+of ~\equation~, instead of replicating the current
\LaTeX\ definition. (/New 3.08)
\begin{code}\begin{verbatim}
\@ifundefined{mathindent}{
@@ -2477,7 +2478,7 @@ of ~\equation~, instead of replicating the current
{\linenomath\LN@equation}%
{\LN@endequation\endlinenomath}%
- }{}% \@ifundefined{mathindent} -- 3rd arg v4.2, was \par!
+ }{}% \@ifundefined{mathindent} -- 3rd arg v4.2, was \par!
\let\LN@eqnarray\eqnarray
\let\LN@endeqnarray\endeqnarray
@@ -2486,38 +2487,38 @@ of ~\equation~, instead of replicating the current
{\LN@endeqnarray\endlinenomath}%
\end{verbatim}
\end{code}
-(UL) Indeed. The \LaTeX\ macros are saved for
-unnumbered mode, which is detected by ~\linenomath~.
-(/UL)
+(UL) Indeed. The \LaTeX\ macros are saved for
+unnumbered mode, which is detected by ~\linenomath~.
+(/UL)
\subsection{%
Line numbers in internal vertical mode
\unskip}\label{ss:ILN}
-The command ~\internallinenumbers~ adds line numbers in
+The command ~\internallinenumbers~ adds line numbers in
internal vertical mode, but with limitations: we assume
fixed baseline skip.
-(v4.22) v3.10 provided a global (~\global\advance~)
-as well as a local version (star-form, using
-~\c@internallinenumber~). ~\resetlinenumbers~ acted
-locally and was here used with the global version---save
-stack danger, \TeX book p._301---in v4.00 I
-disabled the global version therefore. Now I find that
-it is better to keep a global version, and the now global
-~\resetlinenumbers~ is perfect for this. The global version
-allows continuing the ``internal'' numbers in the ensuing
-``external'' text, and---unless reset by brackets
-argument---continuing the above series of line numbers.
-As with v3.10, the local version always starts with
-line number one. A new ~\@LN@iglobal~ steps ~\global~ly
-in the global version, otherwise it is ~\relax~.
-(I also remove all my stupid discussions as of v4.00.
+(v4.22) v3.10 provided a global (~\global\advance~)
+as well as a local version (star-form, using
+~\c@internallinenumber~). ~\resetlinenumbers~ acted
+locally and was here used with the global version---save
+stack danger, \TeX book p._301---in v4.00 I
+disabled the global version therefore. Now I find that
+it is better to keep a global version, and the now global
+~\resetlinenumbers~ is perfect for this. The global version
+allows continuing the ``internal'' numbers in the ensuing
+``external'' text, and---unless reset by brackets
+argument---continuing the above series of line numbers.
+As with v3.10, the local version always starts with
+line number one. A new ~\@LN@iglobal~ steps ~\global~ly
+in the global version, otherwise it is ~\relax~.
+(I also remove all my stupid discussions as of v4.00.
And I use ~\newcommand~.) (v4.22)
\begin{code}\begin{verbatim}
-\let\@LN@iglobal\global % v4.22
+\let\@LN@iglobal\global % v4.22
-\newcommand\internallinenumbers{\setrunninglinenumbers
+\newcommand\internallinenumbers{\setrunninglinenumbers
\let\@@par\internallinenumberpar
\ifx\@par\@@@par\let\@par\internallinenumberpar\fi
\ifx\par\@@@par\let\par\internallinenumberpar\fi
@@ -2536,7 +2537,7 @@ And I use ~\newcommand~.) (v4.22)
\newcount\c@internallinenumber
\newcount\c@internallinenumbers
-\newcommand\internallinenumberpar{%
+\newcommand\internallinenumberpar{%
\ifvmode\@@@par\else\ifinner\@@@par\else\@@@par
\begingroup
\c@internallinenumbers\prevgraf
@@ -2545,14 +2546,14 @@ And I use ~\newcommand~.) (v4.22)
\ht\@tempboxa\z@
\nobreak\vskip-\prevdepth
\nointerlineskip\box\@tempboxa
- \endgroup
+ \endgroup
\fi\fi
}
-\newcommand\makeinternalLinenumbers{%
+\newcommand\makeinternalLinenumbers{%
\ifnum\c@internallinenumbers>\z@ % v4.2
- \hb@xt@\z@{\makeLineNumber}%
- \@LN@iglobal % v4.22
+ \hb@xt@\z@{\makeLineNumber}%
+ \@LN@iglobal % v4.22
\advance\c@linenumber\@ne
\advance\c@internallinenumbers\m@ne
\expandafter\makeinternalLinenumbers\fi
@@ -2620,14 +2621,14 @@ Numbered quotation environments
The ~{numquote}~ and ~{numquotation}~
environments are like ~{quote}~ and
~{quotation}~, except there will be line
-numbers.
+numbers.
An optional argument gives the number to count
from. A star ~*~ (inside or outside the closing
~}~) prevent the reset of the line numbers.
Default is to count from one.
-(v4.22: A local version using ~\c@internallinenumber~
+(v4.22: A local version using ~\c@internallinenumber~
might be useful, see subsection_\ref{ss:ILN}.) %% TODO v4.4+
\begin{code}\begin{verbatim}
\newcommand\quotelinenumbers
@@ -2704,227 +2705,284 @@ without special height lines. All lines must be
\end{verbatim}
\end{code}
+\subsection{%
+\textsf{amsmath} patches
+\unskip}\label{ss:AMSMath}
+
+(New v5.0) Patches ~amsmath~ to work with ~lineno~. These patches used to be
+supplied by the ~linenoamsmath~ package. See ~linenoamsmathdemo.pdf~ for a
+demonstration.
+
+\begin{code}\begin{verbatim}
+\RequirePackage{etoolbox}
+
+\newcommand*\linenoamsmath@patch[1]{%
+ \cspreto{#1}{\linenomath}%
+ \cspreto{#1*}{\linenomath}%
+ \csappto{end#1}{\endlinenomath}%
+ \csappto{end#1*}{\endlinenomath}%
+}
+\newcount\linenoamsmath@ams@eqpen
+\cspreto{math@cr@}{\global\@eqpen\numexpr\@eqpen+\linenoamsmath@ams@eqpen\relax}
+\newcommand*\linenoamsmath@patch@ams[1]{%
+ \cspreto{#1}{%
+ \linenomath%
+ \postdisplaypenalty=0%
+ \global\linenoamsmath@ams@eqpen\interdisplaylinepenalty%
+ }%
+ \cspreto{#1*}{%
+ \linenomath%
+ \postdisplaypenalty=0%
+ \global\linenoamsmath@ams@eqpen\interdisplaylinepenalty%
+ }%
+ \csappto{end#1}{%
+ \global\linenoamsmath@ams@eqpen\z@%
+ \endlinenomath%
+ }%
+ \csappto{end#1*}{%
+ \global\linenoamsmath@ams@eqpen\z@%
+ \endlinenomath%
+ }%
+}
+\linenoamsmath@patch{equation}
+\linenoamsmath@patch@ams{multline}
+\linenoamsmath@patch@ams{gather}
+\linenoamsmath@patch@ams{align}
+\linenoamsmath@patch@ams{alignat}
+\linenoamsmath@patch@ams{flalign}
+\let\linenoamsmath@ams@mmeasure\mmeasure@
+\def\mmeasure@#1{%
+ \global\linenoamsmath@ams@eqpen\z@%
+ \begingroup%
+ \interdisplaylinepenalty=0%
+ \linenoamsmath@ams@mmeasure{#1\\}%
+ \endgroup%
+ \global\linenoamsmath@ams@eqpen\interdisplaylinepenalty%
+}
+\end{verbatim}
+\end{code}
+
\section{%
Move \scs{vadjust} items (New v4.00)
-\unskip}\label{s:MVadj}
+\unskip}\label{s:MVadj}
-This section completes reviving ~\pagebreak~, ~\nopagebreak~,
-~\vspace~, and the star and optional form of ~\\~. This was
-started in section_\ref{ss:output} and resumed in
+This section completes reviving ~\pagebreak~, ~\nopagebreak~,
+~\vspace~, and the star and optional form of ~\\~. This was
+started in section_\ref{ss:output} and resumed in
section_\ref{ss:MLN} and subsection_\ref{ss:calls}.
-The problem was explained in section_\ref{ss:output}:
-~\vadjust~ items come out at a bad position, and the
-\LaTeX\ commands named before work with ~\vadjust~ indeed.
-Our solution was sketched there as well.
+The problem was explained in section_\ref{ss:output}:
+~\vadjust~ items come out at a bad position, and the
+\LaTeX\ commands named before work with ~\vadjust~ indeed.
+Our solution was sketched there as well.
According to the caveat in subsection_\ref{ss:OnOff} concerning
-~\ifLineNumbers~, the \LaTeX\ commands enumerated may go
-wrong if you switch line numbering inside or at the end of
-a paragraph.
+~\ifLineNumbers~, the \LaTeX\ commands enumerated may go
+wrong if you switch line numbering inside or at the end of
+a paragraph.
\subsection{%
Redefining \scs{vadjust}
\unskip}\label{ss:PVadj}
-~\vadjust~ will temporarily be changed into the following
-command.
+~\vadjust~ will temporarily be changed into the following
+command.
\begin{code}\begin{verbatim}
-\def\PostponeVadjust#1{%
- \global\let\vadjust\@LN@@vadjust
+\def\PostponeVadjust#1{%
+ \global\let\vadjust\@LN@@vadjust
\end{verbatim}
\end{code}
-This undoes a ~\global\let\vadjust\PostponeVadjust~ which will
-start each of the refined \LaTeX\ commands. The ~\global~s
-are most probably superfluous. They might be useful should one
-~\vadjust~ appear in a group starting after the change of
-~\vadjust~ into ~\PostponeVadjust~.
-(UL) Even the undoing may be superfluous, cf._discussion
-in section_\ref{ss:ReDef} below. (UL)
+This undoes a ~\global\let\vadjust\PostponeVadjust~ which will
+start each of the refined \LaTeX\ commands. The ~\global~s
+are most probably superfluous. They might be useful should one
+~\vadjust~ appear in a group starting after the change of
+~\vadjust~ into ~\PostponeVadjust~.
+(UL) Even the undoing may be superfluous, cf._discussion
+in section_\ref{ss:ReDef} below. (UL)
\begin{code}\begin{verbatim}
- \vadjust{\penalty-\@Mppvacodepen}%
- \g@addto@macro\@LN@vadjustlist{#1\@lt}%
+ \vadjust{\penalty-\@Mppvacodepen}%
+ \g@addto@macro\@LN@vadjustlist{#1\@lt}%
+}
+\let\@LN@@vadjust\vadjust
+\global\let\@LN@vadjustlist\@empty
+\global\let\@LN@do@vadjusts\relax
+\end{verbatim}
+\end{code}
+These ~\global~s are just to remind that
+all the changes of the strings after ~\let~ should be
+~\global~ (\TeX book p._301). ~\@LN@vadjustlist~ collects
+the ~\vadjust~ items of a paragraph. ~\PassVadjustList~
+tears one ~\vadjust~ item for the current line out of
+~\@LN@vadjustlist~ and puts it into ~\@LN@do@vadjusts~.
+The latter is encountered each line in ~\MakeLineNo~
+(section_\ref{ss:MLN}), while those \LaTeX\ ~\vadjust~
+commands will come rather rarely. So I decided that
+~\@LN@do@vadjust~ is ~\relax~ until a ~\vadjust~ item
+is waiting. In the latter case, ~\@LN@do@vadjusts~
+is turned into a list macro which resets itself to
+~\relax~ when the other contents have been placed in
+the vertical list.---~\PassVadjustList~ is invoked by
+the output routine (section_\ref{ss:output}), so the
+~\box255~ must be put back.
+\begin{code}\begin{verbatim}
+\def\PassVadjustList{%
+ \unvbox\@cclv
+ \expandafter \@LN@xnext \@LN@vadjustlist \@@
+ \@tempa \@LN@vadjustlist
+ \ifx\@LN@do@vadjusts\relax
+ \gdef\@LN@do@vadjusts{\global\let\@LN@do@vadjusts\relax}%
+ \fi
+ \expandafter \g@addto@macro \expandafter \@LN@do@vadjusts
+ \expandafter {\@tempa}%
}
-\let\@LN@@vadjust\vadjust
-\global\let\@LN@vadjustlist\@empty
-\global\let\@LN@do@vadjusts\relax
-\end{verbatim}
-\end{code}
-These ~\global~s are just to remind that
-all the changes of the strings after ~\let~ should be
-~\global~ (\TeX book p._301). ~\@LN@vadjustlist~ collects
-the ~\vadjust~ items of a paragraph. ~\PassVadjustList~
-tears one ~\vadjust~ item for the current line out of
-~\@LN@vadjustlist~ and puts it into ~\@LN@do@vadjusts~.
-The latter is encountered each line in ~\MakeLineNo~
-(section_\ref{ss:MLN}), while those \LaTeX\ ~\vadjust~
-commands will come rather rarely. So I decided that
-~\@LN@do@vadjust~ is ~\relax~ until a ~\vadjust~ item
-is waiting. In the latter case, ~\@LN@do@vadjusts~
-is turned into a list macro which resets itself to
-~\relax~ when the other contents have been placed in
-the vertical list.---~\PassVadjustList~ is invoked by
-the output routine (section_\ref{ss:output}), so the
-~\box255~ must be put back.
-\begin{code}\begin{verbatim}
-\def\PassVadjustList{%
- \unvbox\@cclv
- \expandafter \@LN@xnext \@LN@vadjustlist \@@
- \@tempa \@LN@vadjustlist
- \ifx\@LN@do@vadjusts\relax
- \gdef\@LN@do@vadjusts{\global\let\@LN@do@vadjusts\relax}%
- \fi
- \expandafter \g@addto@macro \expandafter \@LN@do@vadjusts
- \expandafter {\@tempa}%
-}
\end{verbatim}
\end{code}
\subsection{%
-Redefining the \LaTeX\ commands
+Redefining the \LaTeX\ commands
\unskip}\label{ss:ReDef}
-Now we change ~\pagebreak~ etc.\
-so that they use ~\PostponeVadjust~ in place of ~\vadjust~.
-We try to do this as independently as possible of the
-implementation of the \LaTeX\ commands to be redefined.
-Therefore, we don't just copy macro definition code from any
-single implementation (say, latest \LaTeX) and insert our
-changes, but attach a conditional
-~\global\let\vadjust\PostponeVadjust~
-to their left ends in a way which should work rather
-independantly of their actual code.
-However, ~\vadjust~ should be the primitive again after
-execution of the command. So the ~\global\let...~ may be used
-only if it's guaranteed that a ~\vadjust~ is near.---(UL)
-Sure? In line numbering mode, probably each ~\vadjust~
-coming from a \LaTeX\ command should be ~\PostponeVadjust~.
-~\marginpar~s and floats seem to be the only cases which
-are not explicitly dealt with in the present section.
-This would be a way to avoid ~\@LN@nobreaktrue~!
-Of course, the ~\vadjust~s that the present package uses
-then must be replaced by ~\@LN@@vadjust~.---Maybe
-next time. (/UL)
-
-The next command and something else will be added to the
-\LaTeX\ commands we are concerned with here.
-\begin{code}\begin{verbatim}
-\DeclareRobustCommand\@LN@changevadjust{%
- \ifvmode\else\ifinner\else
- \global\let\vadjust\PostponeVadjust
- \fi\fi
-}
-\end{verbatim}
-\end{code}
-(UL) What about math mode? Math display? Warn? (/UL)
-
-~\@tempa~ will now become a two place macro which adds first
+Now we change ~\pagebreak~ etc.\
+so that they use ~\PostponeVadjust~ in place of ~\vadjust~.
+We try to do this as independently as possible of the
+implementation of the \LaTeX\ commands to be redefined.
+Therefore, we don't just copy macro definition code from any
+single implementation (say, latest \LaTeX) and insert our
+changes, but attach a conditional
+~\global\let\vadjust\PostponeVadjust~
+to their left ends in a way which should work rather
+independantly of their actual code.
+However, ~\vadjust~ should be the primitive again after
+execution of the command. So the ~\global\let...~ may be used
+only if it's guaranteed that a ~\vadjust~ is near.---(UL)
+Sure? In line numbering mode, probably each ~\vadjust~
+coming from a \LaTeX\ command should be ~\PostponeVadjust~.
+~\marginpar~s and floats seem to be the only cases which
+are not explicitly dealt with in the present section.
+This would be a way to avoid ~\@LN@nobreaktrue~!
+Of course, the ~\vadjust~s that the present package uses
+then must be replaced by ~\@LN@@vadjust~.---Maybe
+next time. (/UL)
+
+The next command and something else will be added to the
+\LaTeX\ commands we are concerned with here.
+\begin{code}\begin{verbatim}
+\DeclareRobustCommand\@LN@changevadjust{%
+ \ifvmode\else\ifinner\else
+ \global\let\vadjust\PostponeVadjust
+ \fi\fi
+}
+\end{verbatim}
+\end{code}
+(UL) What about math mode? Math display? Warn? (/UL)
+
+~\@tempa~ will now become a two place macro which adds first
argument (single token), enclosed by ~\ifLineNumbers~\,\dots
-~\fi~ to the left of second argument. As long as we need it,
-we can't use the star form of ~\DeclareRobustCommand~ or
-the like, because AMS-\LaTeX\ uses ~\@tempa~ for ~\@ifstar~.
-(New v4.41) And for the same reason, that ~\CheckCommand*~
+~\fi~ to the left of second argument. As long as we need it,
+we can't use the star form of ~\DeclareRobustCommand~ or
+the like, because AMS-\LaTeX\ uses ~\@tempa~ for ~\@ifstar~.
+(New v4.41) And for the same reason, that ~\CheckCommand*~
had to be raised! (/New v4.41)
\begin{code}\begin{verbatim}
\CheckCommand*\@parboxrestore{\@arrayparboxrestore\let\\\@normalcr}
-\def\@tempa#1#2{%
+\def\@tempa#1#2{%
\expandafter \def \expandafter#2\expandafter{\expandafter
- \ifLineNumbers\expandafter#1\expandafter\fi#2}%
-}
+ \ifLineNumbers\expandafter#1\expandafter\fi#2}%
+}
\end{verbatim}
\end{code}
-(UL) This ~\ifLineNumber~ can be fooled by
-~\linenumbers~ ahead etc. It might be better to place
-a signal penalty in any case and let the output routine
-decide what to do.
-(/UL)
+(UL) This ~\ifLineNumber~ can be fooled by
+~\linenumbers~ ahead etc. It might be better to place
+a signal penalty in any case and let the output routine
+decide what to do.
+(/UL)
-We use the occasion to switch off linenumbers where they
-don't work anyway and where we don't want them,
-especially in footnotes:
+We use the occasion to switch off linenumbers where they
+don't work anyway and where we don't want them,
+especially in footnotes:
\begin{code}\begin{verbatim}
-\@tempa\nolinenumbers\@arrayparboxrestore
+\@tempa\nolinenumbers\@arrayparboxrestore
\end{verbatim}
\end{code}
-We hope this suffices $\dots$ let's check one thing
+We hope this suffices $\dots$ let's check one thing
at least: [(New v4.41) see ~\CheckCommand~ above (/New v4.41)]
-Now for the main theme of the section.
-The next lines assume that ~\vspace~, ~\pagebreak~, and
-~\nopagebreak~ use ~\vadjust~ whenever they occur outside
-vertical mode; moreover, that they don't directly read
-an argument. Indeed ~\pagebreak~ and ~\nopagebreak~ first
-call something which tests for a left bracket ahead,
-while ~\vspace~ first tests for a star.
-\begin{code}\begin{verbatim}
-\@tempa\@LN@changevadjust\vspace
-\@tempa\@LN@changevadjust\pagebreak
-\@tempa\@LN@changevadjust\nopagebreak
-\end{verbatim}
-\end{code}
-~\\~, however, uses ~\vadjust~ only in star or optional form.
-We relax independency of implementation in assuming
-that ~\@normalcr~ is the fragile version of ~\\~
-(and we use ~\@ifstar~!).
-(Using a copy of ~\\~ would be safer, but an ugly repetition
-of ~\protect~.)
-\begin{code}\begin{verbatim}
-\DeclareRobustCommand\\{%
- \ifLineNumbers
- \expandafter \@LN@cr
- \else
- \expandafter \@normalcr
- \fi
-}
-\def\@LN@cr{%
- \@ifstar{\@LN@changevadjust\@normalcr*}%
- {\@ifnextchar[{\@LN@changevadjust\@normalcr}\@normalcr}%
-}
-\end{verbatim}
-\end{code}
-Moreover we hope that ~\newline~ never leads to a ~\vadjust~,
-although names of some commands invoked by ~\\~ contain
-~newline~. At last, this seems to have been OK since 1989 or
-even earlier.
+Now for the main theme of the section.
+The next lines assume that ~\vspace~, ~\pagebreak~, and
+~\nopagebreak~ use ~\vadjust~ whenever they occur outside
+vertical mode; moreover, that they don't directly read
+an argument. Indeed ~\pagebreak~ and ~\nopagebreak~ first
+call something which tests for a left bracket ahead,
+while ~\vspace~ first tests for a star.
+\begin{code}\begin{verbatim}
+\@tempa\@LN@changevadjust\vspace
+\@tempa\@LN@changevadjust\pagebreak
+\@tempa\@LN@changevadjust\nopagebreak
+\end{verbatim}
+\end{code}
+~\\~, however, uses ~\vadjust~ only in star or optional form.
+We relax independency of implementation in assuming
+that ~\@normalcr~ is the fragile version of ~\\~
+(and we use ~\@ifstar~!).
+(Using a copy of ~\\~ would be safer, but an ugly repetition
+of ~\protect~.)
+\begin{code}\begin{verbatim}
+\DeclareRobustCommand\\{%
+ \ifLineNumbers
+ \expandafter \@LN@cr
+ \else
+ \expandafter \@normalcr
+ \fi
+}
+\def\@LN@cr{%
+ \@ifstar{\@LN@changevadjust\@normalcr*}%
+ {\@ifnextchar[{\@LN@changevadjust\@normalcr}\@normalcr}%
+}
+\end{verbatim}
+\end{code}
+Moreover we hope that ~\newline~ never leads to a ~\vadjust~,
+although names of some commands invoked by ~\\~ contain
+~newline~. At last, this seems to have been OK since 1989 or
+even earlier.
\modulolinenumbers[1]
-\firstlinenumber{0}
-Let's have a few tests.\vspace*{.5\baselineskip}
-Testing ~\pagebreak~ and ~\nopagebreak~ would be too expensive
-here, but---oops!---we have just experienced a successful
-~\vspace*{.5\baselineskip}~. A
-~\\*[.5\baselineskip]~\\*[.5\baselineskip] may look even more
-drastical, but this time we are happy about it. Note that the
-line numbers have moved with the lines. Without our changes,
-one line number\vadjust{\kern.5\baselineskip} would have
-``anticipated'' the move of the next line, just as you can
-observe it now.
-(/New v4.00)
-
-\switchlinenumbers
-
-\subsection{%
-Reminder on obsoleteness
-\unskip}
-
-(New v4.1) We have completed inclusion of the earlier
-extension packages ~linenox0.sty~, ~linenox1.sty~, and
-~lnopatch.sty~. If one of them is loaded, though,
-we produce an error message before something weird happens.
-We avoid ~\newif~ because the switchings occur so rarely.
-\begin{code}\begin{verbatim}
-\AtBeginDocument{%
- \let\if@LN@obsolete\iffalse
- \@ifpackageloaded{linenox0}{\let\if@LN@obsolete\iftrue}\relax
- \@ifpackageloaded{linenox1}{\let\if@LN@obsolete\iftrue}\relax
+\firstlinenumber{0}
+Let's have a few tests.\vspace*{.5\baselineskip}
+Testing ~\pagebreak~ and ~\nopagebreak~ would be too expensive
+here, but---oops!---we have just experienced a successful
+~\vspace*{.5\baselineskip}~. A
+~\\*[.5\baselineskip]~\\*[.5\baselineskip] may look even more
+drastical, but this time we are happy about it. Note that the
+line numbers have moved with the lines. Without our changes,
+one line number\vadjust{\kern.5\baselineskip} would have
+``anticipated'' the move of the next line, just as you can
+observe it now.
+(/New v4.00)
+
+\switchlinenumbers
+
+\subsection{%
+Reminder on obsoleteness
+\unskip}
+
+(New v4.1) We have completed inclusion of the earlier
+extension packages ~linenox0.sty~, ~linenox1.sty~, and
+~lnopatch.sty~. If one of them is loaded, though,
+we produce an error message before something weird happens.
+We avoid ~\newif~ because the switchings occur so rarely.
+\begin{code}\begin{verbatim}
+\AtBeginDocument{%
+ \let\if@LN@obsolete\iffalse
+ \@ifpackageloaded{linenox0}{\let\if@LN@obsolete\iftrue}\relax
+ \@ifpackageloaded{linenox1}{\let\if@LN@obsolete\iftrue}\relax
\@ifpackageloaded{lnopatch}{\let\if@LN@obsolete\iftrue}\relax
- \if@LN@obsolete
- \PackageError{lineno}{Obsolete extension package(s)}{%
- With lineno.sty version 4.00 or later,\MessageBreak
- linenox0/linenox1/lnopatch.sty must no longer be loaded.}%
- \fi
-}
+ \if@LN@obsolete
+ \PackageError{lineno}{Obsolete extension package(s)}{%
+ With lineno.sty version 4.00 or later,\MessageBreak
+ linenox0/linenox1/lnopatch.sty must no longer be loaded.}%
+ \fi
+}
\end{verbatim}
\end{code}
@@ -2943,20 +3001,20 @@ There is one deadcycle for each line number.
\section{%
The user commands
-\unskip}\label{s:UserCmds}
+\unskip}\label{s:UserCmds}
-The user commands to turn on and off line numbering
-are
+The user commands to turn on and off line numbering
+are
\begin{description}\item
[|\linenumbers] \ \par
Turn on line numbering in the current mode.
-\item
+\item
[|\linenumbers*] \ \par$\qquad$
and reset the line number to 1.
-\def\NL{<number>]}\item
+\def\NL{<number>]}\item
[|\linenumbers[\NL] \ \par$\qquad$
-and start with <number>.
+and start with <number>.
\item
[|\nolinenumbers] \ \par
Turn off line numbering.
@@ -2995,7 +3053,7 @@ star, put the line numbers on the inner margin.
[|\rightlinenumbers*] \ \par
Set the line numbers in the left/right margin. With the
star this works for both modes of operation, without
-the star only for the currently selected mode.
+the star only for the currently selected mode.
\item
[|\runningpagewiselinenumbers] \ \par
When using the pagewise line number mode, do not
@@ -3015,37 +3073,37 @@ current value in the counter ~linenumbermodulo~ is
retained. <number>=1 turns this off without changing
~linenumbermodulo~. The counter is initialized to 5.
\item
-[|\modulolinenumbers*[\NL] \ \par
-Like ~\modulolinenumbers~, the only difference being
-that the first line number after a ~\linenumbers~
-(or ~\runninglinenumbers~, ~\pagewiselinenumbers~,
-~\quotelinenumbers~) is printed regardless of the
-modulo---yet `1' is printed only after (or \dots)
-~\firstlinenumber{1}~.
-This also applies to the first line of a
-~{linenumbers}~ or respective environment.
-See subsection_\ref{ss:Mod} for another explanation.
-The behaviour may be unsatisfactory with pagewise
-line-numbering.
+[|\modulolinenumbers*[\NL] \ \par
+Like ~\modulolinenumbers~, the only difference being
+that the first line number after a ~\linenumbers~
+(or ~\runninglinenumbers~, ~\pagewiselinenumbers~,
+~\quotelinenumbers~) is printed regardless of the
+modulo---yet `1' is printed only after (or \dots)
+~\firstlinenumber{1}~.
+This also applies to the first line of a
+~{linenumbers}~ or respective environment.
+See subsection_\ref{ss:Mod} for another explanation.
+The behaviour may be unsatisfactory with pagewise
+line-numbering.
\item
-[|\firstlinenumber] \ \par
-~\firstlinenumber{~<filino>~}~ brings about that
-(after it) line numbers less than <filino> do
-\emph{not} appear in the margin. Moreover, with
-~\modulolinenumbers[~<number>~]~, just the line
-numbers which are <filino> plus a multiple of
-<number> are printed.---If you had
-~\firstlinenumber{~<pos>~}~ with some $\mbox{<pos>}>0$
-and want to switch to printing multiples of, e.g.,
-4, you best do ~\modulolinenumbers[4]~ and
-~\firstlinenumber{0}~. (See subsection_\ref{ss:Mod}
-for technical details.)
+[|\firstlinenumber] \ \par
+~\firstlinenumber{~<filino>~}~ brings about that
+(after it) line numbers less than <filino> do
+\emph{not} appear in the margin. Moreover, with
+~\modulolinenumbers[~<number>~]~, just the line
+numbers which are <filino> plus a multiple of
+<number> are printed.---If you had
+~\firstlinenumber{~<pos>~}~ with some $\mbox{<pos>}>0$
+and want to switch to printing multiples of, e.g.,
+4, you best do ~\modulolinenumbers[4]~ and
+~\firstlinenumber{0}~. (See subsection_\ref{ss:Mod}
+for technical details.)
\item
[|\linenumberdisplaymath] \ \par
Number the lines of a display math in a ~{linenomath}~
environment, but do not in a ~{linenomath*}~
environment. This is used by the package option
-~[mathlines]~.
+~[mathlines]~.
\item
[|\nolinenumberdisplaymath] \ \par
Do not Number the lines of a display math in a
@@ -3059,7 +3117,7 @@ referencing commands ~\ref{~<foo>~}~ and
~\pageref{~<foo>~}~.
\end{description}
The commands can be used globally, locally within groups
-or as environments. It is important to know that they
+or as environments. It is important to know that they
take action only when the ~\par~ is executed. The
~\end{~<mode>~linenumbers}~ commands provide a ~\par~.
Examples:
@@ -3079,32 +3137,32 @@ Examples:
~\linenumbers~ \\
<paragraph> ~{\nolinenumbers\par}~ \\
\end{verse}
-(New v4.00)
-However, the examples containing <paragraph> show what you
-should \emph{not} do, at least if you use ~\pagebreak~,
-~\nopagebreak~, ~\vspace~, ~\\*~ or
-~\\[~<space>~]~---cf._section_\ref{s:MVadj}.
+(New v4.00)
+However, the examples containing <paragraph> show what you
+should \emph{not} do, at least if you use ~\pagebreak~,
+~\nopagebreak~, ~\vspace~, ~\\*~ or
+~\\[~<space>~]~---cf._section_\ref{s:MVadj}.
-The same care should be applied to the ``wizard'' devices
+The same care should be applied to the ``wizard'' devices
~\ifLineNumbers~ (subsection_\ref{ss:OnOff}) and
-~\PostponeVadjust~ (section_\ref{ss:PVadj}).
-(/New v4.00)
+~\PostponeVadjust~ (section_\ref{ss:PVadj}).
+(/New v4.00)
-(New v4.11) Oh, and the commands and environments of
-section_{s:Xt} are missing. Sorry, I am in a hurry now.
-May be next time.% %% TODO v4.4+
----And the environments ~{linenomath}~ and ~{linenomath*}~should
-get an own paragraph. In short, each math display, equation,
-or ~{eqnarray}~ should be ``wrapped'' in one of ~{linenomath}~
-and ~{linenomath*}~.
+(New v4.11) Oh, and the commands and environments of
+section_{s:Xt} are missing. Sorry, I am in a hurry now.
+May be next time.% %% TODO v4.4+
+---And the environments ~{linenomath}~ and ~{linenomath*}~should
+get an own paragraph. In short, each math display, equation,
+or ~{eqnarray}~ should be ``wrapped'' in one of ~{linenomath}~
+and ~{linenomath*}~.
\subsection{%
Customization hooks
-\unskip}
+\unskip}
There are several hooks to customize the appearance of the
line numbers, and some low level hooks for special
-effects.
+effects.
\begin{description}\item
[|\thelinenumber] \ \par
This macro should give the representation of the line
@@ -3114,11 +3172,11 @@ default is provided by \LaTeX: \par$\qquad$
\item
[|\makeLineNumberLeft] \ \par
This macro is used to attach a line number to the left
-of the text page. This macro should fill an ~\hbox to 0pt~
+of the text page. This macro should fill an ~\hbox to 0pt~
which will be placed at the left margin of the
page, with the reference point aligned to the line to
which it should give a number. Please use the macro
-~\LineNumber~ to refer to the line number.
+~\LineNumber~ to refer to the line number.
The default definition is \par$\qquad$
~\hss\linenumberfont\LineNumber\hskip\linenumbersep~
@@ -3144,7 +3202,7 @@ This dimension register sets the width of the line
number box on the right margin. The distance of the
right edge of the text to the right edge of the line
number is ~\linenumbersep~ + ~\linenumberwidth~. The
-default value is ~10pt~.
+default value is ~10pt~.
\item
[|\theLineNumber] (for wizards) \ \par
This macro is called for printing a ~\newlabel~ entry
@@ -3161,7 +3219,7 @@ mode it just expands ~\makeLineNumberLeft~.
[|\LineNumber] (for wizards) \ \par
This macro is called by ~\makeLineNumber~ to typeset
the line number. This hook is changed by the modulo
-mechanism
-and by ~\firstlinenumber~.
+mechanism
+and by ~\firstlinenumber~.
\end{description}
\end{document}%D
diff --git a/macros/latex/contrib/lineno/source/linenoamsmathdemo.tex b/macros/latex/contrib/lineno/source/linenoamsmathdemo.tex
new file mode 100644
index 0000000000..f01f1cc364
--- /dev/null
+++ b/macros/latex/contrib/lineno/source/linenoamsmathdemo.tex
@@ -0,0 +1,415 @@
+% Copyright 2021 Karl Wette
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+%
+% The Current Maintainer of this work is Karl Wette.
+
+\ProvidesFile{linenoamsmathdemo.tex}
+ [2021/09/30 Make amsmath work with lineno]
+
+\documentclass{ltxdoc}
+
+\usepackage[leqno]{amsmath}
+\usepackage[mathlines]{lineno}
+\usepackage{lipsum}
+\usepackage{hyperref}
+
+\begin{document}
+
+\title{Make \textsf{amsmath}\footnote{\url{https://ctan.org/pkg/amsmath}}~ work with \textsf{lineno}}
+\author{Karl Wette}
+
+\maketitle
+
+This document demonstrates patches to the \textsf{amsmath} package to work with
+the \textsf{lineno} package. The code I've used is largely based on the posts
+here\footnote{\url{https://tex.stackexchange.com/a/461192}} and
+here\footnote{\url{https://tex.stackexchange.com/a/443201}}; credit is due to
+their author(s). In addition I've made a few refinements to handle some corner
+cases.
+
+\section*{Demonstration}
+
+This section demonstrates that, with this package, line numbers are correctly
+formatted when using \textsf{amsmath} math environments.
+
+\newcounter{lipsumparagraph}
+\newcommand{\nextlipsum}{\stepcounter{lipsumparagraph}\lipsum[\thelipsumparagraph][1-4]}
+\newcommand{\crs}{\qquad\qquad\texttt{[\textbackslash\textbackslash{}*]}\\*}
+
+\linenumbers
+
+\subsection*{Normal text}
+
+\nextlipsum
+
+\subsection*{\texttt{equation}}
+
+\subsection*{With line numbers in equations}
+\nextlipsum
+\begin{equation}
+ E = m c^2 \,.
+\end{equation}
+\nextlipsum
+
+\subsection*{Without line numbers in equations}
+\nextlipsum
+\begin{linenomath*}
+\begin{equation}
+ E = m c^2 \,.
+\end{equation}
+\end{linenomath*}
+\nextlipsum
+
+\subsection*{\texttt{equation*}}
+
+\subsection*{With line numbers in equations}
+\nextlipsum
+\begin{equation*}
+ E = m c^2 \,.
+\end{equation*}
+\nextlipsum
+
+\subsection*{Without line numbers in equations}
+\nextlipsum
+\begin{linenomath*}
+\begin{equation*}
+ E = m c^2 \,.
+\end{equation*}
+\end{linenomath*}
+\nextlipsum
+
+\subsection*{\texttt{\textbackslash[\ldots\textbackslash]}}
+
+\subsection*{With line numbers in equations}
+\nextlipsum
+\[
+ E = m c^2 \,.
+\]
+\nextlipsum
+
+\subsection*{Without line numbers in equations}
+\nextlipsum
+\begin{linenomath*}
+\[
+ E = m c^2 \,.
+\]
+\end{linenomath*}
+\nextlipsum
+
+\subsection*{\texttt{multline}}
+
+\subsection*{With line numbers in equations}
+\nextlipsum
+\begin{multline}
+ \frac{1}{1 + x} = 1 - x + x^{2} - x^{3} + x^{4} - x^{5} + x^{6} - x^{7} + x^{8} - x^{9} + \mathcal{O}(x^{10}) \,.
+\end{multline}
+\nextlipsum
+\begin{multline}
+ \frac{1}{1 + x} = 1 - x + x^{2} - x^{3} + x^{4} - x^{5} + x^{6} - x^{7} + x^{8} - x^{9} \\
+ + x^{10} - x^{11} + x^{12} - x^{13} + x^{14} - x^{15} + x^{16} - x^{17} + x^{18} - x^{19} + \mathcal{O}(x^{20}) \,.
+\end{multline}
+\nextlipsum
+
+\subsection*{Without line numbers in equations}
+\nextlipsum
+\begin{linenomath*}
+\begin{multline}
+ \frac{1}{1 + x} = 1 - x + x^{2} - x^{3} + x^{4} - x^{5} + x^{6} - x^{7} + x^{8} - x^{9} + \mathcal{O}(x^{10}) \,.
+\end{multline}
+\end{linenomath*}
+\nextlipsum
+\begin{linenomath*}
+\begin{multline}
+ \frac{1}{1 + x} = 1 - x + x^{2} - x^{3} + x^{4} - x^{5} + x^{6} - x^{7} + x^{8} - x^{9} \\
+ + x^{10} - x^{11} + x^{12} - x^{13} + x^{14} - x^{15} + x^{16} - x^{17} + x^{18} - x^{19} + \mathcal{O}(x^{20}) \,.
+\end{multline}
+\end{linenomath*}
+\nextlipsum
+
+\subsection*{\texttt{multline*}}
+
+\subsection*{With line numbers in equations}
+\nextlipsum
+\begin{multline*}
+ \frac{1}{1 + x} = 1 - x + x^{2} - x^{3} + x^{4} - x^{5} + x^{6} - x^{7} + x^{8} - x^{9} + \mathcal{O}(x^{10}) \,.
+\end{multline*}
+\nextlipsum
+\begin{multline*}
+ \frac{1}{1 + x} = 1 - x + x^{2} - x^{3} + x^{4} - x^{5} + x^{6} - x^{7} + x^{8} - x^{9} \crs
+ + x^{10} - x^{11} + x^{12} - x^{13} + x^{14} - x^{15} + x^{16} - x^{17} + x^{18} - x^{19} + \mathcal{O}(x^{20}) \,.
+\end{multline*}
+\nextlipsum
+
+\subsection*{Without line numbers in equations}
+\nextlipsum
+\begin{linenomath*}
+\begin{multline*}
+ \frac{1}{1 + x} = 1 - x + x^{2} - x^{3} + x^{4} - x^{5} + x^{6} - x^{7} + x^{8} - x^{9} + \mathcal{O}(x^{10}) \,.
+\end{multline*}
+\end{linenomath*}
+\nextlipsum
+\begin{linenomath*}
+\begin{multline*}
+ \frac{1}{1 + x} = 1 - x + x^{2} - x^{3} + x^{4} - x^{5} + x^{6} - x^{7} + x^{8} - x^{9} \\
+ + x^{10} - x^{11} + x^{12} - x^{13} + x^{14} - x^{15} + x^{16} - x^{17} + x^{18} - x^{19} + \mathcal{O}(x^{20}) \,.
+\end{multline*}
+\end{linenomath*}
+\nextlipsum
+
+\subsection*{\texttt{gather}}
+
+\subsection*{With line numbers in equations}
+\nextlipsum
+\begin{gather}
+ E = m c^2 \,.
+\end{gather}
+\nextlipsum
+\begin{gather}
+ E = m c^2 \,, \\
+ E^2 = p^2 c^2 + m_0^2 c^4 \,.
+\end{gather}
+\nextlipsum
+
+\subsection*{Without line numbers in equations}
+\nextlipsum
+\begin{linenomath*}
+\begin{gather}
+ E = m c^2 \,.
+\end{gather}
+\end{linenomath*}
+\nextlipsum
+\begin{linenomath*}
+\begin{gather}
+ E = m c^2 \,, \\
+ E^2 = p^2 c^2 + m_0^2 c^4 \,.
+\end{gather}
+\end{linenomath*}
+\nextlipsum
+
+\subsection*{\texttt{gather*}}
+
+\subsection*{With line numbers in equations}
+\nextlipsum
+\begin{gather*}
+ E = m c^2 \,.
+\end{gather*}
+\nextlipsum
+\begin{gather*}
+ E = m c^2 \,, \crs
+ E^2 = p^2 c^2 + m_0^2 c^4 \,.
+\end{gather*}
+\nextlipsum
+
+\subsection*{Without line numbers in equations}
+\nextlipsum
+\begin{linenomath*}
+\begin{gather*}
+ E = m c^2 \,.
+\end{gather*}
+\end{linenomath*}
+\nextlipsum
+\begin{linenomath*}
+\begin{gather*}
+ E = m c^2 \,, \\
+ E^2 = p^2 c^2 + m_0^2 c^4 \,.
+\end{gather*}
+\end{linenomath*}
+\nextlipsum
+
+\subsection*{\texttt{align}}
+
+\subsection*{With line numbers in equations}
+\nextlipsum
+\begin{align}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,.
+\end{align}
+\nextlipsum
+\begin{align}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,, \\
+ \nabla \cdot \vec B = 0 \,, &\quad \nabla \times \vec B = \frac{1}{c^2} \frac{\partial \vec E}{\partial t} \,.
+\end{align}
+\nextlipsum
+
+\subsection*{Without line numbers in equations}
+\nextlipsum
+\begin{linenomath*}
+\begin{align}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,.
+\end{align}
+\end{linenomath*}
+\nextlipsum
+\begin{linenomath*}
+\begin{align}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,, \\
+ \nabla \cdot \vec B = 0 \,, &\quad \nabla \times \vec B = \frac{1}{c^2} \frac{\partial \vec E}{\partial t} \,.
+\end{align}
+\end{linenomath*}
+\nextlipsum
+
+\subsection*{\texttt{align*}}
+
+\subsection*{With line numbers in equations}
+\nextlipsum
+\begin{align*}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,.
+\end{align*}
+\nextlipsum
+\begin{align*}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,, \crs
+ \nabla \cdot \vec B = 0 \,, &\quad \nabla \times \vec B = \frac{1}{c^2} \frac{\partial \vec E}{\partial t} \,.
+\end{align*}
+\nextlipsum
+
+\subsection*{Without line numbers in equations}
+\nextlipsum
+\begin{linenomath*}
+\begin{align*}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,.
+\end{align*}
+\end{linenomath*}
+\nextlipsum
+\begin{linenomath*}
+\begin{align*}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,, \\
+ \nabla \cdot \vec B = 0 \,, &\quad \nabla \times \vec B = \frac{1}{c^2} \frac{\partial \vec E}{\partial t} \,.
+\end{align*}
+\end{linenomath*}
+\nextlipsum
+
+\subsection*{\texttt{alignat}}
+
+\subsection*{With line numbers in equations}
+\nextlipsum
+\begin{alignat}{2}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,.
+\end{alignat}
+\nextlipsum
+\begin{alignat}{2}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,, \\
+ \nabla \cdot \vec B = 0 \,, &\quad \nabla \times \vec B = \frac{1}{c^2} \frac{\partial \vec E}{\partial t} \,.
+\end{alignat}
+\nextlipsum
+
+\subsection*{Without line numbers in equations}
+\nextlipsum
+\begin{linenomath*}
+\begin{alignat}{2}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,.
+\end{alignat}
+\end{linenomath*}
+\nextlipsum
+\begin{linenomath*}
+\begin{alignat}{2}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,, \\
+ \nabla \cdot \vec B = 0 \,, &\quad \nabla \times \vec B = \frac{1}{c^2} \frac{\partial \vec E}{\partial t} \,.
+\end{alignat}
+\end{linenomath*}
+\nextlipsum
+
+\subsection*{\texttt{alignat*}}
+
+\subsection*{With line numbers in equations}
+\nextlipsum
+\begin{alignat*}{2}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,.
+\end{alignat*}
+\nextlipsum
+\begin{alignat*}{2}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,, \crs
+ \nabla \cdot \vec B = 0 \,, &\quad \nabla \times \vec B = \frac{1}{c^2} \frac{\partial \vec E}{\partial t} \,.
+\end{alignat*}
+\nextlipsum
+
+\subsection*{Without line numbers in equations}
+\nextlipsum
+\begin{linenomath*}
+\begin{alignat*}{2}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,.
+\end{alignat*}
+\end{linenomath*}
+\nextlipsum
+\begin{linenomath*}
+\begin{alignat*}{2}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,, \\
+ \nabla \cdot \vec B = 0 \,, &\quad \nabla \times \vec B = \frac{1}{c^2} \frac{\partial \vec E}{\partial t} \,.
+\end{alignat*}
+\end{linenomath*}
+\nextlipsum
+
+\subsection*{\texttt{flalign}}
+
+\subsection*{With line numbers in equations}
+\nextlipsum
+\begin{flalign}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,.
+\end{flalign}
+\nextlipsum
+\begin{flalign}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,, \\
+ \nabla \cdot \vec B = 0 \,, &\quad \nabla \times \vec B = \frac{1}{c^2} \frac{\partial \vec E}{\partial t} \,.
+\end{flalign}
+\nextlipsum
+
+\subsection*{Without line numbers in equations}
+\nextlipsum
+\begin{linenomath*}
+\begin{flalign}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,.
+\end{flalign}
+\end{linenomath*}
+\nextlipsum
+\begin{linenomath*}
+\begin{flalign}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,, \\
+ \nabla \cdot \vec B = 0 \,, &\quad \nabla \times \vec B = \frac{1}{c^2} \frac{\partial \vec E}{\partial t} \,.
+\end{flalign}
+\end{linenomath*}
+\nextlipsum
+
+\subsection*{\texttt{flalign*}}
+
+\subsection*{With line numbers in equations}
+\nextlipsum
+\begin{flalign*}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,.
+\end{flalign*}
+\nextlipsum
+\begin{flalign*}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,, \crs
+ \nabla \cdot \vec B = 0 \,, &\quad \nabla \times \vec B = \frac{1}{c^2} \frac{\partial \vec E}{\partial t} \,.
+\end{flalign*}
+\nextlipsum
+
+\subsection*{Without line numbers in equations}
+\nextlipsum
+\begin{linenomath*}
+\begin{flalign*}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,.
+\end{flalign*}
+\end{linenomath*}
+\nextlipsum
+\begin{linenomath*}
+\begin{flalign*}
+ \nabla \cdot \vec E = 0 \,, &\quad \nabla \times \vec E = - \frac{\partial \vec B}{\partial t} \,, \\
+ \nabla \cdot \vec B = 0 \,, &\quad \nabla \times \vec B = \frac{1}{c^2} \frac{\partial \vec E}{\partial t} \,.
+\end{flalign*}
+\end{linenomath*}
+\nextlipsum
+
+\nolinenumbers
+
+\end{document}
+
+% Local Variables:
+% mode: doctex
+% TeX-master: t
+% End:
diff --git a/macros/latex/contrib/lineno/source/lnosuppl.tex b/macros/latex/contrib/lineno/source/lnosuppl.tex
new file mode 100644
index 0000000000..124547afa4
--- /dev/null
+++ b/macros/latex/contrib/lineno/source/lnosuppl.tex
@@ -0,0 +1,127 @@
+%% LNoSuppl.tex -- U.L.
+\ProvidesFile{lnosuppl.tex}
+ [2011/02/16 documenting supplementary files]
+\title{\LARGE \bf Supplementary files belonging \\
+ to the \textit{lineno.sty} distribution \\[1ex]
+ \normalfont \Large
+ Lazy \texttt{ASCII}\,$\to$\,\texttt{PDF} listings}
+\author{Uwe L\"uck}
+\documentclass[10pt]{article}
+\usepackage{verbatim}
+%% hyperref settings from makedoc.cfg 2011/02/14:
+\RequirePackage{ifpdf}
+\usepackage[%
+ \ifpdf
+% bookmarks=false, %% 2010/12/22
+% bookmarksnumbered,
+ bookmarksopen, %% 2011/01/24!?
+ bookmarksopenlevel=2, %% 2011/01/23
+% pdfpagemode=UseNone,
+% pdfstartpage=10,
+% pdfstartview=FitH,
+ citebordercolor={ .6 1 .6},
+ filebordercolor={1 .6 1},
+ linkbordercolor={1 .9 .7},
+ urlbordercolor={ .7 1 1}, %% playing 2011/01/24
+ \else
+ draft
+ \fi
+]{hyperref}
+\usepackage{hypertoc}
+\pagestyle{headings}
+\newcommand*{\cs}[1]{\texttt{\char"5C#1}}
+\newcommand*{\lcurl}[2][]{%% `mirror', \url #2 2011/02/14
+ \texttt{#2}\footnote{%
+ \url{http://mirror.ctan.org/macros/latex/contrib/#1#2}}}
+\newcommand*{\Verbatiminput}[1]{%% 2011/02/14
+ \small\verbatiminput{#1}\normalsize}
+\makeatletter
+\newcommand*{\notinaux}[1]{%
+ \ifx\protect\@typeset@protect #1%
+ \else
+ \ifdim\lastskip>\z@\ignorespaces\fi
+ \fi}
+\makeatother
+\begin{document}
+\maketitle
+\section*{Preface}
+
+\texttt{lineno.sty} is a macro package made by
+Stephan~I.~B\"ottcher for attaching line numbers to
+\LaTeX\ documents. Some people have used it for revising
+submittings in collaboration with referees or co-authors.
+Documentations are nowadays preferred to be in
+Adobe's \texttt{PDF}---so \texttt{lineno.sty}'s
+documentation is \lcurl[lineno/]{lineno.pdf}.
+
+\texttt{ednotes.sty} uses \texttt{lineno.sty} for critical
+editions, combining it with Alexander~I.~Rozhenko's
+\texttt{manyfoot.sty}---this was Christian Tapp's idea,
+who then hired me for adding the \TeX nical details.
+In doing this, I had to change some internals of
+\texttt{lineno.sty}, so Stephan transferred maintenance
+to me; then some of my macro files that I originally had
+made for \texttt{ednotes.sty} wandered into the
+\texttt{lineno} directory of CTAN---because they turned
+out not to need \texttt{ednotes.sty},
+just to work as extensions of \texttt{lineno.sty}\,.
+
+Now, I haven't had the time for making \texttt{.dtx} versions
+of the \texttt{.sty} files for \texttt{ednotes}.
+Therefore, ordinary \texttt{.pdf} documentation for
+the remaining \texttt{.sty} files of \texttt{lineno}
+is missing.
+What you see here is nothing but a somewhat structured listing
+of the additional \texttt{.txt} and \texttt{.sty} files in
+\texttt{PDF}, deriving from the \texttt{verbatim} package and
+its \cs{verbatiminput} command. I hope the high quality
+(scalable) output is worth it.
+
+By contrast, the new package \texttt{fnlineno.sty} added in 2011 for
+footnote line numbers is documented in \lcurl[lineno/]{fnlineno.pdf}
+in high quality, using the \lcurl{nicetext} bundle.
+
+\leavevmode\hfill \textit{U.\,L.}
+
+\newpage
+\tableofcontents
+
+\section{The \texttt{.txt} files}
+\subsection{Summary: \texttt{README.txt}}
+\verbatiminput{README.txt}
+\subsection{Licenses/Copyright: \texttt{COPYING.txt}}
+\verbatiminput{COPYING.txt}
+\subsection{Update summaries: \texttt{CHANGEs.txt}}
+\verbatiminput{CHANGEs.txt}
+%% rm. 2011/02/16:
+% \subsection{Files and subdirectories: \texttt{FILEs.txt}}
+% \verbatiminput{FILEs.txt}
+\subsection{Source file infos: \texttt{SRCFILEs.txt}}
+\verbatiminput{SRCFILEs.txt}
+
+\section{Tabular and array environments}
+\texttt{lineno.sty}'s package options \texttt{edtable},
+\texttt{longtable}, and \texttt{nolongtablepatch}
+redefine \LaTeX\ tabular and array environments
+such that \texttt{lineno} and \texttt{ednotes} commands
+can be used inside. The code for these options resides
+in separate files at present. We are listing them here.
+\subsection{\texttt{edtable.sty}}
+\verbatiminput{edtable.sty}
+\subsection{\texttt{ltabptch.sty}}
+\verbatiminput{ltabptch.sty}
+
+\section{\cs{linelabel} and notes from \textit{math} mode:
+ \notinaux{\\} \texttt{ednmath0.sty}}
+\verbatiminput{ednmath0.sty}
+
+\section{Extended line number references: \texttt{vplref.sty}}
+\texttt{vplref.sty} is input through the \texttt{lineno}
+package option \texttt{addpageno}. This adds page numbers
+to line number references to distant sides---using the
+\texttt{varioref} package from the \LaTeX\ distribution.
+\verbatiminput{vplref.sty}
+
+\end{document}
+
+end of LNoSuppl.tex
diff --git a/macros/latex/contrib/lineno/ulineno.tex b/macros/latex/contrib/lineno/source/ulineno.tex
index 25d20bcaec..da4438ff20 100644
--- a/macros/latex/contrib/lineno/ulineno.tex
+++ b/macros/latex/contrib/lineno/source/ulineno.tex
@@ -8,14 +8,14 @@
% $Id: ulineno.tex,v 3.1 2001/08/03 03:29:19 stephan Exp $
%
% 1999-06-11 SiB: updated for lineno.sty v3.00
-\ProvidesFile{ulineno.tex}[2001/08/03 lineno.sty users manual]
+\ProvidesFile{ulineno.tex}[2001/08/03 lineno.sty users manual]
%% <- UL 2011/02/13 for readprov.sty
\documentclass[12pt,a4paper,titlepage]{article}
\date{\def\$##1: ##2 ##3${##2}%$
- Version
- \$Revision: 3.1 $,
+ Version
+ \$Revision: 3.1 $,
\$Date: 2001/08/03 03:29:19 $
}
\def\lineno.sty{\texttt{\itshape lineno.sty}}
@@ -95,11 +95,9 @@ There may be cases, where other packages do a better job, e.g.,
\section{Where to get \lineno.sty}
\lineno.sty is available on the \emph{Comprehensive TeX Archive
- Network} (CTAN), e.g, \url{ftp:// ftp.tex.ac.uk/ tex-archive/
- macros/ latex/ contrib/ supported/ lineno/ lineno.sty}.
+ Network} (CTAN), e.g, \url{https://mirrors.ctan.org/macros/latex/contrib/lineno/lineno.sty}.
-The home of \lineno.sty is \url{http:// www.nevis.columbia.edu/
- ~stephan/ tex/ #lineno}. Here you can get the latest version.
+The home of \lineno.sty is \url{https://github.com/latex-lineno/lineno}. Here you can get the latest version.
\end{runninglinenumbers}
@@ -116,7 +114,7 @@ The available <options> are:
\begin{description}
\item[\texttt{[left]}:] Put the line numbers into the left margin
- (default).
+ (default).
\item[\texttt{[right]}:] Put the line numbers into the right margin.
@@ -125,11 +123,11 @@ The available <options> are:
\item[\texttt{[switch*]}:] Put the line numbers into the inner
margin.
-
+
\item[\texttt{[pagewise]}:] Number the lines from 1 on each page.
\item[\texttt{[running]}:] Continuously number the lines (default).
-
+
\item[\texttt{[modulo]}:] Print line numbers only if they are
multiples of five.
@@ -144,7 +142,7 @@ The available <options> are:
Change from v2 to v3: ~[mathlines]~ was called ~[displaymath]~
before, and ~[displaymath]~ was ~\usepacke{mlineno}~.
\end{itshape}
-
+
\end{description}
All effects of these option can also be obtained by calling certain
macros later in the document, except for ~[displaymath]~.
@@ -175,8 +173,8 @@ or an explicit ~\par~ before the ~\endgroup~.
The prefered solution is to use an enviroment:
\begin{quote}\obeylines
- ~\begin{linenumbers}~
- Text of your paragraph.
+ ~\begin{linenumbers}~
+ Text of your paragraph.
~\end{linenumbers}~
\end{quote}
~\end{linenumbers}~ terminates the paragraph for you. It will also
@@ -231,22 +229,22 @@ the line was in the last \LaTeX\ run.
Thus, there are two basic numbering modes
\begin{enumerate}
-
+
\item \emph{Running} line numbers. The numbers run continuously along
- the document, without considering page breaks.
-
+ the document, without considering page breaks.
+
The line numbers can be reset, or preset at any point in the
document (except within a paragraph). Margin switching (or any
other dependence on the page breaks) is not possible.
-
+
\item \emph{Pagewise} line numbers. The lines on each page are
numbered from one. Automatic margin switching is possible.
\emph{Running} mode can be simulated in pagewise mode, to get
automatic margin switching with continuous line numbers, but without
the ability to reset/preset the line numbers anywhere in the
- document.
-
+ document.
+
Any feature that depends on the page breaks must use this mode.
\end{enumerate}
@@ -256,7 +254,7 @@ Thus, there are two basic numbering modes
\subsection{\emph{Running} line numbers}
This is the default mode of operation. The lines of your text are
-numbered continuously across page breaks.
+numbered continuously across page breaks.
You cannot get automatic margin switching in this mode, because at the
time when the line numbers are attached, it is not yet decided on
@@ -271,7 +269,7 @@ You get this mode by
\item specifying the package option ~[running]~,
\item give the command ~\setrunninglinenumbers~ in the document, or
\item turn on line numbering with ~\runninglinenumbers~ or
- ~\begin{runninglinenumbers}~.
+ ~\begin{runninglinenumbers}~.
\end{itemize}
\subsubsection{Reseting or setting the line number}
@@ -285,15 +283,15 @@ where the default is to reset the line number to one.
Alternatively, you can give the line number in an optional argument to
any command that turns on the line numbering in this mode:
\begin{quote}\obeylines
- ~\linenumbers[~<number>~]~
- ~\runninglinenumbers[~<number>~]~
+ ~\linenumbers[~<number>~]~
+ ~\runninglinenumbers[~<number>~]~
~\begin{linenumbers}[~<number>~]~
~\begin{runninglinenumbers}[~<number>~]~
\end{quote}
or reset the line number to 1 with any of the following:
\begin{quote}\obeylines
- ~\linenumbers*~
- ~\runninglinenumbers*~
+ ~\linenumbers*~
+ ~\runninglinenumbers*~
~\begin{linenumbers*}~
~\begin{linenumbers}*~
~\begin{runninglinenumbers*}~
@@ -333,7 +331,7 @@ You get this mode by
~[pagewise]~, but not ~[running]~,
\item give the command ~\setpagewiselinenumbers~ in the document, or
\item turn on line numbering with ~\pagewiselinenumbers~ or
- ~\begin{pagewiselinenumbers}~.
+ ~\begin{pagewiselinenumbers}~.
\end{itemize}
You cannot reset or preset the line numbers in \emph{pagewise} mode.
@@ -356,7 +354,7 @@ pages. If you add a star, the numbers go on the inner margins
~\switchlinenumbers*~
\end{quote}
You can achieve the same effect by specifying the package
-option ~[switch]~ or ~[switch*]~ together with ~[pagewise]~.
+option ~[switch]~ or ~[switch*]~ together with ~[pagewise]~.
Margin switching is independent of any ~[twoside]~ option of the
document class.
@@ -440,11 +438,11 @@ The following commands change the major line numbering mode.
\item [|\setrunninglinenumbers]
\item [|\setpagewiselinenumbers] \leavevmode\\
set the current mode, without activating or deactivating line
- numbering.
+ numbering.
\item [|\runninglinenumbers\texttt{*[\NL}]
\item [|\pagewiselinenumbers] \leavevmode\\
set the current mode and activate line numbering, optionally reset
- (~*~), or set the line number for \emph{running} mode.
+ (~*~), or set the line number for \emph{running} mode.
\end{description}
The following commands do not change the major mode, but modify the
the behaviour of \emph{pagewise} mode
@@ -459,7 +457,7 @@ the behaviour of \emph{pagewise} mode
\subsection{Summary of margin selection commands}
The following command select into which margin the numbers should be
-printed
+printed
\begin{description}\itemsep=0pt\parskip=0pt
\item [|\leftlinenumbers\texttt*]
\item [|\rightlinenumbers\texttt*] \leavevmode\\
@@ -492,7 +490,7 @@ whatever you used last (the current value of the counter
option ~[modulo]~.
If you set <n> to 1, the modulo value is not changed, but modulo
-numbering is turned off.
+numbering is turned off.
Changing the counter ~linenumbermodulo~ does not turn on modulo
numbering, it just changes the modulo, if it is turned on without the
@@ -500,7 +498,7 @@ optional argument.
This section of the manual is enclosed in
\begin{quote}
- ~\begin{linenumbers*}~ \\
+ ~\begin{linenumbers*}~ \\
~\modulolinenumbers[2]~
~\end{linenumbers*}~
@@ -611,7 +609,7 @@ The first is used in \emph{running} mode, the other two in
\emph{pagewise} mode. If you modify those, you cut into the
margin selection mechanism as advertised above. You will have to call
a mode selection command after changing these macros, to make them take
-effect (at least for ~\makeLineNumberRunning~).
+effect (at least for ~\makeLineNumberRunning~).
You can go up one more step. The margin selection commands redefine
the above macros by making them equivalent (~\let~) to one of the
@@ -691,7 +689,7 @@ equation numbers?)
The ~\linelabel~ command starts a new paragraph if it is issued after
an empty line. It will properly ignore further whitespace before the
first word of text. Thus you can easily get a label to the first line
-of a paragraph.
+of a paragraph.
Furthermore, ~\linelabel~ uses \LaTeX s standart tricks to avoid
unnecessary spaces if you place is between two words with spaces
@@ -705,7 +703,7 @@ trailing space).
Special care should be taken at the end of a paragraph. You better
put the line label without intervening spaces behind the period, like
-this
+this
\begin{quote}
~This is the end of this section.%~\\
~\linelabel{ll2}~
@@ -749,7 +747,7 @@ line numbers. Here comes the Formula
\mathrm{6\,H_2O + 6\,CO_2 \ \rightarrow\ C_6H_{12}O_6 + 6\,O_2}
\end{displaymath}
which makes the line numbers disappear. The trailing part of the
-paragraph does get line numbers.
+paragraph does get line numbers.
There are several means to solve the problem, but none of them is
fully satisfactory. \lineno.sty defines a ~{linenomath}~ environment,
@@ -761,7 +759,7 @@ comes an example use of ~{linenomath*}~
\begin{linenomath*}
\begin{eqnarray*}
b_1 &=& a_{11}x_1 + a_{12}x_2 \\
- b_2 &=& a_{21}x_1 + a_{22}x_2
+ b_2 &=& a_{21}x_1 + a_{22}x_2
\end{eqnarray*}
\end{linenomath*}
wrapping an ~{egnarray*}~ like this
@@ -769,7 +767,7 @@ wrapping an ~{egnarray*}~ like this
~\begin{linenomath*}~\\
~ \begin{eqnarray*}~\\
~ b_1 &=& a_{11}x_1 + a_{12}x_2 \\~\\
- ~ b_2 &=& a_{21}x_1 + a_{22}x_2~\\
+ ~ b_2 &=& a_{21}x_1 + a_{22}x_2~\\
~ \end{eqnarray*}~\\
~\end{linenomath*}~
\end{quote}
@@ -783,7 +781,7 @@ The ~{linenomath}~ wrapper does nothing if line numbering is not
activated. You do not need to remove them if you decide to omit the
line numbering later (although you still have to load \lineno.sty).
-The \texttt{\itshape mlineno} extension redefines the standard \LaTeX\
+The \texttt{\itshape mlineno} extension redefines the standard \LaTeX\
display math environments to wrap themselves automatically into
~{linenomath}~:
\begin{quote}\obeylines
@@ -795,7 +793,7 @@ display math environments to wrap themselves automatically into
\end{quote}
As of version 3.00 you can activate this by the package option
~[displaymath]~. You can keep existing explicit ~{linenomath}~
-wrappers without harm.
+wrappers without harm.
This will probably not work with AMSmath.
@@ -816,16 +814,16 @@ environment, since you still have to modify your document.
\begin{runninglinenumbers}
It is currently not possible to put a ~\linelabel~ into math mode.
This should not impose problems with inline math, since you can attach
-the label just outside the math shift, like\linelabel{rll1}
+the label just outside the math shift, like\linelabel{rll1}
\begin{quote}
~... \linelabel{~<label>~}$x=f(y)$ ...~
\end{quote}
-but to refer to a line in display math, you cannot label it directly.
+but to refer to a line in display math, you cannot label it directly.
\end{runninglinenumbers}
\begin{pagewiselinenumbers}
The extension \texttt{\itshape rlineno} offers a solution,
-allowing to refer to a line number with an offset.
+allowing to refer to a line number with an offset.
This extension is now available with plain \lineno.sty v3.00.
@@ -837,10 +835,10 @@ offset.\linelabel{rll2}
~\begin{equation}~ \\
~ y=f'(x)~ \\
~\end{equation}~ \\
- ~... the formula in line \lineref[+1]{~<label>~}~
+ ~... the formula in line \lineref[+1]{~<label>~}~
\end{quote}
The offset calculation is different for pagewise or running line
-numbers, and you will have to make sure the right method is used.
+numbers, and you will have to make sure the right method is used.
\end{pagewiselinenumbers}
The macro ~\lineref[~<offset>~]{~<label>~}~ uses the method of the
@@ -887,7 +885,7 @@ specify the line number to start with in an optional argument.
\begin{numquote}
The line numbers set to the left of the text, indented by the same
amount as the quote or quotation. This works as expected even if the
-quote appears in a nested list.
+quote appears in a nested list.
\end{numquote}
To customize the distance from the text or the shape of the
numbers, you can modify the macros ~\quotelinenumbersep~ and
@@ -936,7 +934,7 @@ little interest, so it is gone from the \lineno.sty distribution.
\setlength\bframesep{10pt}
\begin{bframe}
-\lineno.sty can be used for unexpected purposes. The environment
+\lineno.sty can be used for unexpected purposes. The environment
\begin{quote}\obeylines
~\begin{bframe}~
~\end{bframe}~
diff --git a/macros/latex/contrib/lineno/tex/ednmath0.sty b/macros/latex/contrib/lineno/tex/ednmath0.sty
new file mode 100644
index 0000000000..ef9884f30c
--- /dev/null
+++ b/macros/latex/contrib/lineno/tex/ednmath0.sty
@@ -0,0 +1,200 @@
+%% Macro package `ednmath0.sty' for LaTeX2e,
+%% copyright (C) 2004 Uwe L\"uck,
+%% http://www.contact-ednotes.sty.de.vu
+%% --author-maintained;
+%% math support for `lineno.sty' and `ednotes.sty'.
+%%
+\def\fileversion{v0.2b} \def\filedate{2005/01/10}
+%% This program can be redistributed and/or modified under the
+%% terms of the LaTeX Project Public License distributed from
+%% CTAN archives in directory macros/latex/base/lppl.txt; either
+%% version 1.3a of the License, or any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% There is NO WARRANTY.
+%% This code is very EXPERIMENTAL!
+%%
+%% Please report bugs, problems, and suggestions via
+%%
+%% http://www.contact-ednotes.sty@web.de
+%
+%% * MAIN FEATURE *
+%
+% lineno.sty's \linelabel and ednotes.sty's commands are enabled
+% to work in math mode if it's "entered in outer mode"
+% (including `displaymath' and `equation' environments).
+% (lineno.sty is the package by Stephan Boettcher.)
+% They will even work in tabular environments that are adjusted
+% to notes by package `edtable.sty'.
+%
+% CAVEATS:
+% -- Does not work yet in environments like LaTeX's
+% `eqnarray'. (This could probably repaired along the lines
+% of Edtable.sty--we're short of time and will try later.)
+% -- Useful error messages when (i) math mode is entered from
+% inner mode or when (ii) a math display gets not line number
+% are missing at present.
+%
+%% * USAGE: *
+%
+% * Most simple: *
+% --If you are working with ednotes and want to use its
+% commands in math mode, load ednotes.sty--version 0.8
+% onwards--with its package option `mathnotes'.
+% --If you don't work with ednotes, only with lineno, you
+% get the main feature of making \linelabel work in math mode
+% by loading lineno.sty--version 4.1 onwards--with its
+% package option `mathrefs'.
+%
+% * Switch off and on: *
+% To reduce danger resulting from missing error messages
+% ("caveat" above), you may switch these new math facilities
+% off by \NoNotesToMath where you don't expect to need them.
+% You may switch them on again by \NotesToMath where you want
+% to use them, being aware of the danger. Both commands work
+% locally, so you can replace one of them by enclosing it in
+% a group. E.g., even, after \NoNotesToMath you can use an
+% environment as follows:
+% \begin{NotesToMath}
+% <text>
+% \end{NotesToMath}
+% (I am not quite sure that this is useful.)
+%
+% * Customize ellipsis: *
+% ednotes' \lemmaellipsis is changed to expand to
+% \mathlemmaellipsis when entering math, and this is preset
+% to be LaTeX's \mathellipsis. (This is three dots as
+% \mathinner.) You can change this by redefining
+% \mathlemmaellipsis, e.g.:
+% \renewcommand{\mathlemmaellipsis}{\cdots}
+% If you need \cdots as the ellipsis at a single place only,
+% you may, of course, use the `<...>' option of \<, e.g.:
+% $ x = \Anote{a\<<\cdots>bcd\>e}{Indeed?} - y $
+%
+% * Customize note mode: *
+% For variant readings, you may want that the note is
+% usually set in math mode--so you may want that you
+% needn't type the dollar signs in the note text.
+% Note that you can do this by customizing \notefmt,
+% and you can do this by customizing \Anotefmt (e.g.)
+% to have this feature for \Anote only.
+%
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{ednmath0}[\filedate\space\fileversion\space
+ math support for lineno/ednotes (ul)]
+%
+%% User commands:
+\def\NotesToMath{\let\@LN@mathhook\@LN@labelinmath
+ \@bsphack \@esphack
+% For \begin{NotesToMath}
+}
+\def\NoNotesToMath{\@bsphack
+ \def\@LN@mathhook{\@parmoderr\@gobble}%
+ \@esphack
+}
+\def\endNotesToMath{\@bsphack\@Esphack}
+\let\endNoNotesToMath\endNotesToMath
+%
+%% Core code for lineno.sty:
+\@ifundefined{@LN@postlabel}{%
+ \PackageError{ednmath0}{%
+ Bad lineno.sty version%
+ }{%
+ lineno.sty from 2004/08/16 or later
+ must be loaded earlier.%
+ }%
+}{%
+ \def\@LN@labelinmath#1{%
+ \ifmmode
+ \@LN@postlabel{#1}%
+ \else
+ \@parmoderr
+ \fi
+ }
+}
+%
+%% Core code for ednotes.sty:
+\@ifundefined{@EN@note}{%
+% v0.01 sent a warning in this case. Considered superfluous now.
+}{%
+ \def\@EN@themathlemmatag{%
+ \ifmmode
+ \toks@\expandafter{\@EN@lemmatag}%
+ \edef\@EN@lemmatag{%
+ $%
+ \def\noexpand\lemmaellipsis{%
+ \noexpand\mathlemmaellipsis}%
+ \the\toks@
+ $%
+ }%
+% \expandafter \def \expandafter \@EN@lemmatag
+% \expandafter {\expandafter $\expandafter
+% \def \expandafter \lemmaellipsis \expandafter {%
+% \expandafter \mathlemmaellipsis \expandafter }%
+% \@EN@lemmatag $}%
+ \fi
+ }
+% To be sure, \lemmaellipsis doesn't need to be changed when
+% ednotes `\<...\>' feature is not used. Though I prefer to
+% use one hook only in ednotes for both situations, with and
+% without `\<...\>'.
+%
+% The final \unskip in ednotes' \@EN@lemmatag would undo a final
+% \quad. That's OK: outside math the same happens.
+% In v0.01, \NoNotesToMath undid ednotes changes for math mode.
+% However, re-appearence of \linelabel error messages suffices.
+%
+% Now add lemma switch to the left of \[No]NotesToMath:
+ \toks@\expandafter{\NotesToMath}
+ \edef\NotesToMath{%
+ \let \noexpand\@EN@mathlemmatag \noexpand\@EN@themathlemmatag
+ \the\toks@
+ }
+% \typeout{\string\NotesToMath: \meaning\NotesToMath}
+ \toks@\expandafter{\NoNotesToMath}
+ \edef\NoNotesToMath{%
+ \let \noexpand\@EN@mathlemmatag \relax
+ \the\toks@
+ }
+% \typeout{\string\NoNotesToMath: \meaning\NoNotesToMath}
+}
+% We need no extra device for a choice for users whether the *note*
+% should be set in math mode or in horizontal mode by default
+% (which might depend on the kind ["layer"] of notes).
+% This can be done already by customization of ednotes' \notefmt.
+% However, we might change ednotes' default \notefmt to default
+% \renewcommand*{\notefmt}[1]{$#1$}
+%
+\let\mathlemmaellipsis\mathellipsis
+%% TODO: Since when has LaTeX provided \mathellipsis?
+%% -> \Needs...
+%
+% Default:
+\NotesToMath
+%
+\endinput
+
+%% TODO: Without \linenumberdisplaymath, in displaymath,
+%% an error should be shown. Use, e.g., that in a displaymath
+%% \ifinner is false.
+%% TODO: E.g., by changing \everymath, perhaps can be warned
+%% that the math group is in a box already, so the vertical
+%% items will get lost.
+%% TODO: Adjust `eqnarray' (in Edtable?) as well.
+
+%% VERSION HISTORY:
+v0.01 2004/08/16 First version, sent to Christian.
+v0.02 2004/08/16 Considerably simplified for ednotes.
+ 2004/08/19 Added ellipsis stuff, documentation, and
+ instructions. Uncapitalized package names.
+ Added \end[No]NotesToMath.
+ 2004/08/20 Added \@bsphack and \@esphack; corrected
+ ednotes extension (too much deleted, completely
+ wrong), introducing \@EN@themathlemmatag.
+v0.02b .../08/31 Rearranged preamble concerning maintenance.
+v0.1 2004/09/20 Removed mentions of `linenox0.sty'.
+v0.2 2004/10/07 Removed another mention of `linenox0.sty';
+ Instructions: `lineno' or `ednotes.sty' option.
+v0.2a 2004/11/07 LPPL v1.3a.
+v0.2b 2005/01/10 Contact via http.
diff --git a/macros/latex/contrib/lineno/tex/edtable.sty b/macros/latex/contrib/lineno/tex/edtable.sty
new file mode 100644
index 0000000000..3d16a9c722
--- /dev/null
+++ b/macros/latex/contrib/lineno/tex/edtable.sty
@@ -0,0 +1,571 @@
+%% `edtable.sty'---Uwe L"uck, direction Christian Tapp.
+%% LaTeX package for tables with line numbers and
+%% editorial notes.
+%%
+%% Copyright (C) 2003-2005 Uwe L"uck--author-maintained.
+%%
+\def\fileversion{1.3c} \def\filedate{2005/10/03}
+%%
+%% This file can be redistributed and/or modified under
+%% the terms of the LaTeX Project Public License; either
+%% version 1.3 of the License, or any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% We did our best to help you, but there is NO WARRANTY.
+%%
+%% Please send your comments via
+%%
+%% http://www.contact-ednotes.sty.de.vu
+%%
+%% * USAGE: *
+%
+% *Requirements/overview:*
+%
+% The package is made for the background of the LaTeX2e macro
+% package and enhances functionality of the following packages:
+% 1.) Stephan I. B"ottcher's `lineno.sty' for printing line
+% numbers in the margin and a \label version \linelabel
+% relating labels to line numbers;
+% 2.) our `ednotes.sty' for indicating variant readings and
+% other editorial remarks in separate footnote apparatuses;
+% 3.) David Carlisle's `longtable.sty' for multi-page tables.
+% %% TODO: supertabular etc.!?
+% 4.) our `ltabptch.sty' for a patch of `longtable.sty'
+% (i.e., optionally, see below).
+%
+% Actually, only the first package is necessary for using the
+% present one. The present one needs your line numbering commands
+% according to the first one and its documentation to which we
+% refer here. We likewise refer to the remaining packages for the
+% details of their functionality.
+%
+% `lineno.sty' version 4.1 and (in case it is used) `ednotes.sty'
+% version 0.8 (onwards) are needed. For obtaining recent versions
+% of required packages, see the CTAN folder
+% /macros/latex/contrib/ednotes.
+%
+% *Install/load:*
+% 1.) To be used, the present file must be put into a folder
+% that (La)TeX searches. You should have obtained a file
+% containing more detailed hints about this.
+% 2.) We recommend loading this file *not* by
+% \usepackage[<options>]{edtable} but by loading `lineno.sty'
+% or `ednotes.sty' with package option `edtable'.
+% 3.) To use the package options `longtable' and
+% `nolongtablepatch' that are described below, enter them
+% as options for `lineno.sty' or `ednotes.sty'.
+%
+% *User Commands:*
+%
+% 1. The package defines an environment `edtable' -- for its
+% syntax we consider two cases:
+% (a) Let <stdtable> be a tabular environment "like `tabular'".
+% "Like" here means: (i) we have tested it with `tabular', but
+% it should work with many more (e.g., from the `array' and
+% `tabularx' packages) -- which share certain properties of
+% implementation and requirements. Sorry, you must try, or we
+% hope you will (and tell us). (For wizards: <stdtable> may
+% probably be anything using a single \halign and \tabskip=0pt.)
+% Definitively:
+% (ii) LaTeX's standard `array' and other environments are *not*
+% "like" `tabular'. Namely, environments that work only in math
+% mode are not meant here. They are considered below in `b.'.
+% (iii) `longtable' from the `longtable' package of the `tools'
+% bundle neither is meant. An option of the present package
+% deals with it as described below. Neither `supertabular' is
+% meant.
+% (iv) In general, usage with tabular environments that can
+% break across pages as in (iii) is not recommended, at least
+% when working with `ednotes.sty'. Even if some worked here, a
+% shortcoming with `ednotes.sty' would be that the footnotes can
+% appear on bad pages.
+% -- Now the syntax is:
+% \begin{edtable}{<stdtable>}<args><entries>\end{edtable}
+% -- where <args> and <entries> are usual arguments and entries
+% for <stdtable>. So an example is:
+% \begin{edtable}{tabular}{cc}
+% left upper & right upper \\ left lower & right lower
+% \end{edtable}
+% This produces just what <stdtable> does in an extra line,
+% only adding line numbers in the margin and processing `ednotes'
+% commands in the entries appropriately.
+% (b) Let <stdarray> be an "array environment" like -- standard
+% LaTeX's `array'! "Like" here means (i) ... analogously to
+% <stdtable> above. (ii) "Text" ... oh, sorry, this is not clear
+% to me at present, and I am in a hurry. %% TODO
+% (iii) Nothing from the `amsmath' package seems to work here,
+% sorry, I have tried a lot ... (iv) For standard LaTeX's
+% `eqnarray', it is better to try the `linenomath' environment
+% of `lineno.sty' [with package option `mathlines']. Its
+% modifications in `amsmath' produce (at best) a spurious line
+% number with the `linenomath' environment (up to now).
+% -- Now the syntax is:
+% \begin{edtable}[<$$$>]{<stdarray>}
+% <args><entries>\end{edtable}
+% -- where <args> and <entries> are usual arguments and entries
+% for <stdarray>. <$$$> can be one of `$' or `$$'. Indeed, the
+% <stdtable> syntax above (without [<$$$>]) *does not work*
+% inside $...$ or $$...$$. -- An example:
+% \begin{edtable}[$$]{array}{cc}
+% a_{11} & a_{12} \\ a_{21} & a_{22}
+% \end{edtable}
+% Now, this produces just what <stdarray> does in an extra line
+% etc. as with <stdtable>. However, \linelabel and `ednotes.sty'
+% footnotes may need the `mathrefs' option of `lineno.sty'. For
+% the difference between `[$]' and `[$$]', see below.
+%
+% 2. When working with `ednotes.sty', in
+% \Anote{L1\<L2\>L3}{NOTE}
+% L2 may contain &'s and \\'s, but L1, L3 must not! Analogously
+% for \Bnote, etc., \Anotelabel...\donote..., etc. -- Well this
+% holds for <stdtable>, hardly for <stdarray> ... %% TODO
+%
+% 3. On positioning: You may have wondered about `extra line'
+% above. This means that `edtable' starts a new line at
+% \begin{edtable} and at \end{edtable}. %% TODO: sure!?
+% (a) It should be placed within a `center', `flushleft', or
+% `flushright' environment for proper (vertical) spacing, but
+% also works without. However, with <stdarray> and optional
+% parameter `$$' of `edtable' (i.e., \begin{edtable}[$$]...),
+% you can obtain the usual math display spacing *within a
+% paragraph*; especially, the vertical space is less when the
+% previous line is short ... and so on.
+% (b) Horizontal positioning of line numbers (usually) needs a
+% second run (after changing a table)! %% TODO: automatic warning.
+% (For wizards: It may fail if some of \leftskip, \rightskip,
+% \linewidth, and \@totalleftmargin are used in an unusual way.)
+% A <dimen> register \ETextraoffset is provided whose value is
+% 0pt by default and which additionally moves line numbers
+% to the left (right) if given a positive (negative) value.
+% %% TODO: any use?
+%
+% *Package options:*
+%
+% 1. Option `longtable' adjusts the `longtable' environment
+% defined by David Carlisle's longtable.sty for use with
+% `lineno.sty' and `ednotes.sty'. The option makes `longtable'
+% environments appear with line numbers in the margin, according
+% to `lineno.sty', and process `ednotes.sty' commands if line
+% numbering is active according to `lineno.sty'.
+% [We maintain an alternative package with just this function
+% in a slightly different implementation.] %% -> ulnltab.sty.
+% Lemmas may go across table entries as with `edtable' (see above).
+% ---There might be options like `supertabular' for adjusting
+% other tabular environments that cannot be handled by the
+% `edtable' environment provided here---they have not been
+% implemented yet! %% TODO
+%
+% 2. Option `nolongtablepatch' avoids loading/asking for
+% `ltabptch.sty'. I.e.: according to LaTeX bugs database,
+% tools/3180 and tools/3485, there have been problems with
+% vertical spacing around `longtable' environments. By default
+% the present package loads our `ltabptch.sty' or asks for it.
+% Option `nolongtablepatch' overrides this. This is useful when
+% you don't want to have the patch, especially when you use an
+% "emergency stop" installation of TeX.
+%
+% *Wizard interface:*
+% Macros \@ET@makeLineNumber, \@ET@use@outerhook,
+% \@ET@execute@outerhook, \@ET@ampnotes \@ET@startlinewith,
+% \@ET@trivialize@linelabel are provided as tools for adjusting
+% tabular environments for use with `lineno.sty' and
+% `ednotes.sty'. \@ET@step@linenumber is \let \stepLineNumber
+% (from `lineno.sty'), but could be used as a hook for
+% something different. See Environment `edtable' and Option
+% `longtable' below for examples of application.
+% %% TODO: specification here.
+%
+%
+%% * Acknowledgements: *
+%
+% Stephan I. B"ottcher told us how to do it in extensive discussion
+% and by providing some first code lines. We changed these essentially
+% in some respects, but kept his general ideas and some parts of his
+% macros, the latter even without knowing what we are doing.
+%
+% v1.3 is due to a request by Martin Brandenburg.
+%
+% * Now for internals: *
+%
+\NeedsTeXFormat{LaTeX2e}[1994/12/01]
+% 1994/12/01: \newenvironment* etc. %% TODO: more recent needed?
+\ProvidesPackage{edtable}[\filedate\space v\fileversion\space
+ arrays with lineno + ednotes (ul)]
+%
+% Alternative ideas for implementation:
+% 1. There is a German package `TABMAC' enhancing `EDMAC' (cf.
+% documentation of `ednotes.sty'). We could have rewritten its
+% macros so it would work with `lineno.sty' and `ednotes.sty'
+% in place of `EDMAC'. [TODO: "tabmac.sty"]
+% 2. We redefine `longtable' by Option `longtable' because
+% there seems to be only one reasonable use of the `longtable'
+% environment in the course of a critical edition. This may be
+% different for environments like `array' and `tabular' which
+% can be used within text lines. Therefore, these environments
+% are not redefined.
+% 3. One might use \everycr, however: (a) it is executed
+% before the first row, (b) it is executed in fake lines that
+% `longtable' uses.
+% 4. As an alternative to \everycr, there is the approach of
+% redefining \cr and \crcr for setting \noalign. This needs
+% redefining \@tabularcr etc.---not nice. We use this approach
+% here for `longtable' which uses a stretching \tabskip.
+% For \tabskip=0pt, we attach line numbers by a template.
+%
+% \RequirePackage{lineno}[2004/10/06]
+% Wanted to check lineno version--causes unknown option error.
+% See LaTeX bug latex/3730.
+
+% Options:
+
+%% TODO: underful page with `longtable.sty'!?
+\let\if@ET@longtable\iffalse % \newif\if@ET@longtable@
+\DeclareOption{longtable}{\let\if@ET@longtable\iftrue}
+\let\if@ET@ltabptch\iftrue
+\DeclareOption{nolongtablepatch}{\let\if@ET@ltabptch\iffalse}
+\ProcessOptions
+
+% Redefine \longtable if option:
+\if@ET@longtable
+ % Stephan's direction for attaching a line number to each row
+ % is using \noalign in the course of \\.
+ % However, (1) the user should not worry about closing the table
+ % with \\ or without, and (2) the line number thing should not
+ % happen twice if \\ is the last token before \end{longtable}.
+ % Our solution: attach something to the beginning of \endlongtable
+ % which attaches line number unless an unsucceeded \\ has done it.
+ % This thing is activated by each row start and turned off by \\.
+ % Since the switch at row start may happen to be in a pbox,
+ % let it act globally on \endlongtable. (The \crcr at the beginning
+ % of \endlongtable must not be changed directly, since original
+ % \crcr may be required in table entries using \oalign etc.)
+ %
+ \RequirePackage{longtable}%
+% \IfFileExists{longtable.sty}{\RequirePackage{longtable}}%
+% {\RequirePackage{longtabl}}%
+% For Atari problem, it suffices to rename `longtable.sty'
+% into `longtabl.sty'.
+%
+% Patch for tools/3180 and tools/3485 of LaTeX bug database:
+ \if@ET@ltabptch
+ \IfFileExists{ltabptch.sty}{\RequirePackage{ltabptch}}{%
+ \PackageError{edtable}{%
+ ltabptch.sty (for improving spacing around\MessageBreak
+ longtable) missing! Be sure to use it always\MessageBreak
+ or never!%
+ }{%
+ To omit ltabptch.sty *and* escape this error,\MessageBreak
+ use package option `nolongtablepatch'.%
+ }%
+ }
+ \fi
+ \let\@ET@@longtable\longtable
+ \def\longtable{%
+ \ifLineNumbers
+ \expandafter\@ET@longtable
+ \else
+ \let\@ET@sw@cr\@ET@crcr % ... in \endlongtable.
+ \expandafter\@ET@@longtable
+ \fi
+ }
+ \def\@ET@longtable{%
+ % Since we have made it anyway, we use the method of redefining
+ % \halign for inserting the activating row start as well.
+ % However, redefinition must be repeated before every \LT@bchunk.
+ % \longtable and \LT@get@withs are good places for this.
+ \@ET@startlinewith\@ET@sw@cr@on
+ \@ET@trivialize@linelabel
+ \@ET@use@outerhook
+ \@ET@ampnotes
+ \let\LT@tabularcr\@ET@LT@tabularcr
+ \expandafter\def\expandafter\LT@get@widths\expandafter
+ {\LT@get@widths\@ET@startlinewith\@ET@sw@cr@on}
+ % Admittedly, we could make it less of a hack by using @{...}
+ % ---we could then leave \LT@get@widths untouched.
+ \@ET@@longtable
+ }
+ \def\@ET@sw@cr@on{\global\let\@ET@sw@cr\@ET@cr@attach}
+ % We are hacking a longtable version offering
+ % \def\LT@tabularcr{%
+ % \relax\iffalse{\fi\ifnum0=`}\fi
+ % \@ifstar
+ % {\def\crcr{\LT@crcr\noalign{\nobreak}}\let\cr\crcr
+ % \LT@t@bularcr}%
+ % {\LT@t@bularcr}}
+ % We need a redefinition of \cr which is not overridden by \@ifstar:
+ \def\@ET@LT@tabularcr{%
+ \relax\iffalse{\fi\ifnum0=`}\fi
+ \def\cr{\@ET@sw@cr}%
+ % So \crcr is affected by change of \@ET@sw@cr, cf. below.
+ \let\crcr\cr
+ \@ifstar
+ {\gdef\@ET@sw@nobreak{\nobreak
+ \global\let\@ET@sw@nobreak\relax}%
+ % {\def\cr{\@ET@sw@cr\noalign{\nobreak}}\let\cr\crcr
+ % Why didn't this work? %% TODO: try shorter again.
+ \LT@t@bularcr}%
+ \LT@t@bularcr
+ % {\let\cr\@ET@sw@cr \let\crcr\cr
+ % \LT@t@bularcr}% This accompanied \def\cr... above.
+ }
+ % Attach \@ET@sw@cr to beginning of \endlongtable:
+ \expandafter\def\expandafter\endlongtable\expandafter
+ {\expandafter\@ET@sw@cr\endlongtable}
+ \def\@ET@cr@attach{% Actually attaching line numbers.
+ \@ET@crcr\noalign{% Basically Stephan's approach.
+ % If we were not careful, following box containing line number
+ % could fool interline glue after longtable, even if tools/3485
+ % is repaired in some way. This box should have same depth as
+ % the line composed previously.
+ \nobreak %% \@ET@ex... might cause page break. 2003/10/30.
+ \setbox\z@\@ET@makeLineNumber
+ \ht\z@-\prevdepth \dp\z@\prevdepth \box\z@
+ \@ET@step@linenumber
+ \global\let\@ET@sw@cr\@ET@crcr % ... if called by \\.
+ % This also resets the \crcr starting \LT@echunk following
+ % \@xargarraycr or \@yargarraycr in \LT@argtabularcr.
+ % \let...\relax seems to suffice at well, but in case ...
+ \@ET@execute@outerhook %% 2003/10/30.
+ \@ET@sw@nobreak
+% \@ET@execute@outerhook
+ }%
+ }
+ \let\@ET@crcr\crcr
+ \global\let\@ET@sw@nobreak\relax % Just to remind ...
+\fi
+
+\let\@ET@step@linenumber\stepLineNumber
+% \def\@ET@step@linenumber{\global\advance\c@linenumber\@ne}
+\def\@ET@makeLineNumber{\hb@xt@\z@{\makeLineNumber}}
+%% TODO: export to lineno.sty!?
+% Special \halign:
+% For `array' etc., we insert line numbers by a leftmost template.
+% @{...} in the last argument of `array' etc. is difficult for this
+% since `tabular*' has an additional argument. So we redefine
+% \halign to put something to the right of the next \bgroup.
+% Now, as a macro, \halign would break in an \edef or \xdef.
+% Horribly, this danger has become quite real in longtable.sty's
+% definition of \LT@bchunk. Only its latest version 4.10 has
+% preceded \halign by a \noexpand (for mathtext.sty which
+% redefines \halign as well). We need not rely on such a
+% provision if we let \halign expand to \the<token register>
+% for some token register. However, using \toks@ or \@temptokena
+% is neither very safe---might be filled by macro ahead with
+% something new. So reserve an own token register.
+\newtoks\@ET@toks
+\@ET@toks{\@ET@specialhalign}
+% v1.3: In 'AMSmath', there are \halign's followed by explicit
+% left braces. Thus '\def\@ET@specialhalign#1\bgroup{%' broke.
+%% TODO ...
+\def\@ET@specialhalign{%
+ \ifmeasuring@ \expandafter\@firstoftwo
+% v1.3 2005/03/04, for `amsmath'.
+ \else \expandafter\@secondoftwo
+ \fi
+ {\let\halign\@ET@@halign \halign}%
+ {\@ifnextchar\bgroup\@ET@replace@arg\@ET@sphalign@to}}
+%% TODO: change back, commenting out code above, report
+%% error with `alignat'.
+% \@ifnextchar\bgroup\@ET@replace@arg\@ET@sphalign@to}
+% If `amsmath' not loaded (v1.3):
+\AtBeginDocument{\@ifundefined{measuring@true}{%
+ \let\ifmeasuring@\iffalse}\relax}
+\def\@ET@replace@arg#1{%
+ \def\@EN@tempa{#1}\def\@EN@tempb{\bgroup}% Corr. after v1.3b.
+ \ifx\@EN@tempa\@EN@tempb
+ \def\@EN@tempa{\@ET@sphalign@to\bgroup}%
+ \else
+ \def\@EN@tempa{\@ET@sphalign@to{#1}}%
+% This may be wrong, #1 might be `t' from `to' ...
+ \fi
+ \@EN@tempa}
+\def\@ET@sphalign@to#1\bgroup{%
+ \let\halign\@ET@@halign % Reset for nested arrays.
+ \halign#1\bgroup
+% \ifmeasuring@\else % For `amsmath', moved backwards.
+ \@ET@startline % [Wizard interface, via \@ET@starlinewith.]
+% \fi
+}
+% Wizard interface:
+\def\@ET@startlinewith{% Next token precedes preamble.
+% \let\@ET@@halign\halign % Or \AtBeginDocument?
+% ... indeed: bad loop with long longtable (\LT@get@widths!?)
+ \def\halign{\the\@ET@toks}%
+ \let\@ET@startline
+}
+\AtBeginDocument{\let\@ET@@halign\halign}
+% Or save it at start of environment only
+% (don't repeat inside longtable).
+%
+% Outer hook for inserts: (wizard interface)
+\def\@ET@execute@outerhook{% To be placed outside inner mode.
+ \@ET@outerhook \global\let\@ET@outerhook\@empty
+}
+\global\let\@ET@outerhook\@empty % Just to remind: global!
+% \@EN@hookfn (ednotes) sends to outer hook:
+\def\@ET@use@outerhook{% Wizard interface.
+ \def\@EN@hookfn{\g@addto@macro\@ET@outerhook}%
+}%% TODO: move last line to `ednotes', \let\@ET@use...\@empty.
+%% But this requires re-installing both packages
+%% at the same time. See the `ampnotes' thing as well.
+%
+% Trivialize \linelabel: (wizard interface)
+\def\@ET@trivialize@linelabel{\let\linelabel\@ET@linelabel}
+\def\@ET@linelabel{%
+ \protected@edef\@currentlabel{\theLineNumber}%
+ \label
+}
+% Change ampersand at \Anote etc.: (wizard interface)
+%% 2003/10/31.
+% & is changed by \Anote etc. No \begin...\endgroup,
+% next \\ or & after % note/donote command switches back.
+% ---Global change seems to break table setup.
+\begingroup
+\gdef\@ET@hideamps{\catcode`\&\active}
+\@ET@hideamps
+\gdef\@ET@ampnotes{%
+ \let&\@ET@hideamp
+ %% & would be undefined after \\ in lemma.
+ \let\@ET@EN@rnote\@EN@note
+ \def\@EN@note{\@ET@hideamps\@ET@EN@rnote}%
+ \let\@ET@EN@rnotelb\@EN@notelabel
+ \def\@EN@notelabel{\@ET@hideamps\@ET@EN@rnotelb}%
+}
+%% TODO: & and \\ in \@EN@lemmaexpands!?
+\endgroup
+\def\@ET@hideamp{&}
+
+\newenvironment*{edtable}[2][]{%
+% #1 $ or $$, #2 standard environment name.
+%% TODO: star version!? cf. lineno.sty's `numquote'.
+ \def\@ET@mode{#1}%
+ \def\@ET@currenvir{#2}%
+ \ifhmode \ifnum\the\lastpenalty=-\@M\else
+% \par must be executed for printing/stopping line numbers:
+ \@centercr\relax \noindent
+ \fi \fi
+ \ifvmode \noindent \fi % Otherwise linenumbers are indented
+% -- however, not recommended.
+ \@ET@use@outerhook
+ \@ET@trivialize@linelabel
+ \@ET@ampnotes
+ \@ET@startlinewith\@ET@normal@startline
+ \global\advance\c@linenumber\m@ne % Stepping correction.
+% (Must come after closing previous paragraph.)
+% Calculate offset:
+ \global\advance\c@ET@array\@ne
+% Saving/calling width of table (`longtable's algorithm).
+% Test if there is \@flushglue on the left (center or flushleft):
+ \edef\@EN@tempa{\the\@flushglue}%
+% ... v1.3: fool this for "$$".
+ \in@{$$}{#1\@nil}% \in@{#1}{#2} searches #1 in #2#1 ...
+ \edef\@EN@tempb{\the\ifin@\@flushglue\else\leftskip\fi}%
+ \ifx\@EN@tempa\@EN@tempb
+% Assume \@ET@offset is 0pt else here.
+ \@ET@offset\linewidth
+ \advance\@ET@offset-%
+ \@ifundefined\@ET@arraywidth@csn % Shortened for v1.3.
+ {\linewidth\G@refundefinedtrue
+ \PackageWarningNoLine{edtab}{^^JLine numbers at
+ \@ET@currenvir\space need \jobname.aux}}%
+ {\csname\@ET@arraywidth@csn\endcsname}%
+% Test if \@flushglue on the right (center):
+% ... v1.3: fool it again. Repeat \in@ in case ...
+ \in@{$$}{#1\@nil}%
+ \edef\@EN@tempb{\the\ifin@\@flushglue\else\rightskip\fi}%
+ \ifx\@EN@tempa\@EN@tempb \divide\@ET@offset\tw@ \fi
+ \fi
+ \advance\@ET@offset\@totalleftmargin
+ \advance\@ET@offset\ETextraoffset % Offset ready.
+ \setbox\@tempboxa\hbox\bgroup
+% v1.3: `alignat' complains later when this is \vbox instead.
+% \vbox\bgroup % Tried in vain.
+ \ifx\@ET@mode\@empty\else $\fi
+ \csname#2\endcsname
+}{%
+ \csname end\@ET@currenvir \endcsname
+ \ifx\@ET@mode\@empty\else $\fi
+ \egroup
+ \@ET@step@linenumber % Stepping correction.
+ \if@filesw
+ \immediate\write\@auxout{%
+ \gdef\expandafter\noexpand
+ \csname\@ET@arraywidth@csn\endcsname
+ {\the\wd\@tempboxa}}%
+%% TODO: warning if changed!?
+ \fi
+% No automatic line number at array line:
+ \nolinenumbers
+ \@ET@mode\ensuremath{\vcenter{\box\@tempboxa}}\@ET@mode % v1.3.
+ \@ET@execute@outerhook
+ \ifhmode \@centercr\relax \fi
+% \par must be executed for proper restart of printing line numbers
+% (think so).
+ \@endpetrue % Outside \@flushglue environment, avoid indent ahead.
+%% TODO: slightly change for math mode around? Or give an error
+%% in math mode.
+}
+%% TODO: make \edtable \outer!?
+\def\@ET@normal@startline{%
+ \@ET@step@linenumber
+ \llap{\@ET@makeLineNumber \hskip\@ET@offset}%
+}
+\newdimen\@ET@offset
+\newdimen\ETextraoffset
+%% TODO: export to lineno.sty!?
+\newcount\c@ET@array
+\def\@ET@arraywidth@csn{ET@a@\romannumeral\c@ET@array}
+%
+%% TODO: .dtx
+\endinput
+
+%% VERSION HISTORY:
+v0.22 2003/01/13 First version, named `edtab02.sty', sent around,
+ together with ednotes.sty.
+v0.23 2003/01/22 Added version history.
+v0.24 2003/01/27 Copyright notice.
+%%% v0.3 2003/03/03 Requires linenox0.sty. %% RETREATED
+%% TODO: reconsider, see `lineno[x].sty'.
+v0.25 2003/03/05 Added <ednotes.sty@web.de>.
+v0.26 2003/03/23 Added \@ET@startlinewith to wizard command list;
+ moved redefinition \LT@get@widths from option code
+ into \@ET@longtable so this really happens in
+ line number mode only; moved \let\@ET@@halign\halign
+ from \@ET@startlinewith to \AtBeginDocument.
+v0.27 2003/06/02 Added \ifvmode \noindent \fi to `edtable' definition;
+ 2003/06/10 added `lemma cannot run' to instructions.
+v0.28 2003/10/31 \@ET@cr@attach: moved \@ET@execu..., added \nobreak.
+ Added \@ET@ampnotes and documentation: now working
+ across entries.
+v1.0 2004/05/13 `ednotes.sty' etc., updated copyright. Renamed as
+ `edtable.sty' for TUGboat article.
+ \RequirePackage{lineno}, changed doc. accordingly.
+ Removed `may be released under different name'.
+v1.10 2004/07/27 Looking for `longtabl.sty' for my Atari!
+ 2004/08/22 Added warning (screen/documentation) concerning
+ ltabptch.sty.
+ 2004/08/23 Added suggestion of option `nolongtablepatch';
+ LPPL v1.3.
+v1.2 2004/08/31 Rearranged preamble concerning maintenance,
+ removed `preliminary release'.
+ 2004/10/06 \newif -> \let...; option `nolongtablepatch';
+ changed documentation accordingly and for
+ loading edtable.sty by lineno/ednotes option;
+ \let\@ET@step@linenumber\stepLineNumber; use
+ \ifLineNumbers.
+ 2004/10/07 Needed version numbers.
+ 2004/10/08 ltabptch warning -> error!
+ 2004/10/11 Disabled \RequirePackage{lineno}[...]; undid
+ the `longtabl.sty' thing from 2004/07/27.
+ 2004/10/12 latex/3730.
+v1.2a 2004/11/07 LPPL v1.3a.
+v1.2b 2005/01/10 Contact via http.
+v1.3b 2005/03/04 Support for environments like `array'
+ environment. The description of `edtable' was
+ wrong in this respect!
+v1.3 2005/03/07 Adaptations in documentation, and extended usage
+ instructions very much, correcting some
+ errors as well. Acknowledgement to M. B.
+v1.3a 2005/03/09 Corrected numbering in `usage'.
+v1.3c 2005/03/15 \@centercr\relax, TODO on math mode.
+ 2005/04/09 `editory' -> `editorial'.
diff --git a/macros/latex/contrib/lineno/fnlineno.sty b/macros/latex/contrib/lineno/tex/fnlineno.sty
index 5c53da606c..224f4743db 100644
--- a/macros/latex/contrib/lineno/fnlineno.sty
+++ b/macros/latex/contrib/lineno/tex/fnlineno.sty
@@ -2,37 +2,37 @@
\ProvidesPackage{fnlineno}[2011/01/07 v0.55
numbers to footnote lines (UL)]
-%% Copyright (C) 2010 Uwe Lueck,
-%% http://www.contact-ednotes.sty.de.vu
-%% -- author-maintained in the sense of LPPL below --
+%% Copyright (C) 2010 Uwe Lueck,
+%% http://www.contact-ednotes.sty.de.vu
+%% -- author-maintained in the sense of LPPL below --
%%
-%% This file can be redistributed and/or modified under
-%% the terms of the LaTeX Project Public License; either
+%% This file can be redistributed and/or modified under
+%% the terms of the LaTeX Project Public License; either
%% version 1.3c of the License, or any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
-%% We did our best to help you, but there is NO WARRANTY.
+%% We did our best to help you, but there is NO WARRANTY.
%%
-%% Please report bugs, problems, and suggestions via
-%%
-%% http://www.contact-ednotes.sty.de.vu
+%% Please report bugs, problems, and suggestions via
%%
-%% {\it This work has been supported
+%% http://www.contact-ednotes.sty.de.vu
+%%
+%% {\it This work has been supported
%% % and is owned %% wrong, owner is RUB -- 2011/02/09
-%% by the Deutsche Forschungsgemeinschaft (DFG),
+%% by the Deutsche Forschungsgemeinschaft (DFG),
%% organized %% 2010/12/18 TODO!?
-%% by Prof.~Dr.\ Dr.\ Christian Tapp
+%% by Prof.~Dr.\ Dr.\ Christian Tapp
%% at Ruhr-Universit\"at Bochum, Germany.}
%% %% 2010/12/18:
%% Christian also has constructed some critical tests.
-%%
+%%
%% === Installing and Calling ===
-%% The file 'fnlineno.sty' is provided ready, installation only requires
-%% putting it somewhere where \TeX\ finds it
-%% (which may need updating the filename data
+%% The file 'fnlineno.sty' is provided ready, installation only requires
+%% putting it somewhere where \TeX\ finds it
+%% (which may need updating the filename data
%% base).\footnote{\url{http://www.tex.ac.uk/cgi-bin/texfaq2html?label=inst-wlcf}}
-%%
-%% As usually, 'fnlineno.sty' is loaded by
+%%
+%% As usually, 'fnlineno.sty' is loaded by
%% % \begin{verbatim}
%% `\usepackage{fnlineno}'
%% % \end{verbatim}
@@ -40,91 +40,91 @@
%%
%% === Limitations ===
%% v0.55 %%% v0.5 %% 2011/02/09
-%% should really work
+%% should really work
%% the way users expect, %% 2011/02/09
%% but please consider:
-%% % In the \strong{present version (v0.4)}, 'flnineno.sty' is just
+%% % In the \strong{present version (v0.4)}, 'flnineno.sty' is just
%% % ``work in progress"---with at least the following issues:
%% \begin{enumerate}
-%% % \item Lines are numbered in an order
-%% % that you may not like, in the presence of
-%% % footnotes.
-%% % Overcoming this failure by automagic
-%% % will be the major further work on the package!
+%% % \item Lines are numbered in an order
+%% % that you may not like, in the presence of
+%% % footnotes.
+%% % Overcoming this failure by automagic
+%% % will be the major further work on the package!
%% % (v0.5!?)
-%% %
-%% % \item The package is not expected to work with 'manyfoot'
+%% %
+%% % \item The package is not expected to work with 'manyfoot'
%% % (neither 'ednotes' ... future work!).
%%
-%% \item Nothing is known about compatibility with
+%% \item Nothing is known about compatibility with
%% packages (other than 'manyfoot' and 'bigfoot')
%% providing footnote features beyond standard \LaTeX.
-%%
-%% \item `\lipsum[<opt-arg>]' in main text produces
+%%
+%% \item `\lipsum[<opt-arg>]' in main text produces
%% a different number of paragraphs ...
-%%
+%%
%% %% 2010/12/18:
-%% % \item `\pagebreak' (without optional argument, or
-%% % `\pagebreak[4]') in footnotes prints footnote parts
+%% % \item `\pagebreak' (without optional argument, or
+%% % `\pagebreak[4]') in footnotes prints footnote parts
%% % (splits) in wrong order.\footnote{TODO:
-%% % (i)~extra case (using flag) in &\output
-%% % with $&\outputpenalty=-10000$;
+%% % (i)~extra case (using flag) in &\output
+%% % with $&\outputpenalty=-10000$;
%% % \emph{or}
%% % (ii)~redefine &\pagebreak in footnotes ...}
%% %% 2010/12/19, "tried" "assumed" 2010/12/21:
-%% \item v0.41 tried supporting `\pagebreak' in footnotes
-%% for manual control of splitting footnotes.
+%% \item v0.41 tried supporting `\pagebreak' in footnotes
+%% for manual control of splitting footnotes.
%% %% 2010/12/20f.:
%% However, it wrongly assumed that `\pagebreak[4]'
-%% forces a footnote split, cf. Section~\ref{sec:sw};
+%% forces a footnote split, cf. Section~\ref{sec:sw};
%% users better still don't use `\pagebreak'
%% in footnotes!
-%%
-%% \item Much of the code is ``guessed" without complete
-%% knowledge of \TeX\ internals and without having
+%%
+%% \item Much of the code is ``guessed" without complete
+%% knowledge of \TeX\ internals and without having
%% tested many possible cases.
%% %% 2010/12/27:
%% \item \emph{Local} switching to ``pagewise" numbering
-%% won't be possible for a while; we rather assume
-%% that you \emph{always} want ``pagewise" numbering.
+%% won't be possible for a while; we rather assume
+%% that you \emph{always} want ``pagewise" numbering.
%%
-%% \item Nothing has been tried to offer choices about the
+%% \item Nothing has been tried to offer choices about the
%% \emph{style} of numbering footnotes.
%% \end{enumerate}
%%
%% \pagebreak %% 2011/02/09
%% == Implementation ==
%% === Terms ===
-%% ``\strong{OTR}" is short for \textit{``output routine"},
+%% ``\strong{OTR}" is short for \textit{``output routine"},
%% ``\strong{MVL}" is short for \textit{``main vertical list"}.
%% %%% TODO "acro"
%%
%% === Basic Strategy ===
-%% \LaTeX's |\@footnotetext| writes the footnote text into the
-%% insertion register. For numbering the footnote lines,
-%% \emph{we here} do not execute this `\@footnotetext'
-%% immediately after placing |\@footnotemark|,
-%% but postpone its |\insert| a little so it
-%% is executed only after the main text paragraph has been
-%% broken into lines. Right below the line that contains the
-%% footnote mark, a special new ``slot" of the \strong{OTR}
-%% is called that interchanges ``the page so far" with the
-%% footnote text. When the latter has been typeset,
-%% another ``slot" of the OTR puts ``the page so far"
-%% back to the MVL and immediately after that fills the footnote
-%% text as just typeset on the MVL into the `\insert' register.
-%%
-%% Passing footnotes from horizontal mode to vertical mode
-%% resembles 'lineno''s `\PostponeVadjust', but a
+%% \LaTeX's |\@footnotetext| writes the footnote text into the
+%% insertion register. For numbering the footnote lines,
+%% \emph{we here} do not execute this `\@footnotetext'
+%% immediately after placing |\@footnotemark|,
+%% but postpone its |\insert| a little so it
+%% is executed only after the main text paragraph has been
+%% broken into lines. Right below the line that contains the
+%% footnote mark, a special new ``slot" of the \strong{OTR}
+%% is called that interchanges ``the page so far" with the
+%% footnote text. When the latter has been typeset,
+%% another ``slot" of the OTR puts ``the page so far"
+%% back to the MVL and immediately after that fills the footnote
+%% text as just typeset on the MVL into the `\insert' register.
+%%
+%% Passing footnotes from horizontal mode to vertical mode
+%% resembles 'lineno''s `\PostponeVadjust', but a
%% different \strong{list} |\FNLN@list|
-%% must store code
-%% (\textit{a})~for the footnote \strong{mark} and
-%% (\textit{b})~for the footnote \strong{text}.
+%% must store code
+%% (\textit{a})~for the footnote \strong{mark} and
+%% (\textit{b})~for the footnote \strong{text}.
%% %%% (TODO: move this paragraph)
%%
%% === Package Options ===
%% A package option |[check-latex]| %% typo article 2010/12/31
-%% for checking vital \LaTeX\ internals may once be offered
+%% for checking vital \LaTeX\ internals may once be offered
%% (TODO 2010/12/12) ...
\newif\if@FNLN@check@
\DeclareOption{check-latex}{\@FNLN@check@true}
@@ -133,13 +133,13 @@
%% === Footnote Commands ===
%% ==== Standard Footnotes ====
%% The following macro |\FNLN@ltx@fntext| %% more 2010/12/16
-%% is a copy of \LaTeX's `\@footnotetext'
-%% that we are varying. It may be used for a check
-%% if the `\@footnotetext' that 'fnlineno.sty' encounters
+%% is a copy of \LaTeX's `\@footnotetext'
+%% that we are varying. It may be used for a check
+%% if the `\@footnotetext' that 'fnlineno.sty' encounters
%% is the one expected (TODO).
-%% In line numbering mode, this code may never be needed
-%% all at once, rather we will have to see which material
-%% must be used at which point of our unusual way of
+%% In line numbering mode, this code may never be needed
+%% all at once, rather we will have to see which material
+%% must be used at which point of our unusual way of
%% processeing footnotes.
\if@FNLN@check@
\long\def\FNLN@ltx@fntext#1{\insert\footins{%
@@ -158,24 +158,24 @@
\fi
%%
%% ==== Modifying Footnote Commands ====
-%% In order to number |\footnote| lines and make
-%% `\linelabel' available in footnotes, it seems to suffice
-%% (with standard \LaTeX) to \strong{redefine}
+%% In order to number |\footnote| lines and make
+%% `\linelabel' available in footnotes, it seems to suffice
+%% (with standard \LaTeX) to \strong{redefine}
%% the internal |\@footnotetext|.
-%% In line numbering mode, `\@footnotetext' will act as
-%% |\FNLN@text|,
+%% In line numbering mode, `\@footnotetext' will act as
+%% |\FNLN@text|,
%% % \begin{itemize}
-%% % \item[(i)]
+%% % \item[(i)]
%% (\textit{i})~%
%% placing a ``signal" \strong{output penalty}
%% below the current line via `\vadjust' and
-%% % \item[(ii)]
+%% % \item[(ii)]
%% (\textit{ii})~%
-%% appending the footnote text to the
-%% \strong{list} |\FNLN@list| of \strong{footnote texts}.
+%% appending the footnote text to the
+%% \strong{list} |\FNLN@list| of \strong{footnote texts}.
%% % \end{itemize}
-%%
-%% |\FNLN@@text| stores the `\@footnotetext' found,
+%%
+%% |\FNLN@@text| stores the `\@footnotetext' found,
%% we might check if it is `\FNLN@ltx@fntext' ... %% TODO
\let\FNLN@@text\@footnotetext
\def\@footnotetext{%
@@ -184,27 +184,27 @@
\fi}
\def \FNLN@text {% %% 2010/12/31 arg read later
\vadjust{\penalty-\FNLN@M@swap@codepen}%
-%% Standard \LaTeX's `\@footnotetext' expands `\@thefnmark'
-%% to produce the footnote mark at the page bottom,
-%% right after it has been determined for the mark
-%% in the main text. \emph{Here} the footnote text
+%% Standard \LaTeX's `\@footnotetext' expands `\@thefnmark'
+%% to produce the footnote mark at the page bottom,
+%% right after it has been determined for the mark
+%% in the main text. \emph{Here} the footnote text
%% will be typeset only when \emph{other} footnote marks
-%% may have been formed for typesetting the main text
-%% paragraph before.
+%% may have been formed for typesetting the main text
+%% paragraph before.
%% %%% (TODO clearer wording)
-%% In the \strong{footnote list}
+%% In the \strong{footnote list}
%% macro |\FNLN@list|, the (\dqtd{`&\protect'ed})
-%% \emph{current} expansion <mark> of `\@thefnmark'
-%% is stored as an item preceding the footnote text
-%% <text>. One footnote entry in `\FNLN@list'
+%% \emph{current} expansion <mark> of `\@thefnmark'
+%% is stored as an item preceding the footnote text
+%% <text>. One footnote entry in `\FNLN@list'
%% thus has the form \lq`<mark>\@lt<text>\@lt'\rq.
-%% \LaTeX's internal `\g@addto@macro' is used to \emph{append}
-%% an entry to the list (at the right). The OTR will later
-%% take the entries from the left of the list.
-%%
-%% The argument of the auxiliary/temporary `\@tempa'
-%% will contain the footnote text and thus must be able to
-%% carry `\par' tokens. We therefore need a `\long' version of
+%% \LaTeX's internal `\g@addto@macro' is used to \emph{append}
+%% an entry to the list (at the right). The OTR will later
+%% take the entries from the left of the list.
+%%
+%% The argument of the auxiliary/temporary `\@tempa'
+%% will contain the footnote text and thus must be able to
+%% carry `\par' tokens. We therefore need a `\long' version of
%% `\protected@edef':
\let\@@protect\protect
\let\protect\@unexpandable@protect
@@ -212,7 +212,7 @@
\long \edef \@tempa ##1{%
\noexpand\g@addto@macro \noexpand\FNLN@list {%
\@thefnmark \noexpand\@lt ##1\noexpand \@lt}}%
-%% ... issuing
+%% ... issuing
%% \lq`\g@addto@macro\FNLN@list{<mark>\elt<text>\@lt}'\rq\ ...
\@tempa %% reads arg
}
@@ -222,62 +222,62 @@
%% === Output Routines ===
%% ==== 'lineno''s Output Routine ====
%% The following is a copy of 'lineno''s OTR
-%% that we are varying. It may be used for a check
-%% if the OTR that 'fnlineno.sty' encounters
+%% that we are varying. It may be used for a check
+%% if the OTR that 'fnlineno.sty' encounters
%% is the one expected (TODO).
\if@FNLN@check@
\def\FNLN@lno@output {%
\LineNoTest
\if@tempswa
- \ifnum\outputpenalty=-\@Mllbcodepen
- \WriteLineNo
- \else
- \ifnum\outputpenalty=-\@Mppvacodepen
- \PassVadjustList
- \else
- \LineNoLaTeXOutput
- \fi
- \fi
- \else
+ \ifnum\outputpenalty=-\@Mllbcodepen
+ \WriteLineNo
+ \else
+ \ifnum\outputpenalty=-\@Mppvacodepen
+ \PassVadjustList
+ \else
+ \LineNoLaTeXOutput
+ \fi
+ \fi
+ \else
\MakeLineNo
\fi
}
%% The ``signal penalties" used here are
- \mathchardef\FNLN@M@llbl@codepen=11111
- \mathchardef\FNLN@M@ppva@codepen=11112
+ \mathchardef\FNLN@M@llbl@codepen=11111
+ \mathchardef\FNLN@M@ppva@codepen=11112
\fi
-%% Their names should mean ```\linelabel' code penalty" and
+%% Their names should mean ```\linelabel' code penalty" and
%% ```\PostponeVadjust' code penalty."
%%
%% |\TheLineNoLaTeXOutput|:
-%% It turns out to be inconvenient here
-%% that 'lineno' sacrifices access
-%% to the \emph{primitive} `\output' (```\@tempa'";
-%% TODO: auxiliary package before loading 'lineno'!?;
-%% later change 'lineno.sty' indeed).
-%% So to change the OTR we use `\LineNoLaTeXOutput' as a hook
-%% for adding additional cases of `\outputpenalt'ies.
-%% We take a copy of `\LineNoLaTeXOutput' here.
+%% It turns out to be inconvenient here
+%% that 'lineno' sacrifices access
+%% to the \emph{primitive} `\output' (```\@tempa'";
+%% TODO: auxiliary package before loading 'lineno'!?;
+%% later change 'lineno.sty' indeed).
+%% So to change the OTR we use `\LineNoLaTeXOutput' as a hook
+%% for adding additional cases of `\outputpenalt'ies.
+%% We take a copy of `\LineNoLaTeXOutput' here.
\let\TheLineNoLaTeXOutput\LineNoLaTeXOutput
%%
%% ==== Tools for Temporary Parameter Changes ====
-%% |\GStoreReg{<register>}|\quad
+%% |\GStoreReg{<register>}|\quad
%% (or\quad |\GStoreReg<register>|\\[\smallskipamount]
%% when <register> is a single token---\lq`\count0'\rq\
-%% being a counterexample ...)\quad
-%% stores the current content of <register>
-%% (\emph{globally}) as an internal macro so that it can be
-%% restored later by\\[\smallskipamount]
-%% |\RestoreReg{<register>}|\quad
+%% being a counterexample ...)\quad
+%% stores the current content of <register>
+%% (\emph{globally}) as an internal macro so that it can be
+%% restored later by\\[\smallskipamount]
+%% |\RestoreReg{<register>}|\quad
%% \mbox{(or\quad }|\RestoreReg<register>|)\\[\smallskipamount]
-%% or \emph{globally} by\\[\smallskipamount]
+%% or \emph{globally} by\\[\smallskipamount]
%% |\GRestoreReg{<register>}|\quad (|\GRestoreReg<register>|)
%% \\[\smallskipamount]
-%% (The OTR runs in a local group!---Recall that assignments
-%% to ``special dimens"---\TeX book p.\,271---are
-%% automatically global.)
+%% (The OTR runs in a local group!---Recall that assignments
+%% to ``special dimens"---\TeX book p.\,271---are
+%% automatically global.)
%% <register> is something that can be prefixed by `\the'
-%% to read its content and to which you can assign a value
+%% to read its content and to which you can assign a value
%% <value> by \lq<register><value>\rq.
%% (TODO: could also be some `\catcode'!)
%% %% and TODO allow changing name space!
@@ -285,15 +285,15 @@
\expandafter \xdef \csname GS\string#1\endcsname {\the #1}}
\newcommand*{\RestoreReg}[1]{#1\csname GS\string#1\endcsname \relax}
\newcommand*{\GRestoreReg}{\global\RestoreReg}
-%% |\GStoreSetReg{<register>}{<value>}| assigns %%% the new value
-%% <value> to <register> (locally) after executing `\GStoreSet',
-%% |\GStoreGSetReg| does the same \emph{globally}
-%% (and still argument braces aren't needed when a single
-%% token refers to the register).
+%% |\GStoreSetReg{<register>}{<value>}| assigns %%% the new value
+%% <value> to <register> (locally) after executing `\GStoreSet',
+%% |\GStoreGSetReg| does the same \emph{globally}
+%% (and still argument braces aren't needed when a single
+%% token refers to the register).
\newcommand*{\g@storesetreg}[3]{\GStoreReg{#2}#1#2#3\relax}
\newcommand*{\GStoreSetReg} {\g@storesetreg\relax}
\newcommand*{\GStoreGSetReg}{\g@storesetreg\global}
-%% (These preliminaries might go into an own new package, TODO!
+%% (These preliminaries might go into an own new package, TODO!
%% + loop on list of <register>s ...) %% 2010/12/19
%%
%% ==== The basic hook ====
@@ -301,15 +301,15 @@
%% We use two more penalties triggering the ``MVL swaps:"
\mathchardef\FNLN@M@swap@codepen =11113
\mathchardef\FNLN@M@insert@codepen=11114
-%% v0.41 deals with |\pagebreak| in footnote texts,
-%% using a flag |\if@FNLN@sw@| that must be set globally.
+%% v0.41 deals with |\pagebreak| in footnote texts,
+%% using a flag |\if@FNLN@sw@| that must be set globally.
%% %% 2011/01/07:
-%% It turned out not to work properly; however, the new
-%% switch has served a different purpose for ``continuous
+%% It turned out not to work properly; however, the new
+%% switch has served a different purpose for ``continuous
%% line numbering," cf. section~\ref{sec:cont}.
\newif\if@FNLN@sw@ \global\@FNLN@sw@false %% v0.41
-%% When a `\pagebreak' triggers the OTR while typesetting
-%% the footnote text, the page content is collected
+%% When a `\pagebreak' triggers the OTR while typesetting
+%% the footnote text, the page content is collected
%% in a box |\FNLN@holdft|:
\newsavebox\FNLN@holdft %% v0.41
%% Using |\LineNoLaTeXOutput| for hooking into the OTR:
@@ -323,17 +323,17 @@
\if@FNLN@sw@ %% v0.41
% \showthe\outputpenalty %% 2010/12/20
\global\setbox \FNLN@holdft \vbox{%
- \unvbox\FNLN@holdft
+ \unvbox\FNLN@holdft
%% %% moved here, clarified 2010/12/21:
-%% TODO from v0.41: `\pagebreak[4]' does not seem to force (reliably)
-%% splitting a footnote; if the footnote is not split here,
+%% TODO from v0.41: `\pagebreak[4]' does not seem to force (reliably)
+%% splitting a footnote; if the footnote is not split here,
%% at present the `\baselineskip' is lost,
-%% see the footnote paragraph starting
+%% see the footnote paragraph starting
%% with \qtd{C} in `edfndemo.pdf' as of 2010/12/21.
%% We would need some measuring ... `\pagebreak'
%% might be redefined ... resembling \LaTeX's `\@specialoutput'!
- \unvbox\@cclv
-%% TODO same problem here, see the footnote paragraph starting
+ \unvbox\@cclv
+%% TODO same problem here, see the footnote paragraph starting
%% with \qtd{D} in `edfndemo.pdf' as of 2010/12/21.
\penalty\outputpenalty}%
%% TODO reset page book-keeping!? %% v0.41
@@ -343,45 +343,45 @@
\fi
\fi
}
-%% \strong{An idea:}\quad Instead of so many `\ifnum', use
+%% \strong{An idea:}\quad Instead of so many `\ifnum', use
%% \[`\csname<chars>\the\outputpenalty\endcsname'\]
-%% ... in 'lineno.sty', when you really have a broad
-%% range of `\outputpenalties' useful to be
+%% ... in 'lineno.sty', when you really have a broad
+%% range of `\outputpenalties' useful to be
%% described by `\ifnum' range checks ...
%%
%% ==== Typesetting the Footnote Text ====
-%% |\SwapFootnoteMain| is the slot of the OTR that our
-%% modified `\@footnotetext' calls with
+%% |\SwapFootnoteMain| is the slot of the OTR that our
+%% modified `\@footnotetext' calls with
%% $`\outputpenalty'=-`\FNLN@M@swap@codepen'$.
-%% The ``column so far" is stored in a new box register
+%% The ``column so far" is stored in a new box register
%% |\FLNL@holdcol|.
\newsavebox\FNLN@holdcol
\newcommand*{\SwapFootnoteMain}{%
\global \setbox\FNLN@holdcol \vbox{\unvbox\@cclv}%
%% (... cf. `\@holdpg' in \LaTeX.)
%%
-%% The entire text of a footnote is typeset on top of
-%% the MVL. `\vsize' is maximized temporarily to avoid
-%% that the footnote text is broken across pages.
+%% The entire text of a footnote is typeset on top of
+%% the MVL. `\vsize' is maximized temporarily to avoid
+%% that the footnote text is broken across pages.
\GStoreGSetReg\vsize\maxdimen
%% However, the user may want to use `\pagebreak'
-%% in a footnote in order to control manually where
-%% a ``long" footnote is split. v0.41 tries to support
+%% in a footnote in order to control manually where
+%% a ``long" footnote is split. v0.41 tries to support
%% this:
\global\@FNLN@sw@true %% v0.41
%% ... cf. Section~\ref{sec:sw}.
%%
-%% There shouldn't be any `\topskip', the space
+%% There shouldn't be any `\topskip', the space
%% on top of a footnote is controlled by `\footnotesep'
%% entirely:
\GStoreGSetReg\topskip\z@skip
-%% (`\nointerlineskip' as well as setting `\topskip'
+%% (`\nointerlineskip' as well as setting `\topskip'
%% locally instead fails ... according to `\showlists' ...)
%%
-%% Resetting |\pagegoal|
-%% (why doesn't it switch to $`\vsize'=`\maxdimen'$ automatically?),
-%% |\pagetotal|, and the other ``special dimens"
-%% (\TeX book p.\,271; rather experimental ...
+%% Resetting |\pagegoal|
+%% (why doesn't it switch to $`\vsize'=`\maxdimen'$ automatically?),
+%% |\pagetotal|, and the other ``special dimens"
+%% (\TeX book p.\,271; rather experimental ...
%% I think it is important to restore them later ...)
\GStoreSetReg\pagegoal \vsize
\GStoreSetReg\pagetotal\z@
@@ -395,27 +395,27 @@
%% such as font:
\reset@font\footnotesize
\interlinepenalty\interfootnotelinepenalty
-%% \LaTeX's `split' things here are relevant at
+%% \LaTeX's `split' things here are relevant at
%% `\insert\footins' only: (TODO!?)
% \splittopskip\footnotesep
% \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
\hsize\columnwidth \@parboxrestore
%% The previous lines were from \LaTeX's `\@footnotetext'.
-%% Now we need to restore the `\@thefnmark' that belongs
-%% to the current footnote text. We use a macro that
-%% tears two items from |\FNLN@list| and executes the
+%% Now we need to restore the `\@thefnmark' that belongs
+%% to the current footnote text. We use a macro that
+%% tears two items from |\FNLN@list| and executes the
%% rest of \LaTeX's `\@footnotetext':
\expandafter \FNLN@typeset \FNLN@list \@@
% \showthe\vsize
-%% ... so a `\vsize' assignment without `\global'
-%% is noted here, and an analogous `\topskip' assignment
+%% ... so a `\vsize' assignment without `\global'
+%% is noted here, and an analogous `\topskip' assignment
%% is not!? TODO ...
}
%% |\FNLN@typeset| first removes something %% reworded 2010/12/26
%% from the list of footnotes, similarly to \LaTeX's |\@xnext|
-%% and 'lineno''s `\@LN@xnext', then executes a
-%% remaining portion of \LaTeX's `\@footnotetext'.
-%% The footnote text may contain `\par' tokens,
+%% and 'lineno''s `\@LN@xnext', then executes a
+%% remaining portion of \LaTeX's `\@footnotetext'.
+%% The footnote text may contain `\par' tokens,
%% so the definition must be `\long':
\long\def \FNLN@typeset #1\@lt #2\@lt #3\@@{%
\gdef\FNLN@list{#3}%
@@ -428,11 +428,11 @@
%% We insert starting the 'lineno' settings ...
\linenumbers
\setfootnotelinenumbers %% 2010/12/25
-%% ... \LaTeX\ again (v0.41 exports dealing with
-%% closing `\par' to `finstrut.sty'):
+%% ... \LaTeX\ again (v0.41 exports dealing with
+%% closing `\par' to `finstrut.sty'):
\@makefntext{%
\rule\z@\footnotesep\ignorespaces
-%% We replace `#1' by `#2\par' (`\linenumberpar'),
+%% We replace `#1' by `#2\par' (`\linenumberpar'),
%% so we really need `finstrut.sty':
#2\par
\@finalstrut\strutbox}%
@@ -441,25 +441,25 @@
\penalty-\FNLN@M@insert@codepen
}
\RequirePackage{finstrut}
-%%
+%%
%% ==== &\insert\ the Footnote Text ====
%% |\InsertFootnote| is the slot of the OTR that executes
%% `\insert\footins' with the numbered footnote text.
-%% The ``column so far" stored in `\FNLN@holdcol'
-%% is put onto the top of the MVL, and then parts of
+%% The ``column so far" stored in `\FNLN@holdcol'
+%% is put onto the top of the MVL, and then parts of
%% \LaTeX's `\@footnotetext' are performed that haven't
-%% been done earlier, applied to the footnote text
-%% that the OTR should have found in `\box255'.
-%% Before however, the previous `\topskip', `\vsize', and the
+%% been done earlier, applied to the footnote text
+%% that the OTR should have found in `\box255'.
+%% Before however, the previous `\topskip', `\vsize', and the
%% `\page'... book-keeping parameters are restored:
\newcommand*{\InsertFootnote}{%
\GRestoreReg\topskip \GRestoreReg\vsize
-%% (... \emph{global} restoring of `\vsize' proved vital with
+%% (... \emph{global} restoring of `\vsize' proved vital with
%% 'edfndemo' 2010/12/17 ...)
\RestoreReg \pagegoal \RestoreReg\pagetotal
\RestoreReg \pagestretch
- \RestoreReg \pagefilstretch
- \RestoreReg \pagefillstretch
+ \RestoreReg \pagefilstretch
+ \RestoreReg \pagefillstretch
\RestoreReg \pagefilllstretch
\RestoreReg \pageshrink \RestoreReg\pagedepth
\unvbox\FNLN@holdcol
@@ -478,218 +478,218 @@
%% === ``Continuous'' Numbering ===
%% \label{sec:cont}
%% ==== Goal ====
-%% With v0.5, for the first time we try to get a
+%% With v0.5, for the first time we try to get a
%% ``pagewise" numbering such that, if a main text line
-%% has a footnote,
-%% (\textit{i})~its printed number is just the natural
-%% successor of the printed number of the previous main
-%% text line
-%% (instead of continuing previous numbering with the
-%% lines of the footnote first),
-%% and (\textit{ii})~the printed numbers of footnote lines
+%% has a footnote,
+%% (\textit{i})~its printed number is just the natural
+%% successor of the printed number of the previous main
+%% text line
+%% (instead of continuing previous numbering with the
+%% lines of the footnote first),
+%% and (\textit{ii})~the printed numbers of footnote lines
%% just continue the printed numbers of the main text lines.
-%% This ``obvious'' desirement is not easy to achieve;
-%% already pagewise numbering of main text lines,
-%% without numbering footnote lines, has been somewhat
+%% This ``obvious'' desirement is not easy to achieve;
+%% already pagewise numbering of main text lines,
+%% without numbering footnote lines, has been somewhat
%% ingenious.
%%
%% ==== How to Number Lines Pagewise ====
%% The basic idea of 'lineno''s pagewise numbering is:
%% \begin{enumerate}
-%% \item Each numbered line of the document is identified
+%% \item Each numbered line of the document is identified
%% by a unique counter value, an ``absolute" number.
-%% \item For each page (and column), the range of absolute
-%% line numbers occurring on them is recorded
-%% (or actually: the first and the last number).
-%% \item The ``public," ``human-readable" (``pagewise")
-%% format of a given absolute line number $l$ is generated by
-%% (\textit{i})~finding the page (and column) with
-%% first number $n$ and last number $k$ such that
-%% $n\leq l\leq k$,
+%% \item For each page (and column), the range of absolute
+%% line numbers occurring on them is recorded
+%% (or actually: the first and the last number).
+%% \item The ``public," ``human-readable" (``pagewise")
+%% format of a given absolute line number $l$ is generated by
+%% (\textit{i})~finding the page (and column) with
+%% first number $n$ and last number $k$ such that
+%% $n\leq l\leq k$,
%% (\textit{ii}) ``printing" $l-n+1$ in ``columnwise"
-%% mode, otherwise $l-m+1$ where $m$ is the first
-%% absolute line number in the left-hand column of the
+%% mode, otherwise $l-m+1$ where $m$ is the first
+%% absolute line number in the left-hand column of the
%% same page.
%% \end{enumerate}
-%% \strong{Generating} the ``pagewise" representation for a
-%% given absolute line number $l$ thus may be summarized as
-%% \emph{finding the corresponding \emph{\strong{offset}} value}
+%% \strong{Generating} the ``pagewise" representation for a
+%% given absolute line number $l$ thus may be summarized as
+%% \emph{finding the corresponding \emph{\strong{offset}} value}
%% to be subtracted ($n$, $n+1$, $m$, or $m+1$ ...).
%%
-%% When \emph{footnote} lines are to be numbered as well,
-%% a little problem is the order in which main text and
-%% footnote lines increment the absolute counter.
-%% 'lineno''s mechanism for this is started immediately
-%% after a paragraph has been broken into lines.
-%% Each line of the paragraph then calls a macro
-%% generating the line number. 'fnlineno' now interrupts
-%% numbering of main text lines at a line issuing a footnote.
-%% The footnote text is typeset, including numbering its
-%% lines at each end of a footnote paragraph. When the
-%% footnote text has been sent into the `\insert' register,
-%% numbering of main text lines is resumed.
-%%
-%% Up to v0.4 (a development version), we used the \emph{same}
-%% absolute counter for main text and footnote lines.
-%% When a page $p$ has more than one main text line and the first
-%% one has a long footnote continued on the next page~$p+1$,
-%% there is no ``range" of absolute line numbers
-%% characterizing page~$p$ any more,
-%% because the greatest absolute line number of page~$p$
-%% exceeds the absolute line numbers of the footnote continued
+%% When \emph{footnote} lines are to be numbered as well,
+%% a little problem is the order in which main text and
+%% footnote lines increment the absolute counter.
+%% 'lineno''s mechanism for this is started immediately
+%% after a paragraph has been broken into lines.
+%% Each line of the paragraph then calls a macro
+%% generating the line number. 'fnlineno' now interrupts
+%% numbering of main text lines at a line issuing a footnote.
+%% The footnote text is typeset, including numbering its
+%% lines at each end of a footnote paragraph. When the
+%% footnote text has been sent into the `\insert' register,
+%% numbering of main text lines is resumed.
+%%
+%% Up to v0.4 (a development version), we used the \emph{same}
+%% absolute counter for main text and footnote lines.
+%% When a page $p$ has more than one main text line and the first
+%% one has a long footnote continued on the next page~$p+1$,
+%% there is no ``range" of absolute line numbers
+%% characterizing page~$p$ any more,
+%% because the greatest absolute line number of page~$p$
+%% exceeds the absolute line numbers of the footnote continued
%% on page~$p+1$.
%%
-%% 'lineno''s procedure can be revived by numbering
-%% main text lines and footnote lines independently
-%% from each other. We use \emph{two} absolute counters,
-%% one is incremented with main text lines only,
-%% the other with footnote lines only.
-%% Numbering of main text lines just will not be affected
-%% by numbering of the footnote lines.
+%% 'lineno''s procedure can be revived by numbering
+%% main text lines and footnote lines independently
+%% from each other. We use \emph{two} absolute counters,
+%% one is incremented with main text lines only,
+%% the other with footnote lines only.
+%% Numbering of main text lines just will not be affected
+%% by numbering of the footnote lines.
%%
-%% Almost the same will hold for footnote lines.
-%% Each page (and column) will have a characteristic
-%% ``range" of absolute footnote line numbers $\{n,\dots,k\}$.
-%% The only notable difference will be that for footnote line~$l$
-%% we print $(l-n+1)+(K-N+1) = (K+l)-(N+n)+2$ instead of
+%% Almost the same will hold for footnote lines.
+%% Each page (and column) will have a characteristic
+%% ``range" of absolute footnote line numbers $\{n,\dots,k\}$.
+%% The only notable difference will be that for footnote line~$l$
+%% we print $(l-n+1)+(K-N+1) = (K+l)-(N+n)+2$ instead of
%% $l-n+1$---where $\{N,\dots,K\}$ is the range of \emph{main text}
-%% line numbers of the page (and column).
-%%
-%% The previous discussion of \strong{generating} the printed
-%% line number from its absolute version
-%% has assumed that corresponding \strong{offset} values
-%% have been given somehow, or that the ``line number ranges"
-%% for pages are known from somewhere.
-%% In fact, these ranges are \strong{computed} at the
-%% \strong{start} of a \LaTeX\ run \emph{before} typesetting,
-%% when reading the `.aux' file for the first
-%% time. They are used in the entire document.
-%% While typesetting, each numbered line of main text leaves
-%% a record of its absolute number and page number in the new
-%% version of the `.aux' file that the run creates,
-%% a two-parameter macro `\@LN'. With 'fnlineno.sty',
-%% there will be new `\@FLN' entries of the same type.
-%% These `.aux' entries are used for building
-%% the page range data for the next run.
-%% When the document source has been changed, at least
-%% \emph{two runs} will usually be required
-%% to get correct line numbers in page margins,
-%% and \emph{another} run will be needed so references
-%% to line numbers by `\ref' and `\linelabel' are correct.
-%%
+%% line numbers of the page (and column).
+%%
+%% The previous discussion of \strong{generating} the printed
+%% line number from its absolute version
+%% has assumed that corresponding \strong{offset} values
+%% have been given somehow, or that the ``line number ranges"
+%% for pages are known from somewhere.
+%% In fact, these ranges are \strong{computed} at the
+%% \strong{start} of a \LaTeX\ run \emph{before} typesetting,
+%% when reading the `.aux' file for the first
+%% time. They are used in the entire document.
+%% While typesetting, each numbered line of main text leaves
+%% a record of its absolute number and page number in the new
+%% version of the `.aux' file that the run creates,
+%% a two-parameter macro `\@LN'. With 'fnlineno.sty',
+%% there will be new `\@FLN' entries of the same type.
+%% These `.aux' entries are used for building
+%% the page range data for the next run.
+%% When the document source has been changed, at least
+%% \emph{two runs} will usually be required
+%% to get correct line numbers in page margins,
+%% and \emph{another} run will be needed so references
+%% to line numbers by `\ref' and `\linelabel' are correct.
+%%
%% ==== Summary of Changes ====
-%% Variants of 'lineno.sty''s code for ``pagewise"
+%% Variants of 'lineno.sty''s code for ``pagewise"
%% numbering are following. Sometimes we generalize
-%% `pagewise' stuff from 'lineno' and re-implement pagewise
-%% numbering of main text lines as a special case,
+%% `pagewise' stuff from 'lineno' and re-implement pagewise
+%% numbering of main text lines as a special case,
%% the other special case being numbering of footnote lines.
-%%
+%%
%% Five things need modifications:
%% \begin{description}
-%% \item[Building page info macros:]
-%% Processing `\@LN' and `\@FLN' `.aux' entries will
-%% use shared building macros, the difference is
-%% obtained by switching \strong{name spaces}.
-%% (It may be notable that a page may get one
-%% info macro for main text and another for
+%% \item[Building page info macros:]
+%% Processing `\@LN' and `\@FLN' `.aux' entries will
+%% use shared building macros, the difference is
+%% obtained by switching \strong{name spaces}.
+%% (It may be notable that a page may get one
+%% info macro for main text and another for
%% footnote text, if it contains footnote text.)
%% \item[Logging:]
-%% While typesetting, the shared logging macro
-%% is switched to write either `\@LN' or `\@FLN'
-%% to the `.aux' file. Also, `\c@linenumber'
-%% may refer to either the main text or to the
-%% footnote text counter.
+%% While typesetting, the shared logging macro
+%% is switched to write either `\@LN' or `\@FLN'
+%% to the `.aux' file. Also, `\c@linenumber'
+%% may refer to either the main text or to the
+%% footnote text counter.
%% \item[Generating ``pagewise" format:]
-%% The choice of `\c@linenumber' also determines
-%% which counter is incremented, and again
-%% name spaces for page info macros are switched.
-%% For footnote lines,
-%% a tail macro for adding the number of main text lines
+%% The choice of `\c@linenumber' also determines
+%% which counter is incremented, and again
+%% name spaces for page info macros are switched.
+%% For footnote lines,
+%% a tail macro for adding the number of main text lines
%% will be activated.
%% \item[Referencing:]
%% The `.aux' file may have entries from `\linelabel'
%% containing large numbers from an ``absolute" counter.
-%% In generating the ``human-readable" number,
-%% it must be known whether it is a main text or a
-%% footnote line number.
+%% In generating the ``human-readable" number,
+%% it must be known whether it is a main text or a
+%% footnote line number.
%% %% 2010/12/28:
-%% An additional complication is referring to a
-%% main text line from a footnote and vice versa---thinking
+%% An additional complication is referring to a
+%% main text line from a footnote and vice versa---thinking
%% of global changes in generating the number.
-%% Or even think of the case referring from unnumbered text
+%% Or even think of the case referring from unnumbered text
%% to numbered text!
-%% (I have wondered before if the entry couldn't be
+%% (I have wondered before if the entry couldn't be
%% the ready human-readable number, TODO!)
%% %% 2010/12/27:
%% \item[Lists of ``vertical tasks":]
-%% 'lineno.sty' (v4) has introduced two lists of
+%% 'lineno.sty' (v4) has introduced two lists of
%% tasks that were issued in horizontal mode
-%% but only can be completed after breaking a paragraph
-%% into lines: one for `\linelabel's and one for `\vadjust'
-%% items that must wait until the line number has been
-%% attached. It is essential that the tasks are processed
-%% in the same order in vertical mode as they were
-%% issued in horizontal mode. As we are now interrupting
-%% processing of main text paragraphs for processing
-%% footnotes, tasks for footnote text must be lined up
-%% in separate lists than tasks for main text.
-%% This is indeed essential for the previous issue
-%% of getting `\linelabel' work in footnotes as well
+%% but only can be completed after breaking a paragraph
+%% into lines: one for `\linelabel's and one for `\vadjust'
+%% items that must wait until the line number has been
+%% attached. It is essential that the tasks are processed
+%% in the same order in vertical mode as they were
+%% issued in horizontal mode. As we are now interrupting
+%% processing of main text paragraphs for processing
+%% footnotes, tasks for footnote text must be lined up
+%% in separate lists than tasks for main text.
+%% This is indeed essential for the previous issue
+%% of getting `\linelabel' work in footnotes as well
%% as in main text.
%% \end{description}
-%%
+%%
%% ==== Info Building ====
-%% % These macros
+%% % These macros
%% |\@LN|, |\@FLN|, and |\@FNLN|
-%% are processed at reading the `.aux' file before typesetting only.
-%% The \strong{interface} to \strong{generating}
+%% are processed at reading the `.aux' file before typesetting only.
+%% The \strong{interface} to \strong{generating}
%% ``pagewise" and footnote line numbers just are |\LN@Pfirst|
-%% and |\FLN@Pfirst|, eventually pointing to the first page/column
+%% and |\FLN@Pfirst|, eventually pointing to the first page/column
%% with numbered main text lines or footnote lines, resp.
\def \FLN@Pfirst {\nextLN\relax}
-%% This initialization of `\FLN@Pfirst' is just the same
-%% as the one of `\LN@Pfirst' in 'lineno.sty';
-%% their expansions are changed as soon
+%% This initialization of `\FLN@Pfirst' is just the same
+%% as the one of `\LN@Pfirst' in 'lineno.sty';
+%% their expansions are changed as soon
%% as such a page is found, replacing the `\relax' by the
-%% corresponding page info macro.
-%%
-%% `\LN@Pfirst' and `\FLN@Pfirst' are passed to
+%% corresponding page info macro.
+%%
+%% `\LN@Pfirst' and `\FLN@Pfirst' are passed to
%% |\testFirstNumberedPage| via the hook |\FNLN@first@numbered|
%% that by default is the same as `\LN@first':
\def \FNLN@first@numbered {\LN@Pfirst}
%% (oh, it must be `\def' here to recognize the change ...).
-%% This must be changed by `\setfootnotelinenumbers'
-%% (`\let' then, as when called the change will have happened).
+%% This must be changed by `\setfootnotelinenumbers'
+%% (`\let' then, as when called the change will have happened).
%%
-%% Moreover, they are passed to |\NumberedPageCache|
-%% (the page info macro where a search starts,
-%% ``current" page/column) as its initialization;
-%% the ``generating" macros then change the
+%% Moreover, they are passed to |\NumberedPageCache|
+%% (the page info macro where a search starts,
+%% ``current" page/column) as its initialization;
+%% the ``generating" macros then change the
%% latter macro following `\nextLN' in the page info macros.
%%
-%% In this sense, no other ``name space switching" is needed
+%% In this sense, no other ``name space switching" is needed
%% for communication with other functions.
-%%
+%%
%% 'lineno.sty' has changed |\LastNumberedPage| globally ...
-%% the last page with numbered \emph{footnote} lines
-%% may well be another one than the last page with
-%% numbered \emph{main} text lines ...
+%% the last page with numbered \emph{footnote} lines
+%% may well be another one than the last page with
+%% numbered \emph{main} text lines ...
%% But fortunately, also `\LastNumberedPage'
%% is needed in reading the `.aux' before typesetting only
%% (`\@onlypreamble' is \LaTeX's disabling command):
\@onlypreamble\LastNumberedPage
-%% In 'lineno.sty', we have `\def\LastNumberedPage{first}'.
-%% We need the same for the footnote variant |\FNLN@last@numbered|
-%% (to be handled globally!):
+%% In 'lineno.sty', we have `\def\LastNumberedPage{first}'.
+%% We need the same for the footnote variant |\FNLN@last@numbered|
+%% (to be handled globally!):
\global \let \FNLN@last@numbered \LastNumberedPage
\@onlypreamble \FNLN@last@numbered
%% |\@FNLN{<names>}<last-numbered>{<line>}{<page>}|
%% \\[\smallskipamount]
-%% generalizes 'lineno.sty''s `\@LN{<line>}{<page>}'
-%% to re-implement it.
-%% There is an additional parameter argument <names>
+%% generalizes 'lineno.sty''s `\@LN{<line>}{<page>}'
+%% to re-implement it.
+%% There is an additional parameter argument <names>
%% for choosing name spaces
-%% and a parameter <last-numbered> for choosing the macro
+%% and a parameter <last-numbered> for choosing the macro
%% storing the ``last numbered page."
%% (An argument without braces expects a macro name.)
\newcommand* \@FNLN [4]{{%
@@ -698,17 +698,17 @@
\csname #1O#4\endcsname
{#3}{#4}{#1}{#2}}}
\@onlypreamble\@FNLN
-%% As in 'lineno.sty' `\@LN' calls `\@@LN', a new variant
+%% As in 'lineno.sty' `\@LN' calls `\@@LN', a new variant
%% of `\@@LN' is called by `\@FLN' here, but it gets one
-%% additional parameter for passing <names>
-%% and another for passing <last-numbered> from `\@FLN'.
-%% So the new syntax is\\[\smallskipamount]
+%% additional parameter for passing <names>
+%% and another for passing <last-numbered> from `\@FLN'.
+%% So the new syntax is\\[\smallskipamount]
%% |\@@LN<info><first-page-line>{<line>}{<page>}{<names>}<last-numbered>|:
-\renewcommand* \@@LN [6]{%
+\renewcommand* \@@LN [6]{%
\ifx#1\relax
\ifx#2\relax\gdef#2{#3}\fi
- \expandafter\@@@LN\csname #5#6\endcsname#1%
- \xdef#1{\lastLN{#3}\firstLN{#3}%
+ \expandafter\@@@LN\csname #5#6\endcsname#1%
+ \xdef#1{\lastLN{#3}\firstLN{#3}%
\pageLN{#4}{\@LN@column}{#2}\nextLN\relax}%
\else
\def\lastLN##1{\noexpand\lastLN{#3}}%
@@ -717,54 +717,54 @@
\xdef#6{#4C\@LN@column}}
\@onlypreamble\@@LN
%% 'lineno.sty''s |\@@@LN| does not need any adjustment.
-%%
-%% 'lineno.sty''s |\@LN{<line>}{<page>}| is reimplemented as
-\def \@LN {\@FNLN{LN@P}\LastNumberedPage}
-%% ---so `\@LN' really does the same as before, including name spaces.
-%%
-%% |\@FLN{<line>}{<page>}| is the other special case of the
-%% new `\@FNLN'---an `F' precedes the earlier names, and
+%%
+%% 'lineno.sty''s |\@LN{<line>}{<page>}| is reimplemented as
+\def \@LN {\@FNLN{LN@P}\LastNumberedPage}
+%% ---so `\@LN' really does the same as before, including name spaces.
+%%
+%% |\@FLN{<line>}{<page>}| is the other special case of the
+%% new `\@FNLN'---an `F' precedes the earlier names, and
%% |\FNLN@last@numbered| is the storing macro initialized above:
\def \@FLN {\@FNLN{FLN@P}\FNLN@last@numbered}
-%% For logging, we make both unexpandable: %% 2010/12/27
+%% For logging, we make both unexpandable: %% 2010/12/27
% \AtBeginDocument{\let\@LN\relax \let\@FLN\relax}
%% ... but this way nothing appears in the file!? TODO ...
\@onlypreamble\@LN \@onlypreamble\@FLN
-%% For reading the `.aux' finally, we do what
+%% For reading the `.aux' finally, we do what
%% 'lineno' does with `\@LN':
\AtEndDocument{\let\@FLN\@gobbletwo}
%%
-%% ==== Tool for Reusing Global Operations with Macros ====
+%% ==== Tool for Reusing Global Operations with Macros ====
%% %% 2010/12/28
-%% 'lineno.sty' v4 provides list handling (changing lists globally)
-%% and global changes of `\NumberedPageCache'.
-%% We want to use them in ``main text" mode
-%% as well as in ``footnote" mode.
-%% To use such an operation on <ln-macro> for <fln-macro>,
-%% we `\global\let<ln-macro><fln-macro>', apply the operations,
-%% and finally `\global\let<fln-macro><ln-macro>'.
-%% However, we are not only interested in how <fln-macro>
-%% is changed this way, rather <ln-macro> also is used as input
-%% for some operations, and we can choose which <fln-macro>
-%% should be used as input. To switch from working on/with
-%% <fln-1> to <fln-2> using <ln-macro> with an option
-%% to use <fln-1> later again, a tool
-%% |\GStoreUse<ln-macro><fln-1><fln-2>| is provided
+%% 'lineno.sty' v4 provides list handling (changing lists globally)
+%% and global changes of `\NumberedPageCache'.
+%% We want to use them in ``main text" mode
+%% as well as in ``footnote" mode.
+%% To use such an operation on <ln-macro> for <fln-macro>,
+%% we `\global\let<ln-macro><fln-macro>', apply the operations,
+%% and finally `\global\let<fln-macro><ln-macro>'.
+%% However, we are not only interested in how <fln-macro>
+%% is changed this way, rather <ln-macro> also is used as input
+%% for some operations, and we can choose which <fln-macro>
+%% should be used as input. To switch from working on/with
+%% <fln-1> to <fln-2> using <ln-macro> with an option
+%% to use <fln-1> later again, a tool
+%% |\GStoreUse<ln-macro><fln-1><fln-2>| is provided
%% (should render later switchings much better readable):
\newcommand* \GStoreUse [3]{\global\let#2#1\global\let#1#3}
-%% I.e., current content of #1 is stored in #2, then
+%% I.e., current content of #1 is stored in #2, then
%% #1 attains the content of #3.
-%%
+%%
%% ==== General Settings for Typesetting Stage ====
%% % %% 2011/01/01: %% 2011/01/02: wrong!
-%% % With 'ednotes', it turns out that the heading is not quite
-%% % correct, 'ednotes'' special `\newlabel' mechanism evaluates
-%% % `\getpagewiselinelabel' already for building its note
-%% % info macros at the first reading of the `.aux' file.
+%% % With 'ednotes', it turns out that the heading is not quite
+%% % correct, 'ednotes'' special `\newlabel' mechanism evaluates
+%% % `\getpagewiselinelabel' already for building its note
+%% % info macros at the first reading of the `.aux' file.
%%
%% %% 2010/12/27:
-%% Oh my dear, it seems that all the switching
-%% for the footnote variant of `pagewise' must be global
+%% Oh my dear, it seems that all the switching
+%% for the footnote variant of `pagewise' must be global
%% (I can't find something useful using `\aftergroup' quickly).
%% Therefore, I render 'lineno''s |\setpagewisenumbers|
%% acting globally:
@@ -775,16 +775,16 @@
}
%% I just force this, hehe ...
\setpagewiselinenumbers
-%% As a counterpart to `\c@pagelinenumber',
-%% |\c@footnotelinenumber| is reserved for the
+%% As a counterpart to `\c@pagelinenumber',
+%% |\c@footnotelinenumber| is reserved for the
%% absolute footnote line numbers:
\newcount\c@footnotelinenumber
%% %% 2011/01/01 severe-bug fix, why didn't show up?:
-%% |\FNLN@@cache| stores `\NumberedPageCache'
+%% |\FNLN@@cache| stores `\NumberedPageCache'
%% as from ``main" mode:
\let \FNLN@@cache \NumberedPageCache
-%% |\FNLN@cache| stores `\NumberedPageCache'
-%% as from ``footnote" mode; its initial content is the
+%% |\FNLN@cache| stores `\NumberedPageCache'
+%% as from ``footnote" mode; its initial content is the
%% counterpart or analogue to `\LN@Pfirst':
\def \FNLN@cache {\FLN@Pfirst}
%% %% 2010/12/28:
@@ -802,40 +802,40 @@
\global\let \FNLN@vadjusts \@empty
%% %% separation for referencing 2010/12/28:
%% Settings for footnote line numbers first resemble
-%% `\setpagewiselinenumbers'; but more changes
-%% are needed, and results from main text numbering
-%% must be stored.
-%% Some of the settings are needed \emph{locally} for
-%% generating numbers for labels, collected in
+%% `\setpagewiselinenumbers'; but more changes
+%% are needed, and results from main text numbering
+%% must be stored.
+%% Some of the settings are needed \emph{locally} for
+%% generating numbers for labels, collected in
%% |\setgetfootnotelinenumbers|; for this purpose
%% nothing must be stored explicitly:
-\newcommand* \setgetfootnotelinenumbers {%
+\newcommand* \setgetfootnotelinenumbers {%
%% Change of `\theLineNumber' is omitted as we are \emph{reading},
-%% not writing a label.
+%% not writing a label.
\let\c@linenumber\c@footnotelinenumber
% \let\makeLineNumber\makeFootnoteLineNumber
%% But in fact, |\makeFootnoteLineNumber| and
-%% |\makePagewiseLineNumber| will be the same.
-%% The difference is made by the choice of
-%% |\FNLN@first@numbered| and |\NumberedPageCache|
-%% for the line range searches.
+%% |\makePagewiseLineNumber| will be the same.
+%% The difference is made by the choice of
+%% |\FNLN@first@numbered| and |\NumberedPageCache|
+%% for the line range searches.
\let \FNLN@first@numbered \FLN@Pfirst
\let \FNLN@finish \FNLN@add
}
-%% |\setfootnotelinenumbers| performs all the settings
-%% for typesetting footnotes in line numbering mode
-%% \emph{globally},
+%% |\setfootnotelinenumbers| performs all the settings
+%% for typesetting footnotes in line numbering mode
+%% \emph{globally},
%% including storing results from typesetting main text:
-\newcommand* \setfootnotelinenumbers {%
+\newcommand* \setfootnotelinenumbers {%
\globaldefs\@ne
%% The previous line also renders `\setgetfootnotelinenumbers' global:
\setgetfootnotelinenumbers
-%% |\theLineNumber| is used for `\linelabel' entries.
+%% |\theLineNumber| is used for `\linelabel' entries.
%% `\thePagewiseLineNumber' is replaced by
%% |\theFootnoteLineNumber|:
\let\theLineNumber\theFootnoteLineNumber
%% Logging to `.aux':
- \def \FNLN@log {\string\@FLN}%
+ \def \FNLN@log {\string\@FLN}%
%% %% 2010/12/28:
%% Starting range search: |\NumberedPageCache|
\FNLN@foot@cache
@@ -844,16 +844,16 @@
\GStoreUse \@LN@vadjustlist \FNLN@@vadjusts \FNLN@vadjusts
\globaldefs\z@
}
-%% For switching back to ``main text mode,"
-%% again some settings may need a local variant---for
+%% For switching back to ``main text mode,"
+%% again some settings may need a local variant---for
%% processing line references from footnotes to main text!
%% This is the purpose of |\setgetpagewiselinenumbers|:
\newcommand* \setgetpagewiselinenumbers {%
\let \FNLN@first@numbered \LN@Pfirst
\let \FNLN@finish \@gobbletwo
}
-%% |\unsetfootnotelinenumbers| stores the ``current"
-%% page with footnote lines and loads the ``most recent"
+%% |\unsetfootnotelinenumbers| stores the ``current"
+%% page with footnote lines and loads the ``most recent"
%% page with main text lines---and more ...:
\newcommand* \unsetfootnotelinenumbers {%
\gdef \FNLN@log {\string\@LN}%
@@ -864,33 +864,33 @@
\globaldefs\@ne \setgetpagewiselinenumbers \globaldefs\z@ %% v0.53
\setpagewiselinenumbers
}
-%% |\makeFootnoteLineNumber| actually only copies
-%% |\makePagewiseLineNumber|, different results are obtained
-%% be changing hooks. The command first calls
-%% logging---|\logtheLineNumber|,
-%% then generating the ``public" line number---|\getLineNumber|
-%% (which in turn only is a copy of |\testNumberedPage|
+%% |\makeFootnoteLineNumber| actually only copies
+%% |\makePagewiseLineNumber|, different results are obtained
+%% be changing hooks. The command first calls
+%% logging---|\logtheLineNumber|,
+%% then generating the ``public" line number---|\getLineNumber|
+%% (which in turn only is a copy of |\testNumberedPage|
%% in 'lineno.sty').
\@ifdefinable\makeFootnoteLineNumber
{\let \makeFootnoteLineNumber \makePagewiseLineNumber}
%%
%% ==== Logging ====
-%% |\logtheLineNumber| is redefined to log both
-%% main text and footnote line numbers.
+%% |\logtheLineNumber| is redefined to log both
+%% main text and footnote line numbers.
\def \logtheLineNumber {%
\protected@write\@auxout{}{%
- \FNLN@log{\the\c@linenumber}{\noexpand\the\c@LN@truepage}}}
-%% |\FNLN@log| is the hook for the difference,
-%% its default expansion |\@LN| is made for
+ \FNLN@log{\the\c@linenumber}{\noexpand\the\c@LN@truepage}}}
+%% |\FNLN@log| is the hook for the difference,
+%% its default expansion |\@LN| is made for
%% \emph{main text} line numbers:
\gdef \FNLN@log {\string\@LN}
%%
%% ==== ``Public" Line Numbers ====
-%% Fortunately, these commands don't need to know much about
-%% name spaces. The interfaces to them are
-%% |\NumberedPageCache|---changing globally---and
-%% |\FNLN@first@numbered|. Our
-%% |\FNLN@cache| is initialized
+%% Fortunately, these commands don't need to know much about
+%% name spaces. The interfaces to them are
+%% |\NumberedPageCache|---changing globally---and
+%% |\FNLN@first@numbered|. Our
+%% |\FNLN@cache| is initialized
%% by analogy to its counterpart `\NumberedPageCache'
%% (a minute name space change):
\def \FNLN@cache {\FLN@Pfirst}
@@ -908,12 +908,12 @@
%% don't need any modification. |\testLastNumberedPage|
%% is modified in 'edfnotes.sty'. %% 2011/01/07
%%
-%% |\gotNumberedPage| just needs a closing hook
+%% |\gotNumberedPage| just needs a closing hook
%% `\FNLN@finish' to allow for footnote lines.
\renewcommand* \gotNumberedPage [4]{%
\oddNumberedPagefalse
\ifodd \if@twocolumn #3\else #2\fi\relax\oddNumberedPagetrue\fi
- \advance\c@linenumber\@ne
+ \advance\c@linenumber\@ne
\ifcolumnwiselinenumbers
\subtractlinenumberoffset{#1}%
\else
@@ -922,12 +922,12 @@
% \show\FNLN@finish
\FNLN@finish{#2}{#3}%
}
-%% |\FNLN@finish{<page>}{<column>}| gobbles both
-%% arguments with \emph{main} text lines,
-%% but will add the number of main text lines to
+%% |\FNLN@finish{<page>}{<column>}| gobbles both
+%% arguments with \emph{main} text lines,
+%% but will add the number of main text lines to
%% \emph{footnote} line numbers:
\global\let \FNLN@finish \@gobbletwo
-%% Then it will act as |\FNLN@add|. We run the page info macro
+%% Then it will act as |\FNLN@add|. We run the page info macro
%% for the same page (column; if defined).
\newcommand* \FNLN@add [2]{%
\expandafter \let\expandafter \@tempa\csname LN@P#1C#2\endcsname
@@ -950,40 +950,40 @@
}
%%
%% ==== Referencing ====
-%% Now that we are using two separate counters for main text lines
-%% and footnote lines (v0.5), correct references to footnote lines
+%% Now that we are using two separate counters for main text lines
+%% and footnote lines (v0.5), correct references to footnote lines
%% using |\linelabel| and `\ref' need further adjustments.
%% %
%% 'lineno.sty''s `\thePagewiseLineNumber'
%% and `\getpagewiselinenumber{<integer>}'
%% are generalized and re-implemented
%% % by |\theWiseLineNumber| and |\getwiselinenumber|
-%% by macros that then serve to implement
-%% referring to footnote line numbers.
+%% by macros that then serve to implement
+%% referring to footnote line numbers.
%%
-%% |\theWiseLineNumber{<trans>}| leaves a `\protect'ed call
+%% |\theWiseLineNumber{<trans>}| leaves a `\protect'ed call
%% to a one-parameter macro <trans> in the `.aux' file:
-\newcommand* \theWiseLineNumber [1]{\protect #1{\the\c@linenumber}}
-%% |\getwiselinenumber{<choice>}{<integer>}| executes <choice>
-%% before applying `\testNumberedPage' to <integer>---within
+\newcommand* \theWiseLineNumber [1]{\protect #1{\the\c@linenumber}}
+%% |\getwiselinenumber{<choice>}{<integer>}| executes <choice>
+%% before applying `\testNumberedPage' to <integer>---within
%% a local group:
\newcommand* \getwiselinenumber [2]{{%
-%% Some wisdom is needed to take account of the current
+%% Some wisdom is needed to take account of the current
%% ``numbering state" from which `\ref' was called.
%% \begin{description}
%% \item[Referring to main text line:]\leavevmode
%% \begin{itemize}
-%% \item Unless called from numbered footnote,
+%% \item Unless called from numbered footnote,
%% no extra care is needed.
-%% \item If called from numbered footnote,
+%% \item If called from numbered footnote,
%% `\setgetpagewiselinenumbers'
%% and temporary switching of `\NumberedPageCache'
%% is needed.
%% \end{itemize}
%% \item[Referring to footnote line:]\leavevmode
%% \begin{itemize}
-%% \item If called from numbered footnote,
-%% no extra care is needed.
+%% \item If called from numbered footnote,
+%% no extra care is needed.
%% \item Otherwise, `\setgetfootnotelinenumbers'
%% and temporary switching of `\NumberedPageCache'
%% is needed.
@@ -1007,26 +1007,26 @@
\FNLN@restore@cache
}}
\let \FNLN@restore@cache \relax
-%% |\getpagewiselinenumber| doesn't need any <choice>---we
-%% assume that the label was written in the default `pagewise'
+%% |\getpagewiselinenumber| doesn't need any <choice>---we
+%% assume that the label was written in the default `pagewise'
%% mode (but it is difficult, though, `\relax' is essential!):
-% \renewcommand* \getpagewiselinenumber {\getwiselinenumber\relax} %!!
-%% 2010/12/31, a compatibility problem with 'ednotes'' `\newlabel'
-%% mechanism shows up. 'ednotes' ``undefines" `\getpagewiselinenumber'
-%% and restores it only `\AtBeginDocument'. We must ensure that
-%% 'ednotes' will not override our new version of
-%% `\getpagewiselinenumber'.
-%% (TODO in my view another motivation to write ``ready" numbers
+% \renewcommand* \getpagewiselinenumber {\getwiselinenumber\relax} %!!
+%% 2010/12/31, a compatibility problem with 'ednotes'' `\newlabel'
+%% mechanism shows up. 'ednotes' ``undefines" `\getpagewiselinenumber'
+%% and restores it only `\AtBeginDocument'. We must ensure that
+%% 'ednotes' will not override our new version of
+%% `\getpagewiselinenumber'.
+%% (TODO in my view another motivation to write ``ready" numbers
%% without `\getpagewiselinenumbers' directly.)
%%
-%% We might assume that 'ednotes' (if at all) is loaded directly
-%% and loads 'lineno.sty'
-%% (that is the usual and recommended way of using 'ednotes')
-%% and that this will happen before 'fnlineno.sty' is loaded.
-%% But now that we have spent some time understanding the
-%% situation, we can deal with the case as well that 'lineno.sty'
-%% is loaded first, then 'fnlineno.sty' is loaded, and then 'ednotes'.
-%% (I have assumed earlier that 'fnlineno.sty' is loaded after
+%% We might assume that 'ednotes' (if at all) is loaded directly
+%% and loads 'lineno.sty'
+%% (that is the usual and recommended way of using 'ednotes')
+%% and that this will happen before 'fnlineno.sty' is loaded.
+%% But now that we have spent some time understanding the
+%% situation, we can deal with the case as well that 'lineno.sty'
+%% is loaded first, then 'fnlineno.sty' is loaded, and then 'ednotes'.
+%% (I have assumed earlier that 'fnlineno.sty' is loaded after
%% 'lineno.sty' ...)
\AtBeginDocument{%
\def \getpagewiselinenumber {\getwiselinenumber\relax}% sic!
@@ -1034,7 +1034,7 @@
%% For |\thePagewiseLineNumber|, <trans> is `\getpagewiselinenumber':
\renewcommand* \thePagewiseLineNumber {%
\theWiseLineNumber\getpagewiselinenumber}
-%% |\getfootnotelinenumber{<integer>}| considers <integer>
+%% |\getfootnotelinenumber{<integer>}| considers <integer>
%% the absolute number of a \emph{footnote} line. The <choice>
%% therefore is `\setgetfootnotelinenumbers':
\newcommand* \getfootnotelinenumber {%
@@ -1044,69 +1044,69 @@
%% is called with <trans> being `\getfootnotelinenumber':
\newcommand* \theFootnoteLineNumber {%
\theWiseLineNumber\getfootnotelinenumber}
-%%
+%%
%% === Leaving the Package File ===
\endinput
%%
-%% == Acknowledgements ==
+%% == Acknowledgements ==
%% %% 2010/12/19
-%% On the 'texhax' mailing list, Boris Veytsman recommended
-%% using Victor \mbox{Eijk}\-hout's \textit{\TeX\ by Topic} to me,
-%% and Andrej Lapshin pointed me to David Salomon's work
-%% on output routines
-%% (TUGboat 1990 and 1994, also available as a book,
+%% On the 'texhax' mailing list, Boris Veytsman recommended
+%% using Victor \mbox{Eijk}\-hout's \textit{\TeX\ by Topic} to me,
+%% and Andrej Lapshin pointed me to David Salomon's work
+%% on output routines
+%% (TUGboat 1990 and 1994, also available as a book,
%% as Ulrich Dirr tells me).
-%% It helped me a lot to read about output routines
-%% in these works, beyond the \TeX book.
-%% The abbreviations \lq OTR\rq\ and \lq MVL\rq\ are
+%% It helped me a lot to read about output routines
+%% in these works, beyond the \TeX book.
+%% The abbreviations \lq OTR\rq\ and \lq MVL\rq\ are
%% Salomon's.---And %% added 2010/12/27
-%% recall Christian's work and support
-%% by the DFG named at the start of the package file.---And
-%% ... the ideas of how to implement
-%% (\textit i)~attaching line numbers,
-%% (\textit{ii})~`\linelabel', and
-%% (\textit{iii})~numbering lines ``pagewise"---so flexibly,
-%% compatibly with many other \LaTeX\ packages, still
+%% recall Christian's work and support
+%% by the DFG named at the start of the package file.---And
+%% ... the ideas of how to implement
+%% (\textit i)~attaching line numbers,
+%% (\textit{ii})~`\linelabel', and
+%% (\textit{iii})~numbering lines ``pagewise"---so flexibly,
+%% compatibly with many other \LaTeX\ packages, still
%% are Stephan's ...
-%%
+%%
%% == VERSION HISTORY ==
-v0.1 2010/12/08 very first, \linelabel works in footnote
+v0.1 2010/12/08 very first, \linelabel works in footnote
SENT TO Christian, problems with "long" footnotes
v0.2 2010/12/08 corr. "manifoot"
- 2010/12/09 moving doc. from .tex to here,
+ 2010/12/09 moving doc. from .tex to here,
different doc. sectioning;
- \@footnotetext modified (user feature!);
+ \@footnotetext modified (user feature!);
\@doclearpage NOT modified!; \if@FNLN@placing@
- 2010/12/10 ignore dummy footnote split;
- \FNLNpar, \AutoPars, \ExplicitPars,
+ 2010/12/10 ignore dummy footnote split;
+ \FNLNpar, \AutoPars, \ExplicitPars,
more on limitations
2010/12/11 more trying, almost anew ...
JUST STORED
v0.3 2010/12/12 new approach, removed much before proceeding
- 2010/12/13 -- this was putting \box\footins onto MVL,
+ 2010/12/13 -- this was putting \box\footins onto MVL,
bad with those penalties
JUST STORED
-v0.4 2010/12/14 another new approach:
- typeset footnote on MVL immediately --
+v0.4 2010/12/14 another new approach:
+ typeset footnote on MVL immediately --
described strategy
- 2010/12/15 ... continued, choice of hooking into \output
+ 2010/12/15 ... continued, choice of hooking into \output
(...swap...)
- 2010/12/16 ... continued; rearranged sections ...
+ 2010/12/16 ... continued; rearranged sections ...
\FNLN@@fntext vs. ...ltx...
- 2010/12/17 success with \pagegoal ...; \GStoreReg etc.;
- ...@fntext shortened
- 2010/12/18 another two limitations: \pagebreak in fn.,
- guessed/tested; another note to <register>;
+ 2010/12/17 success with \pagegoal ...; \GStoreReg etc.;
+ ...@fntext shortened
+ 2010/12/18 another two limitations: \pagebreak in fn.,
+ guessed/tested; another note to <register>;
ack. Christian; directed -> organized!?
SENT TO Christian/Stephan
-v0.41 2010/12/19 support of \pagebreak with \if@FNLN@sw@ etc.;
+v0.41 2010/12/19 support of \pagebreak with \if@FNLN@sw@ etc.;
TODO on lists of <register>s
2010/12/20 debugging: \if...true; \setbox...ft;
- \@finalstrut in vmode exported to finstrut.sty;
+ \@finalstrut in vmode exported to finstrut.sty;
notes on how v0.41 still fails with \pagebreak
2010/12/21 additional notes on *two* \pagebreak's
@@ -1117,33 +1117,33 @@ v0.5 2010/12/21 restructuring doc., check@latex@ -> check@,
2010/12/24 ... continued ...
2010/12/25 moved this to pwlineno, replaced ...
more on \FNLN@typeset, + \setfootnotelinenumbers
- 2010/12/26 new summary of implementation,
+ 2010/12/26 new summary of implementation,
rearranged code sections; logging settled
v0.51 2010/12/27 "build" settled, typesetting, logging reformated;
- ack.s: "recall"; all settings global,
+ ack.s: "recall"; all settings global,
"public" works
- JUST STORED, MARGINAL NUMBERS OK,
+ JUST STORED, MARGINAL NUMBERS OK,
\linelabel in footnote broken
- [2010/12/28]
-v0.52 2010/12/28 own label and vadjust lists for footnotes;
- local settings for referencing,
+ [2010/12/28]
+v0.52 2010/12/28 own label and vadjust lists for footnotes;
+ local settings for referencing,
tool and care for global changes (...Cache)
(TODO write ready in .aux? needs another run)
\linelabel's ok, MARGINAL NOTES MAIN BROKEN
-v0.53 2010/12/28 debugging; OK; minor doc. modifications;
+v0.53 2010/12/28 debugging; OK; minor doc. modifications;
less "limitations"; \\[\smallskipamount]
TO CHRISTIAN 2010-12-29
-v0.54 2010/12/31 typo options; \FNLN@text without arg,
+v0.54 2010/12/31 typo options; \FNLN@text without arg,
\getpagewiselinenumber with ednotes
- 2011/01/01 \FNLN@cache, \FNLN@@cache initialized;
+ 2011/01/01 \FNLN@cache, \FNLN@@cache initialized;
doc. "Typesetting Stage" qualification
2011/01/02 that qualification was wrong
2011/01/03 samepage@hook
TO CHRISTIAN SAME DAY
-v0.55 2011/01/04 samepage@hook emptied here as well;
+v0.55 2011/01/04 samepage@hook emptied here as well;
2011/01/06 edited version history
- 2011/01/07 note on \if@FNLN@sw@ with v0.5;
+ 2011/01/07 note on \if@FNLN@sw@ with v0.5;
finally without support for samepage@hook!
note on \testLastNumberedPage
PART OF EDFN RELEASE r0.5 (together with edfnotes v0.2)
-v0.55a 2011/02/09 corr. owner; "Limitations" updated; \pagebreak
+v0.55a 2011/02/09 corr. owner; "Limitations" updated; \pagebreak
diff --git a/macros/latex/contrib/lineno/lineno.sty b/macros/latex/contrib/lineno/tex/lineno.sty
index 53a7b5242a..1b688e0f4d 100644
--- a/macros/latex/contrib/lineno/lineno.sty
+++ b/macros/latex/contrib/lineno/tex/lineno.sty
@@ -1,55 +1,56 @@
- \iffalse; awk '/S[H]ELL1/' lineno.sty|sh;exit;
- ... see bottom for .tex documentation ...
-
-Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
- \fi
-\def\fileversion{v4.41} \def\filedate{2005/11/02} %VERSION
-
-%%% Copyright 1995--2003 Stephan I. B"ottcher <boettcher@physik.uni-kiel.de>;
-%%% Copyright 2002--2005 Uwe L"uck, http://www.contact-ednotes.sty.de.vu
-%%% for version 4 and code from former Ednotes bundle
-%%% --author-maintained.
-%%%
-%%% This file can be redistributed and/or modified under
-%%% the terms of the LaTeX Project Public License; either
+ \iffalse; awk '/S[H]ELL1/' lineno.sty|sh;exit;
+ ... see bottom for .tex documentation ...
+
+Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
+ \fi
+\def\fileversion{v5.0} \def\filedate{2022/07/30} %VERSION
+
+%%% Copyright 1995--2003 Stephan I. B"ottcher <boettcher@physik.uni-kiel.de>;
+%%% Copyright 2002--2005 Uwe L"uck, http://www.contact-ednotes.sty.de.vu
+%%% for version 4 and code from former Ednotes bundle
+%%% --author-maintained.
+%%%
+%%% This file can be redistributed and/or modified under
+%%% the terms of the LaTeX Project Public License; either
%%% version 1.3a of the License, or any later version.
%%% The latest version of this license is in
%%% http://www.latex-project.org/lppl.txt
-%%% We did our best to help you, but there is NO WARRANTY.
-%
+%%% We did our best to help you, but there is NO WARRANTY.
+%
%%% $Id: lineno.sty,v 3.14.2.2 2004/09/13 19:30:39 stephan Exp $ %% was v4.00.
-% \title{\texttt{\itshape
+% \title{\texttt{\itshape
%% %% (UL 2004/10/09:) Italic TT is evil
-%% %% ... or nice front page layout!?
+%% %% ... or nice front page layout!?
%%
-% lineno.sty \ \fileversion\ \filedate
+% lineno.sty \ \fileversion\ \filedate
% \unskip}\\\ \\
-% A \LaTeX\ package to attach
+% A \LaTeX\ package to attach
% \\ line numbers to paragraphs
-% \unskip}\author{%
-% Stephan I. B\"ottcher
-% \\ Uwe L\"uck
-% \unskip}\date{%
-% boettcher@physik.uni-kiel.de
-% \\ http://contact-ednotes.sty.de.vu
+% \unskip}\author{%
+% Stephan I. B\"ottcher
+% \\ Uwe L\"uck
+% \unskip}\date{%
+% boettcher@physik.uni-kiel.de
+% \\ http://contact-ednotes.sty.de.vu
%% \\ stephan@nevis.columbia.edu
-%% \\ Stephan.Boettcher@cern.ch
+%% \\ Stephan.Boettcher@cern.ch
% \\}
%
% \documentclass[a4paper,12pt]{article}%D
-% \usepackage{lineno}%D
+% \usepackage{lineno}%D
+% \usepackage{hyperref}%D
%% %% (New v4.00)
-% \catcode`\_\active\let_~
-%% %% Beware math!? (/New v4.00)
-% \def~{\verb~}
-% \let\lessthan<
+% \catcode`\_\active\let_~
+%% %% Beware math!? (/New v4.00)
+% \def~{\verb~}
+% \let\lessthan<
% \catcode`\<\active
% \def<#1>{$\langle${\itshape#1}\/$\rangle$}
% \catcode`\|\active
-%% (New v4.1: \tt star; in box anyway.)
+%% (New v4.1: \tt star; in box anyway.)
% \def|#1{\ttfamily\string#1}
%% \def|#1{{\ttfamily\string#1}}
-%% (/New v4.1)
+%% (/New v4.1)
% \newenvironment{code}
% {\par\runninglinenumbers
% \modulolinenumbers[1]%
@@ -57,13 +58,13 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% \footnotesize
% \def\linenumberfont
% {\normalfont\tiny\itshape}}
-% {}
+% {}
%% %% (New v4.00)
% {\makeatletter \gdef\scs#1{\texttt
% {\protect\@backslashchar#1}}}
% \def\old{\par\footnotesize}
%% %% (/New v4.00)
-%% %% (New v4.1)
+%% %% (New v4.1)
% {\catcode`\/\active
% \gdef\path{\begingroup\catcode`\/\active
% \let/\slash\dopath}
@@ -73,25 +74,25 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% \begin{document}%D
%% \DocInput{lineno}%D
% \pagewiselinenumbers
-% \maketitle
+% \maketitle
% \pagestyle{headings}
% \tableofcontents
% \sloppy
-%
-%% %% New v4.00: `...section{%' + \unskip
+%
+%% %% New v4.00: `...section{%' + \unskip
% \section{%
-% Introductions
+% Introductions
%% %% New v4.00: `s'
% \unskip}
-%
-% (New v4.00) Parts of former first section
-% have been rendered separate subsections for package
-% version_v4.00. (/New v4.00)
-%
-% \subsection{%
+%
+% (New v4.00) Parts of former first section
+% have been rendered separate subsections for package
+% version_v4.00. (/New v4.00)
+%
+% \subsection{%
% Introduction to versions $\textrm{v}\lessthan4$
-% \unskip}
-%
+% \unskip}
+%
% This package provides line numbers on paragraphs.
% After \TeX\ has broken a paragraph into lines there will
% be line numbers attached to them, with the possibility to
@@ -115,8 +116,8 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% precisely refer to passages in the text. It works well
% together with ~\marginpar~s, but not too well with displaymath.
% ~\footnote~s are a problem, especially when they
-% are split, but we may get there.
-% (New v4.00 UL) Version v4.00 overcomes the problem, I believe.
+% are split, but we may get there.
+% (New v4.00 UL) Version v4.00 overcomes the problem, I believe.
% (/UL /New v4.00)
%
% lineno.sty works
@@ -127,151 +128,151 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% well, so I can try to fix it.
%
% \subsection{%
-% Introduction to versions v4.00ff. (UL)
+% Introduction to versions v4.00ff. (UL)
% \unskip}
-%
+%
% ~lineno.sty~ has been maintained by Stephan until version_v3.14.
-% From version_v4.00 onwards, maintenance is shifting towards
-% Uwe L\"uck (UL), who is the author of v4\dots code and of v4\dots
-% changes in documentation. This came about as follows.
-%
-% Since late 2002, Christian Tapp and Uwe L\"uck have employed
-% ~lineno.sty~ for their ~ednotes.sty~, a package supporting
+% From version_v4.00 onwards, maintenance is shifting towards
+% Uwe L\"uck (UL), who is the author of v4\dots code and of v4\dots
+% changes in documentation. This came about as follows.
+%
+% Since late 2002, Christian Tapp and Uwe L\"uck have employed
+% ~lineno.sty~ for their ~ednotes.sty~, a package supporting
% critical editions---cf.
-% \[\mbox{\tt
-% http://ednotes.sty.de.vu
+% \[\mbox{\tt
+% http://ednotes.sty.de.vu
% \unskip}\]
-% ---while you find ~ednotes.sty~ and surrounding files in
+% ---while you find ~ednotes.sty~ and surrounding files in
% CTAN folder \path{macros/latex/contrib/ednotes}.
-%
-% Soon, some weaknesses of ~lineno.sty~ showed up, mainly since
-% Christian's critical editions (using ~ednotes.sty~) needed lots
-% of ~\linelabel~s and footnotes. (These weaknesses are due to
-% weaknesses of \LaTeX's ~\marginpar~ mechanism that Stephan
-% used for ~\linelabel~.) So we changed some ~lineno.sty~
-% definitions in some extra files, which moreover offered new
-% features. We sent these files to Stephan, hoping he would take
-% the changes into ~lineno.sty~. However, he was too short of time.
-%
-% Writing a TUGboat article on Ednotes in 2004, we hoped to
-% reduce the number of files in the Ednotes bundle and so asked
-% Stephan again. Now he generously offered maintenance to me, so
-% I could execute the changes on my own.
-%
-% The improvements are as follows:
-% \begin{itemize}\item
-% [(i)] Footnotes placement approaches intentions better
-% (footnotes formerly liked to pile up at late pages).
-% \item
-% [(ii)] The number of ~\linelabel~s in one paragraph is no longer
-% limited to 18.
-% \item
-% [(iii)] ~\pagebreak~, ~\nopagebreak~, ~\vspace~, and the star
-% and optional versions of ~\\~ work as one would expect
+%
+% Soon, some weaknesses of ~lineno.sty~ showed up, mainly since
+% Christian's critical editions (using ~ednotes.sty~) needed lots
+% of ~\linelabel~s and footnotes. (These weaknesses are due to
+% weaknesses of \LaTeX's ~\marginpar~ mechanism that Stephan
+% used for ~\linelabel~.) So we changed some ~lineno.sty~
+% definitions in some extra files, which moreover offered new
+% features. We sent these files to Stephan, hoping he would take
+% the changes into ~lineno.sty~. However, he was too short of time.
+%
+% Writing a TUGboat article on Ednotes in 2004, we hoped to
+% reduce the number of files in the Ednotes bundle and so asked
+% Stephan again. Now he generously offered maintenance to me, so
+% I could execute the changes on my own.
+%
+% The improvements are as follows:
+% \begin{itemize}\item
+% [(i)] Footnotes placement approaches intentions better
+% (footnotes formerly liked to pile up at late pages).
+% \item
+% [(ii)] The number of ~\linelabel~s in one paragraph is no longer
+% limited to 18.
+% \item
+% [(iii)] ~\pagebreak~, ~\nopagebreak~, ~\vspace~, and the star
+% and optional versions of ~\\~ work as one would expect
% (section_\ref{s:MVadj}). %% Added for v4.1
-% \item
-% [(iv)] A command is offered which chooses the first line number
-% to be printed in the margin
+% \item
+% [(iv)] A command is offered which chooses the first line number
+% to be printed in the margin
% (subsection_\ref{ss:Mod}). %% Added for v4.1
-% \item
-% [(v)] (New v4.1) \LaTeX\ tabular environments (optionally)
-% get line numbers as well, and you can refer to them in the
-% usual automatic way. (It may be considered a shortcoming that,
-% precisely, \emph{rows} are numbered, not lines.---See
-% subsection_\ref{ss:Tab}.)
-% \item
-% [(vi)] We are moving towards referring to math items
-% (subsection_\ref{ss:MathRef} and the hooks in
-% subsection_\ref{ss:LL}).
-% (/New v4.1)
+% \item
+% [(v)] (New v4.1) \LaTeX\ tabular environments (optionally)
+% get line numbers as well, and you can refer to them in the
+% usual automatic way. (It may be considered a shortcoming that,
+% precisely, \emph{rows} are numbered, not lines.---See
+% subsection_\ref{ss:Tab}.)
+% \item
+% [(vi)] We are moving towards referring to math items
+% (subsection_\ref{ss:MathRef} and the hooks in
+% subsection_\ref{ss:LL}).
+% (/New v4.1)
% \end{itemize}
% (Thanks to Stephan for making this possible!)
-%
-%% Unpublish:
-%% You may trace the earlier developments of these changes by
-%% requesting our files ~linenox0.sty~, ~linenox1.sty~, and
-%% ~lnopatch.sty~. Most of our changes have been in ~linenox0.sty~.
-%% Our ~linenox1.sty~ has extended ~linenox0.sty~ for one single
-%% purpose in a not very stable way.
-%%% (See ~\linenumberpar~ below).
-%% ~lnopatch.sty~ has done the first line number thing referred
-%% to in case_(iv) up to now.
-%% (New v4.1)
-%% Case_(v) earlier was provided by our ~edtab02.sty~---now
-%% called ~edtable.sty~.
-%% (/New v4.1)
-%
-% Ednotes moreover profits from Stephan's offer with regard
-% to the documentation of our code which yielded these
-% improvements formerly. This documentation now becomes
-% printable, being part of the ~lineno.sty~ documentation.
-%
-% Of course, Stephan's previous ~lineno.sty~ versions were a great
-% and ingenious work and exhibit greatest \TeX pertise. I never
-% could have done this. I learnt a lot in studying the code when
-% Christian pointed out strange output results and error
-% messages, and there are still large portions of ~lineno.sty~
-% which I don't understand (consider only pagewise numbering of
-% lines). Fortunately, Stephan has offered future help if
-% needed.---My code for attaching line numbers to \emph{tabular
-% environments} (as mentioned above, now still in
+%
+%% Unpublish:
+%% You may trace the earlier developments of these changes by
+%% requesting our files ~linenox0.sty~, ~linenox1.sty~, and
+%% ~lnopatch.sty~. Most of our changes have been in ~linenox0.sty~.
+%% Our ~linenox1.sty~ has extended ~linenox0.sty~ for one single
+%% purpose in a not very stable way.
+%%% (See ~\linenumberpar~ below).
+%% ~lnopatch.sty~ has done the first line number thing referred
+%% to in case_(iv) up to now.
+%% (New v4.1)
+%% Case_(v) earlier was provided by our ~edtab02.sty~---now
+%% called ~edtable.sty~.
+%% (/New v4.1)
+%
+% Ednotes moreover profits from Stephan's offer with regard
+% to the documentation of our code which yielded these
+% improvements formerly. This documentation now becomes
+% printable, being part of the ~lineno.sty~ documentation.
+%
+% Of course, Stephan's previous ~lineno.sty~ versions were a great
+% and ingenious work and exhibit greatest \TeX pertise. I never
+% could have done this. I learnt a lot in studying the code when
+% Christian pointed out strange output results and error
+% messages, and there are still large portions of ~lineno.sty~
+% which I don't understand (consider only pagewise numbering of
+% lines). Fortunately, Stephan has offered future help if
+% needed.---My code for attaching line numbers to \emph{tabular
+% environments} (as mentioned above, now still in
% ~edtable.sty~) %% %% TODO
-% developed from macros which Stephan and Christian experimented
-% with in December 2002. Stephan built the basics.
-% (However, I then became too proud to follow his advice only to
+% developed from macros which Stephan and Christian experimented
+% with in December 2002. Stephan built the basics.
+% (However, I then became too proud to follow his advice only to
% use and modify ~longtable.sty~.)
-%
-% There are some issues concerning use of counters on which I
-% don't agree with Stephan and where I would like to change the
-% code if ~lineno.sty~ is ``mine'' as Stephan offered. However,
-% Stephan is afraid of compatibility problems from which, in
-% particular, his wife could suffer in the near future. So he
-% demanded that I change as little as possible for my first
-% version. Instead of executing changes that I plan I just offer
-% my opinions at the single occasions. I hope to get in touch
-% this way with users who consider subtle features vital which I
-% consider strange.
-%
-% On the other hand, the sections on improvements of the
-% implementation have been blown up very much and may be tiring
-% and litte understandable for mere \emph{users}. These users
-% may profit from the present presentation just by jumping to
-% sections_\ref{s:Opts} and_\ref{s:UserCmds}. There is a user's
-% guide ulineno.tex which may be even more helpful, but it has
+%
+% There are some issues concerning use of counters on which I
+% don't agree with Stephan and where I would like to change the
+% code if ~lineno.sty~ is ``mine'' as Stephan offered. However,
+% Stephan is afraid of compatibility problems from which, in
+% particular, his wife could suffer in the near future. So he
+% demanded that I change as little as possible for my first
+% version. Instead of executing changes that I plan I just offer
+% my opinions at the single occasions. I hope to get in touch
+% this way with users who consider subtle features vital which I
+% consider strange.
+%
+% On the other hand, the sections on improvements of the
+% implementation have been blown up very much and may be tiring
+% and litte understandable for mere \emph{users}. These users
+% may profit from the present presentation just by jumping to
+% sections_\ref{s:Opts} and_\ref{s:UserCmds}. There is a user's
+% guide ulineno.tex which may be even more helpful, but it has
% not been updated for a while. %% TODO
-%
+%
% \subsection{%
-% Availability
+% Availability
% \unskip}
-%
-% In case you have found the present file otherwise than from
-% CTAN: A recent version and documentation of this package
-% should be available from CTAN folder
+%
+% In case you have found the present file otherwise than from
+% CTAN: A recent version and documentation of this package
+% should be available from CTAN folder
% \path{macros/latex/contrib/lineno}.
-% Or mail to one of the addresses at top of file.
-%
-% \subsection{%
+% Or mail to one of the addresses at top of file.
+%
+% \subsection{%
% Introductory code
% \unskip}
-%
+%
% This style option is written for \LaTeXe, November 1994 or later,
-% since we need the ~\protected@write~ macro.
-%
-% (New v4.00) And we use ~\newcommand*~ for
-% controlling length of user macro arguments, which has been
-% available since December 1994.
-%%
-
-\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-%% [1994/11/04]
-\ProvidesPackage{lineno}
- [\filedate\space line numbers on paragraphs \fileversion]
-% (/New v4.00)
-%%
-%% History of versions:
+% since we need the ~\protected@write~ macro.
+%
+% (New v4.00) And we use ~\newcommand*~ for
+% controlling length of user macro arguments, which has been
+% available since December 1994.
+%%
+
+\NeedsTeXFormat{LaTeX2e}[1994/12/01]
+%% [1994/11/04]
+\ProvidesPackage{lineno}
+ [\filedate\space line numbers on paragraphs \fileversion]
+% (/New v4.00)
+%%
+%% History of versions:
%% v1.00 1995/03/31 SIB: first release for Petra's interview transcriptions
%% v1.01 1995/10/28 SIB: added ~pagewise~ mode
-%% v1.02 1995/11/15 SIB: added ~modulo~ option
+%% v1.02 1995/11/15 SIB: added ~modulo~ option
%% v1.03 1995/12/05 SIB: pagewise: try to reduce the hash-size requirements
%% v2.00 1995/12/06 SIB: .. it works, new user interface
%% v2.01 1996/09/17 SIB: put into CVS
@@ -284,8 +285,8 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
%% v3.02 2000/03/10 SiB: \@LN@output
%% v3.03 2000/07/01 SiB: \@LN@ExtraLabelItems, hyperref
%% v3.04 2000/12/17 SiB: longtable compatibility.
-%% v3.05 2001/01/02 SiB: [fleqn] detection.
-%% v3.05a 2001/01/04 SiB: [fleqn] detection reverted for eqnarray.
+%% v3.05 2001/01/02 SiB: [fleqn] detection.
+%% v3.05a 2001/01/04 SiB: [fleqn] detection reverted for eqnarray.
%% v3.06 2001/01/17 SiB: [twocolumn] mode support.
%% v3.07 2001/07/30 SiB: [hyperref] option obsoleted.
%% v3.08 2001/08/02 SiB: linenomath wrapping for \[ \]
@@ -294,138 +295,139 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
%% v3.09 2003/01/14 SIB: hyperref detection fix
%% v3.10 2003/04/15 FMi: \MakeLineNo fix for deep boxes
%% v3.10a 2003/11/12 Uwe Lück: \lineref typo fix
-%% v4.00 2004/09/02 UL: included linenox0, linenox1, lnopatch code with
-%% documentation, usually indicated by `New v4.00';
-%% discussions of old code, indicated by `UL';
-%% LPPL v.1 -> LPPL v1.3, `program' -> `file';
-%% first lines with \filedate and \fileversion,
-%% according nawk lines; `November 1994 or later',
-%% some earlier documentation typos (including a few
-%% bad minus signs), { -> {% and } -> \unskip} at
-%% line ends (so, e.g., alignment in TOC works); \scs.
-%% 2004/09/03 UL: removed everything which indicated that the
-%% present file were named `lineno4.sty'.
-%% v4.1 2004/09/19 UL: Inserted Stephan's identification line, removed
-%% some TODOs and remarks from v4.00.
-%% 2004/10/04 UL: Added acknowledgement for Daniel Doherty;
-%% `(New v4.00)' with [|\firstlinenumber]; changed
-%% TODOs; Refining -> Redefining (\vadjust).
+%% v4.00 2004/09/02 UL: included linenox0, linenox1, lnopatch code with
+%% documentation, usually indicated by `New v4.00';
+%% discussions of old code, indicated by `UL';
+%% LPPL v.1 -> LPPL v1.3, `program' -> `file';
+%% first lines with \filedate and \fileversion,
+%% according nawk lines; `November 1994 or later',
+%% some earlier documentation typos (including a few
+%% bad minus signs), { -> {% and } -> \unskip} at
+%% line ends (so, e.g., alignment in TOC works); \scs.
+%% 2004/09/03 UL: removed everything which indicated that the
+%% present file were named `lineno4.sty'.
+%% v4.1 2004/09/19 UL: Inserted Stephan's identification line, removed
+%% some TODOs and remarks from v4.00.
+%% 2004/10/04 UL: Added acknowledgement for Daniel Doherty;
+%% `(New v4.00)' with [|\firstlinenumber]; changed
+%% TODOs; Refining -> Redefining (\vadjust).
%% 2004/10/05 UL: ednmath0 -> mathrefs; \catcode`\~ -> \active;
-%% \path; refined section on options `mathrefs';
-%% changes in introduction.
-%% 2004/10/06 UL: Changed/removed TODOs, e.g., for edtable.sty.
-%% 2004/10/11 UL: Reminders: linenox0/1/lnopatch.sty obsolete;
+%% \path; refined section on options `mathrefs';
+%% changes in introduction.
+%% 2004/10/06 UL: Changed/removed TODOs, e.g., for edtable.sty.
+%% 2004/10/11 UL: Reminders: linenox0/1/lnopatch.sty obsolete;
%% \tt star in list of commands.
-%% 2004/10/12 UL: Corrected blank lines in lineno.tex.
-%% 2004/10/19 UL: Fixed minor typos; remark on \if@LN@edtable.
-%% v4.1a 2004/11/07 UL: LPPL v1.3a.
-%% v4.1b 2004/11/13 UL: Comment on \outputpenalty values.
-%% v4.1c 2005/01/10 UL: Contact via http.
-%% v4.11 2005/02/20 UL: Error message with \linelabel when not numbering.
-%% 2005/03/07 UL: Removed \linelabel from ss:Tab heading, consider
-%% marginal line numbers as well, revised ss:Tab.
-%% Added a few lines on missing explanations to
-%% s:UserCmds. Corrected some code alignments.
-%% 2005/03/08 UL: Require recent edtable.sty.
-%%
-
-%% v4.2 2005/03/21 UL: "Physical page" counter works with \include.
-%% 2005/04/17 UL: Raised options section above extensions section
-%% (v4.00 disabled `displaymath' option);
-%% third arg for \@ifundefined{mathindent};
-%% "bunch of options";
-%% 2005/04/24 UL: compatibility with tamefloats; vplref.sty.
-%% 2005/04/25 UL: \number -> \the; wondered -> $$; subsec. appbas;
-%% CrtlLN sec -> subsec.; \newcommand* wherever ...;
-%% doc. on `other output routines' and `addpageno'
-%% (this changed from `varioref').
-%% 2005/04/27 UL: =1\relax -> =\@ne, 0\relax ..., \hb@xt@,
-%% \ifx\@@par\@@@par -> \ifLineNumbers, typos,
-%% \pagestyle{headings}, LaTeX -> \LaTeX.
-%% v4.21 2005/04/28 UL: linenomath section: removed wrong \else's,
-%% \holding...: \thr@@, \@LN@outer@holdins, \global.
-%% v4.22 2005/05/01 UL: \unvbox\@outputbox; \@LN@col without #1,
-%% 2005/05/08 UL: global/local \internall..., \resetl... global,
-%% shortened discussions of this and of \newcounter.
-%% 2005/05/09 UL: corr.: doc. typo, version history, bad lines;
-%% percent; \chardef for modulo,
-%% \value{firstlinenumber}.
-%% v4.3 2005/05/10 UL: \@backslashchar -> \char`\\ in \scs.
-%% 2005/05/11 UL: \linenumbers sets ...outer@holdins; tidied up
-%% documentation regarding earlier versions.
-%% 2005/05/12 UL: `linenomath' without spurious number above;
-%% `displaymath' default; edmac homepage ->
-%% ednotes.sty.de.vu, \endlinenomath without
-%% numbers: no change of \holdinginserts;
-%% \linelabel doesn't go to .aux or mark,
-%% hyperref detected; undone 2005/05/10 (bad mark).
-%% 2005/05/13 UL: Reworked hyperref detection (new subsec.).
-%% 2005/05/15 UL: More typo fixes, corrected terrible confusions in
-%% the discussion (v4.22/v4.3) of \new/\stepcounter;
-%% new subsec. in `Line number ...'; another
-%% implementation of `hyperref' detection.
-%% 2005/05/16 UL: Final minor changes.
-%% v4.31b /06/14 UL: Extended explanation of \firstlinenumbers
-%% and package options; \@LN@ifgreat@critical;
+%% 2004/10/12 UL: Corrected blank lines in lineno.tex.
+%% 2004/10/19 UL: Fixed minor typos; remark on \if@LN@edtable.
+%% v4.1a 2004/11/07 UL: LPPL v1.3a.
+%% v4.1b 2004/11/13 UL: Comment on \outputpenalty values.
+%% v4.1c 2005/01/10 UL: Contact via http.
+%% v4.11 2005/02/20 UL: Error message with \linelabel when not numbering.
+%% 2005/03/07 UL: Removed \linelabel from ss:Tab heading, consider
+%% marginal line numbers as well, revised ss:Tab.
+%% Added a few lines on missing explanations to
+%% s:UserCmds. Corrected some code alignments.
+%% 2005/03/08 UL: Require recent edtable.sty.
+%%
+
+%% v4.2 2005/03/21 UL: "Physical page" counter works with \include.
+%% 2005/04/17 UL: Raised options section above extensions section
+%% (v4.00 disabled `displaymath' option);
+%% third arg for \@ifundefined{mathindent};
+%% "bunch of options";
+%% 2005/04/24 UL: compatibility with tamefloats; vplref.sty.
+%% 2005/04/25 UL: \number -> \the; wondered -> $$; subsec. appbas;
+%% CrtlLN sec -> subsec.; \newcommand* wherever ...;
+%% doc. on `other output routines' and `addpageno'
+%% (this changed from `varioref').
+%% 2005/04/27 UL: =1\relax -> =\@ne, 0\relax ..., \hb@xt@,
+%% \ifx\@@par\@@@par -> \ifLineNumbers, typos,
+%% \pagestyle{headings}, LaTeX -> \LaTeX.
+%% v4.21 2005/04/28 UL: linenomath section: removed wrong \else's,
+%% \holding...: \thr@@, \@LN@outer@holdins, \global.
+%% v4.22 2005/05/01 UL: \unvbox\@outputbox; \@LN@col without #1,
+%% 2005/05/08 UL: global/local \internall..., \resetl... global,
+%% shortened discussions of this and of \newcounter.
+%% 2005/05/09 UL: corr.: doc. typo, version history, bad lines;
+%% percent; \chardef for modulo,
+%% \value{firstlinenumber}.
+%% v4.3 2005/05/10 UL: \@backslashchar -> \char`\\ in \scs.
+%% 2005/05/11 UL: \linenumbers sets ...outer@holdins; tidied up
+%% documentation regarding earlier versions.
+%% 2005/05/12 UL: `linenomath' without spurious number above;
+%% `displaymath' default; edmac homepage ->
+%% ednotes.sty.de.vu, \endlinenomath without
+%% numbers: no change of \holdinginserts;
+%% \linelabel doesn't go to .aux or mark,
+%% hyperref detected; undone 2005/05/10 (bad mark).
+%% 2005/05/13 UL: Reworked hyperref detection (new subsec.).
+%% 2005/05/15 UL: More typo fixes, corrected terrible confusions in
+%% the discussion (v4.22/v4.3) of \new/\stepcounter;
+%% new subsec. in `Line number ...'; another
+%% implementation of `hyperref' detection.
+%% 2005/05/16 UL: Final minor changes.
+%% v4.31b /06/14 UL: Extended explanation of \firstlinenumbers
+%% and package options; \@LN@ifgreat@critical;
%% \modulolinenumbers*. Sent to Ednotes.news only.
-%% v4.31 2005/06/15 UL: \modulolinenumbers* with \firstlinenumber{1};
+%% v4.31 2005/06/15 UL: \modulolinenumbers* with \firstlinenumber{1};
%% " -> ``/''; more doc. on \firstlinenumber .
-%% 2005/06/20 UL: Typo fix.
-%% 2005/10/01 UL: Warning about \mod...* with pagewise mode.
-%% v4.31a /10/02 UL: Minor changes of appearance of doc., e.g.,
-%% \[ for $$.
+%% 2005/06/20 UL: Typo fix.
+%% 2005/10/01 UL: Warning about \mod...* with pagewise mode.
+%% v4.31a /10/02 UL: Minor changes of appearance of doc., e.g.,
+%% \[ for $$.
%% v4.32b /10/15 UL: Support for \addvspace; removed comments that
-%% had been invisible already for some time;
-%% made clear with which environments the
-%% linenomath environment is not needed.
-%% v4.32ab /10/15 UL: Observe \if@nobreak with support for \addvspace.
-%% v4.32 2005/10/17 UL: Just made it official and sent it to CTAN.
-%% v4.33b /10/23 UL: \if@nobreak\nobreak\fi -> \nobreak .
-%% v4.33ab /10/24 UL: \LineNoLaTeXOutput without \@tempswafalse;
-%% undid v4.22: \[unv]box\@outputbox (space is OK,
-%% \unvbox pushes short columns down); \@LN@kern@z@ .
-%% v4.4b 2005/10/24 UL: Another tidying-up of the discussion of
-%% \stepcounter{linenumber}; \@LN@screenoff@pen
-%% replaces \@LN@kern@z@, \@LN@depthbox .
-%% v4.4 2005/10/27 UL: Just made official for CTAN.
-%% v4.4a 2005/10/29 UL: Undid change of discussion of
-%% \stepcounter{linenumber} (confusion again).
-%% v4.41 2005/11/02 UL: Raised \CheckCommand*.
-%%
+%% had been invisible already for some time;
+%% made clear with which environments the
+%% linenomath environment is not needed.
+%% v4.32ab /10/15 UL: Observe \if@nobreak with support for \addvspace.
+%% v4.32 2005/10/17 UL: Just made it official and sent it to CTAN.
+%% v4.33b /10/23 UL: \if@nobreak\nobreak\fi -> \nobreak .
+%% v4.33ab /10/24 UL: \LineNoLaTeXOutput without \@tempswafalse;
+%% undid v4.22: \[unv]box\@outputbox (space is OK,
+%% \unvbox pushes short columns down); \@LN@kern@z@ .
+%% v4.4b 2005/10/24 UL: Another tidying-up of the discussion of
+%% \stepcounter{linenumber}; \@LN@screenoff@pen
+%% replaces \@LN@kern@z@, \@LN@depthbox .
+%% v4.4 2005/10/27 UL: Just made official for CTAN.
+%% v4.4a 2005/10/29 UL: Undid change of discussion of
+%% \stepcounter{linenumber} (confusion again).
+%% v4.41 2005/11/02 UL: Raised \CheckCommand*.
+%% v5.0 2022/07/30 KW: Merge in `linenoamsmath' patches
+%%
%% Acknowledgements:
%% v3.06: Donald Arseneau, pointed to mparhack.sty.
%% v3.07+: Frank Mittelbach, points out inconsistencies in the
%% user interface.
%% v3.10: Frank Mittelbach \MakeLineNo fix for deep boxes
-%% v4.00: Daniel Doherty points out clash of \pagewise... with resetting
-%% page number.
-%% v4.21: Much testing work by Erik Luijten.
-%% v4.3: `displaymath' default by Erik Luijten's suggestion.
-%% v4.31: \modulolinenumbers* is an idea of Hillel Chayim Yisraeli's.
-%% v4.32: Support for \addvspace due to Saravanan M.'s observation.
-%% v4.33: Different support for \addvspace due to bug reports by
-%% Saravanan M.'s and David Josef Dev.
-%% v4.4: David Josef Dev points out that \kern\z@ after a paragraph
-%% tends to place its final baseline wrongly.
+%% v4.00: Daniel Doherty points out clash of \pagewise... with resetting
+%% page number.
+%% v4.21: Much testing work by Erik Luijten.
+%% v4.3: `displaymath' default by Erik Luijten's suggestion.
+%% v4.31: \modulolinenumbers* is an idea of Hillel Chayim Yisraeli's.
+%% v4.32: Support for \addvspace due to Saravanan M.'s observation.
+%% v4.33: Different support for \addvspace due to bug reports by
+%% Saravanan M.'s and David Josef Dev.
+%% v4.4: David Josef Dev points out that \kern\z@ after a paragraph
+%% tends to place its final baseline wrongly.
%
%
% \section{%
% Put the line numbers to the lines
% \unskip}
-%
-% (New v4.00) This section contained the most
-% basic package code previously. For various purposes of
-% version_4\dots, much of these basics have been to be modified.
-% Much of my (UL's) reasoning on these modifications has been to
-% be reported. Sorry, the present section has been blown up
-% awfully thus and contains ramifications that may be difficult
-% to trace. We add some ~\subsection~ commands in order to cope
-% with the new situation. (/New v4.00)
-%
-% \subsection{%
+%
+% (New v4.00) This section contained the most
+% basic package code previously. For various purposes of
+% version_4\dots, much of these basics have been to be modified.
+% Much of my (UL's) reasoning on these modifications has been to
+% be reported. Sorry, the present section has been blown up
+% awfully thus and contains ramifications that may be difficult
+% to trace. We add some ~\subsection~ commands in order to cope
+% with the new situation. (/New v4.00)
+%
+% \subsection{%
% Basic code of \texttt{lineno.sty} \scs{output}
-% \unskip}\label{ss:output}
-%
+% \unskip}\label{ss:output}
+%
% The line numbers have to be attached by the output
% routine. We simply set the ~\interlinepenalty~ to $-100000$.
% The output routine will be called after each line in the
@@ -433,33 +435,33 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% The ~\linenopenalty~ is small enough to compensate a bunch of
% penalties (e.g., with ~\samepage~).
%
-% (New v3.04) Longtable uses
-% ~\penalty~$-30000$. The lineno penalty range was
+% (New v3.04) Longtable uses
+% ~\penalty~$-30000$. The lineno penalty range was
% shrunk to $-188000 \dots -32000$. (/New v3.04)
-% (New v4.00) New values are listed below (11111f.). (/New v4.00)
+% (New v4.00) New values are listed below (11111f.). (/New v4.00)
\newcount\linenopenalty\linenopenalty=-100000
-%% TODO v4.4+:
-% (UL) Hm. It is never needed below
-% that this is a counter. ~\def\linenopenalty{-100000\relax}~
-% would do. (I guess this consumes more memory, but it
-% is more important to save counters than to save memory.)
-% I was frightened by ~-\linenopenalty~ below, but indeed
-% \TeX\ interprets the string ~--100000~ as 100000.
-% Has any user or extension package writer ever called
-% ~\linenopenalty=xxx~, or could I really change this?---The
-% counter is somewhat faster than the macro. Together with the
-% compatibility question this seems to support keeping the
-% counter. (???)
-%% Note that Stephan chose ~\mathchardef~ below,
-%% so his choice above seems to have been deliberate.
-%% <- no point, \mathchardef token is fast.
-% (/UL)
+%% TODO v4.4+:
+% (UL) Hm. It is never needed below
+% that this is a counter. ~\def\linenopenalty{-100000\relax}~
+% would do. (I guess this consumes more memory, but it
+% is more important to save counters than to save memory.)
+% I was frightened by ~-\linenopenalty~ below, but indeed
+% \TeX\ interprets the string ~--100000~ as 100000.
+% Has any user or extension package writer ever called
+% ~\linenopenalty=xxx~, or could I really change this?---The
+% counter is somewhat faster than the macro. Together with the
+% compatibility question this seems to support keeping the
+% counter. (???)
+%% Note that Stephan chose ~\mathchardef~ below,
+%% so his choice above seems to have been deliberate.
+%% <- no point, \mathchardef token is fast.
+% (/UL)
\mathchardef\linenopenaltypar=32000
-% So let's make a hook to ~\output~, the direct way. The \LaTeX\
+% So let's make a hook to ~\output~, the direct way. The \LaTeX\
% macro ~\@reinserts~ puts the footnotes back on the page.
%
% (New v3.01) ~\@reinserts~ badly
@@ -469,7 +471,7 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% part. Thus, since lineno.sty does not play well
% with ~\inserts~ anyway, we can safely experiment
% with ~\holdinginserts~, without making things
-% much worse.
+% much worse.
%
% Or that's what I thought, but: Just activating
% ~\holdinginserts~ while doing the ~\par~ will
@@ -484,9 +486,9 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% restart ~\output~.
%
% Then, again, how do we keep the remaining
-% ~\inserts~ while doing further line numbers?
+% ~\inserts~ while doing further line numbers?
%
-% If we find ~\holdinginserts~=$-3$ we activate it again
+% If we find ~\holdinginserts~=$-3$ we activate it again
% after doing ~\output~. (/New v3.01)
%
% (New v3.02) To work with
@@ -494,51 +496,51 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% called indirectly, instead of being replaced.
% When multicol.sty changes ~\output~, it is a
% toks register, not the real thing. (/New v3.02)
-%
-% (New v4.00) Two further complications are added.
+%
+% (New v4.00) Two further complications are added.
%%
-%% TODO v4.3+: Or three, ~\@nobreakfalse~ after ~\MakeLineNo~
-%% for getting rid of ~\@LN@nopagebreak~.
+%% TODO v4.3+: Or three, ~\@nobreakfalse~ after ~\MakeLineNo~
+%% for getting rid of ~\@LN@nopagebreak~.
% \begin{itemize}\item
-% [(i)] Problems with footnotes formerly resulted from
-% \LaTeX's ~\@reinserts~ in ~\@specialoutput~ which Stephan's
-% ~\linelabel~ called via the ~\marginpar~ mechanism.
+% [(i)] Problems with footnotes formerly resulted from
+% \LaTeX's ~\@reinserts~ in ~\@specialoutput~ which Stephan's
+% ~\linelabel~ called via the ~\marginpar~ mechanism.
% \item
-% [(ii)] \LaTeX\ commands using ~\vadjust~ formerly didn't work
-% as one would have hoped. The problem is as follows:
-% Printing the line number results from
-% a box that the output routine inserts at the place of the
-% ~\interlinepenalty~. ~\vadjust~ items appear \emph{above} the
-% ~\interlinepenalty~ (\TeX book p._105). So ~\pagebreak~, e.g.,
-% formerly sent the line number to the next page, while the
-% penalty from ~\nopagebreak~ could not tie the following line,
-% since it was screened off by the line number box.---Our trick
-% is putting the ~\vadjust~ items into a list macro from which
-% the output routine transfers them into the vertical list,
-% below the line number box.
+% [(ii)] \LaTeX\ commands using ~\vadjust~ formerly didn't work
+% as one would have hoped. The problem is as follows:
+% Printing the line number results from
+% a box that the output routine inserts at the place of the
+% ~\interlinepenalty~. ~\vadjust~ items appear \emph{above} the
+% ~\interlinepenalty~ (\TeX book p._105). So ~\pagebreak~, e.g.,
+% formerly sent the line number to the next page, while the
+% penalty from ~\nopagebreak~ could not tie the following line,
+% since it was screened off by the line number box.---Our trick
+% is putting the ~\vadjust~ items into a list macro from which
+% the output routine transfers them into the vertical list,
+% below the line number box.
% \end{itemize}
-% In this case_(ii), like in case_(i), footnotes would suffer
-% if ~\holdinginserts~ were non-positive. Indeed, in both
-% cases_(i) and_(ii) we tackle the footnote problem by extending
-% that part of Stephan's output routine that is active when
-% ~\holdinginserts~ is positive. This extension writes the line
-% number ~\newlabel~ to the .aux file (which was formerly done
-% under $~\holdinginserts~=-3$) and handles the ~\vadjust~
-% items.---To trigger ~\output~ and its ~\linelabel~ or, resp.,
-% ~\vadjust~ part, the list of signal penalties started
-% immediately before is increased here (first for ~\linelabel~,
-% second for postponed ~\vadjust~ items):
-
-\mathchardef\@Mllbcodepen=11111
-\mathchardef\@Mppvacodepen=11112
-
-% (/New v4.00) (New v4.2) David Kastrup urges to use a private
-% name instead of ~\the\output~ (LaTeX-L-list). Otherwise an
-% ~\output~ routine loaded later and using ~\newtoks\output~
-% again may get lost entirely. So we change use of ~\@LN@output~,
-% using it for the former purpose. Reference to what appeared
-% with the name of ~\output~ here lasts for a few lines and then
-% is given away.
+% In this case_(ii), like in case_(i), footnotes would suffer
+% if ~\holdinginserts~ were non-positive. Indeed, in both
+% cases_(i) and_(ii) we tackle the footnote problem by extending
+% that part of Stephan's output routine that is active when
+% ~\holdinginserts~ is positive. This extension writes the line
+% number ~\newlabel~ to the .aux file (which was formerly done
+% under $~\holdinginserts~=-3$) and handles the ~\vadjust~
+% items.---To trigger ~\output~ and its ~\linelabel~ or, resp.,
+% ~\vadjust~ part, the list of signal penalties started
+% immediately before is increased here (first for ~\linelabel~,
+% second for postponed ~\vadjust~ items):
+
+\mathchardef\@Mllbcodepen=11111
+\mathchardef\@Mppvacodepen=11112
+
+% (/New v4.00) (New v4.2) David Kastrup urges to use a private
+% name instead of ~\the\output~ (LaTeX-L-list). Otherwise an
+% ~\output~ routine loaded later and using ~\newtoks\output~
+% again may get lost entirely. So we change use of ~\@LN@output~,
+% using it for the former purpose. Reference to what appeared
+% with the name of ~\output~ here lasts for a few lines and then
+% is given away.
\let\@tempa\output
\newtoks\output
@@ -551,63 +553,63 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% (/New 4.2)
\LineNoTest
\if@tempswa
-%%
-%% (UL) Learnt that even in def.s blank line means ~\par~.
+%%
+%% (UL) Learnt that even in def.s blank line means ~\par~.
%% to leave visual space in present file with having a
-%% blank line neither in present nor in .tex file,
-%% use double comment mark (`%%'). (/UL)
-%%
+%% blank line neither in present nor in .tex file,
+%% use double comment mark (`%%'). (/UL)
+%%
% (New v4.00)
-% We insert recognition of waiting ~\linelabel~ items---
-%%
- \ifnum\outputpenalty=-\@Mllbcodepen
- \WriteLineNo
-%%
-% ---and of waiting ~\vadjust~ items:
-%%
- \else
- \ifnum\outputpenalty=-\@Mppvacodepen
- \PassVadjustList
- \else
-%%
-%% Now we give control back to Stephan.
-% (/New v4.00) (New v4.2) Outsource ``Standard'' output
-% ---which occurs so rarely---to subsection_\ref{ss:LLO}:
-%%
- \LineNoLaTeXOutput
-% (/New v4.2) (New v4.00)
-% Two new ~\fi~s for the ~\linelabel~ and ~\vadjust~ tests---
-%%
- \fi
- \fi
-%%
-% ---and the remaining is
-%%%next three lines are
-% Stephan's code again:
-% (/New v4.00)
-%%
- \else
+% We insert recognition of waiting ~\linelabel~ items---
+%%
+ \ifnum\outputpenalty=-\@Mllbcodepen
+ \WriteLineNo
+%%
+% ---and of waiting ~\vadjust~ items:
+%%
+ \else
+ \ifnum\outputpenalty=-\@Mppvacodepen
+ \PassVadjustList
+ \else
+%%
+%% Now we give control back to Stephan.
+% (/New v4.00) (New v4.2) Outsource ``Standard'' output
+% ---which occurs so rarely---to subsection_\ref{ss:LLO}:
+%%
+ \LineNoLaTeXOutput
+% (/New v4.2) (New v4.00)
+% Two new ~\fi~s for the ~\linelabel~ and ~\vadjust~ tests---
+%%
+ \fi
+ \fi
+%%
+% ---and the remaining is
+%%%next three lines are
+% Stephan's code again:
+% (/New v4.00)
+%%
+ \else
\MakeLineNo
\fi
}
-
-% (New v4.00) Our new macros
-% ~\WriteLineNo~ and ~\PassVadjustList~ will be dealt with in
-% sections_\ref{s:LNref} and_\ref{ss:PVadj}. (/New v4.00)
-%
+
+% (New v4.00) Our new macros
+% ~\WriteLineNo~ and ~\PassVadjustList~ will be dealt with in
+% sections_\ref{s:LNref} and_\ref{ss:PVadj}. (/New v4.00)
+%
% \subsection{%
% \scs{LineNoTest}
-% \unskip}
-%
+% \unskip}
+%
% The float mechanism inserts ~\interlinepenalty~s during
% ~\output~. So carefully reset it before going on. Else
% we get doubled line numbers on every float placed in
-% horizontal mode, e.g, from ~\linelabel~.
+% horizontal mode, e.g, from ~\linelabel~.
%
% Sorry, neither a ~\linelabel~ nor a ~\marginpar~ should
% insert a penalty, else the following linenumber
% could go to the next page. Nor should any other
-% float. So let us suppress the ~\interlinepenalty~
+% float. So let us suppress the ~\interlinepenalty~
% altogether with the ~\@nobreak~ switch.
%
% Since (ltspace.dtx, v1.2p)[1996/07/26], the ~\@nobreaktrue~ does
@@ -629,469 +631,469 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
\def\@LN@nobreaktrue{\let\if@nobreak\iftrue} % renamed v4.33
-% (UL) I thought here were
-% another case of the save stack problem explained in \TeX book,
-% p._301, namely through both local and global changing
-% ~\if@nobreak~. However, ~\@LN@nobreak~ is called during
-% ~\@LN@output~ only, while ~\@nobreaktrue~ is called by \LaTeX's
-% ~\@startsection~ only. The latter never happens during
-% ~\@LN@output~. So there is no local value of ~\if@nobreak~ on
-% save stack when ~\@nobreaktrue~ acts, since ~\the\@LN@output~
-% (where ~\@LN@output~ is a new name for the original ~\output~)
+% (UL) I thought here were
+% another case of the save stack problem explained in \TeX book,
+% p._301, namely through both local and global changing
+% ~\if@nobreak~. However, ~\@LN@nobreak~ is called during
+% ~\@LN@output~ only, while ~\@nobreaktrue~ is called by \LaTeX's
+% ~\@startsection~ only. The latter never happens during
+% ~\@LN@output~. So there is no local value of ~\if@nobreak~ on
+% save stack when ~\@nobreaktrue~ acts, since ~\the\@LN@output~
+% (where ~\@LN@output~ is a new name for the original ~\output~)
% is executed within a group (\TeX book p._21).
%%
%% 2004/09/19 Removed nonsense here according to Stephan 2004/09/04.
-%%
-% (/UL)
+%%
+% (/UL)
%
% \subsection{%
% Other output routines (v4.2)
-% \unskip}\label{ss:LLO}
-%
-% I had thought of dealing with bad interference of footnotes
-% (and ~\enlargethispage~) with (real) ~\marginpar~s and floats
-% \emph{here}. Yet this is done in
+% \unskip}\label{ss:LLO}
+%
+% I had thought of dealing with bad interference of footnotes
+% (and ~\enlargethispage~) with (real) ~\marginpar~s and floats
+% \emph{here}. Yet this is done in
% \[
% ~http://~\mbox{[CTAN]}
% ~/macros/latex/contrib/tamefloats/tameflts.sty~
% \]
-% now, and I prefer striving for compatibility with the latter.
+% now, and I prefer striving for compatibility with the latter.
% (See there for expanding on the problem.)
-% This requires returning the special absolute value of
-% ~\holdinginserts~ that ~lineno.sty~ finds at the end of a newly
+% This requires returning the special absolute value of
+% ~\holdinginserts~ that ~lineno.sty~ finds at the end of a newly
% typeset paragraph---now done in subsection_\ref{ss:calls}
-% (~\linenumberpar~).
-% The former ~\LineNoHoldInsertsTest~ has been filled into here.
-%% ---`3' is replaced by ~\thr@@~ for a while. ~\thr@@~ is
-%% useful practice since plain \TeX, but Stephan may have been
-%% wise in suspecting that \LaTeX\ once could forsake ~\thr@@~.
-%% The same holds for ~\@M=10000~.
-% Note: when the following code is invoked, we have
-% ~\if@tempswa~_ =_~\iftrue~.
-% WARNING: I am still not sure whether the present code is good
-% for cooperating with other packages that use ~\holdinginserts~.
-
-\def\LineNoLaTeXOutput{%
+% (~\linenumberpar~).
+% The former ~\LineNoHoldInsertsTest~ has been filled into here.
+%% ---`3' is replaced by ~\thr@@~ for a while. ~\thr@@~ is
+%% useful practice since plain \TeX, but Stephan may have been
+%% wise in suspecting that \LaTeX\ once could forsake ~\thr@@~.
+%% The same holds for ~\@M=10000~.
+% Note: when the following code is invoked, we have
+% ~\if@tempswa~_ =_~\iftrue~.
+% WARNING: I am still not sure whether the present code is good
+% for cooperating with other packages that use ~\holdinginserts~.
+
+\def\LineNoLaTeXOutput{%
\ifnum \holdinginserts=\thr@@ % v4.33 without \@tempswafalse
- \global\holdinginserts-\thr@@
- \unvbox\@cclv
- \ifnum \outputpenalty=\@M \else \penalty\outputpenalty \fi
+ \global\holdinginserts-\thr@@
+ \unvbox\@cclv
+ \ifnum \outputpenalty=\@M \else \penalty\outputpenalty \fi
\else
\if@twocolumn \let\@makecol\@LN@makecol \fi
- \the\@LN@output % finally following David Kastrup's advice.
- \ifnum \holdinginserts=-\thr@@
- \global\holdinginserts\thr@@ \fi
+ \the\@LN@output % finally following David Kastrup's advice.
+ \ifnum \holdinginserts=-\thr@@
+ \global\holdinginserts\thr@@ \fi
\fi
}
-% \textit{More on dealing with output routines from other
-% packages:}
-% Since ~lineno.sty~'s output routine is called at least once
-% for each output line, I think it should be in \TeX's
-% original ~\output~, while output routines dealing with
-% building pages and with floats etc.\ should be filled into
-% registers addressed by ~\output~ after ~\newtoks\output~.
+% \textit{More on dealing with output routines from other
+% packages:}
+% Since ~lineno.sty~'s output routine is called at least once
+% for each output line, I think it should be in \TeX's
+% original ~\output~, while output routines dealing with
+% building pages and with floats etc.\ should be filled into
+% registers addressed by ~\output~ after ~\newtoks\output~.
% Therefore \begin{enumerate}
-% \item
-% ~tameflts.sty~ should be loaded \emph{after} ~lineno.sty~;
-% \item
-% if a class changes ~\output~ (APS journal class revtex4,
-% e.g.), ~lineno.sty~ should be loaded by ~\RequirePackage~
-% [here presumably following some options in
-% brackets]~{lineno}~ \emph{preceding} ~\documentclass~.
-% \item
-% If you actually maintain such a class, please consider
-% loading ~lineno.sty~ on some draft option. The bunch of
-% lineno's package options may be a problem, but perhaps the
-% purpose of your class is offering only very few of lineno's
-% options anyway, maybe just one.
-% \end{enumerate}
-% The latter may also be needed with classes that don't follow
-% David Kastrup's rule on changing ~\output~.
-%
+% \item
+% ~tameflts.sty~ should be loaded \emph{after} ~lineno.sty~;
+% \item
+% if a class changes ~\output~ (APS journal class revtex4,
+% e.g.), ~lineno.sty~ should be loaded by ~\RequirePackage~
+% [here presumably following some options in
+% brackets]~{lineno}~ \emph{preceding} ~\documentclass~.
+% \item
+% If you actually maintain such a class, please consider
+% loading ~lineno.sty~ on some draft option. The bunch of
+% lineno's package options may be a problem, but perhaps the
+% purpose of your class is offering only very few of lineno's
+% options anyway, maybe just one.
+% \end{enumerate}
+% The latter may also be needed with classes that don't follow
+% David Kastrup's rule on changing ~\output~.
+%
% \subsection{%
-% \scs{MakeLineNo}: Actually attach line number
-% \unskip}\label{ss:MLN}
-%
+% \scs{MakeLineNo}: Actually attach line number
+% \unskip}\label{ss:MLN}
+%
% We have to return all the page to the current page, and
% add a box with the line number, without adding
% breakpoints, glue or space. The depth of our line number
% should be equal to the previous depth of the page, in
% case the page breaks here, and the box has to be moved up
-% by that depth.
+% by that depth.
%
% The ~\interlinepenalty~ comes after the ~\vadjust~ from a
% ~\linelabel~, so we increment the line number \emph{after}
% printing it. The macro ~\makeLineNumber~ produces the
% text of the line number, see section \ref{appearance}.
-%
-% (UL) I needed a while to understand
-% the sentence on incrementing. Correctly: writing the
-% ~\newlabel~ to the .aux file is triggered by the signal
-% penalty that ~\end@float~ inserts via ~\vadjust~.
-% However, this could be changed by our new ~\PostponeVadjust~.
-% After ~\c@linenumber~ has been introduced as a \LaTeX\
-% counter, it might be preferable that it behaved like standard
-% \LaTeX\ counters which are incremented shortly before printing.
-% But this may be of little practical relevance in this case,
-% as ~\c@linenumber~ is driven in a very non-standard
-% way.---However still, this behaviour of ~\c@linenumber~
-% generates a problem with our ~edtable.sty~.
-%% \unskip---Before,
-%% I thought that Stephan had reported his reasoning incorrectly
-%% and rather did this because of his ~\resetlinenumber~ which
-%% initializes ~\c@linenumber~ to 1 instead of 0---the latter is
-%% usual with \LaTeX\ counters. Cf._additional comment at
-%% ~\resetlinenumber~.
-% (/UL).
+%
+% (UL) I needed a while to understand
+% the sentence on incrementing. Correctly: writing the
+% ~\newlabel~ to the .aux file is triggered by the signal
+% penalty that ~\end@float~ inserts via ~\vadjust~.
+% However, this could be changed by our new ~\PostponeVadjust~.
+% After ~\c@linenumber~ has been introduced as a \LaTeX\
+% counter, it might be preferable that it behaved like standard
+% \LaTeX\ counters which are incremented shortly before printing.
+% But this may be of little practical relevance in this case,
+% as ~\c@linenumber~ is driven in a very non-standard
+% way.---However still, this behaviour of ~\c@linenumber~
+% generates a problem with our ~edtable.sty~.
+%% \unskip---Before,
+%% I thought that Stephan had reported his reasoning incorrectly
+%% and rather did this because of his ~\resetlinenumber~ which
+%% initializes ~\c@linenumber~ to 1 instead of 0---the latter is
+%% usual with \LaTeX\ counters. Cf._additional comment at
+%% ~\resetlinenumber~.
+% (/UL).
%
% Finally we put in the natural ~\interlinepenalty~, except
-% after the last line.
+% after the last line.
%
-% (New v3.10) Frank Mittelbach points out that box255 may be
-% less deep than the last box inside, so he proposes to
+% (New v3.10) Frank Mittelbach points out that box255 may be
+% less deep than the last box inside, so he proposes to
% measure the page depth with ~\boxmaxdepth=\maxdimen~.
% (/New v3.10)
-%
-% (UL, New v4.00) We also resume the matter of
-% ~\vadjust~ items that was started in section_\ref{ss:output}.
-%
-% \TeX\ puts only nonzero interline
-% penalties into the vertical list (\TeX book p._105), while
-% ~lineno.sty~ formerly replaced the signal interline penalty by
-% something closing with an explicit penalty of the value that
-% the interline penalty would have without ~lineno.sty~.
-% This is usually 0. Now, explicit vertical penalties can be
-% very nasty with respect to ~\nopagebreak~, e.g., a low (even
-% positive) ~\widowpenalty~ may force a widow where you
-% explicitly tried to forbid it by ~\nopagebreak~
-% (see explanation soon below).
-% The ~\nopagebreak~ we create here would never work if all
-% those zero penalties were present.---On
-% the other hand, we cannot just omit Stephan's zero penalties,
-% because \TeX\ puts a penalty of 10000 after what ~lineno.sty~
-% inserts (\TeX book p._125). This penalty must be overridden
-% to allow page breaks between ordinary lines. To revive
-% ~\nopagebreak~, we therefore replace those zero (or low)
-% penalties by penalties that the user demanded by
-% ~\nopagebreak~.---This mechanism is not perfect and does not
-% exactly restore the original \LaTeX\ working of ~\pagebreak~
-% and ~\nopagebreak~. Viz., if there are several vertical
-% penalties after a line which were produced by closely sitting
-% ~\[no]pagebreak~s, without ~lineno.sty~ the lowest penalty would
-% be effective (cf._\TeX book exercise_14.10). Our mechanism, by
-% contrast, chooses the \emph{last} user-set penalty of the line
-% as the effective one. It would not be very difficult to come
-% more close to the original mechanism, but until someone urges
-% us we will cling to the present simple way. You may consider an
-% advantage of the difference between our mechanism and the
-% original one that the user here can actually override low
-% penalties by ~\nopagebreak~, which may be what a lay \LaTeX\
-% user would expect.
-%% ---Zero glue would do instead of zero
-%% penalty! This could make things easier. Maybe next time.
-%% <- v4.4: No, problem with column depth.
-% (/UL, /New v4.00)
+%
+% (UL, New v4.00) We also resume the matter of
+% ~\vadjust~ items that was started in section_\ref{ss:output}.
+%
+% \TeX\ puts only nonzero interline
+% penalties into the vertical list (\TeX book p._105), while
+% ~lineno.sty~ formerly replaced the signal interline penalty by
+% something closing with an explicit penalty of the value that
+% the interline penalty would have without ~lineno.sty~.
+% This is usually 0. Now, explicit vertical penalties can be
+% very nasty with respect to ~\nopagebreak~, e.g., a low (even
+% positive) ~\widowpenalty~ may force a widow where you
+% explicitly tried to forbid it by ~\nopagebreak~
+% (see explanation soon below).
+% The ~\nopagebreak~ we create here would never work if all
+% those zero penalties were present.---On
+% the other hand, we cannot just omit Stephan's zero penalties,
+% because \TeX\ puts a penalty of 10000 after what ~lineno.sty~
+% inserts (\TeX book p._125). This penalty must be overridden
+% to allow page breaks between ordinary lines. To revive
+% ~\nopagebreak~, we therefore replace those zero (or low)
+% penalties by penalties that the user demanded by
+% ~\nopagebreak~.---This mechanism is not perfect and does not
+% exactly restore the original \LaTeX\ working of ~\pagebreak~
+% and ~\nopagebreak~. Viz., if there are several vertical
+% penalties after a line which were produced by closely sitting
+% ~\[no]pagebreak~s, without ~lineno.sty~ the lowest penalty would
+% be effective (cf._\TeX book exercise_14.10). Our mechanism, by
+% contrast, chooses the \emph{last} user-set penalty of the line
+% as the effective one. It would not be very difficult to come
+% more close to the original mechanism, but until someone urges
+% us we will cling to the present simple way. You may consider an
+% advantage of the difference between our mechanism and the
+% original one that the user here can actually override low
+% penalties by ~\nopagebreak~, which may be what a lay \LaTeX\
+% user would expect.
+%% ---Zero glue would do instead of zero
+%% penalty! This could make things easier. Maybe next time.
+%% <- v4.4: No, problem with column depth.
+% (/UL, /New v4.00)
\def\MakeLineNo{%
- \@LN@maybe@normalLineNumber % v4.31
+ \@LN@maybe@normalLineNumber % v4.31
\boxmaxdepth\maxdimen\setbox\z@\vbox{\unvbox\@cclv}%
\@tempdima\dp\z@ \unvbox\z@
\sbox\@tempboxa{\hb@xt@\z@{\makeLineNumber}}%
-%%
-% (New v4.00) Previously,
+%%
+% (New v4.00) Previously,
% \begin{old}\begin{verbatim}
% % \stepcounter{linenumber}%
% \end{verbatim}
% \end{old}
%% %% TODO: Still first `\begin{old}'?
-% followed. (Of course, there was no
-% comment mark; I put it there to make
-% reading the actual code easy.)
-%
-% (New v4.22: improved) Why not just
+% followed. (Of course, there was no
+% comment mark; I put it there to make
+% reading the actual code easy.)
+%
+% (New v4.22: improved) Why not just
% \[~\global\advance\c@linenumber\@ne~?\]
-% ~\stepcounter~ additionally resets ``subordinate''
-% counters, but which could these (usefully) be?
-% Again, may be column counters with ~edtable.sty~!?
-%
-% But then, our ~edtable.sty~ and its ~longtable~ option
-% should use it as well. So use a shorthand supporting
-% uniformity. You can even use it as a hook for choosing
-% ~\global\advance\c@linenumber\@ne~ instead of our choice.
-% (/New v4.22)
-%%
+% ~\stepcounter~ additionally resets ``subordinate''
+% counters, but which could these (usefully) be?
+% Again, may be column counters with ~edtable.sty~!?
+%
+% But then, our ~edtable.sty~ and its ~longtable~ option
+% should use it as well. So use a shorthand supporting
+% uniformity. You can even use it as a hook for choosing
+% ~\global\advance\c@linenumber\@ne~ instead of our choice.
+% (/New v4.22)
+%%
\stepLineNumber
-%%
-% (New v4.4) Now
-%%
- \ht\@tempboxa\z@ \@LN@depthbox
-%%
-% appends the box containing the line number without changing
-% ~\prevdepth~---see end of section.
-% Now is the time for inserting the $\dots$ (/New v4.4)
-%% The line number has now been placed (it may be invisible
-%% depending on the modulo feature), so
-%% we can insert the
-% ~\vadjust~ items. We cannot do this much later, because
-% their right place is above the artificial interline
-% penalty which Stephan's code will soon insert
-% (cf._\TeX book p._105). The next command is just ~\relax~
-% if no ~\vadjust~ items have been accumulated for the
-% current line. Otherwise it is a list macro inserting
-% the ~\vadjust~ items and finally resetting itself.
+%%
+% (New v4.4) Now
+%%
+ \ht\@tempboxa\z@ \@LN@depthbox
+%%
+% appends the box containing the line number without changing
+% ~\prevdepth~---see end of section.
+% Now is the time for inserting the $\dots$ (/New v4.4)
+%% The line number has now been placed (it may be invisible
+%% depending on the modulo feature), so
+%% we can insert the
+% ~\vadjust~ items. We cannot do this much later, because
+% their right place is above the artificial interline
+% penalty which Stephan's code will soon insert
+% (cf._\TeX book p._105). The next command is just ~\relax~
+% if no ~\vadjust~ items have been accumulated for the
+% current line. Otherwise it is a list macro inserting
+% the ~\vadjust~ items and finally resetting itself.
% (This is made in section_\ref{ss:PVadj} below.)
-% If the final item is a penalty, it is stored so it can
-% compete with other things about page breaking.
-%%
- \@LN@do@vadjusts
- \count@\lastpenalty
-%%
-% At this place,
+% If the final item is a penalty, it is stored so it can
+% compete with other things about page breaking.
+%%
+ \@LN@do@vadjusts
+ \count@\lastpenalty
+%%
+% At this place,
% \begin{old}\begin{verbatim}
% % \ifnum\outputpenalty=-\linenopenaltypar\else
% \end{verbatim}
% \end{old}
-% originally followed. We need something \emph{before} the
-% ~\else~:
-%%
- \ifnum\outputpenalty=-\linenopenaltypar
- \ifnum\count@=\z@ \else
-%%
-% So final ~\pagebreak[0]~ or ~\nopagebreak[0]~ has no
-% effect---but this will make a difference after headings only,
-% where nobody should place such a thing anyway.
-%%
- \xdef\@LN@parpgbrk{%
+% originally followed. We need something \emph{before} the
+% ~\else~:
+%%
+ \ifnum\outputpenalty=-\linenopenaltypar
+ \ifnum\count@=\z@ \else
+%%
+% So final ~\pagebreak[0]~ or ~\nopagebreak[0]~ has no
+% effect---but this will make a difference after headings only,
+% where nobody should place such a thing anyway.
+%%
+ \xdef\@LN@parpgbrk{%
\penalty\the\count@
\global\let\noexpand\@LN@parpgbrk
- \noexpand\@LN@screenoff@pen}% v4.4
-%%
-% That penalty will replace former ~\kern\z@~ in
+ \noexpand\@LN@screenoff@pen}% v4.4
+%%
+% That penalty will replace former ~\kern\z@~ in
% ~\linenumberpar~, see subsection_\ref{ss:calls}.---A
-% few days earlier, I tried to send just a penalty value.
-% However, the ~\kern\z@~ in ~\linenumberpar~ is crucial,
-% as I then found out. See below.---The final penalty is
-% repeated, but this does no harm. (It would not be very
-% difficult to avoid the repeating, but it may even be
-% less efficient.) It may be repeated due to the previous
-% ~\xdef~, but it may be repeated as well below in the
-% present macro where artificial interline penalty is to
+% few days earlier, I tried to send just a penalty value.
+% However, the ~\kern\z@~ in ~\linenumberpar~ is crucial,
+% as I then found out. See below.---The final penalty is
+% repeated, but this does no harm. (It would not be very
+% difficult to avoid the repeating, but it may even be
+% less efficient.) It may be repeated due to the previous
+% ~\xdef~, but it may be repeated as well below in the
+% present macro where artificial interline penalty is to
% be overridden.
-%%
+%%
\fi
\else
-%%
-% (/New v4.00)
-%% Corrected code alignment with v4.11.
+%%
+% (/New v4.00)
+%% Corrected code alignment with v4.11.
\@tempcnta\outputpenalty
\advance\@tempcnta -\linenopenalty
-%%
-% (New v4.00)
+%%
+% (New v4.00)
% \begin{old}\begin{verbatim}
% % \penalty\@tempcnta
% \end{verbatim}
% \end{old}
-% followed previously. To give ~\nopagebreak~ a chance,
-% we do
-%% Corrected code alignment with v4.11.
- \penalty \ifnum\count@<\@tempcnta \@tempcnta \else \count@ \fi
-%%
-% instead.---In ~linenox0.sty~, the ~\else~ thing once was omitted.
-% Sergei Mariev's complaint (thanks!) showed that it is vital
-% (see comment before ~\MakeLineNo~).
-% The remaining ~\fi~ from previous package version closes the
-% ~\ifnum\outputpenalty~\dots
-% (/New v4.00)
-%%
+% followed previously. To give ~\nopagebreak~ a chance,
+% we do
+%% Corrected code alignment with v4.11.
+ \penalty \ifnum\count@<\@tempcnta \@tempcnta \else \count@ \fi
+%%
+% instead.---In ~linenox0.sty~, the ~\else~ thing once was omitted.
+% Sergei Mariev's complaint (thanks!) showed that it is vital
+% (see comment before ~\MakeLineNo~).
+% The remaining ~\fi~ from previous package version closes the
+% ~\ifnum\outputpenalty~\dots
+% (/New v4.00)
+%%
\fi
}
-% (New v4.00)
+% (New v4.00)
-\newcommand\stepLineNumber{\stepcounter{linenumber}}
+\newcommand\stepLineNumber{\stepcounter{linenumber}}
-% For reason, see use above. (/New v4.00)
-%% %% TODO v4.4+: ~\newcommand~ more often!?
-%
-% (New v4.4) The depth preserving trick is drawn here from
-% ~\MakeLineNo~ because it will be used again in
+% For reason, see use above. (/New v4.00)
+%% %% TODO v4.4+: ~\newcommand~ more often!?
+%
+% (New v4.4) The depth preserving trick is drawn here from
+% ~\MakeLineNo~ because it will be used again in
% section_\ref{ss:calls}.
-\def\@LN@depthbox{%
+\def\@LN@depthbox{%
\dp\@tempboxa=\@tempdima
- \nointerlineskip \kern-\@tempdima \box\@tempboxa}
+ \nointerlineskip \kern-\@tempdima \box\@tempboxa}
-% (/New v4.4)
-%
+% (/New v4.4)
+%
% \section{%
-% Control line numbering
+% Control line numbering
% \unskip}
% \subsection{%
-% Inserting \scs{output} calls %% own subsec. v4.4.
+% Inserting \scs{output} calls %% own subsec. v4.4.
% \unskip}\label{ss:calls}
% The line numbering is controlled via ~\par~. \LaTeX\
% saved the \TeX-primitive ~\par~ in ~\@@par~. We push it
% one level further out, and redefine ~\@@par~ to insert
% the ~\interlinepenalty~ needed to trigger the
% line numbering. And we need to allow pagebreaks after a
-% paragraph.
-%
+% paragraph.
+%
% New (2.05beta): the prevgraf test. A paragraph that ends with a
% displayed equation, a ~\noindent\par~ or ~wrapfig.sty~ produce empty
% paragraphs. These should not get a spurious line number via
-% ~\linenopenaltypar~.
+% ~\linenopenaltypar~.
\let\@@@par\@@par
\newcount\linenoprevgraf
-% (UL) And needs ~\linenoprevgraf~
-% to be a counter? Perhaps there may be a paragraph having
-% thousands of lines, so ~\mathchardef~ doesn't suffice (really??).
+% (UL) And needs ~\linenoprevgraf~
+% to be a counter? Perhaps there may be a paragraph having
+% thousands of lines, so ~\mathchardef~ doesn't suffice (really??).
%%
-%% %% TODO: limitations of lines per paragraph elsewhere?
-%% %% Signal penalties, e.g.!? ~\deadcycles~!?
+%% %% TODO: limitations of lines per paragraph elsewhere?
+%% %% Signal penalties, e.g.!? ~\deadcycles~!?
%%
-% A macro ending on ~\relax~ might suffice, but would be
-% somewhat slow. I think I will use ~\mathchardef~ next time.
-% Or has any user used ~\linenoprevgraf~? (/UL)
+% A macro ending on ~\relax~ might suffice, but would be
+% somewhat slow. I think I will use ~\mathchardef~ next time.
+% Or has any user used ~\linenoprevgraf~? (/UL)
-%% v4.33: changed code alignment for better understanding.
-\def\linenumberpar{%
- \ifvmode \@@@par \else
+%% v4.33: changed code alignment for better understanding.
+\def\linenumberpar{%
+ \ifvmode \@@@par \else
\ifinner \@@@par \else
- \xdef\@LN@outer@holdins{\the\holdinginserts}% v4.2
+ \xdef\@LN@outer@holdins{\the\holdinginserts}% v4.2
\advance \interlinepenalty \linenopenalty
\linenoprevgraf \prevgraf
- \global \holdinginserts \thr@@
+ \global \holdinginserts \thr@@
\@@@par
\ifnum\prevgraf>\linenoprevgraf
\penalty-\linenopenaltypar
\fi
-%%
-% (New v4.00)
+%%
+% (New v4.00)
% \begin{old}\begin{verbatim}
-% % \kern\z@
+% % \kern\z@
% \end{verbatim}
% \end{old}
-% was here previously. What for?
-% According to \TeX book p._125, Stephan's
-% interline penalty is changed into 10000. At the end of a
-% paragraph, the ~\parskip~ would follow that penalty of 10000,
-% so there could be a page break neither at the
-% ~\parskip~ nor at the ~\baselineskip~ (\TeX book p._110)---so
-% there could never be a page break between two paragraphs.
-% So something must screen off the 10000 penalty.
-% Indeed, the ~\kern~ is a place to break.
+% was here previously. What for?
+% According to \TeX book p._125, Stephan's
+% interline penalty is changed into 10000. At the end of a
+% paragraph, the ~\parskip~ would follow that penalty of 10000,
+% so there could be a page break neither at the
+% ~\parskip~ nor at the ~\baselineskip~ (\TeX book p._110)---so
+% there could never be a page break between two paragraphs.
+% So something must screen off the 10000 penalty.
+% Indeed, the ~\kern~ is a place to break.
% (Stephan once knew this: see `allow pagebreaks' above.)
-%
-% Formerly, I tried to replace ~\kern\z@~ by
+%
+% Formerly, I tried to replace ~\kern\z@~ by
% \begin{old}\begin{verbatim}
-% % \penalty\@LN@parpgpen\relax
+% % \penalty\@LN@parpgpen\relax
% \end{verbatim}
% \end{old}
-% ---but this allows a page break after heading. So:
-%%
- \@LN@parpgbrk
-%%
-%% After heading, ~\kern\z@~ resulting from previous line
-%% (see below) is followed by ~\write~ or ~\penalty10000~,
-%% so causes no page break.
-%
-% These and similar changes were formerly done by ~linenox1.sty~.
-% (/New v4.00)
-%
-% (New v4.4)
-% A ~\belowdisplayskip~ may precede the previous when the paragraph
-% ends on a display-math; or there may be a ~\topsep~ from a list, etc.
-% ~\addvspace~ couldn't take account for it with ~\kern\z@~
-% here. v4.32 therefore moved the space down -- with at least two
-% bad consequences.
-% Moreover, David Josef Dev observes that ~\kern\z@~ may
-% inappropriately yield column depth 0pt.
-% For these reasons, we introduce ~\@LN@screenoff@pen~ below.
-% (/New v4.4)
-%%
+% ---but this allows a page break after heading. So:
+%%
+ \@LN@parpgbrk
+%%
+%% After heading, ~\kern\z@~ resulting from previous line
+%% (see below) is followed by ~\write~ or ~\penalty10000~,
+%% so causes no page break.
+%
+% These and similar changes were formerly done by ~linenox1.sty~.
+% (/New v4.00)
+%
+% (New v4.4)
+% A ~\belowdisplayskip~ may precede the previous when the paragraph
+% ends on a display-math; or there may be a ~\topsep~ from a list, etc.
+% ~\addvspace~ couldn't take account for it with ~\kern\z@~
+% here. v4.32 therefore moved the space down -- with at least two
+% bad consequences.
+% Moreover, David Josef Dev observes that ~\kern\z@~ may
+% inappropriately yield column depth 0pt.
+% For these reasons, we introduce ~\@LN@screenoff@pen~ below.
+% (/New v4.4)
+%%
\global\holdinginserts\@LN@outer@holdins % v4.2
\advance\interlinepenalty -\linenopenalty
- \fi % from \ifinner ... \else
- \fi} % from \ifvmode ... \else
+ \fi % from \ifinner ... \else
+ \fi} % from \ifvmode ... \else
-% (New v4.00, v4.4) Initialize ~\@LN@parpgbrk~, accounting
-% for earlier space and for appropriate columndepth.
-% We use former ~\MakeLineNo~'s depth-preverving trick
-% ~\@LN@depthbox~ again:
+% (New v4.00, v4.4) Initialize ~\@LN@parpgbrk~, accounting
+% for earlier space and for appropriate columndepth.
+% We use former ~\MakeLineNo~'s depth-preverving trick
+% ~\@LN@depthbox~ again:
-\def\@LN@screenoff@pen{%
- \ifdim\lastskip=\z@
- \@tempdima\prevdepth \setbox\@tempboxa\null
+\def\@LN@screenoff@pen{%
+ \ifdim\lastskip=\z@
+ \@tempdima\prevdepth \setbox\@tempboxa\null
\@LN@depthbox \fi}
-\global\let\@LN@parpgbrk\@LN@screenoff@pen
+\global\let\@LN@parpgbrk\@LN@screenoff@pen
-% (/New v4.4, v4.00)
+% (/New v4.4, v4.00)
% \subsection{%
% Turning on/off %% own subsec. v4.4.
% \unskip}\label{ss:OnOff}
% The basic commands to enable and disable line numbers.
-% ~\@par~ and ~\par~ are only touched, when they are ~\let~
+% ~\@par~ and ~\par~ are only touched, when they are ~\let~
% to ~\@@@par~/~\linenumberpar~. The line number may be
% reset to 1 with the star-form, or set by an optional
-% argument ~[~<number>~]~.
-%
-% (New v4.00) We add ~\ifLineNumbers~ etc.\ since
-% a number of our new adjustments need to know whether
-% linenumbering is active. This just provides a kind of
-% shorthand for ~\ifx\@@par\linenumberpar~; moreover it is
-% more stable: who knows what may happen to ~\@@par~?---A
-% caveat: ~\ifLineNumbers~ may be wrong. E.g., it may be
-% ~\iffalse~ where it acts, while a ~\linenumbers~ a few
-% lines below---in the same paragraph---brings about that
-% the line where the ~\ifLineNumbers~ appears gets a
-% marginal number.
-%% Better implementation suggested below.
-%%
-% (New v4.3) Just noticed: Such tricks have been
-% disallowed with v4.11, see subsections_\ref{ss:LL}
+% argument ~[~<number>~]~.
+%
+% (New v4.00) We add ~\ifLineNumbers~ etc.\ since
+% a number of our new adjustments need to know whether
+% linenumbering is active. This just provides a kind of
+% shorthand for ~\ifx\@@par\linenumberpar~; moreover it is
+% more stable: who knows what may happen to ~\@@par~?---A
+% caveat: ~\ifLineNumbers~ may be wrong. E.g., it may be
+% ~\iffalse~ where it acts, while a ~\linenumbers~ a few
+% lines below---in the same paragraph---brings about that
+% the line where the ~\ifLineNumbers~ appears gets a
+% marginal number.
+%% Better implementation suggested below.
+%%
+% (New v4.3) Just noticed: Such tricks have been
+% disallowed with v4.11, see subsections_\ref{ss:LL}
% and_\ref{ss:OnOff}.---Moreover, the switching between
-% meanings of ~\linelabel~ for a possible error message
-% as of v4.11 is removed. Speed is difficult to esteem
-% and also depends on applications. Just use the most
-% simple code you find. (/New v4.3)
+% meanings of ~\linelabel~ for a possible error message
+% as of v4.11 is removed. Speed is difficult to esteem
+% and also depends on applications. Just use the most
+% simple code you find. (/New v4.3)
-\newif\ifLineNumbers \LineNumbersfalse
+\newif\ifLineNumbers \LineNumbersfalse
-% (/New v4.00)
+% (/New v4.00)
-\def\linenumbers{%
- \LineNumberstrue % v4.00
- \xdef\@LN@outer@holdins{\the\holdinginserts}% v4.3
+\def\linenumbers{%
+ \LineNumberstrue % v4.00
+ \xdef\@LN@outer@holdins{\the\holdinginserts}% v4.3
+%%
+% (New v4.3) The previous line is for ~{linenomath}~
+% in a first numbered paragraph. (/New v4.3)
%%
-% (New v4.3) The previous line is for ~{linenomath}~
-% in a first numbered paragraph. (/New v4.3)
-%%
\let\@@par\linenumberpar
- % \let\linelabel\@LN@linelabel % v4.11, removed v4.3
+ % \let\linelabel\@LN@linelabel % v4.11, removed v4.3
\ifx\@par\@@@par\let\@par\linenumberpar\fi
\ifx\par\@@@par\let\par\linenumberpar\fi
- \@LN@maybe@moduloresume % v4.31
+ \@LN@maybe@moduloresume % v4.31
\@ifnextchar[{\resetlinenumber}%]
{\@ifstar{\resetlinenumber}{}}%
}
-\def\nolinenumbers{%
+\def\nolinenumbers{%
\LineNumbersfalse % v4.00
\let\@@par\@@@par
- % \let\linelabel\@LN@LLerror % v4.11, removed v4.3
+ % \let\linelabel\@LN@LLerror % v4.11, removed v4.3
\ifx\@par\linenumberpar\let\@par\@@@par\fi
\ifx\par\linenumberpar\let\par\@@@par\fi
}
-% (New v4.00) Moreover, it is useful to switch to
-% ~\nolinenumbers~ in ~\@arrayparboxrestore~. We postpone this
-% to section_\ref{ss:ReDef} where we'll have an appending macro
-% for doing this. (/New v4.00)
-%
+% (New v4.00) Moreover, it is useful to switch to
+% ~\nolinenumbers~ in ~\@arrayparboxrestore~. We postpone this
+% to section_\ref{ss:ReDef} where we'll have an appending macro
+% for doing this. (/New v4.00)
+%
% What happens with a display math? Since ~\par~ is not executed,
% when breaking the lines before a display, they will not get
% line numbers. Sorry, but I do not dare to change
@@ -1103,15 +1105,15 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% See the subsection below, for a wrapper environment to make
% it work. But that requires to wrap each and every display
% in your \LaTeX\ source %%.
-%% v4.3:
-% (see option ~displaymath~ in subsections_\ref{ss:v3opts}
-% and_\ref{ss:display} for some relief [UL]).
+%% v4.3:
+% (see option ~displaymath~ in subsections_\ref{ss:v3opts}
+% and_\ref{ss:display} for some relief [UL]).
%
% The next two commands are provided to turn on line
% numbering in a specific mode. Please note the difference:
% for pagewise numbering, ~\linenumbers~ comes first to
% inhibit it from seeing optional arguments, since
-% re-/presetting the counter is useless.
+% re-/presetting the counter is useless.
\def\pagewiselinenumbers{\linenumbers\setpagewiselinenumbers}
\def\runninglinenumbers{\setrunninglinenumbers\linenumbers}
@@ -1119,25 +1121,25 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% Finally, it is a \LaTeX\ style, so we provide for the use
% of environments, including the suppression of the
% following paragraph's indentation.
-%
-%% TODO: v4.4+:
-% (UL) I am drawing the following
-% private thoughts of Stephan's to publicity so that others may
-% think about them---or to remind myself of them in an efficient
-% way. (/UL)
-%% UL changed `%%%' to `% %' below.
-%% TODO: add \par to \linenumbers, if called from an environment. %% v4.3
+%
+%% TODO: v4.4+:
+% (UL) I am drawing the following
+% private thoughts of Stephan's to publicity so that others may
+% think about them---or to remind myself of them in an efficient
+% way. (/UL)
+%% UL changed `%%%' to `% %' below.
+%% TODO: add \par to \linenumbers, if called from an environment. %% v4.3
%% ToDO: add an \@endpe hack if \linenumbers are turned on
-% \begin{old}\begin{verbatim}
+% \begin{old}\begin{verbatim}
% % TO DO: add \par to \linenumbers, if called from an environment.
% % To DO: add an \@endpe hack if \linenumbers are turned on
% % in horizontal mode. {\par\parskip\z@\noindent} or
% % something.
% \end{verbatim}
-% \end{old}
-% (UL) However, I rather think that ~\linenumbers~ and %% v4.31
-% ~\nolinenumbers~ should execute a ~\par~ already. (Then the
-% ~\par~s in the following definitions should be removed.) (/UL)
+% \end{old}
+% (UL) However, I rather think that ~\linenumbers~ and %% v4.31
+% ~\nolinenumbers~ should execute a ~\par~ already. (Then the
+% ~\par~s in the following definitions should be removed.) (/UL)
\@namedef{linenumbers*}{\par\linenumbers*}
\@namedef{runninglinenumbers*}{\par\runninglinenumbers*}
@@ -1154,19 +1156,19 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% Display math
% \unskip}\label{ss:DM}
%
-% Now we tackle the problem to get display math working.
+% Now we tackle the problem to get display math working.
% There are different options.
% \begin{enumerate}\item[
-% 1.] Precede every display math with a ~\par~.
+% 1.] Precede every display math with a ~\par~.
% Not too good.
% \item[
-% 2.] Change ~\interlinepenalty~ and associates globally.
+% 2.] Change ~\interlinepenalty~ and associates globally.
% Unstable.
% \item[
-% 3.] Wrap each display math with a ~{linenomath}~
-% environment.
+% 3.] Wrap each display math with a ~{linenomath}~
+% environment.
% \end{enumerate}
-% We'll go for option 3. See if it works:
+% We'll go for option 3. See if it works:
% \begin{linenomath}
% \begin{equation}
% display \ math
@@ -1178,7 +1180,7 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% \begin{eqnarray}
% multi && line \\
% display && math \\
-% &
+% &
% \begin{array}{c}
% with \\
% array
@@ -1187,7 +1189,7 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% \end{eqnarray}
% \end{linenomath*}
% including multline displays.
-%
+%
% First, here are two macros to turn
% on linenumbering on paragraphs preceeding displays, with
% numbering the lines of the display itself, or without.
@@ -1196,34 +1198,34 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% not numbered. Nor does it harm to wrap a display
% twice, e.q, in case you have some ~{equation}~s wrapped
% explicitely, and later you redefine ~\equation~ to do it
-% automatically.
-%
-% (New v4.3) To avoid the spurious line number above a
-% display in vmode, I insert ~\ifhmode~. (/New v4.3)
+% automatically.
+%
+% (New v4.3) To avoid the spurious line number above a
+% display in vmode, I insert ~\ifhmode~. (/New v4.3)
\newcommand\linenomathNonumbers{%
- \ifLineNumbers
-%% \ifx\@@par\@@@par\else
+ \ifLineNumbers
+%% \ifx\@@par\@@@par\else
\ifnum\interlinepenalty>-\linenopenaltypar
- \global\holdinginserts\thr@@
+ \global\holdinginserts\thr@@
\advance\interlinepenalty \linenopenalty
- \ifhmode % v4.3
+ \ifhmode % v4.3
\advance\predisplaypenalty \linenopenalty
- \fi
+ \fi
\fi
\fi
\ignorespaces
}
\newcommand\linenomathWithnumbers{%
- \ifLineNumbers
+ \ifLineNumbers
%% \ifx\@@par\@@@par\else
\ifnum\interlinepenalty>-\linenopenaltypar
- \global\holdinginserts\thr@@
+ \global\holdinginserts\thr@@
\advance\interlinepenalty \linenopenalty
- \ifhmode % v4.3
+ \ifhmode % v4.3
\advance\predisplaypenalty \linenopenalty
- \fi
+ \fi
\advance\postdisplaypenalty \linenopenalty
\advance\interdisplaylinepenalty \linenopenalty
\fi
@@ -1246,11 +1248,11 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
\@namedef{linenomath*}{\linenomathWithnumbers}%
}
-\def\endlinenomath{%
- \ifLineNumbers % v4.3
- \global\holdinginserts\@LN@outer@holdins % v4.21
- \fi
- \global % v4.21 support for LaTeX2e earlier than 1996/07/26.
+\def\endlinenomath{%
+ \ifLineNumbers % v4.3
+ \global\holdinginserts\@LN@outer@holdins % v4.21
+ \fi
+ \global % v4.21 support for LaTeX2e earlier than 1996/07/26.
\@ignoretrue
}
\expandafter\let\csname endlinenomath*\endcsname\endlinenomath
@@ -1264,21 +1266,21 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
%
% \section{%
% Line number references
-% \unskip}\label{s:LNref}
-% \subsection{%
-% Internals %% New subsec. v4.3.
+% \unskip}\label{s:LNref}
+% \subsection{%
+% Internals %% New subsec. v4.3.
% \unskip}
% The only way to get a label to a line number in a
% paragraph is to ask the output routine to mark it.
%
-% (New v4.00) The following two paragraphs don't hold any
-% longer, see below. (/New v4.00)
+% (New v4.00) The following two paragraphs don't hold any
+% longer, see below. (/New v4.00)
% \begin{old}\begin{verbatim}
% % We use the marginpar mechanism to hook to ~\output~ for a
% % second time. Marginpars are floats with number $-1$, we
% % fake marginpars with No $-2$. Originally, every negative
% % numbered float was considered to be a marginpar.
-% %
+% %
% % The float box number ~\@currbox~ is used to transfer the
% % label name in a macro called ~\@LNL@~<box-number>.
% \end{verbatim}
@@ -1286,14 +1288,14 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% A ~\newlabel~ is written to the aux-file. The reference
% is to ~\theLineNumber~, \emph{not} ~\thelinenumber~.
% This allows to hook in, as done below for pagewise line
-% numbering.
+% numbering.
%
% (New v3.03) The ~\@LN@ExtraLabelItems~ are added for a hook
% to keep packages like ~{hyperref}~ happy. (/New v3.03)
-%
-% (New v4.00)
-% We fire the ~\marginpar~ mechanism, so we leave \LaTeX's
-% ~\@addmarginpar~ untouched.
+%
+% (New v4.00)
+% We fire the ~\marginpar~ mechanism, so we leave \LaTeX's
+% ~\@addmarginpar~ untouched.
% \begin{old}\begin{verbatim}
% % \let\@LN@addmarginpar\@addmarginpar
% % \def\@addmarginpar{%
@@ -1308,47 +1310,47 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% % \fi}
% \end{verbatim}
% \end{old}
-% OK, we keep Stephan's ~\@LN@ExtraLabelItems~:
-% (/New v4.00)
+% OK, we keep Stephan's ~\@LN@ExtraLabelItems~:
+% (/New v4.00)
\let\@LN@ExtraLabelItems\@empty
-% (New v4.00)
-% We imitate the ~\marginpar~ mechanism without using the
-% ~\@freelist~ boxes. ~\linelabel~ will indeed place a signal
-% penalty (~\@Mllbcodepen~, new), and it will put a label into
-% some list macro ~\@LN@labellist~. A new part of the output
-% routine will take the labels from the list and will write
-% ~\newlabel~s to the .aux file.
-%
+% (New v4.00)
+% We imitate the ~\marginpar~ mechanism without using the
+% ~\@freelist~ boxes. ~\linelabel~ will indeed place a signal
+% penalty (~\@Mllbcodepen~, new), and it will put a label into
+% some list macro ~\@LN@labellist~. A new part of the output
+% routine will take the labels from the list and will write
+% ~\newlabel~s to the .aux file.
+%
% The following is a version of \LaTeX's ~\@xnext~.
\def\@LN@xnext#1\@lt#2\@@#3#4{\def#3{#1}\gdef#4{#2}}
-% This takes an item ~#1~ from a list ~#4~ into ~#3~;
-% to be used as ~\expandafter\@LN@xnext#4\@@#3#4~.
-% Our lists use ~\@lt~ after each item for separating.
-% Indeed, there will be another list macro which can
-% appear as argument ~#4~, this will be used for moving
-% ~\vadjust~ items (section_\ref{ss:PVadj}).
-% The list for ~\linelabel~s is the following:
-
-\global\let\@LN@labellist\@empty
-
-% The next is the new part of the output routine writing the
-% ~\newlabel~ to the .aux file. Since it is no real page output,
-% the page is put back to top of the main vertical list.
-
-\def\WriteLineNo{%
- \unvbox\@cclv
- \expandafter \@LN@xnext \@LN@labellist \@@
- \@LN@label \@LN@labellist
- \protected@write\@auxout{}{\string\newlabel{\@LN@label}%
- {{\theLineNumber}{\thepage}\@LN@ExtraLabelItems}}%
+% This takes an item ~#1~ from a list ~#4~ into ~#3~;
+% to be used as ~\expandafter\@LN@xnext#4\@@#3#4~.
+% Our lists use ~\@lt~ after each item for separating.
+% Indeed, there will be another list macro which can
+% appear as argument ~#4~, this will be used for moving
+% ~\vadjust~ items (section_\ref{ss:PVadj}).
+% The list for ~\linelabel~s is the following:
+
+\global\let\@LN@labellist\@empty
+
+% The next is the new part of the output routine writing the
+% ~\newlabel~ to the .aux file. Since it is no real page output,
+% the page is put back to top of the main vertical list.
+
+\def\WriteLineNo{%
+ \unvbox\@cclv
+ \expandafter \@LN@xnext \@LN@labellist \@@
+ \@LN@label \@LN@labellist
+ \protected@write\@auxout{}{\string\newlabel{\@LN@label}%
+ {{\theLineNumber}{\thepage}\@LN@ExtraLabelItems}}%
}
% (/New v4.00)
-%
+%
% \subsection{%
% The \scs{linelabel} command
% \unskip}\label{ss:LL}
@@ -1360,9 +1362,9 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% \marginpar{\tiny\raggedright
% See if it works: This paragraph
% starts on page \pageref{demo}, line
-% \ref{demo}.
+% \ref{demo}.
% \unskip}%
-% (New v4.11)
+% (New v4.11)
% \begin{old}\begin{verbatim}
% % If you use this command outside a ~\linenumbers~
% % paragraph, you will get references to some bogus
@@ -1372,12 +1374,12 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% % or not. A ~\linelabel~ may legally appear earlier than
% % ~\linenumbers~.
% \end{verbatim}
-% \end{old}
-% This trick is better not allowed---see subsections_\ref{ss:LL}
+% \end{old}
+% This trick is better not allowed---see subsections_\ref{ss:LL}
% and_\ref{ss:OnOff}.
% (/New v4.11)
%
-% ~\linelabel~
+% ~\linelabel~
% \begin{old}\begin{verbatim}
% %, via a fake float number $-2$, %% new mechanism v4.00
% \end{verbatim}
@@ -1393,56 +1395,56 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% A ~\linelabel~ is allowed only in outer horizontal mode.
% In outer vertical mode we start a paragraph, and ignore
% trailing spaces (by fooling ~\@esphack~).
-%
-% (New v4.00) We aim at relaxing the previous condition.
-% We insert a hook ~\@LN@mathhook~ and a shorthand
-% ~\@LN@postlabel~ to support the ~mathrefs~ option which
-% allows ~\linelabel~ in math mode.
%
-% The next paragraph is no longer valid.
+% (New v4.00) We aim at relaxing the previous condition.
+% We insert a hook ~\@LN@mathhook~ and a shorthand
+% ~\@LN@postlabel~ to support the ~mathrefs~ option which
+% allows ~\linelabel~ in math mode.
+%
+% The next paragraph is no longer valid.
% \begin{old}\begin{verbatim}
% % The argument of ~\linelabel~ is put into a macro with a
% % name derived from the number of the allocated float box.
% % Much of the rest is dummy float setup.
% \end{verbatim}
% \end{old}
-% (/New v4.00)
+% (/New v4.00)
%
-% (New v4.11)
-% \begin{old}\begin{verbatim}
+% (New v4.11)
+% \begin{old}\begin{verbatim}
% % \def\linelabel#1{%
% \end{verbatim}
-% \end{old}
-% I forgot ~\linenumbers~ today, costed me hours or so.
+% \end{old}
+% I forgot ~\linenumbers~ today, costed me hours or so.
-\def\@LN@LLerror{\PackageError{lineno}{%
- \string\linelabel\space without \string\linenumbers}{%
+\def\@LN@LLerror{\PackageError{lineno}{%
+ \string\linelabel\space without \string\linenumbers}{%
Just see documentation. (New feature v4.11)}\@gobble}
-% (New v4.3) Here some things have changed for v4.3.
-% The previous ~#1~ has been replaced by ~\@gobble~.
-% Ensuing, the ~\linelabel~ error message is re-implemented.
-% I find it difficult to compare efficiency of slight
-% alternatives---so choose an easy one. Explicit switching
-% in ~\linenumbers~ and ~\nolinenumbers~ is an additional
-% command that may better be avoided.
+% (New v4.3) Here some things have changed for v4.3.
+% The previous ~#1~ has been replaced by ~\@gobble~.
+% Ensuing, the ~\linelabel~ error message is re-implemented.
+% I find it difficult to compare efficiency of slight
+% alternatives---so choose an easy one. Explicit switching
+% in ~\linenumbers~ and ~\nolinenumbers~ is an additional
+% command that may better be avoided.
-\newcommand\linelabel{%
- \ifLineNumbers \expandafter \@LN@linelabel
+\newcommand\linelabel{%
+ \ifLineNumbers \expandafter \@LN@linelabel
\else \expandafter \@LN@LLerror \fi}
-%%\let\linelabel\@LN@LLerror
-
-\gdef\@LN@linelabel#1{%
-%%
-% ~\gdef~ for hyperref ``symbolically''. (/New v4.11)
-%%
- \ifx\protect\@typeset@protect
-%%
-% $\gets$ And a ~\linelabel~ should never be replicated in a
-% mark or a TOC entry. (/New v4.3)
-%%
+%%\let\linelabel\@LN@LLerror
+
+\gdef\@LN@linelabel#1{%
+%%
+% ~\gdef~ for hyperref ``symbolically''. (/New v4.11)
+%%
+ \ifx\protect\@typeset@protect
+%%
+% $\gets$ And a ~\linelabel~ should never be replicated in a
+% mark or a TOC entry. (/New v4.3)
+%%
\ifvmode
- \ifinner \else
+ \ifinner \else
\leavevmode \@bsphack \@savsk\p@
\fi
\else
@@ -1452,10 +1454,10 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
\ifinner
\@parmoderr
\else
-%%
-% (New v4.00)
-%%
- \@LN@postlabel{#1}%
+%%
+% (New v4.00)
+%%
+ \@LN@postlabel{#1}%
% \begin{old}\begin{verbatim}
% % \@floatpenalty -\@Mii
% % \@next\@currbox\@freelist
@@ -1467,65 +1469,65 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% % \endgroup
% % \@ignorefalse \@esphack
% \end{verbatim}
-% \end{old}
-% (/New v4.00)
-%%
- \@esphack
-%%
-% (New v4.00)
-% The ~\@ignorefalse~ was appropriate before because the
-% ~\@Esphack~ in ~\end@float~ set ~\@ignoretrue~. Cf._\LaTeX's
-% ~\@xympar~. (/New v4.00)
-%%
+% \end{old}
+% (/New v4.00)
+%%
+ \@esphack
+%%
+% (New v4.00)
+% The ~\@ignorefalse~ was appropriate before because the
+% ~\@Esphack~ in ~\end@float~ set ~\@ignoretrue~. Cf._\LaTeX's
+% ~\@xympar~. (/New v4.00)
+%%
\fi
\else
-%%
-% (New v4.00)
-%%
+%%
+% (New v4.00)
+%%
\@LN@mathhook{#1}%
% \begin{old}\begin{verbatim}
% % \@parmoderr
% \end{verbatim}
-% \end{old}
-% Instead of complaining, you may just do your job.
-% (/New v4.00)
-%%
+% \end{old}
+% Instead of complaining, you may just do your job.
+% (/New v4.00)
+%%
\fi
- \fi
+ \fi
}
-% (New v4.00) The shorthand just does what happened
-% with ~linenox0.sty~ before ~ednmath0.sty~ (New v4.1:
-% now ~mathrefs~ option) appeared, and
-% the hook is initialized to serve the same purpose.
-% So errors come just where Stephan had built them in,
-% and this is just the \LaTeX\ ~\marginpar~ behaviour.
+% (New v4.00) The shorthand just does what happened
+% with ~linenox0.sty~ before ~ednmath0.sty~ (New v4.1:
+% now ~mathrefs~ option) appeared, and
+% the hook is initialized to serve the same purpose.
+% So errors come just where Stephan had built them in,
+% and this is just the \LaTeX\ ~\marginpar~ behaviour.
\def\@LN@postlabel#1{\g@addto@macro\@LN@labellist{#1\@lt}%
- \vadjust{\penalty-\@Mllbcodepen}}
+ \vadjust{\penalty-\@Mllbcodepen}}
\def\@LN@mathhook#1{\@parmoderr}
-% (/New v4.00)
-%
-% \modulolinenumbers[3]
+% (/New v4.00)
+%
+% \modulolinenumbers[3]
% \firstlinenumber{1}
% \section{%
% The appearance of the line numbers
% \unskip}\label{appearance}
% \subsection{%
-% Basic code %% own subsec. v4.2.
+% Basic code %% own subsec. v4.2.
% \unskip}
-%
+%
% The line numbers are set as ~\tiny\sffamily\arabic{linenumber}~,
% $10pt$ left of the text. With options to place it
% right of the text, or . . .
%
% . . . here are the hooks:
-\def\makeLineNumberLeft{%
+\def\makeLineNumberLeft{%
\hss\linenumberfont\LineNumber\hskip\linenumbersep}
-\def\makeLineNumberRight{%
+\def\makeLineNumberRight{%
\linenumberfont\hskip\linenumbersep\hskip\columnwidth
\hb@xt@\linenumberwidth{\hss\LineNumber}\hss}
@@ -1539,7 +1541,7 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% Margin switching requires ~pagewise~ numbering mode, but
% choosing the left or right margin for the numbers always
-% works.
+% works.
\def\switchlinenumbers{\@ifstar
{\let\makeLineNumberOdd\makeLineNumberRight
@@ -1588,70 +1590,70 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% Only the running mode counter may be reset, or preset,
% for individual paragraphs. The pagewise counter must
% give a unique anonymous number for each line.
-%
-% (New v4.3) ~\newcounter{linenumber}~
-% was the only ~\newcounter~ in the whole package, and
-% formerly I was near using ~\newcount~ instead. Yet
-% ~\newcounter~ may be quite useful for ~\includeonly~.
-% It also supports resetting ``subcounters'', but what
-% could these be? Well, ~edtable~ might introduce a
-% subcounter for columns.
-% (Note that \LaTeX's setting commands would work with
-% ~\newcount\c@linenumber~ already, apart from this.
-% And perhaps sometimes ~\refstepcounter{linenumber}~
-% wouldn't work---cf._my discussion of ~\stepcounter~ in
-% subsection_\ref{ss:MLN}, similarly ~\refstep...~ would
-% be quite useless.
-% Even the usual redefinitions of ~\thelinenumber~ would
-% work. It is nice, on the other hand, that
-% ~\thelinenumber~ is predefined here. \LaTeX's
-% initialization of the value perhaps just serves making
-% clear \LaTeX\ counters should always be changed
-% globally.---Shortened and improved the discussion here.)
-% (/New v4.3)
-%
-% (New v4.22)
-% ~\c@linenumber~ usually is---globally---incremented by
-% ~\stepcounter~ (at present), so resetting it locally would
-% raise the save stack problem of \TeX book p._301, moreover
-% it would be is useless, there is no hope of keeping the
-% values local (but see subsection_\ref{ss:ILN}). So I insert
-% ~\global~: (/New v4.22)
-
-\newcommand*\resetlinenumber[1][\@ne]{%
+%
+% (New v4.3) ~\newcounter{linenumber}~
+% was the only ~\newcounter~ in the whole package, and
+% formerly I was near using ~\newcount~ instead. Yet
+% ~\newcounter~ may be quite useful for ~\includeonly~.
+% It also supports resetting ``subcounters'', but what
+% could these be? Well, ~edtable~ might introduce a
+% subcounter for columns.
+% (Note that \LaTeX's setting commands would work with
+% ~\newcount\c@linenumber~ already, apart from this.
+% And perhaps sometimes ~\refstepcounter{linenumber}~
+% wouldn't work---cf._my discussion of ~\stepcounter~ in
+% subsection_\ref{ss:MLN}, similarly ~\refstep...~ would
+% be quite useless.
+% Even the usual redefinitions of ~\thelinenumber~ would
+% work. It is nice, on the other hand, that
+% ~\thelinenumber~ is predefined here. \LaTeX's
+% initialization of the value perhaps just serves making
+% clear \LaTeX\ counters should always be changed
+% globally.---Shortened and improved the discussion here.)
+% (/New v4.3)
+%
+% (New v4.22)
+% ~\c@linenumber~ usually is---globally---incremented by
+% ~\stepcounter~ (at present), so resetting it locally would
+% raise the save stack problem of \TeX book p._301, moreover
+% it would be is useless, there is no hope of keeping the
+% values local (but see subsection_\ref{ss:ILN}). So I insert
+% ~\global~: (/New v4.22)
+
+\newcommand*\resetlinenumber[1][\@ne]{%
\global % v4.22
\c@runninglinenumber#1\relax}
-% (New v4.00)
+% (New v4.00)
% \begin{old}\begin{verbatim}
% % \newcommand\resetlinenumber[1][1]{\c@runninglinenumber#1}
% \end{verbatim}
% \end{old}
-% Added ~\relax~, being quite sure that this does no harm
-% and is quite important, as with ~\setcounter~ etc.
-% I consider this a bug fix (although perhaps no user has
-% ever had a problem with this). (/New v4.00)
-%
-% (v4.22: I had made much fuss about resetting subordinate
+% Added ~\relax~, being quite sure that this does no harm
+% and is quite important, as with ~\setcounter~ etc.
+% I consider this a bug fix (although perhaps no user has
+% ever had a problem with this). (/New v4.00)
+%
+% (v4.22: I had made much fuss about resetting subordinate
% counters here---removed, somewhat postponed.)
-%
-%% TODO v4.4+:
-%% \newcommand*\resetlinenumber[1][\@ne]{%
-%% \ifx\c@linenumber\c@runninglinenumber
+%
+%% TODO v4.4+:
+%% \newcommand*\resetlinenumber[1][\@ne]{%
+%% \ifx\c@linenumber\c@runninglinenumber
%% \global\c@linenumber#1\relax
-%% \global\advance\c@linenumber\m@ne
-%% \stepLineNumber
-%% \else
-%% \PackageError{lineno}%% Shorthand!?
-%% {You can't reset line number in pagewise mode}%
-%% {This should suffice.}%
-%% \fi
-%% }
-%
+%% \global\advance\c@linenumber\m@ne
+%% \stepLineNumber
+%% \else
+%% \PackageError{lineno}%% Shorthand!?
+%% {You can't reset line number in pagewise mode}%
+%% {This should suffice.}%
+%% \fi
+%% }
+%
% \subsection{%
% Running line numbers
-% \unskip}
-%
+% \unskip}
+%
% Running mode is easy, ~\LineNumber~ and ~\theLineNumber~
% produce ~\thelinenumber~, which defaults to
% ~\arabic{linenumber}~, using the ~\c@runninglinenumber~
@@ -1670,12 +1672,12 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
%
% \subsection{%
% Pagewise line numbers
-% \unskip}\label{ss:PW}
-%
+% \unskip}\label{ss:PW}
+%
% Difficult, if you think about it. The number has to be
% printed when there is no means to know on which page it
-% will end up, except through the aux-file. My solution
-% is really expensive, but quite robust.
+% will end up, except through the aux-file. My solution
+% is really expensive, but quite robust.
%
% With version ~v2.00~ the hashsize requirements are
% reduced, because we do not need one controlsequence for
@@ -1712,58 +1714,58 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% there might else be in ~\thepage~.
\def\logtheLineNumber{\protected@write\@auxout{}{%
-%%
+%%
% (New v4.00) (UL)
-% As Daniel Doherty observed, the earlier line
+% As Daniel Doherty observed, the earlier line
% \begin{old}\begin{verbatim}
% % \string\@LN{\the\c@linenumber}{\noexpand\the\c@page}}}
% \end{verbatim}
% \end{old}
-% here may lead into an infinite loop when the user resets
-% the page number (think of ~\pagenumbering~, e.g.).
-% Stephan and I brief\/ly discussed the matter and decided
-% to introduce a ``physical''-page counter to which
-% ~\logtheLineNumber~ refers. It was Stephan's idea to use
-% ~\cl@page~ for reliably augmenting the ``physical''-page
-% counter. However, this relies on the output routine once
-% doing ~\stepcounter{page}~. Before Stephan's
-% suggestion, I had thought of appending the stepping to
-% \LaTeX's ~\@outputpage~.---So the macro definition ends
-% as follows.
-%%
- \string\@LN{\the\c@linenumber}{%
-%%
-% (New v4.2)
-%% \noexpand\number\n@LN@truepage}}}
-%%
-% The `truepage' counter must start with ~\c@~ so it works
-% with ~\include~, and the ~\@addtoreset~ below is needed
-% for the same purpose.
-%%
- \noexpand\the\c@LN@truepage}}}
-
-%% \newcount\n@LN@truepage
+% here may lead into an infinite loop when the user resets
+% the page number (think of ~\pagenumbering~, e.g.).
+% Stephan and I brief\/ly discussed the matter and decided
+% to introduce a ``physical''-page counter to which
+% ~\logtheLineNumber~ refers. It was Stephan's idea to use
+% ~\cl@page~ for reliably augmenting the ``physical''-page
+% counter. However, this relies on the output routine once
+% doing ~\stepcounter{page}~. Before Stephan's
+% suggestion, I had thought of appending the stepping to
+% \LaTeX's ~\@outputpage~.---So the macro definition ends
+% as follows.
+%%
+ \string\@LN{\the\c@linenumber}{%
+%%
+% (New v4.2)
+%% \noexpand\number\n@LN@truepage}}}
+%%
+% The `truepage' counter must start with ~\c@~ so it works
+% with ~\include~, and the ~\@addtoreset~ below is needed
+% for the same purpose.
+%%
+ \noexpand\the\c@LN@truepage}}}
+
+%% \newcount\n@LN@truepage
%% \g@addto@macro\cl@page{\global\advance\n@LN@truepage\@ne}
-\newcount\c@LN@truepage
+\newcount\c@LN@truepage
\g@addto@macro\cl@page{\global\advance\c@LN@truepage\@ne}
\@addtoreset{LN@truepage}{@ckpt}
-% (/New v4.2) I had thought of offering more
-% features of a \LaTeX\ counter. However, the user should
-% better \emph{not} have access to this counter. ~\c@page~
-% should suffice as a pagewise master counter.---To be sure,
-% along the present lines the user \emph{can} manipulate
-% ~\c@LN@truepage~ by ~\stepcounter{page}~. E.g., she might
-% do this in order to manually insert a photograph. Well,
-% seems not to harm.
-%
-% The above usage of ~\g@addto@macro~ and ~\cl@page~ may be
-% not as stable as Stephan intended. His proposal used
-% ~\xdef~ directly. But he used ~\cl@page~ as well, and who
-% knows \dots{} And as to ~\g@addto@macro~, I have introduced
-% it for list macros anyway.
-% (/UL) (/New v4.00)
-%
+% (/New v4.2) I had thought of offering more
+% features of a \LaTeX\ counter. However, the user should
+% better \emph{not} have access to this counter. ~\c@page~
+% should suffice as a pagewise master counter.---To be sure,
+% along the present lines the user \emph{can} manipulate
+% ~\c@LN@truepage~ by ~\stepcounter{page}~. E.g., she might
+% do this in order to manually insert a photograph. Well,
+% seems not to harm.
+%
+% The above usage of ~\g@addto@macro~ and ~\cl@page~ may be
+% not as stable as Stephan intended. His proposal used
+% ~\xdef~ directly. But he used ~\cl@page~ as well, and who
+% knows \dots{} And as to ~\g@addto@macro~, I have introduced
+% it for list macros anyway.
+% (/UL) (/New v4.00)
+%
% From the aux-file we get one macro ~\LN@P~<page> for each
% page with line numbers on it. This macro calls four other
% macros with one argument each. These macros are
@@ -1773,7 +1775,7 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% We need sort of a pointer to the first page with line
% numbers, initiallized to point to nothing:
-\def\LastNumberedPage{first}
+\def\LastNumberedPage{first}
\def\LN@Pfirst{\nextLN\relax}
% The four dynamic macros are initiallized to reproduce
@@ -1786,7 +1788,7 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% During the end-document run through the aux-files, we
% disable ~\@LN~. I may put in a check here later, to give
-% a rerun recommendation.
+% a rerun recommendation.
\AtEndDocument{\let\@LN\@gobbletwo}
@@ -1799,7 +1801,7 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% current page and line number, with the
% \emph{pointer-to-the-next-page} pointing to nothing. And
% the macro for the previous page will be redefined to point
-% to the current one.
+% to the current one.
%
% If the macro for the current page already exists, just
% redefine the \emph{last-line-number} entry.
@@ -1814,8 +1816,8 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
\def\@@LN#1#2#3#4{\ifx#1\relax
\ifx#2\relax\gdef#2{#3}\fi
- \expandafter\@@@LN\csname LN@P\LastNumberedPage\endcsname#1%
- \xdef#1{\lastLN{#3}\firstLN{#3}%
+ \expandafter\@@@LN\csname LN@P\LastNumberedPage\endcsname#1%
+ \xdef#1{\lastLN{#3}\firstLN{#3}%
\pageLN{#4}{\@LN@column}{#2}\nextLN\relax}%
\else
\def\lastLN##1{\noexpand\lastLN{#3}}%
@@ -1825,7 +1827,7 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% The previous page macro gets its pointer to the
% current one, replacing the ~\relax~ with the cs-token
-% ~\LN@P~<page>.
+% ~\LN@P~<page>.
\def\@@@LN#1#2{{\def\nextLN##1{\noexpand\nextLN\noexpand#2}%
\xdef#1{#1}}}
@@ -1836,11 +1838,11 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% be a completely different one. We maintain a cache,
% which is ~\let~ to the last page's macro. But for now
% it is initialized to expand ~\LN@first~, where the poiner
-% to the first numbered page has been stored in.
+% to the first numbered page has been stored in.
\def\NumberedPageCache{\LN@Pfirst}
-% To find out on which page the current ~\c@linenumber~ is,
+% To find out on which page the current ~\c@linenumber~ is,
% we define the four dynamic macros to do something usefull
% and execute the current cache macro. ~\lastLN~ is run
% first, testing if the line number in question may be on a
@@ -1855,7 +1857,7 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% page, we start over from the beginning. Else, ~\nextLN~
% will be disabled, and ~\pageLN~ will run
% ~\gotNumberedPage~ with four arguments: the first line
-% number on this column, the page number, the column
+% number on this column, the page number, the column
% number, and the first line on the page.
\def\testFirstNumberedPage#1{\ifnum#1>\c@linenumber
@@ -1879,7 +1881,7 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
}
% When we switch to another page, we first have to make
-% sure that it is there. If we are done with the last
+% sure that it is there. If we are done with the last
% page, we probably need to run \TeX\ again, but for the
% rest of this run, the cache macro will just return four
% zeros. This saves a lot of time, for example if you have
@@ -1887,7 +1889,7 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% the whole page-list would be searched in vain again and
% again for the second half of the document.
%
-% If there is another page, we iterate the search.
+% If there is another page, we iterate the search.
\def\testNextNumberedPage#1{\ifx#1\relax
\global\def\NumberedPageCache{\gotNumberedPage0000}%
@@ -1903,10 +1905,10 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% \linelabel{demo2}
% \marginpar{\tiny\raggedright
% Let's see if it finds the label
-% on page \pageref{demo},
+% on page \pageref{demo},
% line \ref{demo}, and back here
% on page \pageref{demo2}, line
-% \ref{demo2}.
+% \ref{demo2}.
% \unskip}%
% To separate the official hooks from the internals there is
% this equivalence, to hook in later for whatever purpose:
@@ -1923,7 +1925,7 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
\def\gotNumberedPage#1#2#3#4{\oddNumberedPagefalse
\ifodd \if@twocolumn #3\else #2\fi\relax\oddNumberedPagetrue\fi
- \advance\c@linenumber\@ne
+ \advance\c@linenumber\@ne
\ifcolumnwiselinenumbers
\subtractlinenumberoffset{#1}%
\else
@@ -1949,7 +1951,7 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% in the ~\c@linenumber~ counter. This is what gets printed
% to the aux-file to make a label:
-\def\thePagewiseLineNumber{\protect
+\def\thePagewiseLineNumber{\protect
\getpagewiselinenumber{\the\c@linenumber}}%
% And here is what happens when the label is refered to:
@@ -1971,90 +1973,90 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% [MEM:] One macro per page. Great improvement over v1.02,
% which had one control sequence per line in
% addition. It blew the hash table after some five
-% thousand lines.
+% thousand lines.
% \end{description}
%
% \subsection{%
% Twocolumn mode (New v3.06)
% \unskip}
%
-% Twocolumn mode requires another patch to the ~\output~
-% routine, in order to print a column tag to the .aux
+% Twocolumn mode requires another patch to the ~\output~
+% routine, in order to print a column tag to the .aux
% file.
-\AtBeginDocument{% v4.2, revtex4.cls (e.g.).
- % <- TODO v4.4+: Or better in \LineNoLaTeXOutput!?
- \let\@LN@orig@makecol\@makecol}
+\AtBeginDocument{% v4.2, revtex4.cls (e.g.).
+ % <- TODO v4.4+: Or better in \LineNoLaTeXOutput!?
+ \let\@LN@orig@makecol\@makecol}
\def\@LN@makecol{%
\@LN@orig@makecol
\setbox\@outputbox \vbox{%
\boxmaxdepth \@maxdepth
- \protected@write\@auxout{}{%
+ \protected@write\@auxout{}{%
\string\@LN@col{\if@firstcolumn1\else2\fi}%
}%
- \box\@outputbox
+ \box\@outputbox
}% \vbox
-} %% TODO cf. revtexln.sty.
+} %% TODO cf. revtexln.sty.
-\def\@LN@col{\def\@LN@column} % v4.22, removed #1.
+\def\@LN@col{\def\@LN@column} % v4.22, removed #1.
\@LN@col{1}
%
% \subsection{%
-% Numbering modulo $m$, starting at $f$
+% Numbering modulo $m$, starting at $f$
%% Numbering modulo 5
-% \unskip}\label{ss:Mod}
-%
+% \unskip}\label{ss:Mod}
+%
% Most users want to have only one in five lines numbered.
% ~\LineNumber~ is supposed to produce the outfit of the
% line number attached to the line, while ~\thelinenumber~
% is used also for references, which should appear even if
-% they are not multiples of five.
-%
-% (New v4.00) Moreover, some users want to
-% control which line number should be printed first. Support
-% of this is now introduced here---see ~\firstlinenumber~
-% below.---~numline.sty~ by Michael Jaegermann and
-% James Fortune offers controlling which \emph{final}
-% line numbers should not be printed. What is
-% it good for? We ignore this here until some user demands
-% it.---Peter Wilson's ~ledmac.sty~ offers much different
-% choices of line numbers to be printed, due to Wayne Sullivan.
-% (/New v4.00)
-%
-% (New v4.22) ~\c@linenumbermodulo~ is rendered a
-% fake counter, as discussed since v4.00. So it can
-% no longer be set by ~\setcounter~. ~\modulolinenumbers~
-% serves this purpose. Well, does anybody want to do
-% what worked with ~\addtocounter~? (Then please tell
-% me.)---At least, ~\value~ still works. For the same
-% purpose I rename the fake `firstlinenumber' counter
-% ~\n@...~ to ~\c@...~. (/New v4.22)
+% they are not multiples of five.
+%
+% (New v4.00) Moreover, some users want to
+% control which line number should be printed first. Support
+% of this is now introduced here---see ~\firstlinenumber~
+% below.---~numline.sty~ by Michael Jaegermann and
+% James Fortune offers controlling which \emph{final}
+% line numbers should not be printed. What is
+% it good for? We ignore this here until some user demands
+% it.---Peter Wilson's ~ledmac.sty~ offers much different
+% choices of line numbers to be printed, due to Wayne Sullivan.
+% (/New v4.00)
+%
+% (New v4.22) ~\c@linenumbermodulo~ is rendered a
+% fake counter, as discussed since v4.00. So it can
+% no longer be set by ~\setcounter~. ~\modulolinenumbers~
+% serves this purpose. Well, does anybody want to do
+% what worked with ~\addtocounter~? (Then please tell
+% me.)---At least, ~\value~ still works. For the same
+% purpose I rename the fake `firstlinenumber' counter
+% ~\n@...~ to ~\c@...~. (/New v4.22)
% \begin{old}\begin{verbatim}
-% % \newcount\c@linenumbermodulo % removed for v4.22
+% % \newcount\c@linenumbermodulo % removed for v4.22
% \end{verbatim}
% \end{old}
-%
-%% Removed for v4.22:
-%% (UL) On my question why, e.g.,
-%% ~\chardef~ would not have sufficed, Stephan couldn't remember
-%% exactly; guessed that he wanted to offer \LaTeX\ counter
-%% facilities. However, the typical ones don't come this way.
-%% So I'm quite sure that I will change this next time.
-%%
-%% However, I observed at least two times that users gave a very
-%% high value to ~\c@linenumbermodulo~ in order to suppress
-%% printing of the line number. One of these users preferred an
-%% own way of handling line numbers, just wanted to use
-%% ~\linelabel~ and ~ednotes.sty~ features. Should we support this?
-%% I rather would like to advise them to
-%% ~\let\makeLineNumber\relax~. (/UL)
-%
-% (New v4.00) \par
-% ~\themodulolinenumber~ waits for being declared
-% ~\LineNumber~ by ~\modulolinenumbers~. (This has
-% been so before, no change.) Here is how it
-% looked before:
+%
+%% Removed for v4.22:
+%% (UL) On my question why, e.g.,
+%% ~\chardef~ would not have sufficed, Stephan couldn't remember
+%% exactly; guessed that he wanted to offer \LaTeX\ counter
+%% facilities. However, the typical ones don't come this way.
+%% So I'm quite sure that I will change this next time.
+%%
+%% However, I observed at least two times that users gave a very
+%% high value to ~\c@linenumbermodulo~ in order to suppress
+%% printing of the line number. One of these users preferred an
+%% own way of handling line numbers, just wanted to use
+%% ~\linelabel~ and ~ednotes.sty~ features. Should we support this?
+%% I rather would like to advise them to
+%% ~\let\makeLineNumber\relax~. (/UL)
+%
+% (New v4.00) \par
+% ~\themodulolinenumber~ waits for being declared
+% ~\LineNumber~ by ~\modulolinenumbers~. (This has
+% been so before, no change.) Here is how it
+% looked before:
% \begin{old}\begin{verbatim}
% % \def\themodulolinenumber{{\@tempcnta\c@linenumber
% % \divide\@tempcnta\c@linenumbermodulo
@@ -2062,366 +2064,366 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% % \ifnum\@tempcnta=\c@linenumber\thelinenumber\fi
% % }}
% \end{verbatim}
-% \end{old}
-% (UL) This was somewhat slow. This arithmetic
-% happens at every line. This time I tend to declare an extra
-%% TODO v4.4+
-% line counter (as opposed to my usual recommendations to use
-% counters as rarely as possible) which is stepped every line.
-% It could be incremented in the same way as ~\c@LN@truepage~
-% is incremented via ~\cl@page~! This is another point in favour
-% of ~{linenumber}~ being a \LaTeX\ counter!
-% When this new counter equals ~\c@linenumbermodulo~, it is reset,
-% and ~\thelinenumber~ is executed.---It gets much slower by my
-% support of controlling the first line number below. I should
+% \end{old}
+% (UL) This was somewhat slow. This arithmetic
+% happens at every line. This time I tend to declare an extra
+%% TODO v4.4+
+% line counter (as opposed to my usual recommendations to use
+% counters as rarely as possible) which is stepped every line.
+% It could be incremented in the same way as ~\c@LN@truepage~
+% is incremented via ~\cl@page~! This is another point in favour
+% of ~{linenumber}~ being a \LaTeX\ counter!
+% When this new counter equals ~\c@linenumbermodulo~, it is reset,
+% and ~\thelinenumber~ is executed.---It gets much slower by my
+% support of controlling the first line number below. I should
% improve this.---On
-%% %% TODO v4.4+--pagewise!?
-% the other hand, time expense means very little nowadays,
-% while the number of \TeX\ counters still is limited.
-%
-% For the same purpose, moreover, attaching the line number
-% box could be intercepted earlier (in ~\MakeLineNo~),
-% without changing ~\LineNumber~. However, this may be
-% bad for the latter's announcement as a wizard interface
+%% %% TODO v4.4+--pagewise!?
+% the other hand, time expense means very little nowadays,
+% while the number of \TeX\ counters still is limited.
+%
+% For the same purpose, moreover, attaching the line number
+% box could be intercepted earlier (in ~\MakeLineNo~),
+% without changing ~\LineNumber~. However, this may be
+% bad for the latter's announcement as a wizard interface
% in section_\ref{s:UserCmds}.
-%%
-%% I wonder about Stephan's group. Its only effect is that
-%% ~\@tempcnta~ is restored after using it. What for is this?
+%%
+%% I wonder about Stephan's group. Its only effect is that
+%% ~\@tempcnta~ is restored after using it. What for is this?
%% I tend to remove the group braces. %% TODO v4.4+
-% (/UL)
-%
-% Here is the new code. It is very near to my ~lnopatch.sty~
-% code which introduced the first line number feature
-% before.---I add starting with a ~\relax~ which is so often
-% recommended---without understanding this really. At least,
-% it will not harm.---Former group braces appear as
-% ~\begingroup~/~\endgroup~ here.
+% (/UL)
+%
+% Here is the new code. It is very near to my ~lnopatch.sty~
+% code which introduced the first line number feature
+% before.---I add starting with a ~\relax~ which is so often
+% recommended---without understanding this really. At least,
+% it will not harm.---Former group braces appear as
+% ~\begingroup~/~\endgroup~ here.
\def\themodulolinenumber{\relax
- \ifnum\c@linenumber<\c@firstlinenumber \else
- \begingroup
+ \ifnum\c@linenumber<\c@firstlinenumber \else
+ \begingroup
\@tempcnta\c@linenumber
- \advance\@tempcnta-\c@firstlinenumber
+ \advance\@tempcnta-\c@firstlinenumber
\divide\@tempcnta\c@linenumbermodulo
\multiply\@tempcnta\c@linenumbermodulo
- \advance\@tempcnta\c@firstlinenumber
+ \advance\@tempcnta\c@firstlinenumber
\ifnum\@tempcnta=\c@linenumber \thelinenumber \fi
- \endgroup
- \fi
+ \endgroup
+ \fi
}
-% (/New v4.00)
-%
+% (/New v4.00)
+%
% The user command to set the modulo counter:
-% (New v4.31) \dots\ a star variant is introduced to implement
-% Hillel Chayim Yisraeli's idea to print the first line number
-% after an interruption of the edited text by some editor's
-% text, regardless of the modulo. If it is 1, it is printed only
+% (New v4.31) \dots\ a star variant is introduced to implement
+% Hillel Chayim Yisraeli's idea to print the first line number
+% after an interruption of the edited text by some editor's
+% text, regardless of the modulo. If it is 1, it is printed only
% with ~\firstlinenumber{1}~. I.e., you use ~\modulolinenumbers*~
-% for the new feature, without the star you get the simpler
-% behaviour that we have had so far. And you can switch back
-% from the refined behaviour to the simple one by using
-% ~\modulolinenumbers~ without the star.---This enhancement
-% is accompanied by a new package option ~modulo*~ which just
-% executes ~\modulolinenumbers*~
-% (subsection_\ref{ss:v3opts}).---`With ~\firstlinenumber{1}~'
-% exactly means: `1' is printed if and only if the last
-% ~\firstlinenumber~ before or in the paragraph that follows
-% the ``interruption'' has argument `1' (or something
-% \emph{expanding} to `1', or (to) something that \TeX\
-% ``reads'' as 1, e.g.: a \TeX\ count register storing
-% 1).---At present, this behaviour may be unsatisfactory with
-% pagewise line-numbering $\dots$ I'll make an experimental
+% for the new feature, without the star you get the simpler
+% behaviour that we have had so far. And you can switch back
+% from the refined behaviour to the simple one by using
+% ~\modulolinenumbers~ without the star.---This enhancement
+% is accompanied by a new package option ~modulo*~ which just
+% executes ~\modulolinenumbers*~
+% (subsection_\ref{ss:v3opts}).---`With ~\firstlinenumber{1}~'
+% exactly means: `1' is printed if and only if the last
+% ~\firstlinenumber~ before or in the paragraph that follows
+% the ``interruption'' has argument `1' (or something
+% \emph{expanding} to `1', or (to) something that \TeX\
+% ``reads'' as 1, e.g.: a \TeX\ count register storing
+% 1).---At present, this behaviour may be unsatisfactory with
+% pagewise line-numbering $\dots$ I'll make an experimental
% extra package if someone complains \dots
-\newcommand\modulolinenumbers{%
+\newcommand\modulolinenumbers{%
\@ifstar
- {\def\@LN@maybe@moduloresume{%
+ {\def\@LN@maybe@moduloresume{%
\global\let\@LN@maybe@normalLineNumber
- \@LN@normalLineNumber}%
- \@LN@modulolinenos}%
+ \@LN@normalLineNumber}%
+ \@LN@modulolinenos}%
{\let\@LN@maybe@moduloresume\relax \@LN@modulolinenos}%
}
-\global\let\@LN@maybe@normalLineNumber\relax
-\let\@LN@maybe@moduloresume\relax
-\gdef\@LN@normalLineNumber{%
- \ifnum\c@linenumber=\c@firstlinenumber \else
+\global\let\@LN@maybe@normalLineNumber\relax
+\let\@LN@maybe@moduloresume\relax
+\gdef\@LN@normalLineNumber{%
+ \ifnum\c@linenumber=\c@firstlinenumber \else
\ifnum\c@linenumber>\@ne
- \def\LineNumber{\thelinenumber}%
- \fi
- \fi
+ \def\LineNumber{\thelinenumber}%
+ \fi
+ \fi
%%
-% ~\def~ instead of ~\let~ enables taking account of a
-% redefinition of ~\thelinenumber~ in a present numbering
-% environment (e.g.).
+% ~\def~ instead of ~\let~ enables taking account of a
+% redefinition of ~\thelinenumber~ in a present numbering
+% environment (e.g.).
%%
\global\let\@LN@maybe@normalLineNumber\relax}
-% Instead of changing ~\LineNumber~ directly by
+% Instead of changing ~\LineNumber~ directly by
% ~LN@moduloresume~, these tricks enable ~\modulolinenumbers*~
-% to act as locally as I can make it. I don't know how to
-% avoid that the output routine switches back to the normal
-% modulo behaviour by a global change. (An ~\aftergroup~ may
+% to act as locally as I can make it. I don't know how to
+% avoid that the output routine switches back to the normal
+% modulo behaviour by a global change. (An ~\aftergroup~ may
% fail in admittedly improbable cases.)
\newcommand*\@LN@modulolinenos[1][\z@]{%
-%%
-% The definition of this macro is that of the former
-% ~\modulolinenumbers~. (/New v4.31)
+%%
+% The definition of this macro is that of the former
+% ~\modulolinenumbers~. (/New v4.31)
%%
\let\LineNumber\themodulolinenumber
- \ifnum#1>\@ne
- \chardef % v4.22, note below
+ \ifnum#1>\@ne
+ \chardef % v4.22, note below
\c@linenumbermodulo#1\relax
- \else\ifnum#1=\@ne
+ \else\ifnum#1=\@ne
% \begin{old}\begin{verbatim}
% % \def\LineNumber{\thelinenumber}%
% \end{verbatim}
-% \end{old}
-% (New v4.00) I am putting something here to enable
-% ~\firstlinenumber~ with $~\c@linenumbermodulo~=1$.
-% With ~lnopatch.sty~, a trick was offered for this purpose.
-% It is now obsolete.
-%
- \def\LineNumber{\@LN@ifgreat\thelinenumber}%
-%%
-% (/New v4.00)
-%%
+% \end{old}
+% (New v4.00) I am putting something here to enable
+% ~\firstlinenumber~ with $~\c@linenumbermodulo~=1$.
+% With ~lnopatch.sty~, a trick was offered for this purpose.
+% It is now obsolete.
+%
+ \def\LineNumber{\@LN@ifgreat\thelinenumber}%
+%%
+% (/New v4.00)
+%%
\fi\fi
}
-% (New v4.00) The default of ~\@LN@ifgreat~ is
+% (New v4.00) The default of ~\@LN@ifgreat~ is
\let\@LN@ifgreat\relax
-% The previous changes as soon as ~\firstlinenumber~ is used:
+% The previous changes as soon as ~\firstlinenumber~ is used:
-\newcommand*\firstlinenumber[1]{%
- \chardef\c@firstlinenumber#1\relax
-%%
-% No counter, little values allowed only---OK?---(UL)
-% The change is local---OK? The good thing is that
-% ~\global\firstlinenumber{~<number>~}~ works. Moreover,
+\newcommand*\firstlinenumber[1]{%
+ \chardef\c@firstlinenumber#1\relax
+%%
+% No counter, little values allowed only---OK?---(UL)
+% The change is local---OK? The good thing is that
+% ~\global\firstlinenumber{~<number>~}~ works. Moreover,
% ~\modulolinenumbers~ acts locally as well. (/UL)
%
-% (New v4.31)
-%%
- \let\@LN@ifgreat\@LN@ifgreat@critical}
+% (New v4.31)
+%%
+ \let\@LN@ifgreat\@LN@ifgreat@critical}
\def\@LN@ifgreat@critical{%
- \ifnum\c@linenumber<\c@firstlinenumber
- \expandafter \@gobble
- \fi}%
+ \ifnum\c@linenumber<\c@firstlinenumber
+ \expandafter \@gobble
+ \fi}%
-% (/New v4.31)
-%
-% The default
-% value of ~\c@firstlinenumber~ %% v4.31
-% is 0. This is best for what one would expect from modulo
-% printing.
+% (/New v4.31)
+%
+% The default
+% value of ~\c@firstlinenumber~ %% v4.31
+% is 0. This is best for what one would expect from modulo
+% printing.
\let\c@firstlinenumber=\z@
-%
-% For usage and effects of ~\modulolinenumbers~ and %% v4.31
-% ~\firstlinenumbers~, please consult section_\ref{s:UserCmds}.
-% Two details on ~\firstlinenumbers~ here:
-% (i)_~\firstlinenumber~ acts on a paragraph if and only if
-% (a)_the paragraph is broken into lines ``in line-numbering
-% mode'' (after ~\linenumbers~, e.g.);
-% (b)_it is the last occurrence of a ~\firstlinenumbers~
-% before or in the paragraph.
-% (The practical applications of this that I can imagine
-% don't seem appealing to me.)
-% Cf._the explanation above of how ~\modulolinenumbers~ and
-% ~\firstlinenumbers~ interact---for this and for (ii),
-% which is concerned with possible arguments for
-% ~\firstlinenumbers~.
-%
-% Note that the line numbers of the present section
-% demonstrate the two devices. (/New v4.00)
+%
+% For usage and effects of ~\modulolinenumbers~ and %% v4.31
+% ~\firstlinenumbers~, please consult section_\ref{s:UserCmds}.
+% Two details on ~\firstlinenumbers~ here:
+% (i)_~\firstlinenumber~ acts on a paragraph if and only if
+% (a)_the paragraph is broken into lines ``in line-numbering
+% mode'' (after ~\linenumbers~, e.g.);
+% (b)_it is the last occurrence of a ~\firstlinenumbers~
+% before or in the paragraph.
+% (The practical applications of this that I can imagine
+% don't seem appealing to me.)
+% Cf._the explanation above of how ~\modulolinenumbers~ and
+% ~\firstlinenumbers~ interact---for this and for (ii),
+% which is concerned with possible arguments for
+% ~\firstlinenumbers~.
+%
+% Note that the line numbers of the present section
+% demonstrate the two devices. (/New v4.00)
%%\setcounter{linenumbermodulo}{5}
-\chardef\c@linenumbermodulo=5 % v4.2; ugly?
+\chardef\c@linenumbermodulo=5 % v4.2; ugly?
\modulolinenumbers[1]
-% (New v4.22) The new implementation through ~\chardef~
-% decreases the functionality and raises certain compatibility
-% problems. I face this without fear. The maximum modulo value
-% is now ~255~. I expect that this suffices for usual applications.
-% However, some users have ``abused'' ~lineno.sty~ to get
-% ~ednotes.sty~ features without line numbers, so have set the
-% modulo to a value beyond the total number of lines in their
-% edition. This ought to be replaced by
-% ~\let\makeLineNumber\relax~. (/New v4.22)
-%
-% \section{%
+% (New v4.22) The new implementation through ~\chardef~
+% decreases the functionality and raises certain compatibility
+% problems. I face this without fear. The maximum modulo value
+% is now ~255~. I expect that this suffices for usual applications.
+% However, some users have ``abused'' ~lineno.sty~ to get
+% ~ednotes.sty~ features without line numbers, so have set the
+% modulo to a value beyond the total number of lines in their
+% edition. This ought to be replaced by
+% ~\let\makeLineNumber\relax~. (/New v4.22)
+%
+% \section{%
% Package options
-% \unskip}\label{s:Opts}
-%
-% (New v4.1)
-% The last heading formerly was the heading of what is now
-% subsection_\ref{ss:v3opts}. The options declared there were
-% said to execute user commands only. This was wrong already
-% concerning ~displaymath~ and ~hyperref~. At least, however,
-% these options were no or almost no occasion to skip definitions
-% or allocations. This is different with the options that we now
-% insert.
-%
-%% (New v4.2) v4.00 moved the ``options'' below the
-%% ``extensions''. This was bad with ~\do@mlineno~ in
-%% subsection_\ref{ss:v3opts} which is to control
-%% subsection_\ref{ss:display}---undone here. (/New v4.2)
+% \unskip}\label{s:Opts}
+%
+% (New v4.1)
+% The last heading formerly was the heading of what is now
+% subsection_\ref{ss:v3opts}. The options declared there were
+% said to execute user commands only. This was wrong already
+% concerning ~displaymath~ and ~hyperref~. At least, however,
+% these options were no or almost no occasion to skip definitions
+% or allocations. This is different with the options that we now
+% insert.
+%
+%% (New v4.2) v4.00 moved the ``options'' below the
+%% ``extensions''. This was bad with ~\do@mlineno~ in
+%% subsection_\ref{ss:v3opts} which is to control
+%% subsection_\ref{ss:display}---undone here. (/New v4.2)
%
% \subsection{%
% Extended referencing to line numbers. (v4.2)
% \unskip}
% This subsection explains and declares package option ~addpageno~. %% v4.31
-%
-% If a line to whose number you refer by ~\ref~ is not on the
-% present page, it may be useful to add the number of the page
-% on which the line occurs---and perhaps it should not be added
-% otherwise. In general, you could use the Standard \LaTeX\
-% package varioref for this. However, the latter usually
+%
+% If a line to whose number you refer by ~\ref~ is not on the
+% present page, it may be useful to add the number of the page
+% on which the line occurs---and perhaps it should not be added
+% otherwise. In general, you could use the Standard \LaTeX\
+% package varioref for this. However, the latter usually
% produces verbose output like `on the preceding page'---
-% unless costumized---, while in critical editions, e.g., one
-% may prefer just adding the page number and some mark on the
-% left of the line number, irrespectively of how far the page is
-% apart etc. To support this, package option ~addpageno~
-% provides a command ~\vpagelineref~ to be used in place of
-% ~\ref~. This produces, e.g., `34.15' when referring to line_15
-% on page_34 while the present page is not 34. You can customize
-% the outcome, see the package file ~vplref.sty~ where the code
-% and further details are. You may conceive of
-% ~\vpagelineref~ as a certain customization of varioref's
-% ~\vref~.
-%
-% This implies that option ~addpageno~ requires the files
-% ~vplref.sty~ and ~varioref.sty~. ~addpageno~ automatically
-% loads both of them. Yet you can also load ~varioref.sty~
-% on your own to use its package options.
-%
-% Of course, you might better introduce a shorter command name
-% for ~\vpagelineref~ for your work, while we cannot predict
-% here what shorthand will fit your work. E.g.,
+% unless costumized---, while in critical editions, e.g., one
+% may prefer just adding the page number and some mark on the
+% left of the line number, irrespectively of how far the page is
+% apart etc. To support this, package option ~addpageno~
+% provides a command ~\vpagelineref~ to be used in place of
+% ~\ref~. This produces, e.g., `34.15' when referring to line_15
+% on page_34 while the present page is not 34. You can customize
+% the outcome, see the package file ~vplref.sty~ where the code
+% and further details are. You may conceive of
+% ~\vpagelineref~ as a certain customization of varioref's
+% ~\vref~.
+%
+% This implies that option ~addpageno~ requires the files
+% ~vplref.sty~ and ~varioref.sty~. ~addpageno~ automatically
+% loads both of them. Yet you can also load ~varioref.sty~
+% on your own to use its package options.
+%
+% Of course, you might better introduce a shorter command name
+% for ~\vpagelineref~ for your work, while we cannot predict
+% here what shorthand will fit your work. E.g.,
% ~\newcommand{\lref}{\vpagelineref}~.
-%
-% If you really want to add the page number in \emph{any} case,
-% use, e.g., some ~\myref~ instead of ~\ref~, after
-% \[~newcommand*{\myref}{\pageref{#1}.\ref{#1}}~\]
-% or what you like. You don't need the ~addpageno~ option in
-% this case.
-%
-% ~addpageno~ is due to a suggestion by Sergei Mariev.
-
-\DeclareOption{addpageno}{%
- \AtEndOfPackage{\RequirePackage{vplref}[2005/04/25]}}
-
-% \subsection{%
-% \scs{linelabel} in math mode
+%
+% If you really want to add the page number in \emph{any} case,
+% use, e.g., some ~\myref~ instead of ~\ref~, after
+% \[~newcommand*{\myref}{\pageref{#1}.\ref{#1}}~\]
+% or what you like. You don't need the ~addpageno~ option in
+% this case.
+%
+% ~addpageno~ is due to a suggestion by Sergei Mariev.
+
+\DeclareOption{addpageno}{%
+ \AtEndOfPackage{\RequirePackage{vplref}[2005/04/25]}}
+
+% \subsection{%
+% \scs{linelabel} in math mode
% \unskip}\label{ss:MathRef}
-%
-% We have made some first steps towards allowing ~\linelabel~ in
-% math mode. Because our code for this is presently experimental,
-% we leave it to the user to decide for the experiment by calling
-% option ~mathrefs~. We are in a hurry now and thus leave the
-% code, explanations, and discussion in the separate package
-% ~ednmath0.sty~. Maybe we later find the time to improve the
-% code and move the relevant content of ~ednmath0.sty~ to here.
-% The optimal situation would be to define ~\linelabel~ from
-% the start so it works in math mode, omitting the ~mathrefs~
-% option.
-%
-% Actually, this package even provides adjustments for analogously
-% allowing ~ednotes.sty~ commands in math mode. Loading the package
-% is postponed to ~\AtBeginDocument~ when we know whether these
-% adjustments are needed.
-
-\DeclareOption{mathrefs}{\AtBeginDocument
- {\RequirePackage{ednmath0}[2004/08/20]}}
-
-%
-% \subsection{%
+%
+% We have made some first steps towards allowing ~\linelabel~ in
+% math mode. Because our code for this is presently experimental,
+% we leave it to the user to decide for the experiment by calling
+% option ~mathrefs~. We are in a hurry now and thus leave the
+% code, explanations, and discussion in the separate package
+% ~ednmath0.sty~. Maybe we later find the time to improve the
+% code and move the relevant content of ~ednmath0.sty~ to here.
+% The optimal situation would be to define ~\linelabel~ from
+% the start so it works in math mode, omitting the ~mathrefs~
+% option.
+%
+% Actually, this package even provides adjustments for analogously
+% allowing ~ednotes.sty~ commands in math mode. Loading the package
+% is postponed to ~\AtBeginDocument~ when we know whether these
+% adjustments are needed.
+
+\DeclareOption{mathrefs}{\AtBeginDocument
+ {\RequirePackage{ednmath0}[2004/08/20]}}
+
+%
+% \subsection{%
% Arrays, tabular environments (Revised v4.11)
-% \unskip}\label{ss:Tab}
-%
+% \unskip}\label{ss:Tab}
+%
% This subsection explains and declares package options %% v4.31
% ~edtable~, ~longtable~, and ~nolongtablepatch~.
%
-% The standard \LaTeX\ tabular environments come as single
-% boxes, so the ~lineno.sty~ versions before v4.00 treated them as
-% (parts of) single lines, printing (at most) one line number
-% beside each and stepping the line number counter once only.
-% Moreover, ~\linelabel~s got lost. Of course, tables are
-% usually so high that you will want to treat each row like a
-% line. (Christian Tapp even desires that the lines of table
-% entries belonging to a single row are treated like ordinary
-% lines.) Footnotes get lost in such environments as well, which
+% The standard \LaTeX\ tabular environments come as single
+% boxes, so the ~lineno.sty~ versions before v4.00 treated them as
+% (parts of) single lines, printing (at most) one line number
+% beside each and stepping the line number counter once only.
+% Moreover, ~\linelabel~s got lost. Of course, tables are
+% usually so high that you will want to treat each row like a
+% line. (Christian Tapp even desires that the lines of table
+% entries belonging to a single row are treated like ordinary
+% lines.) Footnotes get lost in such environments as well, which
% was bad for ~ednotes.sty~.
-%
-% We provide adjustments to count lines, print their numbers
-% etc.\ as desired at least for \emph{some} \LaTeX\ tabular
-% environments. (Like with other details, ``some'' is to some
-% extent explained in ~edtable.sty~.) We do this similarly as
-% with option ~mathrefs~ before. We leave code
-% and explanations in the separate package ~edtable.sty~.
-% (For wizards: this package provides adjustments for
-% ~ednotes.sty~ as well. However, in the present case we don't try
-% to avoid them unless ~ednotes.sty~ is loaded.)
-% Package option ~edtable~
-% defines---by loading ~edtable.sty~---an environment ~{edtable}~
-% which is able to change some \LaTeX\ tabular environments
-% with the desired effects. (v4.11: ~edtable.sty~ v1.3 counts
-% \LaTeX's ~{array}~ [etc.\@] as a ``tabular environment'' as
-% well.)
-%
-% The ~{edtable}~ environment doesn't help with ~longtable.sty~,
-% however. To make up for this, ~{longtable}~ is adjusted in a
-% different way---and this happens only when another ~lineno.sty~
-% option ~longtable~ is called. In this case, option ~edtable~
-% needn't be called explicitly: option ~longtable~ works as if
-% ~edtable~ had been called.
-%
-% Now, we are convinced that vertical spacing around
-% ~{longtable}~ works wrongly---see \LaTeX\ bugs database
-% tools/3180 and 3485, or see explanations in the package
+%
+% We provide adjustments to count lines, print their numbers
+% etc.\ as desired at least for \emph{some} \LaTeX\ tabular
+% environments. (Like with other details, ``some'' is to some
+% extent explained in ~edtable.sty~.) We do this similarly as
+% with option ~mathrefs~ before. We leave code
+% and explanations in the separate package ~edtable.sty~.
+% (For wizards: this package provides adjustments for
+% ~ednotes.sty~ as well. However, in the present case we don't try
+% to avoid them unless ~ednotes.sty~ is loaded.)
+% Package option ~edtable~
+% defines---by loading ~edtable.sty~---an environment ~{edtable}~
+% which is able to change some \LaTeX\ tabular environments
+% with the desired effects. (v4.11: ~edtable.sty~ v1.3 counts
+% \LaTeX's ~{array}~ [etc.\@] as a ``tabular environment'' as
+% well.)
+%
+% The ~{edtable}~ environment doesn't help with ~longtable.sty~,
+% however. To make up for this, ~{longtable}~ is adjusted in a
+% different way---and this happens only when another ~lineno.sty~
+% option ~longtable~ is called. In this case, option ~edtable~
+% needn't be called explicitly: option ~longtable~ works as if
+% ~edtable~ had been called.
+%
+% Now, we are convinced that vertical spacing around
+% ~{longtable}~ works wrongly---see \LaTeX\ bugs database
+% tools/3180 and 3485, or see explanations in the package
% ~ltabptch.sty~ (which is to be obtained from CTAN folder
% \path{macros/latex/ltabptch}). Our conviction is so strong
% that the ~longtable~ option loads---after ~longtable.sty~---the
% patch package ~ltabptch.sty~. If the user doesn't want this
-% (maybe preferring her own arrangement with the vertical
-% spacing), she can forbid it by calling ~nolongtablepatch~.
-%
-% The following code just collects some choices, which are
-% then executed in section_\ref{ss:ExOpt}. We use an ~\if...~
-% without ~\newif~ since ~\if...true~ and ~\if...false~
-% would occur at most two times and only within the present
-% package. (~\AtEndOfClass{\RequirePackage{edtable}}~
-% could be used instead, I just overlooked this. Now I don't
-% change it because it allows to change the version requirement
+% (maybe preferring her own arrangement with the vertical
+% spacing), she can forbid it by calling ~nolongtablepatch~.
+%
+% The following code just collects some choices, which are
+% then executed in section_\ref{ss:ExOpt}. We use an ~\if...~
+% without ~\newif~ since ~\if...true~ and ~\if...false~
+% would occur at most two times and only within the present
+% package. (~\AtEndOfClass{\RequirePackage{edtable}}~
+% could be used instead, I just overlooked this. Now I don't
+% change it because it allows to change the version requirement
% at one place only.)
-\let\if@LN@edtable\iffalse
+\let\if@LN@edtable\iffalse
\DeclareOption{edtable}{\let\if@LN@edtable\iftrue}
-\DeclareOption{longtable}{\let\if@LN@edtable\iftrue
+\DeclareOption{longtable}{\let\if@LN@edtable\iftrue
\PassOptionsToPackage{longtable}{edtable}}
-\DeclareOption{nolongtablepatch}{%
+\DeclareOption{nolongtablepatch}{%
\PassOptionsToPackage{nolongtablepatch}{edtable}}
-% (/New v4.1)
-%
-% \subsection{%
-% Switch among settings
+% (/New v4.1)
+%
+% \subsection{%
+% Switch among settings
% \unskip}\label{ss:v3opts}
-%
-% There is a bunch of package options that execute %% v4.2
-%% There is a bunch of package options, all of them executing
-%% executing only user commands (see below). %% Cf. start of section.
-% user commands only.
+%
+% There is a bunch of package options that execute %% v4.2
+%% There is a bunch of package options, all of them executing
+%% executing only user commands (see below). %% Cf. start of section.
+% user commands only.
%
% Options ~left~ (~right~) put the line numbers on the left
% (right) margin. This works in all modes. ~left~ is the
@@ -2445,9 +2447,9 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
\switchlinenumbers*%
\runningpagewiselinenumbers}
-% In twocolumn mode, we can switch the line numbers to
+% In twocolumn mode, we can switch the line numbers to
% the outer margin, and/or start with number 1 in each
-% column. Margin switching is covered by the ~switch~
+% column. Margin switching is covered by the ~switch~
% options.
\DeclareOption{columnwise}{\setpagewiselinenumbers
@@ -2464,7 +2466,7 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% come to rest. This allows the subtraction of the page
% offset, getting the numbers starting with 1 on top of each
% page, and margin switching in twoside formats becomes
-% possible. The default mode is ~running~.
+% possible. The default mode is ~running~.
%
% The order of declaration of the options is important here
% ~pagewise~ must come after ~switch~, to overide running
@@ -2482,12 +2484,12 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
\DeclareOption{running}{\setrunninglinenumbers}
% The option ~modulo~ causes only those linenumbers to be
-% printed which are multiples of five.
+% printed which are multiples of five.
\DeclareOption{modulo}{\modulolinenumbers\relax}
-% Option ~modulo*~ modifies ~modulo~ in working like
-% ~\modulolinenumbers*~---see section_\ref{s:UserCmds}.
+% Option ~modulo*~ modifies ~modulo~ in working like
+% ~\modulolinenumbers*~---see section_\ref{s:UserCmds}.
\DeclareOption{modulo*}{\modulolinenumbers*\relax}
@@ -2501,124 +2503,124 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
\DeclareOption{mathlines}{\linenumberdisplaymath}
-% ~displaymath~ now calls for wrappers of the standard
-% \LaTeX\ display math environment. This was previously
+% ~displaymath~ now calls for wrappers of the standard
+% \LaTeX\ display math environment. This was previously
% done by ~mlineno.sty~.
-%
-% (New v4.3) Option `displaymath' becomes default according
-% to Erik \mbox{Luijten}'s suggestion. I was finally convinced
-% of this as soon as I discovered how to avoid a spurious line
-% number above ~\begin{linenomath}~ (subsection_\ref{ss:DM}).
-% ~\endlinenomath~ provides ~\ignorespaces~, so what could go
-% wrong now?
+%
+% (New v4.3) Option `displaymath' becomes default according
+% to Erik \mbox{Luijten}'s suggestion. I was finally convinced
+% of this as soon as I discovered how to avoid a spurious line
+% number above ~\begin{linenomath}~ (subsection_\ref{ss:DM}).
+% ~\endlinenomath~ provides ~\ignorespaces~, so what could go
+% wrong now?
\DeclareOption{displaymath}{\PackageWarningNoLine{lineno}{%
- Option [displaymath] is obsolete -- default now!}}
-%%
+ Option [displaymath] is obsolete -- default now!}}
+%%
%%\let\do@mlineno\relax
%%\DeclareOption{displaymath}{\let\do@mlineno\@empty}
-% (/New v4.3)
-%
+% (/New v4.3)
+%
% \subsection{%
-% Compatibility with \texttt{hyperref} %% own subsec. v4.3.
+% Compatibility with \texttt{hyperref} %% own subsec. v4.3.
% \unskip}
-% The ~hyperref~ package, via ~nameref~, requires three more
-% groups in the second argment of a ~\newlabel~. Well, why
+% The ~hyperref~ package, via ~nameref~, requires three more
+% groups in the second argment of a ~\newlabel~. Well, why
% shouldn't it get them? (New v3.07) The presence of the
% ~nameref~ package is now detected automatically
% ~\AtBeginDocument~. (/New v3.07) (Fixed in v3.09) We try
% to be smart, and test ~\AtBeginDocument~ if the ~nameref~
% package is loaded, but ~hyperref~ postpones the loading of
% ~nameref~ too, so this is all in vain.
-%
-% (New v4.3) But we can also test at the first ~\linelabel~.
-% Regarding the error-message for misplaced ~\linelabel~ from v4.11:
-% previously, ~\linenumbers~ rendered ~\linelabel~ the genuine
-% version of ~\linelabel~ from the start on. This doesn't work
-% now, since ~\@LN@linelabel~ may change its meaning after the
-% first ~\linenumbers~ and before a next one (if there is some).
-% (/New v4.3)
+%
+% (New v4.3) But we can also test at the first ~\linelabel~.
+% Regarding the error-message for misplaced ~\linelabel~ from v4.11:
+% previously, ~\linenumbers~ rendered ~\linelabel~ the genuine
+% version of ~\linelabel~ from the start on. This doesn't work
+% now, since ~\@LN@linelabel~ may change its meaning after the
+% first ~\linenumbers~ and before a next one (if there is some).
+% (/New v4.3)
\DeclareOption{hyperref}{\PackageWarningNoLine{lineno}{%
- Option [hyperref] is obsolete.
+ Option [hyperref] is obsolete.
\MessageBreak The hyperref package is detected automatically.}}
-\AtBeginDocument{%
+\AtBeginDocument{%
\@ifpackageloaded{nameref}{%
-%%
-% (New v4.3) ``Global'' is merely ``symbolic'' ~\AtBeginDoc...~.
-% If ~nameref~ is not detected here, the next ~\@LN@linelabel~
-% will do almost the same, then globally indeed.
%%
- \gdef\@LN@ExtraLabelItems{{}{}{}}%
+% (New v4.3) ``Global'' is merely ``symbolic'' ~\AtBeginDoc...~.
+% If ~nameref~ is not detected here, the next ~\@LN@linelabel~
+% will do almost the same, then globally indeed.
+%%
+ \gdef\@LN@ExtraLabelItems{{}{}{}}%
}{%
- \global\let\@LN@@linelabel\@LN@linelabel
- \gdef\@LN@linelabel{%
-%%
-% ~\@ifpackageloaded~ is ``preamble only'', its---very
-% internal---preamble definition is replicated here:
-%%
- \expandafter
- \ifx\csname ver@nameref.sty\endcsname\relax \else
- \gdef\@LN@ExtraLabelItems{{}{}{}}%
- \fi
-%%
-% Now aim at the ``usual'' behaviour:
-%%
- \global\let\@LN@linelabel\@LN@@linelabel
- \global\let\@LN@@linelabel\relax
+ \global\let\@LN@@linelabel\@LN@linelabel
+ \gdef\@LN@linelabel{%
+%%
+% ~\@ifpackageloaded~ is ``preamble only'', its---very
+% internal---preamble definition is replicated here:
+%%
+ \expandafter
+ \ifx\csname ver@nameref.sty\endcsname\relax \else
+ \gdef\@LN@ExtraLabelItems{{}{}{}}%
+ \fi
+%%
+% Now aim at the ``usual'' behaviour:
+%%
+ \global\let\@LN@linelabel\@LN@@linelabel
+ \global\let\@LN@@linelabel\relax
\@LN@linelabel
- }%
+ }%
}%
-}
-
-% (/New v4.3)
-%
-% (New v4.1)
-% \subsection{%
-% A note on calling so many options
-% \unskip}
-%
-% The number of package options may stimulate worrying about how to
-% \emph{enter} all the options that one would like to use---they may
-% not fit into one line. Fortunately, you can safely break code lines
+}
+
+% (/New v4.3)
+%
+% (New v4.1)
+% \subsection{%
+% A note on calling so many options
+% \unskip}
+%
+% The number of package options may stimulate worrying about how to
+% \emph{enter} all the options that one would like to use---they may
+% not fit into one line. Fortunately, you can safely break code lines
% after the commas separating the option names in the ~\usepackage~
-% command (no comment marks needed).
-%
-% \subsection{%
+% command (no comment marks needed).
+%
+% \subsection{%
% Execute options
% \unskip}\label{ss:ExOpt}
-%
-% We stop declaring options and execute the ones that are
+%
+% We stop declaring options and execute the ones that are
% called by the user. (/New v4.1)
\ProcessOptions
-% (New v4.1) Now we know whether ~edtable.sty~ is wanted
-% and (if it is) with which options it is to be called.
+% (New v4.1) Now we know whether ~edtable.sty~ is wanted
+% and (if it is) with which options it is to be called.
-\if@LN@edtable \RequirePackage{edtable}[2005/03/07] \fi
+\if@LN@edtable \RequirePackage{edtable}[2005/03/07] \fi
-% (/New v4.1)
-%
+% (/New v4.1)
+%
% \section{%
-% Former package extensions
+% Former package extensions
% \label{s:Xt}\unskip}
%
-% The extensions in this section were previously supplied
-% in separate ~.sty~ files.
+% The extensions in this section were previously supplied
+% in separate ~.sty~ files.
%
% \subsection{%
% $display math$
% \unskip}\label{ss:display}
-%% (New v4.32)
-% (New v4.3) From now on, you no longer need to type
-% the ~{linenomath}~ environment with the ~\[~, ~{equation}~,
-% and ~{eqnarray}~ environments---and you no longer need to
-% use the former package option ~displaymath~ for this feature.
-% (/New v4.3)
-%% (/New v4.32)
-%
+%% (New v4.32)
+% (New v4.3) From now on, you no longer need to type
+% the ~{linenomath}~ environment with the ~\[~, ~{equation}~,
+% and ~{eqnarray}~ environments---and you no longer need to
+% use the former package option ~displaymath~ for this feature.
+% (/New v4.3)
+%% (/New v4.32)
+%
% The standard \LaTeX\ display math environments are
% wrapped in a ~{linenomath}~ environment.
%
@@ -2632,20 +2634,20 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% (New 3.05a) for ~{eqnarray}~s we rather keep the
% old trick. (/New 3.05a)
%
-% (New 3.08) Wrap ~\[~ and ~\]~ into ~{linenomath}~,
+% (New 3.08) Wrap ~\[~ and ~\]~ into ~{linenomath}~,
% instead of ~{displaymath}~. Also save the definition
-% of ~\equation~, instead of replicating the current
+% of ~\equation~, instead of replicating the current
% \LaTeX\ definition. (/New 3.08)
%%\ifx\do@mlineno\@empty
\@ifundefined{mathindent}{
-%% \AtBeginDocument{%
+%% \AtBeginDocument{%
\let\LN@displaymath\[%
\let\LN@enddisplaymath\]%
\renewcommand\[{\begin{linenomath}\LN@displaymath}%
\renewcommand\]{\LN@enddisplaymath\end{linenomath}}%
-%
+%
\let\LN@equation\equation
\let\LN@endequation\endequation
\renewenvironment{equation}%
@@ -2653,7 +2655,7 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
{\LN@endequation\endlinenomath}%
%% }
- }{}% \@ifundefined{mathindent} -- 3rd arg v4.2, was \par!
+ }{}% \@ifundefined{mathindent} -- 3rd arg v4.2, was \par!
%%\AtBeginDocument{%
\let\LN@eqnarray\eqnarray
@@ -2662,41 +2664,41 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
{\linenomath\LN@eqnarray}%
{\LN@endeqnarray\endlinenomath}%
%%}
-
+
%%\fi
-% (UL) Indeed. The \LaTeX\ macros are saved for
-% unnumbered mode, which is detected by ~\linenomath~.
-% (/UL)
+% (UL) Indeed. The \LaTeX\ macros are saved for
+% unnumbered mode, which is detected by ~\linenomath~.
+% (/UL)
%
% \subsection{%
% Line numbers in internal vertical mode
% \unskip}\label{ss:ILN}
%
-% The command ~\internallinenumbers~ adds line numbers in
+% The command ~\internallinenumbers~ adds line numbers in
% internal vertical mode, but with limitations: we assume
% fixed baseline skip.
%
-% (v4.22) v3.10 provided a global (~\global\advance~)
-% as well as a local version (star-form, using
-% ~\c@internallinenumber~). ~\resetlinenumbers~ acted
-% locally and was here used with the global version---save
-% stack danger, \TeX book p._301---in v4.00 I
-% disabled the global version therefore. Now I find that
-% it is better to keep a global version, and the now global
-% ~\resetlinenumbers~ is perfect for this. The global version
-% allows continuing the ``internal'' numbers in the ensuing
-% ``external'' text, and---unless reset by brackets
-% argument---continuing the above series of line numbers.
-% As with v3.10, the local version always starts with
-% line number one. A new ~\@LN@iglobal~ steps ~\global~ly
-% in the global version, otherwise it is ~\relax~.
-% (I also remove all my stupid discussions as of v4.00.
+% (v4.22) v3.10 provided a global (~\global\advance~)
+% as well as a local version (star-form, using
+% ~\c@internallinenumber~). ~\resetlinenumbers~ acted
+% locally and was here used with the global version---save
+% stack danger, \TeX book p._301---in v4.00 I
+% disabled the global version therefore. Now I find that
+% it is better to keep a global version, and the now global
+% ~\resetlinenumbers~ is perfect for this. The global version
+% allows continuing the ``internal'' numbers in the ensuing
+% ``external'' text, and---unless reset by brackets
+% argument---continuing the above series of line numbers.
+% As with v3.10, the local version always starts with
+% line number one. A new ~\@LN@iglobal~ steps ~\global~ly
+% in the global version, otherwise it is ~\relax~.
+% (I also remove all my stupid discussions as of v4.00.
% And I use ~\newcommand~.) (v4.22)
-\let\@LN@iglobal\global % v4.22
+\let\@LN@iglobal\global % v4.22
-\newcommand\internallinenumbers{\setrunninglinenumbers
+\newcommand\internallinenumbers{\setrunninglinenumbers
\let\@@par\internallinenumberpar
\ifx\@par\@@@par\let\@par\internallinenumberpar\fi
\ifx\par\@@@par\let\par\internallinenumberpar\fi
@@ -2715,7 +2717,7 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
\newcount\c@internallinenumber
\newcount\c@internallinenumbers
-\newcommand\internallinenumberpar{%
+\newcommand\internallinenumberpar{%
\ifvmode\@@@par\else\ifinner\@@@par\else\@@@par
\begingroup
\c@internallinenumbers\prevgraf
@@ -2724,21 +2726,21 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
\ht\@tempboxa\z@
\nobreak\vskip-\prevdepth
\nointerlineskip\box\@tempboxa
- \endgroup
+ \endgroup
\fi\fi
}
-\newcommand\makeinternalLinenumbers{%
+\newcommand\makeinternalLinenumbers{%
\ifnum\c@internallinenumbers>\z@ % v4.2
- \hb@xt@\z@{\makeLineNumber}%
- \@LN@iglobal % v4.22
+ \hb@xt@\z@{\makeLineNumber}%
+ \@LN@iglobal % v4.22
\advance\c@linenumber\@ne
\advance\c@internallinenumbers\m@ne
\expandafter\makeinternalLinenumbers\fi
}
% TODO v4.4+: star: line numbers right!? cf. lnocapt.sty
-%
+%
% \subsection{%
% Line number references with offset
% \unskip}
@@ -2788,8 +2790,8 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
\newcommand*\@linerefadd[2]{\c@linenumber=#1\@@linerefadd\relax
\thelinenumber}
-%% TODO v4.4+: Insert `LN' in internal command names?
-%
+%% TODO v4.4+: Insert `LN' in internal command names?
+%
% \subsection{%
% Numbered quotation environments
% \unskip}
@@ -2797,14 +2799,14 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% The ~{numquote}~ and ~{numquotation}~
% environments are like ~{quote}~ and
% ~{quotation}~, except there will be line
-% numbers.
-%
+% numbers.
+%
% An optional argument gives the number to count
% from. A star ~*~ (inside or outside the closing
% ~}~) prevent the reset of the line numbers.
% Default is to count from one.
-%
-% (v4.22: A local version using ~\c@internallinenumber~
+%
+% (v4.22: A local version using ~\c@internallinenumber~
% might be useful, see subsection_\ref{ss:ILN}.) %% TODO v4.4+
\newcommand\quotelinenumbers
@@ -2827,7 +2829,7 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
\newenvironment{numquote*} {\quote\numquotelist*}{\endquote}
\newenvironment{numquotation*}{\quotation\numquotelist*}{\endquotation}
-%
+%
% \subsection{%
% Frame around a paragraph
% \unskip}
@@ -2877,238 +2879,294 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
\bframesep=\fboxsep
\newbox\bframebox
-
-%
-%
+
+%
+% \subsection{%
+% \textsf{amsmath} patches
+% \unskip}\label{ss:AMSMath}
+%
+% (New v5.0) Patches ~amsmath~ to work with ~lineno~. These patches used to be
+% supplied by the ~linenoamsmath~ package. See ~linenoamsmathdemo.pdf~ for a
+% demonstration.
+%
+
+\RequirePackage{etoolbox}
+
+\newcommand*\linenoamsmath@patch[1]{%
+ \cspreto{#1}{\linenomath}%
+ \cspreto{#1*}{\linenomath}%
+ \csappto{end#1}{\endlinenomath}%
+ \csappto{end#1*}{\endlinenomath}%
+}
+\newcount\linenoamsmath@ams@eqpen
+\cspreto{math@cr@}{\global\@eqpen\numexpr\@eqpen+\linenoamsmath@ams@eqpen\relax}
+\newcommand*\linenoamsmath@patch@ams[1]{%
+ \cspreto{#1}{%
+ \linenomath%
+ \postdisplaypenalty=0%
+ \global\linenoamsmath@ams@eqpen\interdisplaylinepenalty%
+ }%
+ \cspreto{#1*}{%
+ \linenomath%
+ \postdisplaypenalty=0%
+ \global\linenoamsmath@ams@eqpen\interdisplaylinepenalty%
+ }%
+ \csappto{end#1}{%
+ \global\linenoamsmath@ams@eqpen\z@%
+ \endlinenomath%
+ }%
+ \csappto{end#1*}{%
+ \global\linenoamsmath@ams@eqpen\z@%
+ \endlinenomath%
+ }%
+}
+\linenoamsmath@patch{equation}
+\linenoamsmath@patch@ams{multline}
+\linenoamsmath@patch@ams{gather}
+\linenoamsmath@patch@ams{align}
+\linenoamsmath@patch@ams{alignat}
+\linenoamsmath@patch@ams{flalign}
+\let\linenoamsmath@ams@mmeasure\mmeasure@
+\def\mmeasure@#1{%
+ \global\linenoamsmath@ams@eqpen\z@%
+ \begingroup%
+ \interdisplaylinepenalty=0%
+ \linenoamsmath@ams@mmeasure{#1\\}%
+ \endgroup%
+ \global\linenoamsmath@ams@eqpen\interdisplaylinepenalty%
+}
+
+%
+%
% \section{%
% Move \scs{vadjust} items (New v4.00)
-% \unskip}\label{s:MVadj}
-%
-% This section completes reviving ~\pagebreak~, ~\nopagebreak~,
-% ~\vspace~, and the star and optional form of ~\\~. This was
-% started in section_\ref{ss:output} and resumed in
+% \unskip}\label{s:MVadj}
+%
+% This section completes reviving ~\pagebreak~, ~\nopagebreak~,
+% ~\vspace~, and the star and optional form of ~\\~. This was
+% started in section_\ref{ss:output} and resumed in
% section_\ref{ss:MLN} and subsection_\ref{ss:calls}.
-% The problem was explained in section_\ref{ss:output}:
-% ~\vadjust~ items come out at a bad position, and the
-% \LaTeX\ commands named before work with ~\vadjust~ indeed.
-% Our solution was sketched there as well.
-%
+% The problem was explained in section_\ref{ss:output}:
+% ~\vadjust~ items come out at a bad position, and the
+% \LaTeX\ commands named before work with ~\vadjust~ indeed.
+% Our solution was sketched there as well.
+%
% According to the caveat in subsection_\ref{ss:OnOff} concerning
-% ~\ifLineNumbers~, the \LaTeX\ commands enumerated may go
-% wrong if you switch line numbering inside or at the end of
-% a paragraph.
+% ~\ifLineNumbers~, the \LaTeX\ commands enumerated may go
+% wrong if you switch line numbering inside or at the end of
+% a paragraph.
%% %% TODO v4.4+
-%
+%
% \subsection{%
% Redefining \scs{vadjust}
% \unskip}\label{ss:PVadj}
-%
-% ~\vadjust~ will temporarily be changed into the following
-% command.
-
-\def\PostponeVadjust#1{%
- \global\let\vadjust\@LN@@vadjust
-%%
-% This undoes a ~\global\let\vadjust\PostponeVadjust~ which will
-% start each of the refined \LaTeX\ commands. The ~\global~s
-% are most probably superfluous. They might be useful should one
-% ~\vadjust~ appear in a group starting after the change of
-% ~\vadjust~ into ~\PostponeVadjust~.
-% (UL) Even the undoing may be superfluous, cf._discussion
-% in section_\ref{ss:ReDef} below. (UL)
-%%
- \vadjust{\penalty-\@Mppvacodepen}%
- \g@addto@macro\@LN@vadjustlist{#1\@lt}%
+%
+% ~\vadjust~ will temporarily be changed into the following
+% command.
+
+\def\PostponeVadjust#1{%
+ \global\let\vadjust\@LN@@vadjust
+%%
+% This undoes a ~\global\let\vadjust\PostponeVadjust~ which will
+% start each of the refined \LaTeX\ commands. The ~\global~s
+% are most probably superfluous. They might be useful should one
+% ~\vadjust~ appear in a group starting after the change of
+% ~\vadjust~ into ~\PostponeVadjust~.
+% (UL) Even the undoing may be superfluous, cf._discussion
+% in section_\ref{ss:ReDef} below. (UL)
+%%
+ \vadjust{\penalty-\@Mppvacodepen}%
+ \g@addto@macro\@LN@vadjustlist{#1\@lt}%
}
-\let\@LN@@vadjust\vadjust
-\global\let\@LN@vadjustlist\@empty
-\global\let\@LN@do@vadjusts\relax
-
-% These ~\global~s are just to remind that
-% all the changes of the strings after ~\let~ should be
-% ~\global~ (\TeX book p._301). ~\@LN@vadjustlist~ collects
-% the ~\vadjust~ items of a paragraph. ~\PassVadjustList~
-% tears one ~\vadjust~ item for the current line out of
-% ~\@LN@vadjustlist~ and puts it into ~\@LN@do@vadjusts~.
-% The latter is encountered each line in ~\MakeLineNo~
-% (section_\ref{ss:MLN}), while those \LaTeX\ ~\vadjust~
-% commands will come rather rarely. So I decided that
-% ~\@LN@do@vadjust~ is ~\relax~ until a ~\vadjust~ item
-% is waiting. In the latter case, ~\@LN@do@vadjusts~
-% is turned into a list macro which resets itself to
-% ~\relax~ when the other contents have been placed in
-% the vertical list.---~\PassVadjustList~ is invoked by
-% the output routine (section_\ref{ss:output}), so the
-% ~\box255~ must be put back.
-
-\def\PassVadjustList{%
- \unvbox\@cclv
- \expandafter \@LN@xnext \@LN@vadjustlist \@@
- \@tempa \@LN@vadjustlist
- \ifx\@LN@do@vadjusts\relax
- \gdef\@LN@do@vadjusts{\global\let\@LN@do@vadjusts\relax}%
- \fi
- \expandafter \g@addto@macro \expandafter \@LN@do@vadjusts
- \expandafter {\@tempa}%
-}
-
-%
+\let\@LN@@vadjust\vadjust
+\global\let\@LN@vadjustlist\@empty
+\global\let\@LN@do@vadjusts\relax
+
+% These ~\global~s are just to remind that
+% all the changes of the strings after ~\let~ should be
+% ~\global~ (\TeX book p._301). ~\@LN@vadjustlist~ collects
+% the ~\vadjust~ items of a paragraph. ~\PassVadjustList~
+% tears one ~\vadjust~ item for the current line out of
+% ~\@LN@vadjustlist~ and puts it into ~\@LN@do@vadjusts~.
+% The latter is encountered each line in ~\MakeLineNo~
+% (section_\ref{ss:MLN}), while those \LaTeX\ ~\vadjust~
+% commands will come rather rarely. So I decided that
+% ~\@LN@do@vadjust~ is ~\relax~ until a ~\vadjust~ item
+% is waiting. In the latter case, ~\@LN@do@vadjusts~
+% is turned into a list macro which resets itself to
+% ~\relax~ when the other contents have been placed in
+% the vertical list.---~\PassVadjustList~ is invoked by
+% the output routine (section_\ref{ss:output}), so the
+% ~\box255~ must be put back.
+
+\def\PassVadjustList{%
+ \unvbox\@cclv
+ \expandafter \@LN@xnext \@LN@vadjustlist \@@
+ \@tempa \@LN@vadjustlist
+ \ifx\@LN@do@vadjusts\relax
+ \gdef\@LN@do@vadjusts{\global\let\@LN@do@vadjusts\relax}%
+ \fi
+ \expandafter \g@addto@macro \expandafter \@LN@do@vadjusts
+ \expandafter {\@tempa}%
+}
+
+%
% \subsection{%
-% Redefining the \LaTeX\ commands
+% Redefining the \LaTeX\ commands
% \unskip}\label{ss:ReDef}
-%
-% Now we change ~\pagebreak~ etc.\
-% so that they use ~\PostponeVadjust~ in place of ~\vadjust~.
-% We try to do this as independently as possible of the
-% implementation of the \LaTeX\ commands to be redefined.
-% Therefore, we don't just copy macro definition code from any
-% single implementation (say, latest \LaTeX) and insert our
-% changes, but attach a conditional
-% ~\global\let\vadjust\PostponeVadjust~
-% to their left ends in a way which should work rather
-% independantly of their actual code.
-% However, ~\vadjust~ should be the primitive again after
-% execution of the command. So the ~\global\let...~ may be used
-% only if it's guaranteed that a ~\vadjust~ is near.---(UL)
-% Sure? In line numbering mode, probably each ~\vadjust~
-% coming from a \LaTeX\ command should be ~\PostponeVadjust~.
-% ~\marginpar~s and floats seem to be the only cases which
-% are not explicitly dealt with in the present section.
-% This would be a way to avoid ~\@LN@nobreaktrue~!
-% Of course, the ~\vadjust~s that the present package uses
-% then must be replaced by ~\@LN@@vadjust~.---Maybe
-% next time. (/UL)
-%% %% TODO v4.4+
-%
-% The next command and something else will be added to the
-% \LaTeX\ commands we are concerned with here.
-
-\DeclareRobustCommand\@LN@changevadjust{%
- \ifvmode\else\ifinner\else
- \global\let\vadjust\PostponeVadjust
- \fi\fi
-}
-
-% (UL) What about math mode? Math display? Warn? (/UL)
+%
+% Now we change ~\pagebreak~ etc.\
+% so that they use ~\PostponeVadjust~ in place of ~\vadjust~.
+% We try to do this as independently as possible of the
+% implementation of the \LaTeX\ commands to be redefined.
+% Therefore, we don't just copy macro definition code from any
+% single implementation (say, latest \LaTeX) and insert our
+% changes, but attach a conditional
+% ~\global\let\vadjust\PostponeVadjust~
+% to their left ends in a way which should work rather
+% independantly of their actual code.
+% However, ~\vadjust~ should be the primitive again after
+% execution of the command. So the ~\global\let...~ may be used
+% only if it's guaranteed that a ~\vadjust~ is near.---(UL)
+% Sure? In line numbering mode, probably each ~\vadjust~
+% coming from a \LaTeX\ command should be ~\PostponeVadjust~.
+% ~\marginpar~s and floats seem to be the only cases which
+% are not explicitly dealt with in the present section.
+% This would be a way to avoid ~\@LN@nobreaktrue~!
+% Of course, the ~\vadjust~s that the present package uses
+% then must be replaced by ~\@LN@@vadjust~.---Maybe
+% next time. (/UL)
%% %% TODO v4.4+
-%
-% ~\@tempa~ will now become a two place macro which adds first
+%
+% The next command and something else will be added to the
+% \LaTeX\ commands we are concerned with here.
+
+\DeclareRobustCommand\@LN@changevadjust{%
+ \ifvmode\else\ifinner\else
+ \global\let\vadjust\PostponeVadjust
+ \fi\fi
+}
+
+% (UL) What about math mode? Math display? Warn? (/UL)
+%% %% TODO v4.4+
+%
+% ~\@tempa~ will now become a two place macro which adds first
% argument (single token), enclosed by ~\ifLineNumbers~\,\dots
-% ~\fi~ to the left of second argument. As long as we need it,
-% we can't use the star form of ~\DeclareRobustCommand~ or
-% the like, because AMS-\LaTeX\ uses ~\@tempa~ for ~\@ifstar~.
-% (New v4.41) And for the same reason, that ~\CheckCommand*~
+% ~\fi~ to the left of second argument. As long as we need it,
+% we can't use the star form of ~\DeclareRobustCommand~ or
+% the like, because AMS-\LaTeX\ uses ~\@tempa~ for ~\@ifstar~.
+% (New v4.41) And for the same reason, that ~\CheckCommand*~
% had to be raised! (/New v4.41)
\CheckCommand*\@parboxrestore{\@arrayparboxrestore\let\\\@normalcr}
-\def\@tempa#1#2{%
+\def\@tempa#1#2{%
\expandafter \def \expandafter#2\expandafter{\expandafter
- \ifLineNumbers\expandafter#1\expandafter\fi#2}%
-}
-
-% (UL) This ~\ifLineNumber~ can be fooled by
-% ~\linenumbers~ ahead etc. It might be better to place
-% a signal penalty in any case and let the output routine
-% decide what to do.
-%%
-%% And when this has been done, remove warnings about this.
-% (/UL)
-%
-% We use the occasion to switch off linenumbers where they
-% don't work anyway and where we don't want them,
-% especially in footnotes:
-
-\@tempa\nolinenumbers\@arrayparboxrestore
-
-% We hope this suffices $\dots$ let's check one thing
+ \ifLineNumbers\expandafter#1\expandafter\fi#2}%
+}
+
+% (UL) This ~\ifLineNumber~ can be fooled by
+% ~\linenumbers~ ahead etc. It might be better to place
+% a signal penalty in any case and let the output routine
+% decide what to do.
+%%
+%% And when this has been done, remove warnings about this.
+% (/UL)
+%
+% We use the occasion to switch off linenumbers where they
+% don't work anyway and where we don't want them,
+% especially in footnotes:
+
+\@tempa\nolinenumbers\@arrayparboxrestore
+
+% We hope this suffices $\dots$ let's check one thing
% at least: [(New v4.41) see ~\CheckCommand~ above (/New v4.41)]
-%
-% Now for the main theme of the section.
-% The next lines assume that ~\vspace~, ~\pagebreak~, and
-% ~\nopagebreak~ use ~\vadjust~ whenever they occur outside
-% vertical mode; moreover, that they don't directly read
-% an argument. Indeed ~\pagebreak~ and ~\nopagebreak~ first
-% call something which tests for a left bracket ahead,
-% while ~\vspace~ first tests for a star.
-
-\@tempa\@LN@changevadjust\vspace
-\@tempa\@LN@changevadjust\pagebreak
-\@tempa\@LN@changevadjust\nopagebreak
-
-% ~\\~, however, uses ~\vadjust~ only in star or optional form.
-% We relax independency of implementation in assuming
-% that ~\@normalcr~ is the fragile version of ~\\~
-% (and we use ~\@ifstar~!).
-%%
-%% \@ifstar reimplemented 1995/10/16, but seems to be much older.
-%% TODO v4.4+:
-%% \def\@LN@cr{%
-%% \@ifnextchar*{\@LN@changevadjust\@normalcr}%
-%% {\@ifnextchar[{\@LN@changevadjust\@normalcr}\@normalcr}%
-%% }
-%% ---same number of tokens, expansion step less.
-%%
-% (Using a copy of ~\\~ would be safer, but an ugly repetition
-% of ~\protect~.)
-%% %% TODO v4.4+
-
-\DeclareRobustCommand\\{%
- \ifLineNumbers
- \expandafter \@LN@cr
- \else
- \expandafter \@normalcr
- \fi
-}
-\def\@LN@cr{%
- \@ifstar{\@LN@changevadjust\@normalcr*}%
- {\@ifnextchar[{\@LN@changevadjust\@normalcr}\@normalcr}%
-}
-
-% Moreover we hope that ~\newline~ never leads to a ~\vadjust~,
-% although names of some commands invoked by ~\\~ contain
-% ~newline~. At last, this seems to have been OK since 1989 or
-% even earlier.
-%
+%
+% Now for the main theme of the section.
+% The next lines assume that ~\vspace~, ~\pagebreak~, and
+% ~\nopagebreak~ use ~\vadjust~ whenever they occur outside
+% vertical mode; moreover, that they don't directly read
+% an argument. Indeed ~\pagebreak~ and ~\nopagebreak~ first
+% call something which tests for a left bracket ahead,
+% while ~\vspace~ first tests for a star.
+
+\@tempa\@LN@changevadjust\vspace
+\@tempa\@LN@changevadjust\pagebreak
+\@tempa\@LN@changevadjust\nopagebreak
+
+% ~\\~, however, uses ~\vadjust~ only in star or optional form.
+% We relax independency of implementation in assuming
+% that ~\@normalcr~ is the fragile version of ~\\~
+% (and we use ~\@ifstar~!).
+%%
+%% \@ifstar reimplemented 1995/10/16, but seems to be much older.
+%% TODO v4.4+:
+%% \def\@LN@cr{%
+%% \@ifnextchar*{\@LN@changevadjust\@normalcr}%
+%% {\@ifnextchar[{\@LN@changevadjust\@normalcr}\@normalcr}%
+%% }
+%% ---same number of tokens, expansion step less.
+%%
+% (Using a copy of ~\\~ would be safer, but an ugly repetition
+% of ~\protect~.)
+%% %% TODO v4.4+
+
+\DeclareRobustCommand\\{%
+ \ifLineNumbers
+ \expandafter \@LN@cr
+ \else
+ \expandafter \@normalcr
+ \fi
+}
+\def\@LN@cr{%
+ \@ifstar{\@LN@changevadjust\@normalcr*}%
+ {\@ifnextchar[{\@LN@changevadjust\@normalcr}\@normalcr}%
+}
+
+% Moreover we hope that ~\newline~ never leads to a ~\vadjust~,
+% although names of some commands invoked by ~\\~ contain
+% ~newline~. At last, this seems to have been OK since 1989 or
+% even earlier.
+%
% \modulolinenumbers[1]
-% \firstlinenumber{0}
-% Let's have a few tests.\vspace*{.5\baselineskip}
-% Testing ~\pagebreak~ and ~\nopagebreak~ would be too expensive
-% here, but---oops!---we have just experienced a successful
-% ~\vspace*{.5\baselineskip}~. A
-% ~\\*[.5\baselineskip]~\\*[.5\baselineskip] may look even more
-% drastical, but this time we are happy about it. Note that the
-% line numbers have moved with the lines. Without our changes,
-% one line number\vadjust{\kern.5\baselineskip} would have
-% ``anticipated'' the move of the next line, just as you can
-% observe it now.
-% (/New v4.00)
-%
-% \switchlinenumbers
-%
-% \subsection{%
-% Reminder on obsoleteness
-% \unskip}
-%
-% (New v4.1) We have completed inclusion of the earlier
-% extension packages ~linenox0.sty~, ~linenox1.sty~, and
-% ~lnopatch.sty~. If one of them is loaded, though,
-% we produce an error message before something weird happens.
-% We avoid ~\newif~ because the switchings occur so rarely.
-
-\AtBeginDocument{%
- \let\if@LN@obsolete\iffalse
- \@ifpackageloaded{linenox0}{\let\if@LN@obsolete\iftrue}\relax
- \@ifpackageloaded{linenox1}{\let\if@LN@obsolete\iftrue}\relax
+% \firstlinenumber{0}
+% Let's have a few tests.\vspace*{.5\baselineskip}
+% Testing ~\pagebreak~ and ~\nopagebreak~ would be too expensive
+% here, but---oops!---we have just experienced a successful
+% ~\vspace*{.5\baselineskip}~. A
+% ~\\*[.5\baselineskip]~\\*[.5\baselineskip] may look even more
+% drastical, but this time we are happy about it. Note that the
+% line numbers have moved with the lines. Without our changes,
+% one line number\vadjust{\kern.5\baselineskip} would have
+% ``anticipated'' the move of the next line, just as you can
+% observe it now.
+% (/New v4.00)
+%
+% \switchlinenumbers
+%
+% \subsection{%
+% Reminder on obsoleteness
+% \unskip}
+%
+% (New v4.1) We have completed inclusion of the earlier
+% extension packages ~linenox0.sty~, ~linenox1.sty~, and
+% ~lnopatch.sty~. If one of them is loaded, though,
+% we produce an error message before something weird happens.
+% We avoid ~\newif~ because the switchings occur so rarely.
+
+\AtBeginDocument{%
+ \let\if@LN@obsolete\iffalse
+ \@ifpackageloaded{linenox0}{\let\if@LN@obsolete\iftrue}\relax
+ \@ifpackageloaded{linenox1}{\let\if@LN@obsolete\iftrue}\relax
\@ifpackageloaded{lnopatch}{\let\if@LN@obsolete\iftrue}\relax
- \if@LN@obsolete
- \PackageError{lineno}{Obsolete extension package(s)}{%
- With lineno.sty version 4.00 or later,\MessageBreak
- linenox0/linenox1/lnopatch.sty must no longer be loaded.}%
- \fi
-}
-
-%
+ \if@LN@obsolete
+ \PackageError{lineno}{Obsolete extension package(s)}{%
+ With lineno.sty version 4.00 or later,\MessageBreak
+ linenox0/linenox1/lnopatch.sty must no longer be loaded.}%
+ \fi
+}
+
+%
% \modulolinenumbers[1]
% \section{%
% The final touch
@@ -3120,24 +3178,24 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
\endinput
-%
+%
% \section{%
% The user commands
-% \unskip}\label{s:UserCmds}
-%
-% The user commands to turn on and off line numbering
-% are
+% \unskip}\label{s:UserCmds}
+%
+% The user commands to turn on and off line numbering
+% are
% \begin{description}\item
% [|\linenumbers] \ \par
% Turn on line numbering in the current mode.
%
-% \item
+% \item
% [|\linenumbers*] \ \par$\qquad$
% and reset the line number to 1.
-% \def\NL{<number>]}\item
-%% %% Boldface italic occurs here, which is evil. (UL)
+% \def\NL{<number>]}\item
+%% %% Boldface italic occurs here, which is evil. (UL)
% [|\linenumbers[\NL] \ \par$\qquad$
-% and start with <number>.
+% and start with <number>.
% \item
% [|\nolinenumbers] \ \par
% Turn off line numbering.
@@ -3176,7 +3234,7 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% [|\rightlinenumbers*] \ \par
% Set the line numbers in the left/right margin. With the
% star this works for both modes of operation, without
-% the star only for the currently selected mode.
+% the star only for the currently selected mode.
% \item
% [|\runningpagewiselinenumbers] \ \par
% When using the pagewise line number mode, do not
@@ -3196,44 +3254,44 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% retained. <number>=1 turns this off without changing
% ~linenumbermodulo~. The counter is initialized to 5.
%%
-%% %% TODO v4.4+: `counter', he says. Cf._above.
+%% %% TODO v4.4+: `counter', he says. Cf._above.
%%
-%% (New v4.31)
+%% (New v4.31)
% \item
-% [|\modulolinenumbers*[\NL] \ \par
-% Like ~\modulolinenumbers~, the only difference being
-% that the first line number after a ~\linenumbers~
-% (or ~\runninglinenumbers~, ~\pagewiselinenumbers~,
-% ~\quotelinenumbers~) is printed regardless of the
-% modulo---yet `1' is printed only after (or \dots)
-% ~\firstlinenumber{1}~.
-% This also applies to the first line of a
-% ~{linenumbers}~ or respective environment.
-% See subsection_\ref{ss:Mod} for another explanation.
-% The behaviour may be unsatisfactory with pagewise
-% line-numbering.
-%% (/New v4.31)
+% [|\modulolinenumbers*[\NL] \ \par
+% Like ~\modulolinenumbers~, the only difference being
+% that the first line number after a ~\linenumbers~
+% (or ~\runninglinenumbers~, ~\pagewiselinenumbers~,
+% ~\quotelinenumbers~) is printed regardless of the
+% modulo---yet `1' is printed only after (or \dots)
+% ~\firstlinenumber{1}~.
+% This also applies to the first line of a
+% ~{linenumbers}~ or respective environment.
+% See subsection_\ref{ss:Mod} for another explanation.
+% The behaviour may be unsatisfactory with pagewise
+% line-numbering.
+%% (/New v4.31)
%% (New v4.00)
% \item
-% [|\firstlinenumber] \ \par
-% ~\firstlinenumber{~<filino>~}~ brings about that
-% (after it) line numbers less than <filino> do
-% \emph{not} appear in the margin. Moreover, with
-% ~\modulolinenumbers[~<number>~]~, just the line
-% numbers which are <filino> plus a multiple of
-% <number> are printed.---If you had
-% ~\firstlinenumber{~<pos>~}~ with some $\mbox{<pos>}>0$
-% and want to switch to printing multiples of, e.g.,
-% 4, you best do ~\modulolinenumbers[4]~ and
-% ~\firstlinenumber{0}~. (See subsection_\ref{ss:Mod}
-% for technical details.)
-%% (/New v4.00)
+% [|\firstlinenumber] \ \par
+% ~\firstlinenumber{~<filino>~}~ brings about that
+% (after it) line numbers less than <filino> do
+% \emph{not} appear in the margin. Moreover, with
+% ~\modulolinenumbers[~<number>~]~, just the line
+% numbers which are <filino> plus a multiple of
+% <number> are printed.---If you had
+% ~\firstlinenumber{~<pos>~}~ with some $\mbox{<pos>}>0$
+% and want to switch to printing multiples of, e.g.,
+% 4, you best do ~\modulolinenumbers[4]~ and
+% ~\firstlinenumber{0}~. (See subsection_\ref{ss:Mod}
+% for technical details.)
+%% (/New v4.00)
% \item
% [|\linenumberdisplaymath] \ \par
% Number the lines of a display math in a ~{linenomath}~
% environment, but do not in a ~{linenomath*}~
% environment. This is used by the package option
-% ~[mathlines]~.
+% ~[mathlines]~.
% \item
% [|\nolinenumberdisplaymath] \ \par
% Do not Number the lines of a display math in a
@@ -3247,13 +3305,13 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% ~\pageref{~<foo>~}~.
% \end{description}
% The commands can be used globally, locally within groups
-% or as environments. It is important to know that they
+% or as environments. It is important to know that they
%%
-%% %% TODO: \linelabel? others?
+%% %% TODO: \linelabel? others?
%%
% take action only when the ~\par~ is executed. The
%%
-%% %% TODO: sure? ~\modulo...~, e.g.? well, in a sense ...
+%% %% TODO: sure? ~\modulo...~, e.g.? well, in a sense ...
%%
% ~\end{~<mode>~linenumbers}~ commands provide a ~\par~.
% Examples:
@@ -3273,32 +3331,32 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% ~\linenumbers~ \\
% <paragraph> ~{\nolinenumbers\par}~ \\
% \end{verse}
-% (New v4.00)
-% However, the examples containing <paragraph> show what you
-% should \emph{not} do, at least if you use ~\pagebreak~,
-% ~\nopagebreak~, ~\vspace~, ~\\*~ or
-% ~\\[~<space>~]~---cf._section_\ref{s:MVadj}.
+% (New v4.00)
+% However, the examples containing <paragraph> show what you
+% should \emph{not} do, at least if you use ~\pagebreak~,
+% ~\nopagebreak~, ~\vspace~, ~\\*~ or
+% ~\\[~<space>~]~---cf._section_\ref{s:MVadj}.
%
-% The same care should be applied to the ``wizard'' devices
+% The same care should be applied to the ``wizard'' devices
% ~\ifLineNumbers~ (subsection_\ref{ss:OnOff}) and
-% ~\PostponeVadjust~ (section_\ref{ss:PVadj}).
-% (/New v4.00)
-%
-% (New v4.11) Oh, and the commands and environments of
-% section_{s:Xt} are missing. Sorry, I am in a hurry now.
-% May be next time.% %% TODO v4.4+
-% ---And the environments ~{linenomath}~ and ~{linenomath*}~should
-% get an own paragraph. In short, each math display, equation,
-% or ~{eqnarray}~ should be ``wrapped'' in one of ~{linenomath}~
-% and ~{linenomath*}~.
-%
+% ~\PostponeVadjust~ (section_\ref{ss:PVadj}).
+% (/New v4.00)
+%
+% (New v4.11) Oh, and the commands and environments of
+% section_{s:Xt} are missing. Sorry, I am in a hurry now.
+% May be next time.% %% TODO v4.4+
+% ---And the environments ~{linenomath}~ and ~{linenomath*}~should
+% get an own paragraph. In short, each math display, equation,
+% or ~{eqnarray}~ should be ``wrapped'' in one of ~{linenomath}~
+% and ~{linenomath*}~.
+%
% \subsection{%
% Customization hooks
-% \unskip}
-%
+% \unskip}
+%
% There are several hooks to customize the appearance of the
% line numbers, and some low level hooks for special
-% effects.
+% effects.
% \begin{description}\item
% [|\thelinenumber] \ \par
% This macro should give the representation of the line
@@ -3308,11 +3366,11 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% \item
% [|\makeLineNumberLeft] \ \par
% This macro is used to attach a line number to the left
-% of the text page. This macro should fill an ~\hbox to 0pt~
+% of the text page. This macro should fill an ~\hbox to 0pt~
% which will be placed at the left margin of the
% page, with the reference point aligned to the line to
% which it should give a number. Please use the macro
-% ~\LineNumber~ to refer to the line number.
+% ~\LineNumber~ to refer to the line number.
%
% The default definition is \par$\qquad$
% ~\hss\linenumberfont\LineNumber\hskip\linenumbersep~
@@ -3338,7 +3396,7 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% number box on the right margin. The distance of the
% right edge of the text to the right edge of the line
% number is ~\linenumbersep~ + ~\linenumberwidth~. The
-% default value is ~10pt~.
+% default value is ~10pt~.
% \item
% [|\theLineNumber] (for wizards) \ \par
% This macro is called for printing a ~\newlabel~ entry
@@ -3355,55 +3413,54 @@ Macro file lineno.sty for LaTeX: attach line numbers, refer to them.
% [|\LineNumber] (for wizards) \ \par
% This macro is called by ~\makeLineNumber~ to typeset
% the line number. This hook is changed by the modulo
-% mechanism
+% mechanism
%% %%%.
-% and by ~\firstlinenumber~.
-%% %% New v4.00
+% and by ~\firstlinenumber~.
+%% %% New v4.00
% \end{description}
-%%
-%% TODO: \stepLineNumber---another wizard command!?
-%% Not sure, may be retreated.
+%%
+%% TODO: \stepLineNumber---another wizard command!?
+%% Not sure, may be retreated.
% \end{document}%D
------------------------------------------------------------------------------
%SSTOPP
-%% TODO v4.4+: Check for unwanted comment marks in new comments
-%% (resulting from manual aligning): search `New v4.2'
-%% and/or ` % '!
-%% TODO v4.4+: Check for missing comment marks where a paragraph
-%% should end/start. Also to prevent empty "code" lines.
-%% Especially, new comments at section ends must be
-%% followed by comment mark lines.
-%% And prevent ~\par~s from blank lines in definitions!
-%% See `visual space' above.
-%% For proper appearance in lineno.tex, note that a comment
-%% in a final code line changes behaviour.
-%% TODO v4.4+: Require README for redistribution?
-%% TODO v4.4+: Since discussions of code have increased so much, it
-%% would be appropriate not to give to this file
-%% extension `.sty' (e.g., `dty'!??). ?? Is quickly read though!
-%% A .sty extraction may be possible even if the present
-%% file is neither a .doc nor a .dtx. (!???)
-%% Use awk line below (etc.) for .doc at least; + .ins or so.
-%% ^ must not be caps! To escape awk.
-%% TODO v4.4+: Underfull lines!? (due to long code quotations)
-%% TODO v4.4+: Sometimes paragraph indents may be appropriate.
-%% TODO Swap first line (`\iffalse...') with corresponding below.
- Or do *not* swap, maybe nawk is more reliable.
-%% TODO v4.4+: Ponder Stephan's mail from 2004/09/02.
-%% TODO v4.4+:
-%% use \@ET@makeLineNumber.
-%% plus almost all `(UL)'
-%% plus lots of bad boxes messages
-%% change v4.3 TODOs when postponed
-%% remove {old} environments.
+%% TODO v4.4+: Check for unwanted comment marks in new comments
+%% (resulting from manual aligning): search `New v4.2'
+%% and/or ` % '!
+%% TODO v4.4+: Check for missing comment marks where a paragraph
+%% should end/start. Also to prevent empty "code" lines.
+%% Especially, new comments at section ends must be
+%% followed by comment mark lines.
+%% And prevent ~\par~s from blank lines in definitions!
+%% See `visual space' above.
+%% For proper appearance in lineno.tex, note that a comment
+%% in a final code line changes behaviour.
+%% TODO v4.4+: Require README for redistribution?
+%% TODO v4.4+: Since discussions of code have increased so much, it
+%% would be appropriate not to give to this file
+%% extension `.sty' (e.g., `dty'!??). ?? Is quickly read though!
+%% A .sty extraction may be possible even if the present
+%% file is neither a .doc nor a .dtx. (!???)
+%% Use awk line below (etc.) for .doc at least; + .ins or so.
+%% ^ must not be caps! To escape awk.
+%% TODO v4.4+: Underfull lines!? (due to long code quotations)
+%% TODO v4.4+: Sometimes paragraph indents may be appropriate.
+%% TODO Swap first line (`\iffalse...') with corresponding below.
+ Or do *not* swap, maybe nawk is more reliable.
+%% TODO v4.4+: Ponder Stephan's mail from 2004/09/02.
+%% TODO v4.4+:
+%% use \@ET@makeLineNumber.
+%% plus almost all `(UL)'
+%% plus lots of bad boxes messages
+%% change v4.3 TODOs when postponed
+%% remove {old} environments.
------------------------------------------------------------------------------
-# awk command lines for v4.00, mixed with former ones:
+# awk command lines for v4.00, mixed with former ones:
-echo "Don't bother about unknown 'iffalse'." # SHELL1
+echo "Don't bother about unknown 'iffalse'." # SHELL1
nawk '/A[W]K/' lineno.sty | nawk -f - lineno.sty >lineno.tex; # SHELL1
-latex lineno; latex lineno; latex lineno; latex lineno; # SHELL1
BEGIN{DOC=-1; # AWK DOC A W K
BEGINCODE = "\\begin{code}\\begin{verbatim}"; # AWK
@@ -3420,19 +3477,19 @@ BEGIN{DOC=-1; # AWK DOC A W K
sub("^% *",""); # AWK
sub("^% *","% "); # DOC A W K
print; next; } # AWK DOC A W K
-/%VERSION/ { sub("%VERSION",""); print; next; } # AWK
-/%SSTOPP/ { exit } # AWK
+/%VERSION/ { sub("%VERSION",""); print; next; } # AWK
+/%SSTOPP/ { exit } # AWK
DOC<0 { next } # AWK DOC A W K
/^-+-$/ { if (!DOC) print ENDCODE; exit } # AWK DOC A W K
{ if (DOC) { ECNT=DOC=0; print BEGINCODE; } # AWK DOC A W K
while (ECNT>0) { print " "; ECNT--; } # AWK DOC A W K
print $0; } # AWK DOC A W K
-# New v4.00, UL: know nothing about awk; found present solution
-# in hours of trial and error.
+# New v4.00, UL: know nothing about awk; found present solution
+# in hours of trial and error.
-% Earlier (should be inhibited by %SSTOPP above and otherwise):
-echo "expect errors for unknown commands 'iffalse' and 'fi'";# SHELL0 SHELL#1
+% Earlier (should be inhibited by %SSTOPP above and otherwise):
+echo "expect errors for unknown commands 'iffalse' and 'fi'";# SHELL0 SHELL#1
awk '/A[W]K/' lineno.sty | awk -f - lineno.sty >lineno.tex; # SHELL0
latex lineno; latex lineno; latex lineno; latex lineno; # SHELL0
nawk '/A[W]K/' lineno4.sty | nawk -f - lineno4.sty >lineno4.tex; # SHELL#1
@@ -3464,21 +3521,19 @@ DOC<0 { next } # A#WK DOC A W K
------------------------------------------------------------------------------
-If you are looking here because of the two top lines of the file:
-
-A .tex documentation of this macro file can be obtained by
-
- sh lineno.sty
+If you are looking here because of the two top lines of the file:
-under UNIX.--You may find this hint little helpful. One
-reason may be that the awk versions to which you have access
-don't work suitably. Another reason may be that you don't have
-access to UNIX (in some sense). However, a .tex, .dvi, or .pdf
-version of such a documentation should be available from CTAN,
-in the same folder as the present file. When we typed this, that
-folder was /macros/latex/contrib/lineno. If this has changed in
-the meantime, a CTAN search should lead you to a folder
-containing such a documentation. Or you may get help from one of
-the e-mail addresses above.
+A .tex documentation of this macro file can be obtained by
+ sh lineno.sty
+under UNIX.--You may find this hint little helpful. One
+reason may be that the awk versions to which you have access
+don't work suitably. Another reason may be that you don't have
+access to UNIX (in some sense). However, a .tex, .dvi, or .pdf
+version of such a documentation should be available from CTAN,
+in the same folder as the present file. When we typed this, that
+folder was /macros/latex/contrib/lineno. If this has changed in
+the meantime, a CTAN search should lead you to a folder
+containing such a documentation. Or you may get help from one of
+the e-mail addresses above.
diff --git a/macros/latex/contrib/lineno/tex/vplref.sty b/macros/latex/contrib/lineno/tex/vplref.sty
new file mode 100644
index 0000000000..bdff9b45b7
--- /dev/null
+++ b/macros/latex/contrib/lineno/tex/vplref.sty
@@ -0,0 +1,73 @@
+%% `vplref.sty'
+%% -- extended line number referencing with lineno.sty.
+
+\def\filedate{2005/04/25} \def\fileversion{0.2a}
+
+%% Copyright (C) 2004, 2005 Uwe Lueck,
+%% http://contact-ednotes.sty.de.vu --author-maintained
+%% -- support of lineno.sty for varioref.sty.
+
+%% This file can be redistributed and/or modified under
+%% the terms of the LaTeX Project Public License; either
+%% version 1.3 of the License, or any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% We did our best to help you, but there is NO WARRANTY.
+
+%% USAGE:
+%
+% \vpagelineref{<label>} expands to
+%
+% a) \ref{<label>}
+% -- if on same page as \linelabel{<label>}
+%
+% b) \LineWithPage{<label>} -- otherwise.
+%
+% \LineWithPage{<label>} expands -- by default -- to
+%
+% \pageref{<label>}.\ref{<label>}
+%
+% This can be customized by editing
+%
+% \renewcommand*{\LineWithPage}[1]{\pageref{#1}.\ref{#1}}
+%
+% in your document preamble, after vplref.sty has been loaded
+% (which may have happened through lineno.sty with option
+% `addpageno').
+
+%% IMPLEMENTATION:
+
+\NeedsTeXFormat{LaTeX2e}[1994/12/01] %% \Declare...*
+\ProvidesPackage{vplref}[\filedate\space v\fileversion \space
+ page-line cross-refs] %% UL 2011/02/13
+
+\AtBeginDocument{\RequirePackage{lineno,varioref}}
+
+%% Anderer Ansatz: GPNo (\FirstOnPage)
+
+\DeclareRobustCommand*\vpagelineref[1]{{%
+% \def\reftextcurrent{\lineref{#1}}%% First vpageref arg.
+ \let\reftextfaraway\LineWithPage
+ \def\reftextafter{\reftextfaraway{#1}}%
+ \let\reftextbefore\reftextafter
+ \let\reftextfaceafter\reftextafter
+ \let\reftextfacebefore\reftextafter
+%% <- Looks somewhat stupid, but varioref.sty has its merits
+%% as compared with the mechanism in ednotes.sty.
+ \vpageref[\ref{#1}][]{#1}%% The robust alternative.
+%% Here and with \LineWithPage, \lineref seems more appropriate
+%% than \ref, but it produces errors when labels have not been
+%% defined. This seems to be an incompatibility with lineno.sty.
+}}
+
+%% Customizable format for different page:
+\newcommand*\LineWithPage[1]{\pageref{#1}.\ref{#1}}
+
+\endinput
+
+VERSION HISTORY:
+v0.1 2004/10/19 First, sent to Sergei Mariev.
+v0.11 2004/10/19 Fit to recent varioref version;
+ sent to Sergei.
+v0.2 2005/04/25 \Require... \AtBeginDocument.
+v0.2a 2011/02/13 add. caption to \ProvidesPackage
diff --git a/macros/latex/contrib/lineno/ulineno.pdf b/macros/latex/contrib/lineno/ulineno.pdf
deleted file mode 100644
index 2d2a407647..0000000000
--- a/macros/latex/contrib/lineno/ulineno.pdf
+++ /dev/null
Binary files differ
diff --git a/macros/latex/contrib/lineno/vplref.sty b/macros/latex/contrib/lineno/vplref.sty
deleted file mode 100644
index d3b0697f13..0000000000
--- a/macros/latex/contrib/lineno/vplref.sty
+++ /dev/null
@@ -1,74 +0,0 @@
-%% `vplref.sty'
-%% -- extended line number referencing with lineno.sty.
-
-\def\filedate{2005/04/25} \def\fileversion{0.2a}
-
-%% Copyright (C) 2004, 2005 Uwe Lueck,
-%% http://contact-ednotes.sty.de.vu --author-maintained
-%% -- support of lineno.sty for varioref.sty.
-
-%% This file can be redistributed and/or modified under
-%% the terms of the LaTeX Project Public License; either
-%% version 1.3 of the License, or any later version.
-%% The latest version of this license is in
-%% http://www.latex-project.org/lppl.txt
-%% We did our best to help you, but there is NO WARRANTY.
-
-%% USAGE:
-%
-% \vpagelineref{<label>} expands to
-%
-% a) \ref{<label>}
-% -- if on same page as \linelabel{<label>}
-%
-% b) \LineWithPage{<label>} -- otherwise.
-%
-% \LineWithPage{<label>} expands -- by default -- to
-%
-% \pageref{<label>}.\ref{<label>}
-%
-% This can be customized by editing
-%
-% \renewcommand*{\LineWithPage}[1]{\pageref{#1}.\ref{#1}}
-%
-% in your document preamble, after vplref.sty has been loaded
-% (which may have happened through lineno.sty with option
-% `addpageno').
-
-%% IMPLEMENTATION:
-
-\NeedsTeXFormat{LaTeX2e}[1994/12/01] %% \Declare...*
-\ProvidesPackage{vplref}[\filedate\space v\fileversion \space
- page-line cross-refs] %% UL 2011/02/13
-
-\AtBeginDocument{\RequirePackage{lineno,varioref}}
-
-%% Anderer Ansatz: GPNo (\FirstOnPage)
-
-\DeclareRobustCommand*\vpagelineref[1]{{%
-% \def\reftextcurrent{\lineref{#1}}%% First vpageref arg.
- \let\reftextfaraway\LineWithPage
- \def\reftextafter{\reftextfaraway{#1}}%
- \let\reftextbefore\reftextafter
- \let\reftextfaceafter\reftextafter
- \let\reftextfacebefore\reftextafter
-%% <- Looks somewhat stupid, but varioref.sty has its merits
-%% as compared with the mechanism in ednotes.sty.
- \vpageref[\ref{#1}][]{#1}%% The robust alternative.
-%% Here and with \LineWithPage, \lineref seems more appropriate
-%% than \ref, but it produces errors when labels have not been
-%% defined. This seems to be an incompatibility with lineno.sty.
-}}
-
-%% Customizable format for different page:
-\newcommand*\LineWithPage[1]{\pageref{#1}.\ref{#1}}
-
-\endinput
-
-VERSION HISTORY:
-v0.1 2004/10/19 First, sent to Sergei Mariev.
-v0.11 2004/10/19 Fit to recent varioref version;
- sent to Sergei.
-v0.2 2005/04/25 \Require... \AtBeginDocument.
-v0.2a 2011/02/13 add. caption to \ProvidesPackage
-
diff --git a/macros/latex/contrib/mathfont/README.txt b/macros/latex/contrib/mathfont/README.txt
index 99ed16767f..6a7a6ca9ca 100644
--- a/macros/latex/contrib/mathfont/README.txt
+++ b/macros/latex/contrib/mathfont/README.txt
@@ -1,7 +1,7 @@
-LaTeX package mathfont version 2.2 installation information,
+LaTeX package mathfont version 2.2a installation information,
released December 2022.
-This file is README.txt from version 2.2 of the free and
+This file is README.txt from version 2.2a of the free and
open-source LaTeX package "mathfont," to be used with the
XeTeX or LuaTeX engines. The package is designed to adapt
text fonts for use in math mode, and if you typeset your
@@ -14,8 +14,8 @@ To install mathfont automatically, update your TeXLive or
MacTeX distribution or use a package manager such as tlmgr.
To install mathfont manually, you need to generate the
-package file mathfont.sty from mathfont.dtx. You can do
-this in two ways:
+package file mathfont.sty from mathfont_code.dtx. You can
+do this in two ways:
(1) Running Plain TeX on mathfont_code.dtx will create
mathfont.sty as well as several other tex files
diff --git a/macros/latex/contrib/mathfont/mathfont_code.dtx b/macros/latex/contrib/mathfont/mathfont_code.dtx
index 8b73b6d587..d1129f6fe1 100644
--- a/macros/latex/contrib/mathfont/mathfont_code.dtx
+++ b/macros/latex/contrib/mathfont/mathfont_code.dtx
@@ -1,10 +1,11 @@
% \iffalse ---!!! FIRST META-COMMENT !!!---
%
%
-% This file is mathfont_code.dtx from version 2.2 of the
-% free and open-source LaTeX package "mathfont," to be
-% used with the XeTeX or LuaTeX engines. Running Plain
-% TeX mathfont_code.dtx will produce the following files:
+% This file is mathfont_code.dtx from version 2.2a of the
+% free and open-source LaTeX package "mathfont," released
+% December 2022, to be used with the XeTeX or LuaTeX engines.
+% Running Plain TeX mathfont_code.dtx will produce the
+% following files:
%
% (1) the package file mathfont.sty;
%
@@ -41,9 +42,10 @@
% \iffalse ---!!! SECOND META-COMMENT !!!---
%
%
-% This file is from version 2.2 of the free and open-source
-% LaTeX package "mathfont," to be used with the XeTeX or
-% LuaTeX engines. (As of version 2.0, LuaTeX is recommended.)
+% This file is from version 2.2a of the free and open-source
+% LaTeX package "mathfont," released December 2022, to be used
+% with the XeTeX or LuaTeX engines. (As of version 2.0, LuaTeX
+% is recommended.)
%
% Copyright 2018-2022 by Conrad Kosowsky
%
@@ -151,9 +153,10 @@
\askforoverwritefalse
\preamble
-This file is from version 2.2 of the free and open-source
-LaTeX package "mathfont," to be used with the XeTeX or
-LuaTeX engines. (As of version 2.0, LuaTeX is recommended.)
+This file is from version 2.2a of the free and open-source
+LaTeX package "mathfont," released December 2022, to be used
+with the XeTeX or LuaTeX engines. (As of version 2.0, LuaTeX
+is recommended.)
Copyright 2018-2022 by Conrad Kosowsky
@@ -281,7 +284,7 @@ For more information, see mathfont_code.dtx. Happy TeXing!
% \fi
%
%
-% \CheckSum{6615}
+% \CheckSum{6619}
% \init@checksum
%
%
@@ -390,7 +393,7 @@ For more information, see mathfont_code.dtx. Happy TeXing!
% First and foremost, the package needs to declare itself.
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{mathfont}[2022/12/04 v. 2.2 Package mathfont]
+\ProvidesPackage{mathfont}[2022/12/05 v. 2.2a Package mathfont]
% \end{macrocode}
% We specify conditionals that we will use later in handling options and setup.
% \begin{macrocode}
@@ -1469,18 +1472,18 @@ For more information, see mathfont_code.dtx. Happy TeXing!
\def\@tempb{#1}
\def\@tempc{upright}
\ifx\@tempb\@tempc
- \let\@tempc\shapedefault
+ \let\m@th@const@nts@font@sh@pe\shapedefault
\else
\def\@tempc{italic}
\ifx\@tempb\@tempc
- \let\@tempc\itdefault
+ \let\m@th@const@nts@font@sh@pe\itdefault
\else
\M@BadMathConstantsFontTypeError{#1}
\fi
\fi
\ifcsname symM#1\csname M@fontid@\@tempa\endcsname\endcsname\else
\DeclareSymbolFont{M#1\csname M@fontid@\@tempa\endcsname}
- {TU}{\@tempa}{\mddefault}{\@tempc}
+ {TU}{\@tempa}{\mddefault}{\m@th@const@nts@font@sh@pe}
\fi
\let\m@th@const@nts@font\@tempa
% \end{macrocode}
@@ -1495,8 +1498,10 @@ For more information, see mathfont_code.dtx. Happy TeXing!
\csname symM#1\csname M@fontid@\m@th@const@nts@font\endcsname
\expandafter
\endcsname % expands to \symMupright<id>
- \csname TU/\m@th@const@nts@font/\seriesdefault/\@tempc
- \endcsname % expands to \TU/<nfss family name>/m/<shape>
+ \csname TU/\m@th@const@nts@font
+ /\seriesdefault
+ /\m@th@const@nts@font@sh@pe\endcsname
+ % above \csname expands to \TU/<nfss family name>/m/<shape>
\globaldefs\@ne
\expandafter\@gobbletwo\math@fonts % gobble to avoid infinite loop
\endgroup}
@@ -1613,13 +1618,18 @@ For more information, see mathfont_code.dtx. Happy TeXing!
\else
\directlua{
local num = tonumber("\@tempa")
+ local bool = 0 % keep track if \@tempa is (int >= 0)
if num then % if number?
if num == num - (num \@percentchar 1) then % if integer?
if num >= 0 then % if nonnegative?
- tex.print("\@backslashchar\@backslashchar endgroup%
- \@backslashchar\@backslashchar M@arg@goodtrue")
+ bool = 1
end
end
+ end
+ tex.print("\@backslashchar\@backslashchar endgroup")
+ if bool == 1 then
+ tex.print("\@backslashchar\@backslashchar csname M@arg@goodtrue%
+ \@backslashchar\@backslashchar endcsname")
end}
\fi
\fi}
@@ -4693,9 +4703,15 @@ mathfont:add_extensible_variants(smash, int_glyphs, int_scale)
%
% \version{2.2}{December 2022\strut}
% \item changed the easter egg text
-% \item updated patch for |\DeclareSymbolFont| to work with changes to the kernel
+% \item updated patch for |\DeclareSymbolFont| to work with changes to the kernel (eliminated |\M@p@tch@decl@re| error message)
% \item calling Plain \TeX\ on \texttt{mathfont\_code.dtx} produces sty file and no pdf file
%
+% \version{2.2a}{December 2022\strut}
+% \item bug fix for |\mathconstantsfont|
+% \item bug fix for |\M@check@int|
+% \item removed |\makeatletter| from example files
+% \item added |doc2| option to |ltxdoc| in \texttt{mathfont\_code.dtx}
+%
%
% \egroup
% \end{multicols*}
@@ -4742,15 +4758,14 @@ mathfont:add_extensible_variants(smash, int_glyphs, int_scale)
\input mathfont_heading.tex
-Handling fonts in \TeX\ and \LaTeX\ is a notoriously difficult task because fonts are complicated objects.\footnote{The last 30 years have seen huge advances in loading fonts with \TeX. Donald Knuth originally designed \TeX\ to load fonts created with Metafont, and only more recent engines such as Jonathan Kew's \XeTeX\ and Hans Hagen, et al.'s Lua\TeX\ have extended \TeX's font-loading capabilities to unicode. \XeTeX\ supports OpenType and TrueType fonts natively, and Lua\TeX\ can load OpenType fonts through the \textsf{luaotfload} package. Information on \XeTeX\ is available at \link{https://tug.org/xetex/}, and information on Lua\TeX\ is available at the official website for Lua\TeX: \link{http://www.luatex.org/}. See also Ulrike Fischer, et al., ``\textsf{luaotfload}---OpenType `loader' for Plain \TeX\ and \LaTeX,'' \link{https://ctan.org/pkg/luaotfload}.} The \textsf{mathfont} package loads TrueType and OpenType fonts for use in math mode, and this document explains the package's user-level commands. For version history and code implementation, see |mathfont_code.pdf|, and for a list of all symbols accessible with \textsf{mathfont}, see |mathfont_symbol_list.pdf|. The \textsf{mathfont} installation also includes four example files, and all \textsf{mathfont} pdf documentation files are available on \textsc{ctan}.
+Handling fonts in \TeX\ and \LaTeX\ is a notoriously difficult task because fonts are complicated.\footnote{The last 30 years have seen huge advances in loading fonts with \TeX. Donald Knuth originally designed \TeX\ to load fonts created with Metafont, and only more recent engines such as Jonathan Kew's \XeTeX\ and Hans Hagen, et al.'s Lua\TeX\ have extended \TeX's font-loading capabilities to unicode. \XeTeX\ supports OpenType and TrueType fonts natively, and Lua\TeX\ can load OpenType fonts through the \textsf{luaotfload} package. Information on \XeTeX\ is available at \link{https://tug.org/xetex/}, and information on Lua\TeX\ is available at the official website for Lua\TeX: \link{http://www.luatex.org/}. See also Ulrike Fischer, et al., ``\textsf{luaotfload}---OpenType `loader' for Plain \TeX\ and \LaTeX,'' \link{https://ctan.org/pkg/luaotfload}.} The \textsf{mathfont} package loads TrueType and OpenType fonts for use in math mode, and this document explains the package's user-level commands. For version history and code implementation, see |mathfont_code.pdf|, and for a list of all symbols accessible with \textsf{mathfont}, see |mathfont_symbol_list.pdf|. The \textsf{mathfont} installation also includes four example files, and all \textsf{mathfont} pdf documentation files are available on \textsc{ctan}. Because unicode text fonts outnumber unicode math fonts, I hope that my package will expand the set of possibilities for typesetting math in \LaTeX.
\section{Loading and Basic Functionality}
-Loading fonts for math typesetting is more complicated than for regular text. First, the commands to select fonts for math mode, both in plain \TeX\ and in the \textsc{nfss}, are more complicated than the macros to select text fonts, and second, \TeX\ expects fonts for math to contain extra information that it uses to format equations.\footnote{Specifically, this extra information is a set of large variants, math-specific parameter values associated with individual characters, and a MathConstants table. Also, math fonts often use slightly wider bounding boxes for letters in math mode---the Computer Modern $f$ is a famous example. For this reason, \textsf{mathfont} also provides an interface to enlarge the bounding boxes of Latin letters when they appear in math mode. See section 4 for details.} Broadly speaking, we say that a \textit{math font} contains this extra information, whereas a \textit{text font} does not, and typesetting math with glyphs from one or more text fonts usually results in equations that are less aesthetically pleasing than using a properly prepared math font. The functionality of \textsf{mathfont} then is twofold: (1) provide a wrapper around the \textsc{nfss} commands for math typesetting that serves as a high-level interface; and (2) implement Lua\TeX\ callbacks that artificially convert text fonts into math fonts at loading.\footnote{Values for MathConstants table are different from but inspired by Ulrik Vieth, ``Understanding the \AE sthetics of Math Typesetting,'' (Bacho\TeX\ Conference, 2008) and Ulrik Vieth ``OpenType Math Illuminated,'' \textit{TUGboat} 30 (2009): 22--31. See also Bogus\l aw Jackowski, ``Appendix G Illuminated,'' \textit{TUGboat} 27 (2006): 83--90.} Please note that \textsf{mathfont} tries its best to get your fonts right, but if you run into trouble loading the correct font files, you should declare your font family and shapes in the \textsc{nfss} before setting any fonts with \textsf{mathfont}. Because unicode text fonts greatly outnumber unicode math fonts, I hope that my package will expand the set of fonts available for typesetting math in \LaTeX.
-
+Loading fonts for math typesetting is more complicated than for regular text. First, selecting fonts for math mode, both in plain \TeX\ and in the \textsc{nfss}, involves additional macros above and beyond what we need to load text fonts. Second, \TeX\ expects fonts for math to contain extra information for formatting equations.\footnote{Specifically, this extra information is a set of large variants, math-specific parameter values associated with individual characters, and a MathConstants table. Also, math fonts often use slightly wider bounding boxes for letters in math mode---the Computer Modern $f$ is a well-known example. (Compare \fbox{$f$} and \fbox{\texttt{f}}.) For this reason, \textsf{mathfont} also provides an interface to enlarge the bounding boxes of Latin letters when they appear in math mode. See section 5 for details.} Broadly speaking, we say that a \textit{math font} contains this extra information, whereas a \textit{text font} does not, and typesetting math with glyphs from one or more text fonts usually results in equations that are less aesthetically pleasing than using a properly prepared math font. The functionality of \textsf{mathfont} then is twofold: (1) provide a wrapper around the \textsc{nfss} commands for math typesetting that serves as a high-level interface; and (2) implement Lua\TeX\ callbacks that artificially convert text fonts into math fonts at loading.\footnote{Values for MathConstants table are different from but inspired by Ulrik Vieth, ``Understanding the \AE sthetics of Math Typesetting,'' (Bacho\TeX\ Conference, 2008) and Ulrik Vieth ``OpenType Math Illuminated,'' \textit{TUGboat} 30 (2009): 22--31. See also Bogus\l aw Jackowski, ``Appendix G Illuminated,'' \textit{TUGboat} 27 (2006): 83--90.} Although \textsf{mathfont} tries its best to get your fonts right, it may run into trouble when picking fonts to load. If this happens, you should declare your font family and shapes in the \textsc{nfss} before setting any fonts with \textsf{mathfont}.
-You must use one of \XeLaTeX\ or Lua\LaTeX\ to typeset a document with \textsf{mathfont}. You can load \textsf{mathfont} with the standard |\usepackage{mathfont}| syntax, and the package accepts three optional arguments. If you use Lua\TeX, the options |adjust| or |no-adjust| will manually specify whether \textsf{mathfont} should adapt text fonts for math mode, and \textsf{mathfont} selects |adjust| by default. If you use \XeTeX, \textsf{mathfont} cannot adjust any font objects with Lua callbacks, and either of these package options will cause an error.\footnote{In particular, with \XeLaTeX\ \textsf{mathfont} does not add big operators or resizable delimiters. This means you will have to use the Computer Modern defaults, load a separate math font for resizable characters, or end up with a document where large operators and delimiters do not scale like they do normally.} For this reason, using Lua\TeX\ with \textsf{mathfont} is recommended as of version 2.0. If you load \textsf{mathfont} with any other optional argument, the package will interpret it as a font name and call |\setfont| (described in the next section) on your argument. Doing so selects that font for the text of your document and for the character classes in the upper section of Table~1.
+You must use one of \XeLaTeX\ or Lua\LaTeX\ to typeset a document with \textsf{mathfont}. You can load \textsf{mathfont} with the standard |\usepackage{mathfont}| syntax, and the package accepts three optional arguments. If you use Lua\TeX, the options |adjust| or |no-adjust| will manually specify whether \textsf{mathfont} should adapt text fonts for math mode, and \textsf{mathfont} selects |adjust| by default. If you use \XeTeX, \textsf{mathfont} cannot adjust any font objects with Lua callbacks, and either of these package options will cause an error.\footnote{With \XeLaTeX, \textsf{mathfont} does not add big operators or resizable delimiters. This means you will have to use the Computer Modern defaults, load a separate math font for resizable characters, or end up with a document where large operators and delimiters do not scale like they do normally.} For this reason, using Lua\TeX\ with \textsf{mathfont} is recommended as of version 2.0. If you load \textsf{mathfont} with any other optional argument, the package will interpret it as a font name and call |\setfont| (described in the next section) on your argument. Doing so selects that font for the text of your document and for the character classes in the upper section of Table~1.
The \textsf{mathfont} package is closely related to several other \LaTeX\ packages. The functionality is closest to that of \textsf{mathspec} by Andrew Gilbert Moschou, which is compatible with \XeTeX\ only and selects characters from text fonts for math.\footnote{Andrew Gilbert Moschou, ``\textsf{mathspec}---Specify arbitrary fonts for mathematics in \XeTeX,'' \link{https://ctan.org/pkg/mathspec}.} The \textsf{unicode-math} package is the standard \LaTeX\ package for loading actual unicode math fonts, and if you have a unicode font with proper math support, rather than a text font that you want to use for equations, consider using this package instead of \textsf{mathfont}.\footnote{Will Robertson, et al., ``\textsf{unicode-math}---Unicode mathematics support for XeTeX and LuaTeX,'' \link{https://ctan.org/pkg/unicode-math}.} Users who want to a text font for math with pdf\LaTeX\ should consider Jean-Fran\c cois Burnol's \textsf{mathastext} because \textsf{mathfont} is incompatible with pdf\TeX.\footnote{Jean-Fran\c cois Burnol, ``\textsf{mathastext}---Use the text font in maths mode,'' \link{https://ctan.org/pkg/mathastext}. In several previous versions of this documentation, I mischaracterized the approach of \textsf{mathastext} to \TeX's internal mathematics spacing. In fact, \textsf{mathastext} preserves and in some cases extends rules for space between various math-mode characters.} Finally, you will probably be better off using \textsf{fontspec} if your document does not contain any math.\footnote{Will Robertson and Khaled Hosny, ``\textsf{fontspec}---Advanced font selection in \XeLaTeX\ and Lua\LaTeX,'' \link{https://ctan.org/pkg/fontspec}.} The \textsf{fontspec} package is designed to load TrueType and OpenType fonts for text and provides a high-level interface for selecting OpenType font features.
@@ -4955,8 +4970,7 @@ Callback Name & What It Does By Default\\\midrule
\end{tabularx}
\end{figure}
-Finally, advanced users who want to interact with the font adjustment process directly should use the six callbacks in Table~\ref{Callbacks}. When Lua\TeX\ loads a font, \textsf{mathfont} (1) always calls |mathfont.inspect_font| and (2) calls the other five callbacks in the order that they appear in Table~\ref{Callbacks} if the font object contains |nomath=true|. Functions added to these callbacks should accept a font object as a single argument and return nothing. Further, please be careful when loading functions in the |disable_nomath|, |add_math_constants|, and |fix_character_metrics| callbacks. If you add a function there, Lua\TeX\ will not carry out the default behvaior associated with the callback, so do not mess with these three callbacks unless you are duplicating the default behavior of the callback or you really know what you're doing. Otherwise, you risk breaking the package. See |mathfont_code.pdf| for more information.
-
+Finally, advanced users who want to interact with the font adjustment process directly should use the six callbacks in Table~\ref{Callbacks}. When \textsf{luaotfload} loads a font, \textsf{mathfont} (1) always calls |mathfont.inspect_font| and (2) calls the other five callbacks in the order that they appear in Table~\ref{Callbacks} if the font object contains |nomath=true|. Functions added to these callbacks should accept a font object as a single argument and return nothing. Further, please be careful when loading functions in the |disable_nomath|, |add_math_constants|, and |fix_character_metrics| callbacks. If you add a function there, Lua\TeX\ will not carry out the default behvaior associated with the callback, so do not mess with these three callbacks unless you are duplicating the default behavior or you really know what you're doing. Otherwise, you risk breaking the package. See |mathfont_code.pdf| for more information.
\end{document}
@@ -5890,29 +5904,34 @@ t'=\left(t-\frac{vx}{c^2}\right)\frac1{\sqrt{1-\frac{v^2}{c^2}}}
\end{multicols}
%</equations>
%<*cormorant>
+\ifx\directlua\undefined
+ \PackageError{mathfont}
+ {\MessageBreak
+ LuaLaTeX is recommended for\MessageBreak
+ mathfont_example_cormorant.tex}
+ {It's recommended that you typset this file\MessageBreak
+ with LuaTeX. You can use a different engine\MessageBreak
+ if you want, but things will turn out weird.\MessageBreak
+ To resolve this error, typeset this file\MessageBreak
+ with LuaLaTeX.}
+\fi
\documentclass[12pt]{article}
-\makeatletter
\usepackage[margin=1in]{geometry}
\usepackage{innerscript}
\usepackage{multicol}
\usepackage{amsmath}
\DeclareMathOperator{\Res}{Res}
\usepackage{mathfont}
-\DeclareFontFamily{TU}{Cormorant}{}
-\DeclareFontShape{TU}{Cormorant}{m}{n}
- {<->"Cormorant Medium:\M@otf@features;-liga"}{}
-\DeclareFontShape{TU}{Cormorant}{m}{it}
- {<->"Cormorant Medium Italic:\M@otf@features"}{}
\mathfont[greeklower=upright,greekupper]{Crimson}
\mathfont[diacritics]{Bona Nova}
-\setfont{Cormorant}
+\setfont{Cormorant:-liga}
\RuleThicknessFactor{600}
\DeclareMathSymbol{\nabla}{\mathord}{Mupright0}{"2207}
\DeclareMathSymbol{\nabla}{\mathord}{Mupright0}{"2207}
\parindent=0pt\relax
\begin{document}
-\let\footnote\@gobble
+\def\footnote#1{}
\def\showabstract{0}
\let\textsf\relax
\let\ttfamily\relax
@@ -5928,8 +5947,18 @@ This is Cormorant with Crimson for Greek characters and Bona Nova for diacritics
\end{document}
%</cormorant>
%<*kelvinch>
+\ifx\directlua\undefined
+ \PackageError{mathfont}
+ {\MessageBreak
+ LuaLaTeX is recommended for\MessageBreak
+ mathfont_example_kelvinch.tex}
+ {It's recommended that you typset this file\MessageBreak
+ with LuaTeX. You can use a different engine\MessageBreak
+ if you want, but things will turn out weird.\MessageBreak
+ To resolve this error, typeset this file\MessageBreak
+ with LuaLaTeX.}
+\fi
\documentclass[12pt]{article}
-\makeatletter
\usepackage[margin=1in]{geometry}
\usepackage{innerscript}
\usepackage{multicol}
@@ -5943,7 +5972,7 @@ This is Cormorant with Crimson for Greek characters and Bona Nova for diacritics
\parindent=0pt\relax
\begin{document}
-\let\footnote\@gobble
+\def\footnote#1{}
\def\showabstract{0}
\let\textsf\relax
\let\ttfamily\relax
@@ -5958,8 +5987,18 @@ This is Kelvinch with Crimson for the radical signs. ``Testing. Testing.'' Brown
\end{document}
%</kelvinch>
%<*roboto>
+\ifx\directlua\undefined
+ \PackageError{mathfont}
+ {\MessageBreak
+ LuaLaTeX is recommended for\MessageBreak
+ mathfont_example_roboto.tex}
+ {It's recommended that you typset this file\MessageBreak
+ with LuaTeX. You can use a different engine\MessageBreak
+ if you want, but things will turn out weird.\MessageBreak
+ To resolve this error, typeset this file\MessageBreak
+ with LuaLaTeX.}
+\fi
\documentclass[12pt]{article}
-\makeatletter
\usepackage[margin=1in]{geometry}
\usepackage{innerscript}
\usepackage{multicol}
@@ -5977,7 +6016,7 @@ This is Kelvinch with Crimson for the radical signs. ``Testing. Testing.'' Brown
\parindent=0pt\relax
\begin{document}
-\let\footnote\@gobble
+\def\footnote#1{}
\def\showabstract{0}
\let\textsf\relax
\let\ttfamily\relax
@@ -5993,8 +6032,18 @@ This is Roboto with Overpass for the radical signs and STIXGeneral for the tenso
\end{document}
%</roboto>
%<*typey>
+\ifx\directlua\undefined
+ \PackageError{mathfont}
+ {\MessageBreak
+ LuaLaTeX is recommended for\MessageBreak
+ mathfont_example_typey.tex}
+ {It's recommended that you typset this file\MessageBreak
+ with LuaTeX. You can use a different engine\MessageBreak
+ if you want, but things will turn out weird.\MessageBreak
+ To resolve this error, retypeset this file\MessageBreak
+ with LuaLaTeX.}
+\fi
\documentclass[12pt]{article}
-\makeatletter
\usepackage[margin=1in]{geometry}
\usepackage{innerscript}
\usepackage{multicol}
@@ -6007,6 +6056,7 @@ This is Roboto with Overpass for the radical signs and STIXGeneral for the tenso
%% it has no bold fontface---we use embolden from luaotflaod
%% to make a fake bold
+\makeatletter
\DeclareFontFamily{TU}{Typey}{}
\DeclareFontShape{TU}{Typey}{m}{n}
{<->"Typey McTypeface:\M@otf@features"}{}
@@ -6028,6 +6078,8 @@ This is Roboto with Overpass for the radical signs and STIXGeneral for the tenso
{<->"Typey McTypeface:\M@otf@features;embolden=6;mode=base"}{}
\DeclareFontShape{TU}{Typey-base}{\bfdefault}{\itdefault}
{<->"Typey McTypeface/I:\M@otf@features;embolden=6;mode=base"}{}
+\makeatother
+
\setfont{Typey}
\mathfont[]{STIXGeneral}
\DeclareSymbolFont{Mroman2}{TU}{STIXGeneral}{m}{n}
@@ -6037,7 +6089,7 @@ This is Roboto with Overpass for the radical signs and STIXGeneral for the tenso
\parindent=0pt\relax
\begin{document}
-\let\footnote\@gobble
+\def\footnote#1{}
\def\showabstract{0}
\let\textsf\relax
\let\ttfamily\relax
@@ -6054,14 +6106,15 @@ This is Typey McTypeface with Crimson for the radical signs and STIXGeneral for
%</typey>
%<*heading>
+\csname count@\endcsname\catcode`\@
+\makeatletter
+
% package date and edition
\def\packagedate{December 2022}
-\def\packageversion{2.2}
+\def\packageversion{2.2a}
% header and footer commands
-
-
\let\@@section\section
\def\section{\@ifstar\star@sect\no@star@sect}
\def\star@sect#1{\@@section*{#1}\section@name{#1}}
@@ -6151,7 +6204,7 @@ This is Typey McTypeface with Crimson for the radical signs and STIXGeneral for
% title information
{\large\parindent=0pt\leftskip=0pt plus 1 fil\rightskip=0pt plus 1fil\parfillskip=0pt
-{\strut\Large Package \textsf{mathfont} v.\ \packageversion\ \documentname\let\thefootnote\relax\footnote{Acknowledgements: Thanks to Lyric Bingham for her work checking my unicode hex values. Thanks to Herbert Voss and Andreas Zidak for pointing out bugs in previous versions of \textsf{mathfont}. Thanks to Jean-Fran\c cois Burnol for pointing out an error in the documentation in reference to their \textsf{mathastext} package.}\global\advance\c@footnote\m@ne}\par
+{\strut\Large Package \textsf{mathfont} v.\ \packageversion\ \documentname\let\thefootnote\relax\footnote{Acknowledgements: Thanks to Lyric Bingham for her work checking my unicode hex values. Thanks to Shyam Sundar, Adrian Vollmer, Herbert Voss, and Andreas Zidak for pointing out bugs in previous versions of \textsf{mathfont}. Thanks to Jean-Fran\c cois Burnol for pointing out an error in the documentation in reference to their \textsf{mathastext} package.}\global\advance\c@footnote\m@ne}\par
{\strut Conrad Kosowsky}\par
{\strut\packagedate}\par
{\strut\ttfamily kosowsky.latex@gmail.com}\par}
@@ -6184,6 +6237,9 @@ This is Typey McTypeface with Crimson for the radical signs and STIXGeneral for
\bigskip\bigskip\nointerlineskip
\centerline{\vrule height 0.5pt width 2.5in}\bigskip\medskip
\fi
+
+\catcode`\@\count@
+
%</heading>
%<*doc>
diff --git a/macros/latex/contrib/mathfont/mathfont_code.pdf b/macros/latex/contrib/mathfont/mathfont_code.pdf
index bfaf4e1268..7093533772 100644
--- a/macros/latex/contrib/mathfont/mathfont_code.pdf
+++ b/macros/latex/contrib/mathfont/mathfont_code.pdf
Binary files differ
diff --git a/macros/latex/contrib/mathfont/mathfont_example_cormorant.pdf b/macros/latex/contrib/mathfont/mathfont_example_cormorant.pdf
index ef8e4439c2..8dd3e85a97 100644
--- a/macros/latex/contrib/mathfont/mathfont_example_cormorant.pdf
+++ b/macros/latex/contrib/mathfont/mathfont_example_cormorant.pdf
Binary files differ
diff --git a/macros/latex/contrib/mathfont/mathfont_example_kelvinch.pdf b/macros/latex/contrib/mathfont/mathfont_example_kelvinch.pdf
index 3ba6738320..7bdc3e3db0 100644
--- a/macros/latex/contrib/mathfont/mathfont_example_kelvinch.pdf
+++ b/macros/latex/contrib/mathfont/mathfont_example_kelvinch.pdf
Binary files differ
diff --git a/macros/latex/contrib/mathfont/mathfont_example_roboto.pdf b/macros/latex/contrib/mathfont/mathfont_example_roboto.pdf
index 221f66ba6b..e5fa29a0e9 100644
--- a/macros/latex/contrib/mathfont/mathfont_example_roboto.pdf
+++ b/macros/latex/contrib/mathfont/mathfont_example_roboto.pdf
Binary files differ
diff --git a/macros/latex/contrib/mathfont/mathfont_example_typey.pdf b/macros/latex/contrib/mathfont/mathfont_example_typey.pdf
index 25b8de0567..5e67db5cdd 100644
--- a/macros/latex/contrib/mathfont/mathfont_example_typey.pdf
+++ b/macros/latex/contrib/mathfont/mathfont_example_typey.pdf
Binary files differ
diff --git a/macros/latex/contrib/mathfont/mathfont_symbol_list.pdf b/macros/latex/contrib/mathfont/mathfont_symbol_list.pdf
index 13281e93c0..21c4c40e90 100644
--- a/macros/latex/contrib/mathfont/mathfont_symbol_list.pdf
+++ b/macros/latex/contrib/mathfont/mathfont_symbol_list.pdf
Binary files differ
diff --git a/macros/latex/contrib/mathfont/mathfont_user_guide.pdf b/macros/latex/contrib/mathfont/mathfont_user_guide.pdf
index b55e9db8fe..3ffe92b216 100644
--- a/macros/latex/contrib/mathfont/mathfont_user_guide.pdf
+++ b/macros/latex/contrib/mathfont/mathfont_user_guide.pdf
Binary files differ
diff --git a/macros/latex/contrib/setspace/README b/macros/latex/contrib/setspace/README
deleted file mode 100644
index 08b3525869..0000000000
--- a/macros/latex/contrib/setspace/README
+++ /dev/null
@@ -1,13 +0,0 @@
-setspace -- control line spacing in latex documents
-
-This release is a transitional one, with code unchanged from Geoffrey
-Tobin's LaTeX 2.09 original, except for patches that avoid a problem
-with \@setsize, when the package is used with other 2.09 packages
-under LaTeX 2e.
-
-The package now acts "natively" as a 2e package under LaTeX 2e, and
-(insofar as is possibe) as a 2.09 package under LaTeX 2.09.
-
-Please report any problems to Robin Fairbairns <rf10@cam.ac.uk>
-(A revised version of setspace-test.tex, that shows the problem
-reported, will be much appreciated.)
diff --git a/macros/latex/contrib/setspace/README.md b/macros/latex/contrib/setspace/README.md
new file mode 100644
index 0000000000..16e5d5bbac
--- /dev/null
+++ b/macros/latex/contrib/setspace/README.md
@@ -0,0 +1,13 @@
+# setspace
+## control line spacing in latex documents
+
+The code is unchanged from Geoffrey
+Tobin's LaTeX 2.09 original, except for patches that avoid a problem
+with \@setsize, when the package is used with other 2.09 packages
+under LaTeX 2e, and updates to match updates in the original LaTeX
+definitions.
+
+
+Please report any problems to
+https://github.com/latex-package-repositories/setspace/issues
+
diff --git a/macros/latex/contrib/setspace/setspace-doc.pdf b/macros/latex/contrib/setspace/setspace-doc.pdf
new file mode 100644
index 0000000000..b65afdafa8
--- /dev/null
+++ b/macros/latex/contrib/setspace/setspace-doc.pdf
Binary files differ
diff --git a/macros/latex/contrib/setspace/setspace-doc.tex b/macros/latex/contrib/setspace/setspace-doc.tex
new file mode 100644
index 0000000000..1a3371f0e2
--- /dev/null
+++ b/macros/latex/contrib/setspace/setspace-doc.tex
@@ -0,0 +1,66 @@
+\documentclass[a4paper]{article}
+\usepackage{lmodern}
+\usepackage{verbatim}
+\usepackage{setspace}
+\makeatletter
+\def\pkginfo#1 #2 #3\relax{%
+\def\filedate{#1}%
+\def\fileversion{#2}%
+}
+\expandafter\expandafter\expandafter\pkginfo\csname ver@setspace.sty\endcsname\relax
+\makeatother
+\title{The setspace Package\thanks{Currently maintained by David Carlisle and others at\\\texttt{https://github.com/latex-package-repositories/setspace/issues}}}
+\date{\filedate}
+\author{Geoffrey Tobin\and Robin Fairbairns}
+\begin{document}
+
+\maketitle
+
+ Usage:
+
+\begin{verbatim}
+ \documentclass[...]{...}
+ \usepackage{setspace}
+\end{verbatim}
+
+
+ This package (originally based on the \texttt{doublespace} \LaTeX\,2.09 style
+ option (package), created by Stephen Page)
+ provides commands and environments for doing double and
+ one-and-a-half spacing based on the font size.
+
+ Single spacing is the default.
+
+ The commands \verb|\singlespacing|, \verb|\onehalfspacing|, and
+ \verb|\doublespacing|, are for use in the preamble to set the overall
+ spacing for the document. If a different spacing is required then
+ the \verb|\setstretch{baselinestretch}| command can be used in the
+ preamble to set the baselinestretch appropriately. The default
+ spacing with this style option is single spacing.
+
+ Three environments, \verb|singlespace|, \verb|onehalfspace|,
+ and \verb|doublespace|, allow the spacing to be changed
+ within the document. Both the \verb|onehalfspace| and
+ \verb|doublespace| environments are intended to increase the
+ spacing, so the \verb|onehalfspace| environment should not be
+ used in a double spaced document.
+
+ If an increased spacing different from one-and-a-half or
+ double spacing is required then the spacing environment can
+ be used. The \verb|spacing| environment takes one argument
+ which is the larger baselinestretch to use, e.g.,\\
+ \verb|\begin{spacing}{2.5}|.
+
+ \verb|\footins| is adjusted in the same wayas \verb|\parskip|.
+
+
+\clearpage
+\addtolength\textwidth{100pt}
+\addtolength\oddsidemargin{-70pt}
+\setlength\columnseprule{1pt}
+\setlength\columnsep{10pt}
+\twocolumn
+\tiny
+\verbatiminput{setspace.sty}
+
+\end{document}
diff --git a/macros/latex/contrib/setspace/setspace-test.tex b/macros/latex/contrib/setspace/setspace-test.tex
deleted file mode 100644
index 55ccbf216f..0000000000
--- a/macros/latex/contrib/setspace/setspace-test.tex
+++ /dev/null
@@ -1,24 +0,0 @@
-\documentclass{article}
-\usepackage{setspace}
-\usepackage{lipsum}
-\onehalfspacing
-\begin{document}
-\title{merry setspace christmas test}
-\author{who cares?}
-\date{2011-12-19}
-\maketitle
-
-\section{dummy}
-\lipsum[1]
-\subsection{first offspring}
-\lipsum[2]
-\begin{tabular}{llr}
- a & silly & story about latex \\
- silly & a & story
-\end{tabular}
-\end{document}
-
-%%% Local Variables:
-%%% mode: latex
-%%% TeX-master: t
-%%% End:
diff --git a/macros/latex/contrib/setspace/setspace.sty b/macros/latex/contrib/setspace/setspace.sty
index aa97a31ef4..58ed5ac9b7 100644
--- a/macros/latex/contrib/setspace/setspace.sty
+++ b/macros/latex/contrib/setspace/setspace.sty
@@ -1,5 +1,6 @@
% \iffalse meta-comment
%
+% Copyright (C) 2022 by LaTeX Team
% Copyright (C) 2011 by Robin Fairbairns (rf10@cam.ac.uk)
% Copyright (C) 2000 by Geoffrey Tobin
%
@@ -23,23 +24,12 @@
%%% ======================================================================
%%% @LaTeX-style-file{
%%% filename = "setspace.sty",
-%%% version = "6.7a",
-%%% date = "Fri 1 December 2000",
-%%% time = "17:49 UT+11",
-%%% author = "Geoffrey Tobin",
-%%% address = "Department of Electronic Engineering
-%%% Faculty of Science and Technology
-%%% La Trobe University
-%%% Bundoora VIC 3086
-%%% Australia",
-%%% email = "G.Tobin@latrobe.edu.au (Internet)",
-%%% telephone = "(+ 613) 9479-3736",
-%%% FAX = "(+ 613) 9479-3025",
+%%% version = "6.7b",
+%%% date = "4 December 2022",
%%% supported = "yes",
%%% archived = "CTAN",
%%% keywords = "LaTeX package, line spacing",
%%% codetable = "ISO/ASCII",
-%%% checksum = "11793 546 2608 21972",
%%% docstring = "setspace.sty is a LaTeX (2e) package.
%%% Comments and bug reports welcome!
%%%
@@ -204,12 +194,9 @@
%%% requested package options for the three
%%% common spacings.
%%%
-%%% The checksum field above contains a CRC-16
-%%% checksum as the first value, followed by the
-%%% equivalent of the standard UNIX wc (word
-%%% count) utility output of lines, words, and
-%%% characters. This is produced by Robert
-%%% Solovay's checksum utility."
+%%% DPC Guard against \@ptsize not being defined
+%%% https://github.com/rf-latex/setspace/issues/5
+%%%
%%% }
%%% ======================================================================
%% FILE: setspace.sty in SYS2.TEX.PUB.ISULATEX.STYLES
@@ -287,12 +274,12 @@
\@ifundefined{NeedsTeXFormat}{% 2.09 version
\def \filename {setspace.sty}
-\def \filedate {2000/12/01}
-\def \fileversion {6.7a}
+\def \filedate {2022/12/04}
+\def \fileversion {6.7b}
\typeout {Package: `setspace' \fileversion\space <\filedate>}
}{% 2e version
\NeedsTeXFormat {LaTeX2e}[1994/12/01]
-\ProvidesPackage {setspace}[2011/12/19 v6.7a set line spacing]
+\ProvidesPackage {setspace}[2022/12/04 v6.7b set line spacing]
}
% BP: add nodisplayskipstretch option and \setdisplayskipstretch command.
@@ -349,6 +336,8 @@
\newcommand{\onehalfspacing}{%
\setstretch{1.25}% default
+% DPC 6.7b guard \@ptsize
+ \ifx\@ptsize\@undefined\else
\ifcase \@ptsize \relax % 10pt
\setstretch {1.25}%
\or % 11pt
@@ -356,10 +345,13 @@
\or % 12pt
\setstretch {1.241}%
\fi
+ \fi
}
\newcommand{\doublespacing}{%
\setstretch {1.667}% default
+% DPC 6.7b guard \@ptsize
+ \ifx\@ptsize\@undefined\else
\ifcase \@ptsize \relax % 10pt
\setstretch {1.667}%
\or % 11pt
@@ -367,6 +359,7 @@
\or % 12pt
\setstretch {1.655}%
\fi
+ \fi
}
% ** Modification of the LaTeX command \@setsize.
@@ -431,7 +424,7 @@
% GT: Wed 24 Jan 1996: This footnote code was copied from LaTeX and
% modified rather naively. It had to be brought up to date, not only
-% because of LaTeX's new color ability, but also because ther had
+% because of LaTeX's new color ability, but also because there had
% been major changes to this code in LaTeX at least as far back as
% March 1992.
@@ -456,12 +449,16 @@
\splitmaxdepth \dp\strutbox \floatingpenalty \@MM
\hsize\columnwidth
\@parboxrestore
+% DPC 6.7b added from latex.ltx
+ \def\@currentcounter{footnote}%
\protected@edef\@currentlabel{%
\csname p@footnote\endcsname\@thefnmark
}%
\color@begingroup
\@makefntext{%
\rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
+% DPC 6.7b added from latex.ltx
+ \par
\color@endgroup}}
% Minipage footnotes.
@@ -474,11 +471,15 @@
\reset@font\footnotesize
\hsize\columnwidth
\@parboxrestore
+% DPC 6.7b added from latex.ltx
+ \def\@currentcounter{mpfootnote}%
\protected@edef\@currentlabel{%
\csname p@mpfootnote\endcsname\@thefnmark}%
\color@begingroup
\@makefntext{%
\rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
+% DPC 6.7b added from latex.ltx
+ \par
\color@endgroup}}
% ** Line space environments.
diff --git a/macros/latex/contrib/siunitx/CHANGELOG.md b/macros/latex/contrib/siunitx/CHANGELOG.md
index e26a8b74c1..95c60bb247 100644
--- a/macros/latex/contrib/siunitx/CHANGELOG.md
+++ b/macros/latex/contrib/siunitx/CHANGELOG.md
@@ -7,11 +7,18 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
## [Unreleased]
+## [v3.1.11] - 2022-12-05
+
+### Fixed
+- Alignment of exponents without mantissa values (see issue
+ [\#633](https://github.com/josephwright/siunitx/issues/633))
+
## [v3.1.10] - 2022-11-16
### Fixed
- Rounding to uncertainty in some cases (see issue
[\#627](https://github.com/josephwright/siunitx/issues/627))
+
## [v3.1.9] - 2022-10-23
### Added
@@ -1831,7 +1838,8 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
### Added
- First public testing release (as `si`)
-[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.1.10...HEAD
+[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.1.11...HEAD
+[v3.1.11]: https://github.com/josephwright/siunitx/compare/v3.1.10...v3.1.11
[v3.1.10]: https://github.com/josephwright/siunitx/compare/v3.1.9...v3.1.10
[v3.1.9]: https://github.com/josephwright/siunitx/compare/v3.1.8...v3.1.9
[v3.1.8]: https://github.com/josephwright/siunitx/compare/v3.1.7...v3.1.8
diff --git a/macros/latex/contrib/siunitx/siunitx-code.pdf b/macros/latex/contrib/siunitx/siunitx-code.pdf
index a57ecf29bc..07880f9c2d 100644
--- a/macros/latex/contrib/siunitx/siunitx-code.pdf
+++ b/macros/latex/contrib/siunitx/siunitx-code.pdf
Binary files differ
diff --git a/macros/latex/contrib/siunitx/siunitx-number.dtx b/macros/latex/contrib/siunitx/siunitx-number.dtx
index b88e369c08..f08a6a8c0f 100644
--- a/macros/latex/contrib/siunitx/siunitx-number.dtx
+++ b/macros/latex/contrib/siunitx/siunitx-number.dtx
@@ -3081,7 +3081,7 @@
% \begin{macro}[EXP]{\@@_round_uncertainty_check:Nnnnw}
% \begin{macro}[EXP]{\@@_round_uncertainty_aux:nnn}
% \begin{macro}[EXP]{\@@_round_uncertainty:nnnn}
-% \begin{macro}[EXP]{\@@_round_uncertainty:nnnnn}
+% \begin{macro}[EXP]{\@@_round_uncertainty:nnnnnn}
% \begin{macro}[EXP]
% {
% \@@_round_uncertainty_simple:nnnnnn ,
diff --git a/macros/latex/contrib/siunitx/siunitx-table.dtx b/macros/latex/contrib/siunitx/siunitx-table.dtx
index 35dd2161b1..b8f5aea8e3 100644
--- a/macros/latex/contrib/siunitx/siunitx-table.dtx
+++ b/macros/latex/contrib/siunitx/siunitx-table.dtx
@@ -1468,7 +1468,9 @@
% \end{macrocode}
% Finally, we get to the exponent part: the multiplication symbol is
% |#1| and the number itself is |#2|. The code is almost the same as for
-% uncertainties, which allows a shared auxiliary to be used.
+% uncertainties, which allows a shared auxiliary to be used. As |#3| could
+% be entirely empty, there needs to be a bit of work to ensure alignment
+% is retained in all cases.
% \begin{macrocode}
\cs_new_protected:Npn \@@_print_format_auxvii:w
#1 \q_nil #2 \q_mark #3 \q_nil #4 \q_stop
@@ -1477,7 +1479,17 @@
{
\@@_print_format_box:Nn \l_@@_tmp_box { { } #1#2 }
\dim_set:Nn \l_@@_tmp_dim { \box_wd:N \l_@@_tmp_box }
- \@@_print_format_box:Nn \l_@@_tmp_box { { } #3#4 }
+ \@@_print_format_box:Nn \l_@@_tmp_box
+ {
+ \bool_lazy_and:nnT
+ { \l_@@_align_exponent_bool }
+ { \tl_if_blank_p:n {#3} }
+ {
+ \@@_print_format_box:Nn \l_@@_tmp_box { { } #1 { } }
+ \@@_skip:n { \box_wd:N \l_@@_tmp_box }
+ }
+ { } #3#4
+ }
\@@_print_format_after:N \l_@@_align_exponent_bool
}
}
diff --git a/macros/latex/contrib/siunitx/siunitx.dtx b/macros/latex/contrib/siunitx/siunitx.dtx
index d02beaf573..65004d7eb2 100644
--- a/macros/latex/contrib/siunitx/siunitx.dtx
+++ b/macros/latex/contrib/siunitx/siunitx.dtx
@@ -121,7 +121,7 @@
%
% Identify the package and give the over all version information.
% \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2022-11-16} {3.1.10}
+\ProvidesExplPackage {siunitx} {2022-12-05} {3.1.11}
{A comprehensive (SI) units package}
% \end{macrocode}
%
diff --git a/macros/latex/contrib/siunitx/siunitx.pdf b/macros/latex/contrib/siunitx/siunitx.pdf
index 9f1a21c58f..466df8a07c 100644
--- a/macros/latex/contrib/siunitx/siunitx.pdf
+++ b/macros/latex/contrib/siunitx/siunitx.pdf
Binary files differ
diff --git a/macros/latex/contrib/linenoamsmath/README b/obsolete/macros/latex/contrib/linenoamsmath/README
index 7e3cef33bd..7e3cef33bd 100644
--- a/macros/latex/contrib/linenoamsmath/README
+++ b/obsolete/macros/latex/contrib/linenoamsmath/README
diff --git a/macros/latex/contrib/linenoamsmath/linenoamsmath.dtx b/obsolete/macros/latex/contrib/linenoamsmath/linenoamsmath.dtx
index 09c5bb66e5..09c5bb66e5 100644
--- a/macros/latex/contrib/linenoamsmath/linenoamsmath.dtx
+++ b/obsolete/macros/latex/contrib/linenoamsmath/linenoamsmath.dtx
diff --git a/macros/latex/contrib/linenoamsmath/linenoamsmath.ins b/obsolete/macros/latex/contrib/linenoamsmath/linenoamsmath.ins
index 0bf4ed10b1..0bf4ed10b1 100644
--- a/macros/latex/contrib/linenoamsmath/linenoamsmath.ins
+++ b/obsolete/macros/latex/contrib/linenoamsmath/linenoamsmath.ins
diff --git a/macros/latex/contrib/linenoamsmath/linenoamsmath.pdf b/obsolete/macros/latex/contrib/linenoamsmath/linenoamsmath.pdf
index c150b242e9..c150b242e9 100644
--- a/macros/latex/contrib/linenoamsmath/linenoamsmath.pdf
+++ b/obsolete/macros/latex/contrib/linenoamsmath/linenoamsmath.pdf
Binary files differ
diff --git a/support/latexindent/LatexIndent/ModifyLineBreaks.pm b/support/latexindent/LatexIndent/ModifyLineBreaks.pm
index 5d3a915f61..35cb04d35a 100644
--- a/support/latexindent/LatexIndent/ModifyLineBreaks.pm
+++ b/support/latexindent/LatexIndent/ModifyLineBreaks.pm
@@ -317,36 +317,43 @@ sub verbatim_modify_line_breaks {
my $BeginStringLogFile = ${$child}{aliases}{BeginStartsOnOwnLine};
$logger->trace("*$BeginStringLogFile is ${$child}{BeginStartsOnOwnLine} for ${$child}{name}")
if $is_t_switch_active;
- if ( ${$child}{BeginStartsOnOwnLine} == -1 ) {
- # VerbatimStartsOnOwnLine = -1
- if ( ${$self}{body} =~ m/^\h*${$child}{id}/m ) {
- $logger->trace("${$child}{name} begins on its own line, removing leading line break")
- if $is_t_switch_active;
- ${$self}{body} =~ s/(\R|\h)*${$child}{id}/${$child}{id}/s;
- }
- }
- elsif ( ${$child}{BeginStartsOnOwnLine} >= 1 and ${$self}{body} !~ m/^\h*${$child}{id}/m ) {
+ my @polySwitchValues
+ = ( ${$child}{BeginStartsOnOwnLine} == 4 ) ? ( -1, 3 ) : ( ${$child}{BeginStartsOnOwnLine} );
- # VerbatimStartsOnOwnLine = 1, 2 or 3
- my $trailingCharacterToken = q();
- if ( ${$child}{BeginStartsOnOwnLine} == 1 ) {
- $logger->trace("Adding a linebreak at the beginning of ${$child}{begin} (see $BeginStringLogFile)")
- if $is_t_switch_active;
- }
- elsif ( ${$child}{BeginStartsOnOwnLine} == 2 ) {
- $logger->trace(
- "Adding a % at the end of the line that ${$child}{begin} is on, then a linebreak ($BeginStringLogFile == 2)"
- ) if $is_t_switch_active;
- $trailingCharacterToken = "%" . $self->add_comment_symbol;
+ foreach (@polySwitchValues) {
+ if ( $_ == -1 ) {
+
+ # VerbatimStartsOnOwnLine = -1
+ if ( ${$self}{body} =~ m/^\h*${$child}{id}/m ) {
+ $logger->trace("${$child}{name} begins on its own line, removing leading line break")
+ if $is_t_switch_active;
+ ${$self}{body} =~ s/(\R|\h)*${$child}{id}/${$child}{id}/s;
+ }
}
- elsif ( ${$child}{BeginStartsOnOwnLine} == 3 ) {
- $logger->trace(
- "Adding a blank line at the end of the line that ${$child}{begin} is on, then a linebreak ($BeginStringLogFile == 3)"
- ) if $is_t_switch_active;
- $trailingCharacterToken = "\n";
+ elsif ( $_ >= 1 and ${$self}{body} !~ m/^\h*${$child}{id}/m ) {
+
+ # VerbatimStartsOnOwnLine = 1, 2 or 3
+ my $trailingCharacterToken = q();
+ if ( $_ == 1 ) {
+ $logger->trace(
+ "Adding a linebreak at the beginning of ${$child}{begin} (see $BeginStringLogFile)")
+ if $is_t_switch_active;
+ }
+ elsif ( $_ == 2 ) {
+ $logger->trace(
+ "Adding a % at the end of the line that ${$child}{begin} is on, then a linebreak ($BeginStringLogFile == 2)"
+ ) if $is_t_switch_active;
+ $trailingCharacterToken = "%" . $self->add_comment_symbol;
+ }
+ elsif ( $_ == 3 ) {
+ $logger->trace(
+ "Adding a blank line at the end of the line that ${$child}{begin} is on, then a linebreak ($BeginStringLogFile == 3)"
+ ) if $is_t_switch_active;
+ $trailingCharacterToken = "\n";
+ }
+ ${$self}{body} =~ s/\h*${$child}{id}/$trailingCharacterToken\n${$child}{id}/s;
}
- ${$self}{body} =~ s/\h*${$child}{id}/$trailingCharacterToken\n${$child}{id}/s;
}
}
diff --git a/support/latexindent/LatexIndent/Version.pm b/support/latexindent/LatexIndent/Version.pm
index 04aaf11759..9773c55fcd 100644
--- a/support/latexindent/LatexIndent/Version.pm
+++ b/support/latexindent/LatexIndent/Version.pm
@@ -20,6 +20,6 @@ use warnings;
use Exporter qw/import/;
our @EXPORT_OK = qw/$versionNumber $versionDate/;
-our $versionNumber = '3.19';
-our $versionDate = '2022-10-30';
+our $versionNumber = '3.19.1';
+our $versionDate = '2022-12-04';
1
diff --git a/support/latexindent/README b/support/latexindent/README
index 44ef79a17e..52b5bfcce7 100644
--- a/support/latexindent/README
+++ b/support/latexindent/README
@@ -1,5 +1,5 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- latexindent.pl, version 3.19, 2022-10-30
+ latexindent.pl, version 3.19.1, 2022-12-04
PERL script to indent code within environments, and align delimited
environments in .tex files.
diff --git a/support/latexindent/bin/linux/latexindent b/support/latexindent/bin/linux/latexindent
index 1533c2587d..248757a3b5 100644
--- a/support/latexindent/bin/linux/latexindent
+++ b/support/latexindent/bin/linux/latexindent
Binary files differ
diff --git a/support/latexindent/bin/macos/latexindent b/support/latexindent/bin/macos/latexindent
index 3207ce9a2b..e685596550 100644
--- a/support/latexindent/bin/macos/latexindent
+++ b/support/latexindent/bin/macos/latexindent
Binary files differ
diff --git a/support/latexindent/defaultSettings.yaml b/support/latexindent/defaultSettings.yaml
index 91f6fb9a70..c61de167a9 100644
--- a/support/latexindent/defaultSettings.yaml
+++ b/support/latexindent/defaultSettings.yaml
@@ -1,4 +1,4 @@
-# defaultSettings.yaml for latexindent.pl, version 3.19, 2022-10-30
+# defaultSettings.yaml for latexindent.pl, version 3.19.1, 2022-12-04
# a script that aims to
# beautify .tex, .sty, .cls files
#
diff --git a/support/latexindent/documentation/latexindent-yaml-schema.json b/support/latexindent/documentation/latexindent-yaml-schema.json
index 26a9a63798..b8492f4b15 100644
--- a/support/latexindent/documentation/latexindent-yaml-schema.json
+++ b/support/latexindent/documentation/latexindent-yaml-schema.json
@@ -2,7 +2,7 @@
"$schema": "http://json-schema.org/schema",
"$id": "latexindent-yaml-schema.json",
"title": "latexindent.pl YAML schema",
- "description": "latexindent.pl YAML schema helper, V3.19 2022-10-30",
+ "description": "latexindent.pl YAML schema helper, V3.19.1 2022-12-04",
"type": "object",
"properties": {
"fileExtensionPreference": {
diff --git a/support/latexindent/documentation/latexindent.pdf b/support/latexindent/documentation/latexindent.pdf
index f42e874c8c..383437f181 100644
--- a/support/latexindent/documentation/latexindent.pdf
+++ b/support/latexindent/documentation/latexindent.pdf
Binary files differ
diff --git a/support/latexindent/documentation/latexindent.tex b/support/latexindent/documentation/latexindent.tex
index 4d7a6dd87b..d58def5ed8 100644
--- a/support/latexindent/documentation/latexindent.tex
+++ b/support/latexindent/documentation/latexindent.tex
@@ -289,10 +289,12 @@
% command shell
\newtcblisting{commandshell}{colback=black,colupper=white,colframe=yellow!75!black,
- listing only,listing options={style=tcblatex,language=sh,
+ listing only,
+ listing options={style=tcblatex,language=sh,
morekeywords={latexindent,pl},
keywordstyle=\color{blue!35!white}\bfseries,
},
+ before=\par,
listing engine=listings,
left=0cm,
every listing line={\textcolor{red}{\small\ttfamily\fontseries{b}\selectfont cmh:$\sim$\$ }}}
@@ -561,28 +563,27 @@
\newtcolorbox[auto counter]{example}{breakable,
enhanced jigsaw,
- before skip=6pt,after skip=6pt,
+ before skip balanced,
+ after skip balanced,
frame hidden,
- title={\llap{Example~\thetcbcounter\hspace{3mm}}},
- fonttitle=\bfseries,
+ %
+ % title stuff
+ %
+ title={example~\thetcbcounter},
+ fonttitle=\bfseries\sffamily,
+ detach title,
+ before upper={\llap{\tcbtitle\hspace{5mm}}},
coltitle=black,
- attach title to upper,
- grow to left by=5mm,
- top=3mm,
+ colback=white,
+ grow to left by=6mm,
+ %
+ % circles and line by the side
+ %
overlay unbroken={%
- \draw[thick,cmhgray] ([xshift=3mm]interior.north east)--([xshift=3mm]interior.south east);
- \path [fill=cmhgray] ([xshift=3mm]interior.north east) circle (.5mm);
- \path [fill=cmhgray] ([xshift=3mm]interior.south east) circle (1mm);
- },
- overlay first={%
- \draw[thick,cmhgray] ([xshift=3mm]interior.north east)--([xshift=3mm]interior.south east);
- \path [fill=cmhgray] ([xshift=3mm]interior.north east) circle (.5mm);
- %\path [draw=cmhgray,fill=white] ([xshift=3mm]interior.south east) circle (.5mm);
+ \path [fill=black] ([xshift=1mm,yshift=3mm]interior.south east) node{\hbox{\rule{1ex}{1ex}}};
},
overlay last={%
- \draw[thick,cmhgray] ([xshift=3mm]interior.north east)--([xshift=3mm]interior.south east);
- %\path [fill=white,draw=cmhgray] ([xshift=3mm]interior.north east) circle (.5mm);
- \path [fill=cmhgray] ([xshift=3mm]interior.south east) circle (1mm);
+ \path [fill=black] ([xshift=1mm,yshift=3mm]interior.south east) node{\hbox{\rule{1ex}{1ex}}};
},
parbox=false,
}
@@ -845,9 +846,11 @@
\subsection{Quick start}\label{sec:quickstart}
If you'd like to get started with \texttt{latexindent.pl} then simply type
+
\begin{commandshell}
latexindent.pl myfile.tex
\end{commandshell}
+
from the command line.
We give an introduction to \texttt{latexindent.pl} using \cref{lst:quick-start}; there is
@@ -857,107 +860,123 @@ latexindent.pl myfile.tex
\cmhlistingsfromfile{demonstrations/quick-start.tex}{\texttt{quick-start.tex}}{lst:quick-start}
Running
+
\begin{commandshell}
latexindent.pl quick-start.tex
\end{commandshell}
+
gives \cref{lst:quick-start-default}.
\cmhlistingsfromfile{demonstrations/quick-start-default.tex}{\texttt{quick-start-default.tex}}{lst:quick-start-default}
\begin{example}
- Running
- \begin{commandshell}
+ Running
+
+ \begin{commandshell}
latexindent.pl -l quick-start1.yaml quick-start.tex
\end{commandshell}
- gives \cref{lst:quick-start-mod1}.
- \begin{cmhtcbraster}
- \cmhlistingsfromfile{demonstrations/quick-start1.yaml}[yaml-TCB]{\texttt{quick-start1.yaml}}{lst:quick-start1yaml}
- \cmhlistingsfromfile[showspaces=true]{demonstrations/quick-start-mod1.tex}{\texttt{quick-start-mod1.tex}}{lst:quick-start-mod1}
- \end{cmhtcbraster}
+ gives \cref{lst:quick-start-mod1}.
+
+ \begin{cmhtcbraster}
+ \cmhlistingsfromfile{demonstrations/quick-start1.yaml}[yaml-TCB]{\texttt{quick-start1.yaml}}{lst:quick-start1yaml}
+ \cmhlistingsfromfile[showspaces=true]{demonstrations/quick-start-mod1.tex}{\texttt{quick-start-mod1.tex}}{lst:quick-start-mod1}
+ \end{cmhtcbraster}
\end{example}
\begin{example}
- Running
- \begin{commandshell}
+ Running
+
+ \begin{commandshell}
latexindent.pl -l quick-start2.yaml quick-start.tex
\end{commandshell}
- gives \cref{lst:quick-start-mod2}.
- \begin{cmhtcbraster}
- \cmhlistingsfromfile{demonstrations/quick-start2.yaml}[yaml-TCB]{\texttt{quick-start2.yaml}}{lst:quick-start2yaml}
- \cmhlistingsfromfile[showspaces=true]{demonstrations/quick-start-mod2.tex}{\texttt{quick-start-mod2.tex}}{lst:quick-start-mod2}
- \end{cmhtcbraster}
+ gives \cref{lst:quick-start-mod2}.
+
+ \begin{cmhtcbraster}
+ \cmhlistingsfromfile{demonstrations/quick-start2.yaml}[yaml-TCB]{\texttt{quick-start2.yaml}}{lst:quick-start2yaml}
+ \cmhlistingsfromfile[showspaces=true]{demonstrations/quick-start-mod2.tex}{\texttt{quick-start-mod2.tex}}{lst:quick-start-mod2}
+ \end{cmhtcbraster}
\end{example}
\begin{example}
- Running
- \begin{commandshell}
+ Running
+
+ \begin{commandshell}
latexindent.pl -l quick-start3.yaml quick-start.tex
\end{commandshell}
- gives \cref{lst:quick-start-mod3}.
- \begin{cmhtcbraster}
- \cmhlistingsfromfile{demonstrations/quick-start3.yaml}[yaml-TCB]{\texttt{quick-start3.yaml}}{lst:quick-start3yaml}
- \cmhlistingsfromfile{demonstrations/quick-start-mod3.tex}{\texttt{quick-start-mod3.tex}}{lst:quick-start-mod3}
- \end{cmhtcbraster}
+ gives \cref{lst:quick-start-mod3}.
+
+ \begin{cmhtcbraster}
+ \cmhlistingsfromfile{demonstrations/quick-start3.yaml}[yaml-TCB]{\texttt{quick-start3.yaml}}{lst:quick-start3yaml}
+ \cmhlistingsfromfile{demonstrations/quick-start-mod3.tex}{\texttt{quick-start-mod3.tex}}{lst:quick-start-mod3}
+ \end{cmhtcbraster}
\end{example}
\begin{example}
- Running
- \begin{commandshell}
+ Running
+
+ \begin{commandshell}
latexindent.pl -m -l quick-start4.yaml quick-start.tex
\end{commandshell}
- gives \cref{lst:quick-start-mod4}.
- \begin{cmhtcbraster}
- \cmhlistingsfromfile{demonstrations/quick-start4.yaml}[MLB-TCB]{\texttt{quick-start4.yaml}}{lst:quick-start4yaml}
- \cmhlistingsfromfile{demonstrations/quick-start-mod4.tex}{\texttt{quick-start-mod4.tex}}{lst:quick-start-mod4}
- \end{cmhtcbraster}
- Full details of text wrapping in \cref{subsec:textwrapping}.
+ gives \cref{lst:quick-start-mod4}.
+
+ \begin{cmhtcbraster}
+ \cmhlistingsfromfile{demonstrations/quick-start4.yaml}[MLB-TCB]{\texttt{quick-start4.yaml}}{lst:quick-start4yaml}
+ \cmhlistingsfromfile{demonstrations/quick-start-mod4.tex}{\texttt{quick-start-mod4.tex}}{lst:quick-start-mod4}
+ \end{cmhtcbraster}
+ Full details of text wrapping in \cref{subsec:textwrapping}.
\end{example}
\begin{example}
- Running
- \begin{commandshell}
+ Running
+
+ \begin{commandshell}
latexindent.pl -m -l quick-start5.yaml quick-start.tex
\end{commandshell}
- gives \cref{lst:quick-start-mod5}.
- \begin{cmhtcbraster}
- \cmhlistingsfromfile{demonstrations/quick-start5.yaml}[MLB-TCB]{\texttt{quick-start5.yaml}}{lst:quick-start5yaml}
- \cmhlistingsfromfile{demonstrations/quick-start-mod5.tex}{\texttt{quick-start-mod5.tex}}{lst:quick-start-mod5}
- \end{cmhtcbraster}
- Full details of text wrapping in \cref{subsec:textwrapping}.
+ gives \cref{lst:quick-start-mod5}.
+
+ \begin{cmhtcbraster}
+ \cmhlistingsfromfile{demonstrations/quick-start5.yaml}[MLB-TCB]{\texttt{quick-start5.yaml}}{lst:quick-start5yaml}
+ \cmhlistingsfromfile{demonstrations/quick-start-mod5.tex}{\texttt{quick-start-mod5.tex}}{lst:quick-start-mod5}
+ \end{cmhtcbraster}
+ Full details of text wrapping in \cref{subsec:textwrapping}.
\end{example}
\begin{example}
- Running
- \begin{commandshell}
+ Running
+
+ \begin{commandshell}
latexindent.pl -m -l quick-start6.yaml quick-start.tex
\end{commandshell}
- gives \cref{lst:quick-start-mod6}.
- \begin{cmhtcbraster}
- \cmhlistingsfromfile{demonstrations/quick-start6.yaml}[MLB-TCB]{\texttt{quick-start6.yaml}}{lst:quick-start6yaml}
- \cmhlistingsfromfile{demonstrations/quick-start-mod6.tex}{\texttt{quick-start-mod6.tex}}{lst:quick-start-mod6}
- \end{cmhtcbraster}
- This is an example of a \emph{poly-switch}; full details of \emph{poly-switches} are
- covered in \cref{sec:poly-switches}.
+ gives \cref{lst:quick-start-mod6}.
+
+ \begin{cmhtcbraster}
+ \cmhlistingsfromfile{demonstrations/quick-start6.yaml}[MLB-TCB]{\texttt{quick-start6.yaml}}{lst:quick-start6yaml}
+ \cmhlistingsfromfile{demonstrations/quick-start-mod6.tex}{\texttt{quick-start-mod6.tex}}{lst:quick-start-mod6}
+ \end{cmhtcbraster}
+ This is an example of a \emph{poly-switch}; full details of \emph{poly-switches} are
+ covered in \cref{sec:poly-switches}.
\end{example}
\begin{example}
- Running
- \begin{commandshell}
+ Running
+
+ \begin{commandshell}
latexindent.pl -m -l quick-start7.yaml quick-start.tex
\end{commandshell}
- gives \cref{lst:quick-start-mod7}.
- \begin{cmhtcbraster}
- \cmhlistingsfromfile{demonstrations/quick-start7.yaml}[MLB-TCB]{\texttt{quick-start7.yaml}}{lst:quick-start7yaml}
- \cmhlistingsfromfile{demonstrations/quick-start-mod7.tex}{\texttt{quick-start-mod7.tex}}{lst:quick-start-mod7}
- \end{cmhtcbraster}
- Full details of \emph{poly-switches} are covered in \cref{sec:poly-switches}.
+ gives \cref{lst:quick-start-mod7}.
+
+ \begin{cmhtcbraster}
+ \cmhlistingsfromfile{demonstrations/quick-start7.yaml}[MLB-TCB]{\texttt{quick-start7.yaml}}{lst:quick-start7yaml}
+ \cmhlistingsfromfile{demonstrations/quick-start-mod7.tex}{\texttt{quick-start-mod7.tex}}{lst:quick-start-mod7}
+ \end{cmhtcbraster}
+ Full details of \emph{poly-switches} are covered in \cref{sec:poly-switches}.
\end{example}
\subsection{Required perl modules}
@@ -969,9 +988,11 @@ BEGIN failed--compilation aborted at helloworld.pl line 10.
\end{cmhlistings}
\texttt{latexindent.pl} ships with a script to help with this process; if you run the
following script, you should be prompted to install the appropriate modules.
+
\begin{commandshell}
perl latexindent-module-installer.pl
\end{commandshell}
+
You might also like to see
\href{https://stackoverflow.com/questions/19590042/error-cant-locate-file-homedir-pm-in-inc}{https://stackoverflow.com/questions/19590042/error-cant-locate-file-homedir-pm-in-inc},
for example, as well as \vref{sec:requiredmodules}.
@@ -1152,19 +1173,23 @@ perl latexindent-module-installer.pl
\flagbox{-v, --version}
\index{switches!-v, --version definition and details}
\announce{2017-06-25}{version}
+
\begin{commandshell}
latexindent.pl -v
latexindent.pl --version
\end{commandshell}
+
This will output only the version number to the terminal.
\flagbox{-vv, --vversion}
\index{switches!-vv, --vversion definition and details}
\announce{2022-01-08}{vversion switch}
+
\begin{commandshell}
latexindent.pl -vv
latexindent.pl --vversion
\end{commandshell}
+
This will output \emph{verbose} version details to the terminal, including the location
of \texttt{latexindent.pl} and \texttt{defaultSettings.yaml}.
@@ -1178,6 +1203,7 @@ latexindent.pl --help
As above this will output a welcome message to the terminal, including the version number
and available options.
+
\begin{commandshell}
latexindent.pl myfile.tex
\end{commandshell}
@@ -1188,14 +1214,17 @@ latexindent.pl myfile.tex
You can \announce{2022-03-25}{batches of files demonstration} instruct
\texttt{latexindent.pl} to operate on multiple (batches) of files, for example
+
\begin{commandshell}
latexindent.pl myfile1.tex myfile2.tex
\end{commandshell}
+
Full details are given in \vref{sec:batches}.
\flagbox{-w, --overwrite}
\index{switches!-w, --overwrite definition and details}
\index{backup files!overwrite switch, -w}
+
\begin{commandshell}
latexindent.pl -w myfile.tex
latexindent.pl --overwrite myfile.tex
@@ -1216,6 +1245,7 @@ latexindent.pl myfile.tex --overwrite
\index{switches!-wd, --overwriteIfDifferent definition and details}
\index{backup files!overwriteIfDifferent switch, -wd}
\announce{2022-03-25}{overwriteIfDifferent switch}
+
\begin{commandshell}
latexindent.pl -wd myfile.tex
latexindent.pl --overwriteIfDifferent myfile.tex
@@ -1232,6 +1262,7 @@ latexindent.pl myfile.tex --overwriteIfDifferent
\flagbox{-o=output.tex,--outputfile=output.tex}
\index{switches!-o, --output definition and details}
+
\begin{commandshell}
latexindent.pl -o=output.tex myfile.tex
latexindent.pl myfile.tex -o=output.tex
@@ -1249,6 +1280,7 @@ latexindent.pl --outputfile output.tex myfile.tex
\texttt{-o} switch takes priority over it.
Note that using \texttt{-o} as above is equivalent to using
+
\begin{commandshell}
latexindent.pl myfile.tex > output.tex
\end{commandshell}
@@ -1257,6 +1289,7 @@ latexindent.pl myfile.tex > output.tex
extension; in \announce{2017-06-25}{upgrade to -o switch} this case,
\texttt{latexindent.pl} will use the extension from the original file. For example, the
following two calls to \texttt{latexindent.pl} are equivalent:%
+
\begin{commandshell}
latexindent.pl myfile.tex -o=output
latexindent.pl myfile.tex -o=output.tex
@@ -1266,6 +1299,7 @@ latexindent.pl myfile.tex -o=output.tex
\announce{2017-06-25}{+ sign in o switch} concatenate the name of the input file and the
text given to the \texttt{-o} switch. For example, the following two calls to
\texttt{latexindent.pl} are equivalent:%
+
\begin{commandshell}
latexindent.pl myfile.tex -o=+new
latexindent.pl myfile.tex -o=myfilenew.tex
@@ -1275,29 +1309,36 @@ latexindent.pl myfile.tex -o=myfilenew.tex
\announce{2017-06-25}{++ in o switch} of your output file; this tells
\texttt{latexindent.pl} to search successively for the name of your output file
concatenated with $0, 1, \ldots$ while the name of the output file exists. For example,%
+
\begin{commandshell}
latexindent.pl myfile.tex -o=output++
\end{commandshell}
+
tells \texttt{latexindent.pl} to output to \texttt{output0.tex}, but if it exists then
output to \texttt{output1.tex}, and so on.
Calling \texttt{latexindent.pl} with simply
+
\begin{commandshell}
latexindent.pl myfile.tex -o=++
\end{commandshell}
+
tells it to output to \texttt{myfile0.tex}, but if it exists then output to
\texttt{myfile1.tex} and so on.
The \texttt{+} and \texttt{++} feature of the \texttt{-o} switch can be combined; for
example, calling
+
\begin{commandshell}
latexindent.pl myfile.tex -o=+out++
\end{commandshell}
+
tells \texttt{latexindent.pl} to output to \texttt{myfileout0.tex}, but if it exists,
then try \texttt{myfileout1.tex}, and so on.
There is no need to specify a file extension when using the \texttt{++} feature, but if
you wish to, then you should include it \emph{after} the \texttt{++} symbols, for example
+
\begin{commandshell}
latexindent.pl myfile.tex -o=+out++.tex
\end{commandshell}
@@ -1305,6 +1346,7 @@ latexindent.pl myfile.tex -o=+out++.tex
See \vref{app:differences} for details of how the interface has changed from Version 2.2
to Version 3.0 for this flag. \flagbox{-s, --silent} \index{switches!-s, --silent
definition and details}
+
\begin{commandshell}
latexindent.pl -s myfile.tex
latexindent.pl myfile.tex -s
@@ -1314,6 +1356,7 @@ latexindent.pl myfile.tex -s
\flagbox{-t, --trace}
\index{switches!-t, --trace definition and details}
+
\begin{commandshell}
latexindent.pl -t myfile.tex
latexindent.pl myfile.tex -t
@@ -1328,6 +1371,7 @@ latexindent.pl myfile.tex -t
\flagbox{-tt, --ttrace}
\index{switches!-tt, --ttrace definition and details}
+
\begin{commandshell}
latexindent.pl -tt myfile.tex
latexindent.pl myfile.tex -tt
@@ -1340,6 +1384,7 @@ latexindent.pl myfile.tex -tt
\flagbox{-l, --local[=myyaml.yaml,other.yaml,...]}
\index{switches!-l, --local definition and details}
+
\begin{commandshell}
latexindent.pl -l myfile.tex
latexindent.pl -l=myyaml.yaml myfile.tex
@@ -1366,48 +1411,61 @@ latexindent.pl myfile.tex -l=first.yaml,second.yaml,third.yaml
the current working directory that is \emph{not} called \texttt{localSettings.yaml}.
\announce{2017-08-21}*{-l switch absolute paths} In fact, you can specify both
\emph{relative} and \emph{absolute paths} for your YAML files; for example%
+
\begin{commandshell}
latexindent.pl -l=../../myyaml.yaml myfile.tex
latexindent.pl -l=/home/cmhughes/Desktop/myyaml.yaml myfile.tex
latexindent.pl -l=C:\Users\cmhughes\Desktop\myyaml.yaml myfile.tex
\end{commandshell}
+
You will find a lot of other explicit demonstrations of how to use the \texttt{-l} switch
throughout this documentation,
You can call the \texttt{-l} switch with a `+' symbol either before or after
\announce{2017-06-25}{+ sign with -l switch} another YAML file; for example:
+
\begin{commandshell}
latexindent.pl -l=+myyaml.yaml myfile.tex
latexindent.pl -l "+ myyaml.yaml" myfile.tex
latexindent.pl -l=myyaml.yaml+ myfile.tex
\end{commandshell}
+
which translate, respectively, to
+
\begin{commandshell}
latexindent.pl -l=localSettings.yaml,myyaml.yaml myfile.tex
latexindent.pl -l=localSettings.yaml,myyaml.yaml myfile.tex
latexindent.pl -l=myyaml.yaml,localSettings.yaml myfile.tex
\end{commandshell}
+
Note that the following is \emph{not} allowed:
+
\begin{commandshell}
latexindent.pl -l+myyaml.yaml myfile.tex
\end{commandshell}
+
and
+
\begin{commandshell}
latexindent.pl -l + myyaml.yaml myfile.tex
\end{commandshell}
+
will \emph{only} load \texttt{localSettings.yaml}, and \texttt{myyaml.yaml} will be
ignored. If you wish to use spaces between any of the YAML settings, then you must wrap
the entire list of YAML files in quotes, as demonstrated above.
You may also choose to omit the \texttt{yaml} extension, such as \announce{2017-06-25}{no
extension for -l switch}%
+
\begin{commandshell}
latexindent.pl -l=localSettings,myyaml myfile.tex
\end{commandshell}
+
\flagbox{-y, --yaml=yaml settings}
\index{switches!-y, --yaml definition and details}
\index{indentation!default}
\index{indentation!defaultIndent using -y switch}
+
\begin{commandshell}
latexindent.pl myfile.tex -y="defaultIndent: ' '"
latexindent.pl myfile.tex -y="defaultIndent: ' ',maximumIndentation:' '"
@@ -1415,6 +1473,7 @@ latexindent.pl myfile.tex -y="indentRules: one: '\t\t\t\t'"
latexindent.pl myfile.tex -y='modifyLineBreaks:environments:EndStartsOnOwnLine:3' -m
latexindent.pl myfile.tex -y='modifyLineBreaks:environments:one:EndStartsOnOwnLine:3' -m
\end{commandshell}
+
\label{page:yamlswitch}You%
\announce{2017-08-21}{the -y switch} can specify YAML settings from the command line
using the \texttt{-y} or \texttt{--yaml} switch; sample demonstrations are given above.
@@ -1425,6 +1484,7 @@ latexindent.pl myfile.tex -y='modifyLineBreaks:environments:one:EndStartsOnOwnLi
Any settings specified via this switch will be loaded \emph{after} any specified using
the \texttt{-l} switch. This is discussed further in \vref{sec:loadorder}. \flagbox{-d,
--onlydefault} \index{switches!-d, --onlydefault definition and details}
+
\begin{commandshell}
latexindent.pl -d myfile.tex
\end{commandshell}
@@ -1441,6 +1501,7 @@ latexindent.pl -d myfile.tex
\flagbox{-c, --cruft=<directory>}
\index{switches!-c, --cruft definition and details}
+
\begin{commandshell}
latexindent.pl -c=/path/to/directory/ myfile.tex
\end{commandshell}
@@ -1451,6 +1512,7 @@ latexindent.pl -c=/path/to/directory/ myfile.tex
\flagbox{-g, --logfile=<name of log file>}
\index{switches!-g, --logfile definition and details}
+
\begin{commandshell}
latexindent.pl -g=other.log myfile.tex
latexindent.pl -g other.log myfile.tex
@@ -1465,22 +1527,26 @@ latexindent.pl myfile.tex -g other.log
\announce{2021-05-07}{log file creation updated} If \texttt{latexindent.pl} can not open
the log file that you specify, then the script will operate, and no log file will be
produced; this might be helpful to users who wish to specify the following, for example
+
\begin{commandshell}
latexindent.pl -g /dev/null myfile.tex
\end{commandshell}
\flagbox{-sl, --screenlog}
\index{switches!-sl, --screenlog definition and details}
+
\begin{commandshell}
latexindent.pl -sl myfile.tex
latexindent.pl -screenlog myfile.tex
\end{commandshell}
+
Using this \announce{2018-01-13}{screenlog switch created} option tells
\texttt{latexindent.pl} to output the log file to the screen, as well as to your chosen
log file.%
\flagbox{-m, --modifylinebreaks}
\index{switches!-m, --modifylinebreaks definition and details}
+
\begin{commandshell}
latexindent.pl -m myfile.tex
latexindent.pl -modifylinebreaks myfile.tex
@@ -1491,15 +1557,19 @@ latexindent.pl -modifylinebreaks myfile.tex
\texttt{latexindent.pl} can also be called on a file without the file extension, for
example
+
\begin{commandshell}
latexindent.pl myfile
\end{commandshell}
+
and in which case, you can specify the order in which extensions are searched for; see
\vref{lst:fileExtensionPreference} for full details. \flagbox{STDIN}
+
\begin{commandshell}
cat myfile.tex | latexindent.pl
cat myfile.tex | latexindent.pl -
\end{commandshell}
+
\texttt{latexindent.pl} will%
\announce{2018-01-13}{STDIN allowed} allow input from STDIN, which means that you can
pipe output from other commands directly into the script. For example assuming that you
@@ -1508,6 +1578,7 @@ cat myfile.tex | latexindent.pl -
If you wish to use this feature with your own local settings, via the \texttt{-l} switch,
then you should finish your call to \texttt{latexindent.pl} with a \texttt{-} sign:
+
\begin{commandshell}
cat myfile.tex | latexindent.pl -l=mysettings.yaml -
\end{commandshell}
@@ -1515,6 +1586,7 @@ cat myfile.tex | latexindent.pl -l=mysettings.yaml -
Similarly, if you \announce{2018-01-13}*{no options/filename updated} simply type
\texttt{latexindent.pl} at the command line, then it will expect (STDIN) input from the
command line.%
+
\begin{commandshell}
latexindent.pl
\end{commandshell}
@@ -1527,10 +1599,12 @@ latexindent.pl
to signify that your input has finished. Thanks to \cite{xu-cheng} for an update to this
feature. \flagbox{-r, --replacement} \index{switches!-r, --replacement definition and
details}
+
\begin{commandshell}
latexindent.pl -r myfile.tex
latexindent.pl -replacement myfile.tex
\end{commandshell}
+
You can \announce{2019-07-13}{replacement mode switch} call \texttt{latexindent.pl} with
the \texttt{-r} switch to instruct it to perform replacements/substitutions on your file;
full details and examples are given in \vref{sec:replacements}. \index{verbatim!rv,
@@ -1538,10 +1612,12 @@ latexindent.pl -replacement myfile.tex
\flagbox{-rv, --replacementrespectverb}
\index{switches!-rv, --replacementrespectverb definition and details}
+
\begin{commandshell}
latexindent.pl -rv myfile.tex
latexindent.pl -replacementrespectverb myfile.tex
\end{commandshell}
+
You can \announce{2019-07-13}{replacement mode switch, respecting verbatim} instruct
\texttt{latexindent.pl} to perform replacements/substitutions by using the \texttt{-rv}
switch, but will \emph{respect verbatim code blocks}; full details and examples are given
@@ -1549,10 +1625,12 @@ latexindent.pl -replacementrespectverb myfile.tex
\flagbox{-rr, --onlyreplacement}
\index{switches!-rr, --onlyreplacement definition and details}
+
\begin{commandshell}
latexindent.pl -rr myfile.tex
latexindent.pl -onlyreplacement myfile.tex
\end{commandshell}
+
You can \announce{2019-07-13}{replacement (only) mode switch} instruct
\texttt{latexindent.pl} to skip all of its other indentation operations and \emph{only}
perform replacements/substitutions by using the \texttt{-rr} switch; full details and
@@ -1560,10 +1638,12 @@ latexindent.pl -onlyreplacement myfile.tex
\flagbox{-k, --check}
\index{switches!-k, --check definition and details}
+
\begin{commandshell}
latexindent.pl -k myfile.tex
latexindent.pl -check myfile.tex
\end{commandshell}
+
You can \announce{2021-09-16}{-k,-check switch} instruct \texttt{latexindent.pl} to check
if the text after indentation matches that given in the original file.%
@@ -1584,20 +1664,24 @@ latexindent.pl -check myfile.tex
\flagbox{-kv, --checkv}
\index{switches!-kv, --checkv definition and details}
+
\begin{commandshell}
latexindent.pl -kv myfile.tex
latexindent.pl -checkv myfile.tex
\end{commandshell}
+
\announce{2021-09-16}{-kv, -checkv: check verbose switch} The \texttt{check verbose}
switch is exactly the same as the \texttt{-k} switch, except that it is \emph{verbose},
and it will output the (simple) diff to the terminal, as well as to \texttt{indent.log}.
\flagbox{-n, --lines=MIN-MAX}
\index{switches!-n, --lines definition and details}
+
\begin{commandshell}
latexindent.pl -n 5-8 myfile.tex
latexindent.pl -lines 5-8 myfile.tex
\end{commandshell}
+
\announce{2021-09-16}{-n, -lines switch} The \texttt{lines} switch instructs
\texttt{latexindent.pl} to operate only on specific line ranges within
\texttt{myfile.tex}.
@@ -1606,9 +1690,11 @@ latexindent.pl -lines 5-8 myfile.tex
\flagbox{--GCString}
\index{switches!--GCString}
+
\begin{commandshell}
latexindent.pl --GCString myfile.tex
\end{commandshell}
+
\announce{2022-03-25}{GCString switch} instructs \texttt{latexindent.pl} to load the
\texttt{Unicode::GCString} module. This should only be necessary if you find that the
alignment at ampersand routine (described in \cref{subsec:align-at-delimiters}) does not
@@ -1622,9 +1708,11 @@ latexindent.pl --GCString myfile.tex
\subsection{Summary of exit codes}
\index{exit code!summary}
Assuming that you call \texttt{latexindent.pl} on \texttt{myfile.tex}
+
\begin{commandshell}
latexindent.pl myfile.tex
\end{commandshell}
+
then \texttt{latexindent.pl} can exit with the exit codes given in \cref{tab:exit-codes}.
\begin{table}[!htb]
@@ -1746,9 +1834,11 @@ lookForAlignDelims:
\announce{2021-03-14}*{-l
switch: localSettings and friends} example, if you use the following command
\index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl -l myfile.tex
\end{commandshell}
+
then \texttt{latexindent.pl} will search for and then, assuming they exist, load each of
the following files in the following order:
\begin{enumerate}
@@ -1766,6 +1856,7 @@ latexindent.pl -l myfile.tex
If you'd prefer to name your \texttt{localSettings.yaml} file something different, (say,
\texttt{mysettings.yaml} as in \cref{lst:mysettings}) then you can call
\texttt{latexindent.pl} using, for example,
+
\begin{commandshell}
latexindent.pl -l=mysettings.yaml myfile.tex
\end{commandshell}
@@ -1797,21 +1888,27 @@ verbatimEnvironments:
specify the settings from \cref{lst:localSettings} using the \texttt{-y} switch, then you
could use the following command:
\index{verbatim!verbatimEnvironments demonstration (-y switch)}
+
\begin{commandshell}
latexindent.pl -y="verbatimEnvironments:cmhenvironment:0;myenv:1" myfile.tex
\end{commandshell}
+
Note the use of \texttt{;} to specify another field within \texttt{verbatimEnvironments}.
This is shorthand, and equivalent, to using the following command: \index{switches!-y
demonstration}
+
\begin{commandshell}
latexindent.pl -y="verbatimEnvironments:cmhenvironment:0,verbatimEnvironments:myenv:1" myfile.tex
\end{commandshell}
+
You may, of course, specify settings using the \texttt{-y} switch as well as, for
example, settings loaded using the \texttt{-l} switch; for example, \index{switches!-l
demonstration} \index{switches!-y demonstration}
+
\begin{commandshell}
latexindent.pl -l=mysettings.yaml -y="verbatimEnvironments:cmhenvironment:0;myenv:1" myfile.tex
\end{commandshell}
+
Any settings specified using the \texttt{-y} switch will be loaded \emph{after} any
specified using \texttt{indentconfig.yaml} and the \texttt{-l} switch.
@@ -1821,6 +1918,7 @@ latexindent.pl -l=mysettings.yaml -y="verbatimEnvironments:cmhenvironment:0;myen
(\vref{sec:onesentenceperline}) and the listings within \vref{lst:sentencesEndWith}, the
following settings give the option to have sentences end with a semicolon
\index{switches!-y demonstration}
+
\begin{commandshell}
latexindent.pl -m --yaml='modifyLineBreaks:oneSentencePerLine:sentencesEndWith:other:\;'
\end{commandshell}
@@ -1876,9 +1974,11 @@ latexindent.pl -m --yaml='modifyLineBreaks:oneSentencePerLine:sentencesEndWith:o
\yamltitle{fileExtensionPreference}*{fields}
\texttt{latexindent.pl} can be called to
act on a file without specifying the file extension. For example we can call
+
\begin{commandshell}
latexindent.pl myfile
\end{commandshell}
+
in which case the script will look for \texttt{myfile} with the extensions specified in
\texttt{fileExtensionPreference} in their numeric order. If no match is found, the script
will exit. As with all of the fields, you should change and/or add to this as necessary.
@@ -1936,6 +2036,7 @@ copy myfile.bak2 to myfile.bak1
copy myfile.bak3 to myfile.bak2
copy myfile.bak4 to myfile.bak3
\end{commandshell}
+
The default value of \texttt{cycleThroughBackUps} is \texttt{0}.
\yamltitle{logFilePreferences}*{fields}
@@ -1992,6 +2093,7 @@ copy myfile.bak4 to myfile.bak3
\texttt{verbatim} field using the \texttt{name} field which takes a regular expression as
its argument; thank you to \cite{XuehaiPan} for contributing this feature.
+ \begin{example}
For demonstration, then assuming that your file contains the environments
\texttt{latexcode}, \texttt{latexcode*}, \texttt{pythoncode} and \texttt{pythoncode*},
then the listings given in \cref{lst:nameAsRegex1,lst:nameAsRegex2} are equivalent.
@@ -2010,6 +2112,7 @@ copy myfile.bak4 to myfile.bak3
\item the \texttt{lookForThis} field is optional, and can take the values 0 (off) or 1 (on); by
default, it is assumed to be 1 (on).
\end{itemize}
+ \end{example}
\yamltitle{verbatimCommands}*{fields}
A field that contains a list of commands that are verbatim commands, for example
@@ -2026,6 +2129,7 @@ copy myfile.bak4 to myfile.bak3
\texttt{verbatimCommands} field using the \texttt{name} field which takes a regular
expression as its argument; thank you to \cite{XuehaiPan} for contributing this feature.
+ \begin{example}
For demonstration, then assuming that your file contains the commands
\texttt{verbinline}, \texttt{myinline} then the listings given in
\cref{lst:nameAsRegex3,lst:nameAsRegex4} are equivalent.
@@ -2044,6 +2148,7 @@ copy myfile.bak4 to myfile.bak3
\item the \texttt{lookForThis} field is optional, and can take the values 0 (off) or 1 (on); by
default, it is assumed to be 1 (on).
\end{itemize}
+ \end{example}
\yamltitle{noIndentBlock}*{fields}
If you have a block of code that you don't want \texttt{latexindent.pl} to touch (even if
@@ -2062,9 +2167,10 @@ copy myfile.bak4 to myfile.bak3
Important note: it is assumed that the \texttt{noindent} block statements specified in
this way appear on their own line.
- The \announce{2021-06-19}{noIndentBlock specified as regex} \texttt{noIndentBlock} fields
- can also be specified in terms of \texttt{begin} and \texttt{end} fields. We use the code
- in \cref{lst:noIndentBlock1} to demonstrate this feature.%
+ \begin{example}
+ The \texttt{noIndentBlock} fields can also be specified in terms of \texttt{begin} and
+ \texttt{end} fields. We use the code in \cref{lst:noIndentBlock1} to demonstrate this
+ feature.\announce{2021-06-19}{noIndentBlock specified as regex}%
\cmhlistingsfromfile{demonstrations/noindentblock1.tex}{\texttt{noIndentBlock1.tex}}{lst:noIndentBlock1}
@@ -2080,14 +2186,18 @@ copy myfile.bak4 to myfile.bak3
\end{cmhtcbraster}
Upon running the commands
+
\begin{commandshell}
latexindent.pl -l noindent1.yaml noindent1
latexindent.pl -l noindent2.yaml noindent1
\end{commandshell}
+
then we receive the output given in \cref{lst:noIndentBlock1-mod1}.
\cmhlistingsfromfile{demonstrations/noindentblock1-mod1.tex}{\texttt{noIndentBlock1.tex} using \cref{lst:noindent1} or \cref{lst:noindent2}}{lst:noIndentBlock1-mod1}
+ \end{example}
+
The \texttt{begin}, \texttt{body} and \texttt{end} fields for \texttt{noIndentBlock} are
all \emph{regular expressions}. If the \texttt{body} field is not specified, then it
takes a default value of \lstinline!.*?! which is written explicitly in
@@ -2097,21 +2207,27 @@ latexindent.pl -l noindent2.yaml noindent1
The \texttt{lookForThis} field is optional, and can take the values 0 (off) or 1 (on); by
default, it is assumed to be 1 (on).
+ \begin{example}
Using \cref{lst:noindent3} demonstrates setting \texttt{lookForThis} to 0 (off); running
the command
+
\begin{commandshell}
latexindent.pl -l noindent3.yaml noindent1
\end{commandshell}
+
gives the output in \cref{lst:noIndentBlock1-mod3}.
\cmhlistingsfromfile{demonstrations/noindentblock1-mod3.tex}{\texttt{noIndentBlock1.tex} using \cref{lst:noindent3}}{lst:noIndentBlock1-mod3}
+ \end{example}
+
We will demonstrate this feature later in the documentation in \cref{lst:href3}.
You can, optionally, specify \announce{2021-10-30}{noIndentBlock name feature} the
\texttt{noIndentBlock} field using the \texttt{name} field which takes a regular
expression as its argument; thank you to \cite{XuehaiPan} for contributing this feature.
+ \begin{example}
For demonstration, then assuming that your file contains the environments
\texttt{testnoindent}, \texttt{testnoindent*} then the listings given in
\cref{lst:nameAsRegex5,lst:nameAsRegex6} are equivalent.
@@ -2132,6 +2248,8 @@ latexindent.pl -l noindent3.yaml noindent1
\item the \texttt{lookForThis} field is optional, and can take the values 0 (off) or 1 (on); by
default, it is assumed to be 1 (on).
\end{itemize}
+ \end{example}
+
\subsection{filecontents and preamble}
\yamltitle{fileContentsEnvironments}*{field}
@@ -2193,15 +2311,10 @@ postfoothook=\end{mdframed},
\vref{lst:removeTWS-before,lst:env-mlb5-modAll,lst:env-mlb5-modAll-remove-WS} for before
and after results. Thanks to \cite{vosskuhle} for providing this feature.
- \begin{minipage}{.4\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[style=removeTrailingWhitespace]{../defaultSettings.yaml}[before=\centering,yaml-TCB]{removeTrailingWhitespace}{lst:removeTrailingWhitespace}
- \end{minipage}%
- \hfill
- \begin{minipage}{.5\textwidth}
- \begin{yaml}[numbers=none]{removeTrailingWhitespace (alt)}[before=\centering]{lst:removeTrailingWhitespace-alt}
-removeTrailingWhitespace: 1
-\end{yaml}
- \end{minipage}%
+ \cmhlistingsfromfile[style=yaml-LST]{demonstrations/remove-tws-alt.yaml}[yaml-TCB]{removeTrailingWhitespace (alt)}{lst:removeTrailingWhitespace-alt}
+ \end{cmhtcbraster}
You can specify \texttt{removeTrailingWhitespace} simply as \texttt{0} or \texttt{1}, if
you wish; in this case, \announce{2017-06-28}{removeTrailingWhitespace}
@@ -2233,17 +2346,17 @@ lookForAlignDelims:
in \cref{sec:knownlimitations}), but in many cases it will produce results such as those
in \cref{lst:tabularbefore:basic,lst:tabularafter:basic}.
+ \begin{cmhtcbraster}
+ \cmhlistingsfromfile{demonstrations/tabular1.tex}{\texttt{tabular1.tex}}{lst:tabularbefore:basic}
+ \cmhlistingsfromfile{demonstrations/tabular1-default.tex}{\texttt{tabular1.tex} default output}{lst:tabularafter:basic}
+ \end{cmhtcbraster}
+
If you find that \texttt{latexindent.pl} does not perform satisfactorily on such
environments then you can set the relevant key to \texttt{0}, for example
\texttt{tabular: 0}; alternatively, if you just want to ignore \emph{specific} instances
of the environment, you could wrap them in something from \texttt{noIndentBlock} (see
\vref{lst:noIndentBlock}).
- \begin{cmhtcbraster}
- \cmhlistingsfromfile{demonstrations/tabular1.tex}{\texttt{tabular1.tex}}{lst:tabularbefore:basic}
- \cmhlistingsfromfile{demonstrations/tabular1-default.tex}{\texttt{tabular1.tex} default output}{lst:tabularafter:basic}
- \end{cmhtcbraster}
-
If, for example, you wish to remove the alignment of the \lstinline!\\! within a
delimiter-aligned block, then the advanced form of \texttt{lookForAlignDelims} shown in
\cref{lst:aligndelims:advanced} is for you. \index{regular expressions!delimiterRegEx}
@@ -2303,6 +2416,7 @@ lookForAlignDelims:
discussed in \cref{sec:lookForChildCodeBlocks}.
\end{itemize}
+ \begin{example}
We will explore most of these features using the file \texttt{tabular2.tex} in
\cref{lst:tabular2} (which contains a \lstinline!\multicolumn! command), and the YAML
files in \crefrange{lst:tabular2YAML}{lst:tabular8YAML}; we will explore
@@ -2341,6 +2455,7 @@ lookForAlignDelims:
On running the commands \index{delimiters!spacing demonstration} \index{switches!-l
demonstration}
+
\begin{commandshell}
latexindent.pl tabular2.tex
latexindent.pl tabular2.tex -l tabular2.yaml
@@ -2351,6 +2466,7 @@ latexindent.pl tabular2.tex -l tabular2.yaml,tabular6.yaml
latexindent.pl tabular2.tex -l tabular2.yaml,tabular7.yaml
latexindent.pl tabular2.tex -l tabular2.yaml,tabular8.yaml
\end{commandshell}
+
we obtain the respective outputs given in
\crefrange{lst:tabular2-default}{lst:tabular2-mod8}.
@@ -2395,6 +2511,7 @@ latexindent.pl tabular2.tex -l tabular2.yaml,tabular8.yaml
above and below the \lstinline!\multicol! statements have still been group correctly,
because of the settings in \cref{lst:tabular2YAML}.
\end{itemize}
+ \end{example}
\subsubsection{lookForAlignDelims: spacesBeforeAmpersand}
The \texttt{spacesBeforeAmpersand} \announce{2021-06-19}*{spacesBeforeAmpersand leading
@@ -2404,11 +2521,14 @@ latexindent.pl tabular2.tex -l tabular2.yaml,tabular8.yaml
column}; that is, when the first column contains only zero-width entries. We refer to
this as the \emph{advanced} form.%
+ \begin{example}
We demonstrate this feature in relation to \cref{lst:aligned1}; upon running the
following command
+
\begin{commandshell}
latexindent.pl aligned1.tex -o=+-default
\end{commandshell}
+
then we receive the default output given in \cref{lst:aligned1-default}.
\begin{cmhtcbraster}
@@ -2426,12 +2546,14 @@ latexindent.pl aligned1.tex -o=+-default
\cmhlistingsfromfile{demonstrations/sba4.yaml}[yaml-TCB]{\texttt{sba4.yaml}}{lst:sba4}
\end{cmhtcbraster}
Upon running the following commands
+
\begin{commandshell}
latexindent.pl aligned1.tex -l sba1.yaml
latexindent.pl aligned1.tex -l sba2.yaml
latexindent.pl aligned1.tex -l sba3.yaml
latexindent.pl aligned1.tex -l sba4.yaml
\end{commandshell}
+
then we receive the (same) output given in \cref{lst:aligned1-mod1}; we note that there
is \emph{one space} before each ampersand.
@@ -2459,6 +2581,9 @@ latexindent.pl aligned1.tex -l sba4.yaml
We note that \emph{default} has not been specified, and it will be set to \texttt{1} by
default.
\end{itemize}
+ \end{example}
+
+ \begin{example}
We can customise the space before the ampersand in the \emph{leading blank column} of
\cref{lst:aligned1-mod1} by using either of \cref{lst:sba5,lst:sba6}, which are
equivalent.
@@ -2469,10 +2594,12 @@ latexindent.pl aligned1.tex -l sba4.yaml
\end{cmhtcbraster}
Upon running
+
\begin{commandshell}
latexindent.pl aligned1.tex -l sba5.yaml
latexindent.pl aligned1.tex -l sba6.yaml
\end{commandshell}
+
then we receive the (same) output given in \cref{lst:aligned1-mod5}. We note that the
space before the ampersand in the \emph{leading blank column} has been set to \texttt{0}
by \cref{lst:sba6}.
@@ -2487,15 +2614,23 @@ latexindent.pl aligned1.tex -l sba6.yaml
\cmhlistingsfromfile{demonstrations/aligned1-mod7.tex}{\texttt{aligned1.tex} using \cref{lst:sba7}}{lst:aligned1-mod7}
\cmhlistingsfromfile{demonstrations/sba7.yaml}[yaml-TCB]{\texttt{sba7.yaml}}{lst:sba7}
\end{cmhtcbraster}
+ \end{example}
+
\subsubsection{lookForAlignDelims: alignFinalDoubleBackSlash}
- We explore \announce{2020-03-21}{alignFinalDoubleBackSlash demonstration} the
- \texttt{alignFinalDoubleBackSlash} feature by using the file in \cref{lst:tabular4}. Upon
- running the following commands \index{delimiters!double backslash demonstration}
- \index{switches!-y demonstration} \index{switches!-o demonstration}%
+ There may be times when a line of a code block contains more than \lstinline!\\!, and in
+ which case, you may want the \emph{final} double backslash to be aligned.
+
+ \begin{example}
+ We explore the \texttt{alignFinalDoubleBackSlash} feature by using the file in
+ \cref{lst:tabular4}. Upon running the following commands \index{delimiters!double
+ backslash demonstration} \index{switches!-y demonstration} \index{switches!-o
+ demonstration}\announce{2020-03-21}{alignFinalDoubleBackSlash demonstration}%
+
\begin{commandshell}
latexindent.pl tabular4.tex -o=+-default
latexindent.pl tabular4.tex -o=+-FDBS -y="lookForAlignDelims:tabular:alignFinalDoubleBackSlash:1"
\end{commandshell}
+
then we receive the respective outputs given in \cref{lst:tabular4-default} and
\cref{lst:tabular4-FDBS}.
@@ -2515,15 +2650,21 @@ latexindent.pl tabular4.tex -o=+-FDBS -y="lookForAlignDelims:tabular:alignFinalD
\item \cref{lst:tabular4-FDBS}, the \emph{final} set of double back slashes in the
first row have been used, because we specified \texttt{alignFinalDoubleBackSlash} as 1.
\end{itemize}
+ \end{example}
As of Version 3.0, the alignment routine works on mandatory and optional arguments within
commands, and also within `special' code blocks (see \texttt{specialBeginEnd} on
- \cpageref{yaml:specialBeginEnd}); for example, assuming that you have a command called
- \lstinline!\matrix! and that it is populated within \texttt{lookForAlignDelims} (which it
- is, by default), and that you run the command
+ \cpageref{yaml:specialBeginEnd}).
+
+ \begin{example}
+ Assuming that you have a command called \lstinline!\matrix! and that it is populated
+ within \texttt{lookForAlignDelims} (which it is, by default), and that you run the
+ command
+
\begin{commandshell}
latexindent.pl matrix1.tex
\end{commandshell}
+
then the before-and-after results shown in \cref{lst:matrixbefore,lst:matrixafter} are
achievable by default.
@@ -2531,6 +2672,7 @@ latexindent.pl matrix1.tex
\cmhlistingsfromfile{demonstrations/matrix1.tex}{\texttt{matrix1.tex}}{lst:matrixbefore}
\cmhlistingsfromfile{demonstrations/matrix1-default.tex}{\texttt{matrix1.tex} default output}{lst:matrixafter}
\end{cmhtcbraster}
+ \end{example}
If you have blocks of code that you wish to align at the \& character that are \emph{not}
wrapped in, for example, \lstinline!\begin{tabular}! \ldots \lstinline!\end{tabular}!,
@@ -2552,9 +2694,12 @@ latexindent.pl matrix1.tex
\subsubsection{lookForAlignDelims: the dontMeasure feature}\label{sec:dontMeasure}
The \announce{2020-03-21}{don't measure feature} \texttt{lookForAlignDelims} field can,
optionally, receive the \texttt{dontMeasure} option which can be specified in a few
- different ways. We will explore this feature in relation to the code given in
- \cref{lst:tabular-DM}; the default output is shown in \cref{lst:tabular-DM-default}.
- \index{delimiters!dontMeasure feature}%
+ different ways.
+
+ \begin{example}
+ We will explore this feature in relation to the code given in \cref{lst:tabular-DM}; the
+ default output is shown in \cref{lst:tabular-DM-default}. \index{delimiters!dontMeasure
+ feature}%
\begin{cmhtcbraster}[raster left skip=-1.5cm,]
\cmhlistingsfromfile{demonstrations/tabular-DM.tex}{\texttt{tabular-DM.tex}}{lst:tabular-DM}
@@ -2564,9 +2709,11 @@ latexindent.pl matrix1.tex
The \texttt{dontMeasure} field can be specified as \texttt{largest}, and in which case,
the largest element will not be measured; with reference to the YAML file given in
\cref{lst:dontMeasure1}, we can run the command \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl tabular-DM.tex -l=dontMeasure1.yaml
\end{commandshell}
+
and receive the output given in \cref{lst:tabular-DM-mod1}.
\begin{cmhtcbraster}
@@ -2576,13 +2723,17 @@ latexindent.pl tabular-DM.tex -l=dontMeasure1.yaml
We note that the \emph{largest} column entries have not contributed to the measuring
routine.
+ \end{example}
+ \begin{example}
The \texttt{dontMeasure} field can also be specified in the form demonstrated in
\cref{lst:dontMeasure2}. On running the following commands, \index{switches!-l
demonstration}
+
\begin{commandshell}
latexindent.pl tabular-DM.tex -l=dontMeasure2.yaml
\end{commandshell}
+
we receive the output in \cref{lst:tabular-DM-mod2}. \index{regular
expressions!dontMeasure feature, cell}
@@ -2593,14 +2744,18 @@ latexindent.pl tabular-DM.tex -l=dontMeasure2.yaml
We note that in \cref{lst:dontMeasure2} we have specified entries not to be measured, one
entry per line.
+ \end{example}
+ \begin{example}
The \texttt{dontMeasure} field can also be specified in the forms demonstrated in
\cref{lst:dontMeasure3} and \cref{lst:dontMeasure4}. Upon running the commands
\index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl tabular-DM.tex -l=dontMeasure3.yaml
latexindent.pl tabular-DM.tex -l=dontMeasure4.yaml
\end{commandshell}
+
we receive the output given in \cref{lst:tabular-DM-mod3} \index{regular
expressions!lowercase alph a-z}
\begin{cmhtcbraster}[raster columns=3,
@@ -2624,24 +2779,32 @@ latexindent.pl tabular-DM.tex -l=dontMeasure4.yaml
\end{itemize}
In both cases, the default value of \texttt{applyTo} is \texttt{cell}, and does not need
to be specified.
+ \end{example}
+ \begin{example}
We may also specify the \texttt{applyTo} field as \texttt{row}, a demonstration of which
is given in \cref{lst:dontMeasure5}; upon running \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl tabular-DM.tex -l=dontMeasure5.yaml
\end{commandshell}
+
we receive the output in \cref{lst:tabular-DM-mod5}.
\begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/tabular-DM-mod5.tex}{\texttt{tabular-DM.tex} using \cref{lst:dontMeasure5}}{lst:tabular-DM-mod5}
\cmhlistingsfromfile{demonstrations/dontMeasure5.yaml}[yaml-TCB]{\texttt{dontMeasure5.yaml}}{lst:dontMeasure5}
\end{cmhtcbraster}
+ \end{example}
+ \begin{example}
Finally, the \texttt{applyTo} field can be specified as \texttt{row}, together with a
\texttt{regex} expression. For example, for the settings given in
\cref{lst:dontMeasure6}, upon running \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl tabular-DM.tex -l=dontMeasure6.yaml
\end{commandshell}
+
we receive the output in \cref{lst:tabular-DM-mod6}. \index{regular
expressions!dontMeasure feature, row} \index{regular expressions!lowercase alph a-z}
@@ -2649,6 +2812,7 @@ latexindent.pl tabular-DM.tex -l=dontMeasure6.yaml
\cmhlistingsfromfile{demonstrations/tabular-DM-mod6.tex}{\texttt{tabular-DM.tex} using \cref{lst:dontMeasure6}}{lst:tabular-DM-mod6}
\cmhlistingsfromfile{demonstrations/dontMeasure6.yaml}[yaml-TCB]{\texttt{dontMeasure6.yaml}}{lst:dontMeasure6}
\end{cmhtcbraster}
+ \end{example}
\subsubsection{lookForAlignDelims: the delimiterRegEx and delimiterJustification feature}\label{sec:delimiter-reg-ex}
@@ -2666,6 +2830,7 @@ latexindent.pl tabular-DM.tex -l=dontMeasure6.yaml
if you intend to customise this field, then be sure to include them appropriately.
\end{warning}
+ \begin{example}
We demonstrate how to customise this with respect to the code given in
\cref{lst:tabbing}; the default output from \lstinline!latexindent.pl! is given in
\cref{lst:tabbing-default}.
@@ -2678,9 +2843,11 @@ latexindent.pl tabular-DM.tex -l=dontMeasure6.yaml
Let's say that we wish to align the code at either the \lstinline!\=! or \lstinline!\>!.
We employ the settings given in \cref{lst:delimiterRegEx1} and run the command
\index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl tabbing.tex -l=delimiterRegEx1.yaml
\end{commandshell}
+
to receive the output given in \cref{lst:tabbing-mod1}. \index{regular
expressions!delimiter regex at \textbackslash= or \textbackslash>}
@@ -2696,11 +2863,16 @@ latexindent.pl tabbing.tex -l=delimiterRegEx1.yaml
using grouping parenthesis, specified a backslash using \lstinline!\\! and said that it
must be followed by either \lstinline!=! or \lstinline!>!.
\end{itemize}
+ \end{example}
+
+ \begin{example}
We can explore \texttt{delimiterRegEx} a little further using the settings in
\cref{lst:delimiterRegEx2} and run the command \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl tabbing.tex -l=delimiterRegEx2.yaml
\end{commandshell}
+
to receive the output given in \cref{lst:tabbing-mod2}. \index{regular
expressions!delimiter regex at only \textbackslash>}
@@ -2709,31 +2881,39 @@ latexindent.pl tabbing.tex -l=delimiterRegEx2.yaml
\cmhlistingsfromfile{demonstrations/delimiterRegEx2.yaml}[yaml-TCB]{\texttt{delimiterRegEx2.yaml}}{lst:delimiterRegEx2}
\end{cmhtcbraster}
We note that only the \lstinline!\>! have been aligned.
+ \end{example}
+ \begin{example}
Of course, the other lookForAlignDelims options can be used alongside the
\texttt{delimiterRegEx}; regardless of the type of delimiter being used (ampersand or
anything else), the fields from \vref{lst:aligndelims:advanced} remain the same; for
example, using the settings in \cref{lst:delimiterRegEx3}, and running \index{switches!-l
demonstration}
+
\begin{commandshell}
latexindent.pl tabbing.tex -l=delimiterRegEx3.yaml
\end{commandshell}
+
to receive the output given in \cref{lst:tabbing-mod3}.
\begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/tabbing-mod3.tex}{\texttt{tabbing.tex} using \cref{lst:delimiterRegEx3}}{lst:tabbing-mod3}
\cmhlistingsfromfile{demonstrations/delimiterRegEx3.yaml}[yaml-TCB]{\texttt{delimiterRegEx3.yaml}}{lst:delimiterRegEx3}
\end{cmhtcbraster}
+ \end{example}
+ \begin{example}
It is possible that delimiters specified within \texttt{delimiterRegEx} can be of
different lengths. Consider the file in \cref{lst:tabbing1}, and associated YAML in
\cref{lst:delimiterRegEx4}. Note that the \cref{lst:delimiterRegEx4} specifies the option
for the delimiter to be either \lstinline!#! or \lstinline!\>!, \emph{which are different
lengths}. Upon running the command \index{switches!-l demonstration} \index{switches!-o
demonstration}
+
\begin{commandshell}
latexindent.pl tabbing1.tex -l=delimiterRegEx4.yaml -o=+-mod4
\end{commandshell}
+
we receive the output in \cref{lst:tabbing1-mod4}. \index{regular expressions!delimiter
regex at \#}
@@ -2745,14 +2925,18 @@ latexindent.pl tabbing1.tex -l=delimiterRegEx4.yaml -o=+-mod4
\cmhlistingsfromfile{demonstrations/tabbing1-mod4.tex}{\texttt{tabbing1-mod4.tex}}{lst:tabbing1-mod4}
\cmhlistingsfromfile{demonstrations/delimiterRegEx4.yaml}[yaml-TCB]{\texttt{delimiterRegEx4.yaml}}{lst:delimiterRegEx4}
\end{cmhtcbraster}
+ \end{example}
+ \begin{example}
You can set the \emph{delimiter} justification as either \texttt{left} (default) or
\texttt{right}, which will only have effect when delimiters in the same column have
different lengths. Using the settings in \cref{lst:delimiterRegEx5} and running the
command \index{switches!-l demonstration} \index{switches!-o demonstration}
+
\begin{commandshell}
latexindent.pl tabbing1.tex -l=delimiterRegEx5.yaml -o=+-mod5
\end{commandshell}
+
gives the output in \cref{lst:tabbing1-mod5}. \index{regular expressions!delimiter regex
at \# or \textbackslash>}
@@ -2763,6 +2947,7 @@ latexindent.pl tabbing1.tex -l=delimiterRegEx5.yaml -o=+-mod5
Note that in \cref{lst:tabbing1-mod5} the second set of delimiters have been \emph{right
aligned} -- it is quite subtle!
+ \end{example}
\subsubsection{lookForAlignDelims: lookForChildCodeBlocks}\label{sec:lookForChildCodeBlocks}
There \announce{2021-12-13}{lookForChildCodeBlocks demonstration} may be scenarios in
@@ -2770,11 +2955,14 @@ latexindent.pl tabbing1.tex -l=delimiterRegEx5.yaml -o=+-mod5
blocks; in which case setting \texttt{lookForChildCodeBlocks} to 0 may be a good way to
proceed.
+ \begin{example}
Using the settings from \vref{lst:dontMeasure1} on the file in \cref{lst:tabular-DM-1}
and running the command
+
\begin{commandshell}
latexindent.pl tabular-DM-1.tex -l=dontMeasure1.yaml -o=+-mod1
\end{commandshell}
+
gives the output in \cref{lst:tabular-DM-1-mod1}.
\begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/tabular-DM-1.tex}{\texttt{tabular-DM-1.tex}}{lst:tabular-DM-1}
@@ -2783,15 +2971,18 @@ latexindent.pl tabular-DM-1.tex -l=dontMeasure1.yaml -o=+-mod1
We can improve the output from \cref{lst:tabular-DM-1-mod1} by employing the settings in
\cref{lst:dontMeasure1a}
+
\begin{commandshell}
latexindent.pl tabular-DM-1.tex -l=dontMeasure1a.yaml -o=+-mod1a
\end{commandshell}
+
which gives the output in \cref{lst:dontMeasure1a}.
\begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/tabular-DM-1-mod1a.tex}{\texttt{tabular-DM-1-mod1a.tex}}{lst:tabular-DM-1-mod1a}
\cmhlistingsfromfile{demonstrations/dontMeasure1a.yaml}[yaml-TCB]{\texttt{dontMeasure1a.yaml}}{lst:dontMeasure1a}
\end{cmhtcbraster}
+ \end{example}
\subsection{Indent after items, specials and headings}
\yamltitle{indentAfterItems}*{fields}
@@ -2833,6 +3024,7 @@ latexindent.pl tabular-DM-1.tex -l=dontMeasure1a.yaml -o=+-mod1a
You can, of course, rename these in your own YAML files (see \vref{sec:localsettings});
indeed, you might like to set up your own special begin and end statements.
+ \begin{example}
A demonstration of the before-and-after results are shown in
\cref{lst:specialbefore,lst:specialafter}.
@@ -2840,6 +3032,7 @@ latexindent.pl tabular-DM-1.tex -l=dontMeasure1a.yaml -o=+-mod1a
\cmhlistingsfromfile{demonstrations/special1.tex}{\texttt{special1.tex} before}{lst:specialbefore}
\cmhlistingsfromfile{demonstrations/special1-default.tex}{\texttt{special1.tex} default output}{lst:specialafter}
\end{cmhtcbraster}
+ \end{example}
For each field, \texttt{lookForThis} is set to \texttt{1} by default, which means that
\texttt{latexindent.pl} will look for this pattern; you can tell \texttt{latexindent.pl}
@@ -2847,8 +3040,10 @@ latexindent.pl tabular-DM-1.tex -l=dontMeasure1a.yaml -o=+-mod1a
There are \announce{2017-08-21}{specialBeforeCommand} examples in which it is
advantageous to search for \texttt{specialBeginEnd} fields \emph{before} searching for
- commands, and the \texttt{specialBeforeCommand} switch controls this behaviour. For
- example, consider the file shown in \cref{lst:specialLRbefore}.%
+ commands, and the \texttt{specialBeforeCommand} switch controls this behaviour.
+
+ \begin{example}
+ For example, consider the file shown in \cref{lst:specialLRbefore}.%
\cmhlistingsfromfile{demonstrations/specialLR.tex}{\texttt{specialLR.tex}}{lst:specialLRbefore}
@@ -2863,10 +3058,12 @@ latexindent.pl tabular-DM-1.tex -l=dontMeasure1a.yaml -o=+-mod1a
Upon running the following commands \index{switches!-l demonstration}
\begin{widepage}
+
\begin{commandshell}
latexindent.pl specialLR.tex -l=specialsLeftRight.yaml
latexindent.pl specialLR.tex -l=specialsLeftRight.yaml,specialBeforeCommand.yaml
\end{commandshell}
+
\end{widepage}
we receive the respective outputs in
\cref{lst:specialLR-comm-first-tex,lst:specialLR-special-first-tex}.
@@ -2888,20 +3085,25 @@ latexindent.pl specialLR.tex -l=specialsLeftRight.yaml,specialBeforeCommand.yaml
has been obeyed because \cref{lst:specialBeforeCommand-yaml} specifies that the
\texttt{specialBeginEnd} should be sought \emph{before} commands.
\end{itemize}
+ \end{example}
You can,optionally, specify \announce{2018-04-27}{update to specialBeginEnd} the
- \texttt{middle} field for anything that you specify in \texttt{specialBeginEnd}. For
- example, let's consider the \texttt{.tex} file in \cref{lst:special2}.
+ \texttt{middle} field for anything that you specify in \texttt{specialBeginEnd}.
+
+ \begin{example}
+ For example, let's consider the \texttt{.tex} file in \cref{lst:special2}.
\index{specialBeginEnd!middle} \index{specialBeginEnd!IfElsFi example}%
\cmhlistingsfromfile{demonstrations/special2.tex}{\texttt{special2.tex}}{lst:special2}
Upon saving the YAML settings in \cref{lst:middle-yaml,lst:middle1-yaml} and running the
commands \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl special2.tex -l=middle
latexindent.pl special2.tex -l=middle1
\end{commandshell}
+
then we obtain the output given in \cref{lst:special2-mod1,lst:special2-mod2}.
\begin{cmhtcbraster}
@@ -2924,16 +3126,20 @@ latexindent.pl special2.tex -l=middle1
demonstrated in \cref{lst:middle1-yaml} so that the body of the \texttt{Else} statement
has been indented appropriately in \cref{lst:special2-mod2}.
\end{itemize}
+ \end{example}
You may \announce{2018-08-13}{specialBeginEnd verbatim} specify fields in
\texttt{specialBeginEnd} to be treated as verbatim code blocks by changing
\texttt{lookForThis} to be \texttt{verbatim}. \index{verbatim!specialBeginEnd}%
+ \begin{example}
For example, beginning with the code in \cref{lst:special3-mod1} and the YAML in
\cref{lst:special-verb1-yaml}, and running \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl special3.tex -l=special-verb1
\end{commandshell}
+
then the output in \cref{lst:special3-mod1} is unchanged.
\index{specialBeginEnd!specifying as verbatim}
@@ -2941,8 +3147,11 @@ latexindent.pl special3.tex -l=special-verb1
\cmhlistingsfromfile{demonstrations/special-verb1.yaml}[yaml-TCB]{\texttt{special-verb1.yaml}}{lst:special-verb1-yaml}
\cmhlistingsfromfile{demonstrations/special3-mod1.tex}{\texttt{special3.tex} and output using \cref{lst:special-verb1-yaml}}{lst:special3-mod1}
\end{cmhtcbraster}
+ \end{example}
We can combine the \texttt{specialBeginEnd} with the \texttt{lookForAlignDelims} feature.
+
+ \begin{example}
We begin with the code in \cref{lst:special-align}.
\cmhlistingsfromfile{demonstrations/special-align.tex}{\texttt{special-align.tex}}{lst:special-align}
@@ -2950,9 +3159,11 @@ latexindent.pl special3.tex -l=special-verb1
Let's assume that our goal is to align the code at the \texttt{edge} and \texttt{node}
text; we employ the code given in \cref{lst:edge-node1} and run the command
\index{switches!-l demonstration} \index{switches!-o demonstration}
+
\begin{commandshell}
latexindent.pl special-align.tex -l edge-node1.yaml -o=+-mod1
\end{commandshell}
+
to receive the output in \cref{lst:special-align-mod1}. \index{specialBeginEnd!combined
with lookForAlignDelims} \index{specialBeginEnd!delimiterRegEx}
\index{specialBeginEnd!alignment at delimiter} \index{specialBeginEnd!tikz example}
@@ -2968,9 +3179,11 @@ latexindent.pl special-align.tex -l edge-node1.yaml -o=+-mod1
within \cref{lst:edge-node1} in order to improve the output; in particular, we employ the
code in \cref{lst:edge-node2} and run the command \index{switches!-l demonstration}
\index{switches!-o demonstration} \index{regular expressions!uppercase alph A-Z}
+
\begin{commandshell}
latexindent.pl special-align.tex -l edge-node2.yaml -o=+-mod2
\end{commandshell}
+
to receive the output in \cref{lst:special-align-mod2}.
\index{specialBeginEnd!delimiterRegEx tweaked} \index{regular expressions!at least one +}
\index{regular expressions!horizontal space \textbackslash{h}}
@@ -2979,6 +3192,7 @@ latexindent.pl special-align.tex -l edge-node2.yaml -o=+-mod2
\cmhlistingsfromfile{demonstrations/edge-node2.yaml}[yaml-TCB]{\texttt{edge-node2.yaml}}{lst:edge-node2}
\cmhlistingsfromfile{demonstrations/special-align-mod2.tex}{\texttt{special-align.tex} using \cref{lst:edge-node2}}{lst:special-align-mod2}
\end{cmhtcbraster}
+ \end{example}
The \texttt{lookForThis} field can be considered optional;
\announce{2021-06-19}*{lookForThis optional for specialBeginEnd} by default, it is
@@ -3007,6 +3221,7 @@ latexindent.pl special-align.tex -l edge-node2.yaml -o=+-mod2
\texttt{latexindent.pl} simply to use a space character after \texttt{chapter} headings
(once \texttt{indent} is set to \texttt{1} for \texttt{chapter}).
+ \begin{example}
For example, assuming that you have the code in \cref{lst:headings1yaml} saved into
\texttt{headings1.yaml}, and that you have the text from \cref{lst:headings1} saved into
\texttt{headings1.tex}.
@@ -3017,9 +3232,11 @@ latexindent.pl special-align.tex -l edge-node2.yaml -o=+-mod2
\end{cmhtcbraster}
If you run the command \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl headings1.tex -l=headings1.yaml
\end{commandshell}
+
then you should receive the output given in \cref{lst:headings1-mod1}.
\begin{minipage}{.45\textwidth}
@@ -3029,13 +3246,16 @@ latexindent.pl headings1.tex -l=headings1.yaml
\begin{minipage}{.45\textwidth}
\cmhlistingsfromfile[showtabs=true]{demonstrations/headings1-mod2.tex}{\texttt{headings1.tex} second modification}{lst:headings1-mod2}
\end{minipage}
+ \end{example}
Now say that you modify the \texttt{YAML} from \cref{lst:headings1yaml} so that the
\texttt{paragraph} \texttt{level} is \texttt{1}; after running \index{switches!-l
demonstration}
+
\begin{commandshell}
latexindent.pl headings1.tex -l=headings1.yaml
\end{commandshell}
+
you should receive the code given in \cref{lst:headings1-mod2}; notice that the
\texttt{paragraph} and \texttt{subsection} are at the same indentation level.
@@ -3047,6 +3267,7 @@ latexindent.pl headings1.tex -l=headings1.yaml
field as horizontal space (but \emph{not} including tabs). This feature uses the
\texttt{Text::Tabs} module \cite{texttabs}, and is \emph{off} by default.%
+ \begin{example}
For example, consider the example shown in \cref{lst:mult-nested} together with the
default output shown in \cref{lst:mult-nested-default}.
@@ -3054,19 +3275,24 @@ latexindent.pl headings1.tex -l=headings1.yaml
\cmhlistingsfromfile{demonstrations/mult-nested.tex}{\texttt{mult-nested.tex}}{lst:mult-nested}
\cmhlistingsfromfile[showtabs=true]{demonstrations/mult-nested-default.tex}{\texttt{mult-nested.tex} default output}{lst:mult-nested-default}
\end{cmhtcbraster}
+ \end{example}
+ \begin{example}
Now say that, for example, you have the \texttt{max-indentation1.yaml} from
\cref{lst:max-indentation1yaml} and that you run the following command:
\index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl mult-nested.tex -l=max-indentation1
\end{commandshell}
+
You should receive the output shown in \cref{lst:mult-nested-max-ind1}.
\begin{cmhtcbraster}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/max-indentation1.yaml}[yaml-TCB]{\texttt{max-indentation1.yaml}}{lst:max-indentation1yaml}
\cmhlistingsfromfile[showspaces=true]{demonstrations/mult-nested-max-ind1.tex}{\texttt{mult-nested.tex} using \cref{lst:max-indentation1yaml}}{lst:mult-nested-max-ind1}
\end{cmhtcbraster}
+ \end{example}
Comparing the output in \cref{lst:mult-nested-default,lst:mult-nested-max-ind1} we notice
that the (default) tabs of indentation have been replaced by a single space.
@@ -3201,6 +3427,7 @@ mand arg text
\cmhlistingsfromfile{demonstrations/myenvironment-simple.tex}{\texttt{myenv.tex}}{lst:myenvtex}
\yamltitle{noAdditionalIndent}*{fields}
+ \begin{example}
If we do not wish \texttt{myenv} to receive any additional indentation, we have a few
choices available to us, as demonstrated in \cref{lst:myenv-noAdd1,lst:myenv-noAdd2}.
@@ -3213,67 +3440,75 @@ mand arg text
\end{minipage}
On applying either of the following commands, \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl myenv.tex -l myenv-noAdd1.yaml
latexindent.pl myenv.tex -l myenv-noAdd2.yaml
\end{commandshell}
+
we obtain the output given in \cref{lst:myenv-output}; note in particular that the
environment \texttt{myenv} has not received any \emph{additional} indentation, but that
the \texttt{outer} environment \emph{has} still received indentation.
\cmhlistingsfromfile{demonstrations/myenvironment-simple-noAdd-body1.tex}{\texttt{myenv.tex} output (using either \cref{lst:myenv-noAdd1} or \cref{lst:myenv-noAdd2})}{lst:myenv-output}
+ \end{example}
+ \begin{example}
Upon changing the YAML files to those shown in \cref{lst:myenv-noAdd3,lst:myenv-noAdd4},
and running either \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl myenv.tex -l myenv-noAdd3.yaml
latexindent.pl myenv.tex -l myenv-noAdd4.yaml
\end{commandshell}
+
we obtain the output given in \cref{lst:myenv-output-4}.
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/myenv-noAdd3.yaml}[width=.8\linewidth,before=\centering,yaml-TCB]{\texttt{myenv-noAdd3.yaml}}{lst:myenv-noAdd3}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/myenv-noAdd4.yaml}[width=.8\linewidth,before=\centering,yaml-TCB]{\texttt{myenv-noAdd4.yaml}}{lst:myenv-noAdd4}
- \end{minipage}
+ \end{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/myenvironment-simple-noAdd-body4.tex}{\texttt{myenv.tex output} (using either \cref{lst:myenv-noAdd3} or \cref{lst:myenv-noAdd4})}{lst:myenv-output-4}
+ \end{example}
+ \begin{example}
Let's now allow \texttt{myenv} to have some optional and mandatory arguments, as in
\cref{lst:myenv-args}.
\cmhlistingsfromfile{demonstrations/myenvironment-args.tex}{\texttt{myenv-args.tex}}{lst:myenv-args}
Upon running \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl -l=myenv-noAdd1.yaml myenv-args.tex
\end{commandshell}
+
we obtain the output shown in \cref{lst:myenv-args-noAdd1}; note that the optional
argument, mandatory argument and body \emph{all} have received no additional indent. This
is because, when \texttt{noAdditionalIndent} is specified in `scalar' form (as in
\cref{lst:myenv-noAdd1}), then \emph{all} parts of the environment (body, optional and
mandatory arguments) are assumed to want no additional indent.
\cmhlistingsfromfile{demonstrations/myenvironment-args-noAdd-body1.tex}{\texttt{myenv-args.tex} using \cref{lst:myenv-noAdd1}}{lst:myenv-args-noAdd1}
+ \end{example}
+ \begin{example}
We may customise \texttt{noAdditionalIndent} for optional and mandatory arguments of the
\texttt{myenv} environment, as shown in, for example,
\cref{lst:myenv-noAdd5,lst:myenv-noAdd6}.
- \begin{minipage}{.49\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/myenv-noAdd5.yaml}[width=.8\linewidth,before=\centering,yaml-TCB]{\texttt{myenv-noAdd5.yaml}}{lst:myenv-noAdd5}
- \end{minipage}
- \hfill
- \begin{minipage}{.49\textwidth}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/myenv-noAdd6.yaml}[width=.8\linewidth,before=\centering,yaml-TCB]{\texttt{myenv-noAdd6.yaml}}{lst:myenv-noAdd6}
- \end{minipage}
+ \end{cmhtcbraster}
Upon running \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl myenv.tex -l myenv-noAdd5.yaml
latexindent.pl myenv.tex -l myenv-noAdd6.yaml
\end{commandshell}
+
we obtain the respective outputs given in
\cref{lst:myenv-args-noAdd5,lst:myenv-args-noAdd6}. Note that in
\cref{lst:myenv-args-noAdd5} the text for the \emph{optional} argument has not received
@@ -3281,15 +3516,14 @@ latexindent.pl myenv.tex -l myenv-noAdd6.yaml
argument has not received any additional indentation; in both cases, the \emph{body} has
not received any additional indentation.
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/myenvironment-args-noAdd5.tex}{\texttt{myenv-args.tex} using \cref{lst:myenv-noAdd5}}{lst:myenv-args-noAdd5}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile{demonstrations/myenvironment-args-noAdd6.tex}{\texttt{myenv-args.tex} using \cref{lst:myenv-noAdd6}}{lst:myenv-args-noAdd6}
- \end{minipage}
+ \end{cmhtcbraster}
+ \end{example}
\yamltitle{indentRules}*{fields}
+ \begin{example}
We may also specify indentation rules for environment code blocks using the
\texttt{indentRules} field; see, for example, \cref{lst:myenv-rules1,lst:myenv-rules2}.
@@ -3299,29 +3533,37 @@ latexindent.pl myenv.tex -l myenv-noAdd6.yaml
\end{cmhtcbraster}
On applying either of the following commands, \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl myenv.tex -l myenv-rules1.yaml
latexindent.pl myenv.tex -l myenv-rules2.yaml
\end{commandshell}
+
we obtain the output given in \cref{lst:myenv-rules-output}; note in particular that the
environment \texttt{myenv} has received one tab (from the \texttt{outer} environment)
plus three spaces from \cref{lst:myenv-rules1} or \ref{lst:myenv-rules2}.
\cmhlistingsfromfile[showtabs=true,showspaces=true]{demonstrations/myenv-rules1.tex}{\texttt{myenv.tex} output (using either \cref{lst:myenv-rules1} or \cref{lst:myenv-rules2})}{lst:myenv-rules-output}
+ \end{example}
If you specify a field in \texttt{indentRules} using anything other than horizontal
space, it will be ignored.
+ \begin{example}
Returning to the example in \cref{lst:myenv-args} that contains optional and mandatory
arguments. Upon using \cref{lst:myenv-rules1} as in \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl myenv-args.tex -l=myenv-rules1.yaml
\end{commandshell}
+
we obtain the output in \cref{lst:myenv-args-rules1}; note that the body, optional
argument and mandatory argument of \texttt{myenv} have \emph{all} received the same
customised indentation.
\cmhlistingsfromfile[showtabs=true,showspaces=true]{demonstrations/myenvironment-args-rules1.tex}{\texttt{myenv-args.tex} using \cref{lst:myenv-rules1}}{lst:myenv-args-rules1}
+ \end{example}
+ \begin{example}
You can specify different indentation rules for the different features using, for
example, \cref{lst:myenv-rules3,lst:myenv-rules4}
@@ -3334,10 +3576,12 @@ latexindent.pl myenv-args.tex -l=myenv-rules1.yaml
\end{minipage}
After running \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl myenv-args.tex -l myenv-rules3.yaml
latexindent.pl myenv-args.tex -l myenv-rules4.yaml
\end{commandshell}
+
then we obtain the respective outputs given in
\cref{lst:myenv-args-rules3,lst:myenv-args-rules4}.
@@ -3358,6 +3602,7 @@ latexindent.pl myenv-args.tex -l myenv-rules4.yaml
In \cref{lst:myenv-args-rules4}, the optional argument has received the default (tab)
indentation, the mandatory argument has received two tabs of indentation, and the body
has received three spaces of indentation.
+ \end{example}
\yamltitle{noAdditionalIndentGlobal}*{fields}
Assuming that your environment name is not found within neither
@@ -3367,15 +3612,18 @@ latexindent.pl myenv-args.tex -l myenv-rules4.yaml
\cmhlistingsfromfile[style=noAdditionalIndentGlobalEnv]{../defaultSettings.yaml}[width=.5\linewidth,before=\centering,yaml-TCB]{\texttt{noAdditionalIndentGlobal}}{lst:noAdditionalIndentGlobal:environments}
+ \begin{example}
Let's say that you change the value of \texttt{environments} to \texttt{1} in
\cref{lst:noAdditionalIndentGlobal:environments}, and that you run \index{switches!-l
demonstration}
\begin{widepage}
+
\begin{commandshell}
latexindent.pl myenv-args.tex -l env-noAdditionalGlobal.yaml
latexindent.pl myenv-args.tex -l myenv-rules1.yaml,env-noAdditionalGlobal.yaml
\end{commandshell}
+
\end{widepage}
The respective output from these two commands are in
@@ -3387,44 +3635,40 @@ latexindent.pl myenv-args.tex -l myenv-rules1.yaml,env-noAdditionalGlobal.yaml
\texttt{myenv-rules1.yaml} (in \vref{lst:myenv-rules1}), the \texttt{myenv} environment
still \emph{does} receive indentation.
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/myenvironment-args-rules1-noAddGlobal1.tex}{\texttt{myenv-args.tex} using \cref{lst:noAdditionalIndentGlobal:environments}}{lst:myenv-args-no-add-global1}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile{demonstrations/myenvironment-args-rules1-noAddGlobal2.tex}{\texttt{myenv-args.tex} using \cref{lst:noAdditionalIndentGlobal:environments,lst:myenv-rules1}}{lst:myenv-args-no-add-global2}
- \end{minipage}
+ \end{cmhtcbraster}
+ \end{example}
+ \begin{example}
In fact, \texttt{noAdditionalIndentGlobal} also contains keys that control the
indentation of optional and mandatory arguments; on referencing
\cref{lst:opt-args-no-add-glob,lst:mand-args-no-add-glob}
- \begin{minipage}{.49\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/opt-args-no-add-glob.yaml}[width=.8\linewidth,before=\centering,yaml-TCB]{\texttt{opt-args-no-add-glob.yaml}}{lst:opt-args-no-add-glob}
- \end{minipage}
- \hfill
- \begin{minipage}{.49\textwidth}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/mand-args-no-add-glob.yaml}[width=.8\linewidth,before=\centering,yaml-TCB]{\texttt{mand-args-no-add-glob.yaml}}{lst:mand-args-no-add-glob}
- \end{minipage}
+ \end{cmhtcbraster}
we may run the commands \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl myenv-args.tex -local opt-args-no-add-glob.yaml
latexindent.pl myenv-args.tex -local mand-args-no-add-glob.yaml
\end{commandshell}
+
which produces the respective outputs given in
\cref{lst:myenv-args-no-add-opt,lst:myenv-args-no-add-mand}. Notice that in
\cref{lst:myenv-args-no-add-opt} the \emph{optional} argument has not received any
additional indentation, and in \cref{lst:myenv-args-no-add-mand} the \emph{mandatory}
argument has not received any additional indentation.
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/myenvironment-args-rules1-noAddGlobal3.tex}{\texttt{myenv-args.tex} using \cref{lst:opt-args-no-add-glob}}{lst:myenv-args-no-add-opt}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile{demonstrations/myenvironment-args-rules1-noAddGlobal4.tex}{\texttt{myenv-args.tex} using \cref{lst:mand-args-no-add-glob}}{lst:myenv-args-no-add-mand}
- \end{minipage}
+ \end{cmhtcbraster}
+ \end{example}
\yamltitle{indentRulesGlobal}*{fields}
The final check that \texttt{latexindent.pl} will make is to look for
@@ -3432,6 +3676,7 @@ latexindent.pl myenv-args.tex -local mand-args-no-add-glob.yaml
\cmhlistingsfromfile[style=indentRulesGlobalEnv]{../defaultSettings.yaml}[width=.5\linewidth,before=\centering,yaml-TCB]{\texttt{indentRulesGlobal}}{lst:indentRulesGlobal:environments}
+ \begin{example}
If you change the \texttt{environments} field to anything involving horizontal space, say
\lstinline!" "!, and then run the following commands \index{switches!-l demonstration}
@@ -3439,6 +3684,7 @@ latexindent.pl myenv-args.tex -local mand-args-no-add-glob.yaml
latexindent.pl myenv-args.tex -l env-indentRules.yaml
latexindent.pl myenv-args.tex -l myenv-rules1.yaml,env-indentRules.yaml
\end{commandshell}
+
then the respective output is shown in
\cref{lst:myenv-args-indent-rules-global1,lst:myenv-args-indent-rules-global2}. Note that
in \cref{lst:myenv-args-indent-rules-global1}, both the environment blocks have received
@@ -3448,30 +3694,28 @@ latexindent.pl myenv-args.tex -l myenv-rules1.yaml,env-indentRules.yaml
specified by the particular \texttt{indentRules} for \texttt{myenv}
\vref{lst:myenv-rules1}.
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[showspaces=true]{demonstrations/myenvironment-args-global-rules1.tex}{\texttt{myenv-args.tex} using \cref{lst:indentRulesGlobal:environments}}{lst:myenv-args-indent-rules-global1}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile[showspaces=true]{demonstrations/myenvironment-args-global-rules2.tex}{\texttt{myenv-args.tex} using \cref{lst:myenv-rules1,lst:indentRulesGlobal:environments}}{lst:myenv-args-indent-rules-global2}
- \end{minipage}
+ \end{cmhtcbraster}
+ \end{example}
+ \begin{example}
You can specify \texttt{indentRulesGlobal} for both optional and mandatory arguments, as
detailed in \cref{lst:opt-args-indent-rules-glob,lst:mand-args-indent-rules-glob}
- \begin{minipage}{.49\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/opt-args-indent-rules-glob.yaml}[width=.9\linewidth,before=\centering,yaml-TCB]{\texttt{opt-args-indent-rules-glob.yaml}}{lst:opt-args-indent-rules-glob}
- \end{minipage}
- \hfill
- \begin{minipage}{.49\textwidth}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/mand-args-indent-rules-glob.yaml}[width=.9\linewidth,before=\centering,yaml-TCB]{\texttt{mand-args-indent-rules-glob.yaml}}{lst:mand-args-indent-rules-glob}
- \end{minipage}
+ \end{cmhtcbraster}
Upon running the following commands \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl myenv-args.tex -local opt-args-indent-rules-glob.yaml
latexindent.pl myenv-args.tex -local mand-args-indent-rules-glob.yaml
\end{commandshell}
+
we obtain the respective outputs in
\cref{lst:myenv-args-indent-rules-global3,lst:myenv-args-indent-rules-global4}. Note that
the \emph{optional} argument in \cref{lst:myenv-args-indent-rules-global3} has received
@@ -3487,6 +3731,7 @@ latexindent.pl myenv-args.tex -local mand-args-indent-rules-glob.yaml
\cmhlistingsfromfile[showtabs=true]{demonstrations/myenvironment-args-global-rules4.tex}{\texttt{myenv-args.tex} using \cref{lst:mand-args-indent-rules-glob}}{lst:myenv-args-indent-rules-global4}
\end{minipage}
\end{widepage}
+ \end{example}
% arara: pdflatex: { files: [latexindent]}
\subsubsection{Environments with items}
With reference to \vref{lst:indentafteritems,lst:itemNames}, some commands may contain
@@ -3496,8 +3741,11 @@ latexindent.pl myenv-args.tex -local mand-args-indent-rules-glob.yaml
Assuming that you've populated \texttt{itemNames} with the name of your \texttt{item},
you can put the item name into \texttt{noAdditionalIndent} as in \cref{lst:item-noAdd1},
although a more efficient approach may be to change the relevant field in
- \texttt{itemNames} to \texttt{0}. Similarly, you can customise the indentation that your
- \texttt{item} receives using \texttt{indentRules}, as in \cref{lst:item-rules1}
+ \texttt{itemNames} to \texttt{0}.
+
+ \begin{example}
+ Similarly, you can customise the indentation that your \texttt{item} receives using
+ \texttt{indentRules}, as in \cref{lst:item-rules1}
\begin{cmhtcbraster}[raster column skip=.1\linewidth]
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/item-noAdd1.yaml}[yaml-TCB]{\texttt{item-noAdd1.yaml}}{lst:item-noAdd1}
@@ -3505,24 +3753,25 @@ latexindent.pl myenv-args.tex -local mand-args-indent-rules-glob.yaml
\end{cmhtcbraster}
Upon running the following commands \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl items1.tex -local item-noAdd1.yaml
latexindent.pl items1.tex -local item-rules1.yaml
\end{commandshell}
+
the respective outputs are given in \cref{lst:items1-noAdd1,lst:items1-rules1}; note that
in \cref{lst:items1-noAdd1} that the text after each \texttt{item} has not received any
additional indentation, and in \cref{lst:items1-rules1}, the text after each
\texttt{item} has received a single space of indentation, specified by
\cref{lst:item-rules1}.
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/items1-noAdd1.tex}{\texttt{items1.tex} using \cref{lst:item-noAdd1}}{lst:items1-noAdd1}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile[showtabs=true,showspaces=true]{demonstrations/items1-rules1.tex}{\texttt{items1.tex} using \cref{lst:item-rules1}}{lst:items1-rules1}
- \end{minipage}
+ \end{cmhtcbraster}
+ \end{example}
+ \begin{example}
Alternatively, you might like to populate \texttt{noAdditionalIndentGlobal} or
\texttt{indentRulesGlobal} using the \texttt{items} key, as demonstrated in
\cref{lst:items-noAdditionalGlobal,lst:items-indentRulesGlobal}. Note that there is a
@@ -3530,25 +3779,26 @@ latexindent.pl items1.tex -local item-rules1.yaml
(see the hierarchy description given on \cpageref{sec:noadd-indent-rules}) as the
\texttt{item} command is a member of \texttt{indentRules} by default.
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/items-noAdditionalGlobal.yaml}[yaml-TCB]{\texttt{items-noAdditionalGlobal.yaml}}{lst:items-noAdditionalGlobal}
- \end{minipage}%
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/items-indentRulesGlobal.yaml}[yaml-TCB]{\texttt{items-indentRulesGlobal.yaml}}{lst:items-indentRulesGlobal}
- \end{minipage}
+ \end{cmhtcbraster}
Upon running the following commands, \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl items1.tex -local items-noAdditionalGlobal.yaml
latexindent.pl items1.tex -local items-indentRulesGlobal.yaml
\end{commandshell}
+
the respective outputs from \cref{lst:items1-noAdd1,lst:items1-rules1} are obtained;
note, however, that \emph{all} such \texttt{item} commands without their own individual
\texttt{noAdditionalIndent} or \texttt{indentRules} settings would behave as in these
listings.
+ \end{example}
% arara: pdflatex: { files: [latexindent]}
\subsubsection{Commands with arguments}\label{subsubsec:commands-arguments}
+ \begin{example}
Let's begin with the simple example in \cref{lst:mycommand}; when \texttt{latexindent.pl}
operates on this file, the default output is shown in \cref{lst:mycommand-default}.
\footnote{The command code blocks have quite a few subtleties, described in
@@ -3563,64 +3813,60 @@ latexindent.pl items1.tex -local items-indentRulesGlobal.yaml
specify \texttt{noAdditionalIndent} either in `scalar' form, or in `field' form, as shown
in \cref{lst:mycommand-noAdd1,lst:mycommand-noAdd2}
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/mycommand-noAdd1.yaml}[width=.8\linewidth,before=\centering,yaml-TCB]{\texttt{mycommand-noAdd1.yaml}}{lst:mycommand-noAdd1}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/mycommand-noAdd2.yaml}[width=.8\linewidth,before=\centering,yaml-TCB]{\texttt{mycommand-noAdd2.yaml}}{lst:mycommand-noAdd2}
- \end{minipage}
+ \end{cmhtcbraster}
After running the following commands, \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl mycommand.tex -l mycommand-noAdd1.yaml
latexindent.pl mycommand.tex -l mycommand-noAdd2.yaml
\end{commandshell}
+
we receive the respective output given in
\cref{lst:mycommand-output-noAdd1,lst:mycommand-output-noAdd2}
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/mycommand-noAdd1.tex}{\texttt{mycommand.tex} using \cref{lst:mycommand-noAdd1}}{lst:mycommand-output-noAdd1}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile{demonstrations/mycommand-noAdd2.tex}{\texttt{mycommand.tex} using \cref{lst:mycommand-noAdd2}}{lst:mycommand-output-noAdd2}
- \end{minipage}
+ \end{cmhtcbraster}
Note that in \cref{lst:mycommand-output-noAdd1} that the `body', optional argument
\emph{and} mandatory argument have \emph{all} received no additional indentation, while
in \cref{lst:mycommand-output-noAdd2}, only the `body' has not received any additional
indentation. We define the `body' of a command as any lines following the command name
that include its optional or mandatory arguments.
+ \end{example}
+ \begin{example}
We may further customise \texttt{noAdditionalIndent} for \texttt{mycommand} as we did in
\vref{lst:myenv-noAdd5,lst:myenv-noAdd6}; explicit examples are given in
\cref{lst:mycommand-noAdd3,lst:mycommand-noAdd4}.
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/mycommand-noAdd3.yaml}[width=.9\linewidth,before=\centering,yaml-TCB]{\texttt{mycommand-noAdd3.yaml}}{lst:mycommand-noAdd3}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/mycommand-noAdd4.yaml}[width=.9\linewidth,before=\centering,yaml-TCB]{\texttt{mycommand-noAdd4.yaml}}{lst:mycommand-noAdd4}
- \end{minipage}
+ \end{cmhtcbraster}
After running the following commands, \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl mycommand.tex -l mycommand-noAdd3.yaml
latexindent.pl mycommand.tex -l mycommand-noAdd4.yaml
\end{commandshell}
+
we receive the respective output given in
\cref{lst:mycommand-output-noAdd3,lst:mycommand-output-noAdd4}.
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/mycommand-noAdd3.tex}{\texttt{mycommand.tex} using \cref{lst:mycommand-noAdd3}}{lst:mycommand-output-noAdd3}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile{demonstrations/mycommand-noAdd4.tex}{\texttt{mycommand.tex} using \cref{lst:mycommand-noAdd4}}{lst:mycommand-output-noAdd4}
- \end{minipage}
+ \end{cmhtcbraster}
+ \end{example}
+ \begin{example}
Attentive readers will note that the body of \texttt{mycommand} in both
\cref{lst:mycommand-output-noAdd3,lst:mycommand-output-noAdd4} has received no additional
indent, even though \texttt{body} is explicitly set to \texttt{0} in both
@@ -3629,96 +3875,88 @@ latexindent.pl mycommand.tex -l mycommand-noAdd4.yaml
this can be easily fixed as in
\cref{lst:mycommand-noAdd5,lst:mycommand-noAdd6}.\label{page:command:noAddGlobal}
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/mycommand-noAdd5.yaml}[width=.9\linewidth,before=\centering,yaml-TCB]{\texttt{mycommand-noAdd5.yaml}}{lst:mycommand-noAdd5}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/mycommand-noAdd6.yaml}[width=.9\linewidth,before=\centering,yaml-TCB]{\texttt{mycommand-noAdd6.yaml}}{lst:mycommand-noAdd6}
- \end{minipage}
+ \end{cmhtcbraster}
After running the following commands, \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl mycommand.tex -l mycommand-noAdd5.yaml
latexindent.pl mycommand.tex -l mycommand-noAdd6.yaml
\end{commandshell}
+
we receive the respective output given in
\cref{lst:mycommand-output-noAdd5,lst:mycommand-output-noAdd6}.
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/mycommand-noAdd5.tex}{\texttt{mycommand.tex} using \cref{lst:mycommand-noAdd5}}{lst:mycommand-output-noAdd5}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile{demonstrations/mycommand-noAdd6.tex}{\texttt{mycommand.tex} using \cref{lst:mycommand-noAdd6}}{lst:mycommand-output-noAdd6}
- \end{minipage}
+ \end{cmhtcbraster}
+ \end{example}
Both \texttt{indentRules} and \texttt{indentRulesGlobal} can be adjusted as they were for
\emph{environment} code blocks, as in \vref{lst:myenv-rules3,lst:myenv-rules4} and
\vref{lst:indentRulesGlobal:environments,lst:opt-args-indent-rules-glob,lst:mand-args-indent-rules-glob}.
% arara: pdflatex: { files: [latexindent]}
\subsubsection{ifelsefi code blocks}
+ \begin{example}
Let's use the simple example shown in \cref{lst:ifelsefi1}; when \texttt{latexindent.pl}
operates on this file, the output as in \cref{lst:ifelsefi1-default}; note that the body
of each of the \lstinline!\if! statements have been indented, and that the
\lstinline!\else! statement has been accounted for correctly.
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/ifelsefi1.tex}{\texttt{ifelsefi1.tex}}{lst:ifelsefi1}
- \end{minipage}%
- \hfill
- \begin{minipage}{.54\textwidth}
\cmhlistingsfromfile{demonstrations/ifelsefi1-default.tex}{\texttt{ifelsefi1.tex} default output}{lst:ifelsefi1-default}
- \end{minipage}
+ \end{cmhtcbraster}
It is recommended to specify \texttt{noAdditionalIndent} and \texttt{indentRules} in the
`scalar' form only for these type of code blocks, although the `field' form would work,
assuming that \texttt{body} was specified. Examples are shown in
\cref{lst:ifnum-noAdd,lst:ifnum-indent-rules}.
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/ifnum-noAdd.yaml}[width=.8\linewidth,before=\centering,yaml-TCB]{\texttt{ifnum-noAdd.yaml}}{lst:ifnum-noAdd}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/ifnum-indent-rules.yaml}[width=.8\linewidth,before=\centering,yaml-TCB]{\texttt{ifnum-indent-rules.yaml}}{lst:ifnum-indent-rules}
- \end{minipage}
+ \end{cmhtcbraster}
After running the following commands, \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl ifelsefi1.tex -local ifnum-noAdd.yaml
latexindent.pl ifelsefi1.tex -l ifnum-indent-rules.yaml
\end{commandshell}
+
we receive the respective output given in
\cref{lst:ifelsefi1-output-noAdd,lst:ifelsefi1-output-indent-rules}; note that in
\cref{lst:ifelsefi1-output-noAdd}, the \texttt{ifnum} code block has \emph{not} received
any additional indentation, while in \cref{lst:ifelsefi1-output-indent-rules}, the
\texttt{ifnum} code block has received one tab and two spaces of indentation.
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/ifelsefi1-noAdd.tex}{\texttt{ifelsefi1.tex} using \cref{lst:ifnum-noAdd}}{lst:ifelsefi1-output-noAdd}
- \end{minipage}
- \hfill
- \begin{minipage}{.5\textwidth}
\cmhlistingsfromfile[showspaces=true,showtabs=true]{demonstrations/ifelsefi1-indent-rules.tex}{\texttt{ifelsefi1.tex} using \cref{lst:ifnum-indent-rules}}{lst:ifelsefi1-output-indent-rules}
- \end{minipage}
+ \end{cmhtcbraster}
+ \end{example}
+ \begin{example}
We may specify \texttt{noAdditionalIndentGlobal} and \texttt{indentRulesGlobal} as in
\cref{lst:ifelsefi-noAdd-glob,lst:ifelsefi-indent-rules-global}.
- \begin{minipage}{.49\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/ifelsefi-noAdd-glob.yaml}[width=.9\linewidth,before=\centering,yaml-TCB]{\texttt{ifelsefi-noAdd-glob.yaml}}{lst:ifelsefi-noAdd-glob}
- \end{minipage}
- \hfill
- \begin{minipage}{.49\textwidth}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/ifelsefi-indent-rules-global.yaml}[width=.9\linewidth,before=\centering,yaml-TCB]{\texttt{ifelsefi-indent-rules-global.yaml}}{lst:ifelsefi-indent-rules-global}
- \end{minipage}
+ \end{cmhtcbraster}
Upon running the following commands \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl ifelsefi1.tex -local ifelsefi-noAdd-glob.yaml
latexindent.pl ifelsefi1.tex -l ifelsefi-indent-rules-global.yaml
\end{commandshell}
+
we receive the outputs in
\cref{lst:ifelsefi1-output-noAdd-glob,lst:ifelsefi1-output-indent-rules-global}; notice
that in \cref{lst:ifelsefi1-output-noAdd-glob} neither of the \texttt{ifelsefi} code
@@ -3726,90 +3964,86 @@ latexindent.pl ifelsefi1.tex -l ifelsefi-indent-rules-global.yaml
\cref{lst:ifelsefi1-output-indent-rules-global} both code blocks have received a single
space of indentation.
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/ifelsefi1-noAdd-glob.tex}{\texttt{ifelsefi1.tex} using \cref{lst:ifelsefi-noAdd-glob}}{lst:ifelsefi1-output-noAdd-glob}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile[showspaces=true]{demonstrations/ifelsefi1-indent-rules-global.tex}{\texttt{ifelsefi1.tex} using \cref{lst:ifelsefi-indent-rules-global}}{lst:ifelsefi1-output-indent-rules-global}
- \end{minipage}
+ \end{cmhtcbraster}
+ \end{example}
- We can further explore the treatment of \texttt{ifElseFi} code blocks
- \announce{2018-04-27}*{updates to ifElseFi code blocks} in \cref{lst:ifelsefi2}, and the
- associated default output given in \cref{lst:ifelsefi2-default}; note, in particular,
- that the bodies of each of the `or statements' have been indented.%
+ \begin{example}
+ We can further explore the treatment of \texttt{ifElseFi} code blocks in
+ \cref{lst:ifelsefi2}, and the associated default output given in
+ \cref{lst:ifelsefi2-default}; note, in particular,\announce{2018-04-27}*{updates to
+ ifElseFi code blocks} that the bodies of each of the `or statements' have been indented.%
\begin{cmhtcbraster}[raster column skip=.1\linewidth]
\cmhlistingsfromfile{demonstrations/ifelsefi2.tex}{\texttt{ifelsefi2.tex}}{lst:ifelsefi2}
\cmhlistingsfromfile{demonstrations/ifelsefi2-default.tex}{\texttt{ifelsefi2.tex} default output}{lst:ifelsefi2-default}
\end{cmhtcbraster}
+ \end{example}
% arara: pdflatex: {files: [latexindent]}
\subsubsection{specialBeginEnd code blocks}
Let's use the example from \vref{lst:specialbefore} which has default output shown in
\vref{lst:specialafter}.
+ \begin{example}
It is recommended to specify \texttt{noAdditionalIndent} and \texttt{indentRules} in the
`scalar' form for these type of code blocks, although the `field' form would work,
assuming that \texttt{body} was specified. Examples are shown in
\cref{lst:displayMath-noAdd,lst:displayMath-indent-rules}.
\index{specialBeginEnd!noAdditionalIndent} \index{specialBeginEnd!indentRules example}
- \begin{minipage}{.49\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/displayMath-noAdd.yaml}[width=.9\linewidth,before=\centering,yaml-TCB]{\texttt{displayMath-noAdd.yaml}}{lst:displayMath-noAdd}
- \end{minipage}
- \hfill
- \begin{minipage}{.49\textwidth}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/displayMath-indent-rules.yaml}[width=.9\linewidth,before=\centering,yaml-TCB]{\texttt{displayMath-indent-rules.yaml}}{lst:displayMath-indent-rules}
- \end{minipage}
+ \end{cmhtcbraster}
After running the following commands, \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl special1.tex -local displayMath-noAdd.yaml
latexindent.pl special1.tex -l displayMath-indent-rules.yaml
\end{commandshell}
+
we receive the respective output given in
\cref{lst:special1-output-noAdd,lst:special1-output-indent-rules}; note that in
\cref{lst:special1-output-noAdd}, the \texttt{displayMath} code block has \emph{not}
received any additional indentation, while in \cref{lst:special1-output-indent-rules},
the \texttt{displayMath} code block has received three tabs worth of indentation.
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/special1-noAdd.tex}{\texttt{special1.tex} using \cref{lst:displayMath-noAdd}}{lst:special1-output-noAdd}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile[showtabs=true]{demonstrations/special1-indent-rules.tex}{\texttt{special1.tex} using \cref{lst:displayMath-indent-rules}}{lst:special1-output-indent-rules}
- \end{minipage}
+ \end{cmhtcbraster}
+ \end{example}
+ \begin{example}
We may specify \texttt{noAdditionalIndentGlobal} and \texttt{indentRulesGlobal} as in
\cref{lst:special-noAdd-glob,lst:special-indent-rules-global}.
- \begin{minipage}{.49\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/special-noAdd-glob.yaml}[width=.9\linewidth,before=\centering,yaml-TCB]{\texttt{special-noAdd-glob.yaml}}{lst:special-noAdd-glob}
- \end{minipage}
- \hfill
- \begin{minipage}{.49\textwidth}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/special-indent-rules-global.yaml}[width=.9\linewidth,before=\centering,yaml-TCB]{\texttt{special-indent-rules-global.yaml}}{lst:special-indent-rules-global}
- \end{minipage}
+ \end{cmhtcbraster}
Upon running the following commands \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl special1.tex -local special-noAdd-glob.yaml
latexindent.pl special1.tex -l special-indent-rules-global.yaml
\end{commandshell}
+
we receive the outputs in
\cref{lst:special1-output-noAdd-glob,lst:special1-output-indent-rules-global}; notice
that in \cref{lst:special1-output-noAdd-glob} neither of the \texttt{special} code blocks
have received indentation, while in \cref{lst:special1-output-indent-rules-global} both
code blocks have received a single space of indentation.
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/special1-noAdd-glob.tex}{\texttt{special1.tex} using \cref{lst:special-noAdd-glob}}{lst:special1-output-noAdd-glob}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile[showspaces=true]{demonstrations/special1-indent-rules-global.tex}{\texttt{special1.tex} using \cref{lst:special-indent-rules-global}}{lst:special1-output-indent-rules-global}
- \end{minipage}
+ \end{cmhtcbraster}
+ \end{example}
% arara: pdflatex: { files: [latexindent]}
\subsubsection{afterHeading code blocks}\label{subsubsec-headings-no-add-indent-rules}
Let's use the example \cref{lst:headings2} for demonstration throughout this
@@ -3819,11 +4053,14 @@ latexindent.pl special1.tex -l special-indent-rules-global.yaml
\cmhlistingsfromfile{demonstrations/headings2.tex}{\texttt{headings2.tex}}{lst:headings2}
+ \begin{example}
On using the YAML file in \cref{lst:headings3yaml} by running the command
\index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl headings2.tex -l headings3.yaml
\end{commandshell}
+
we obtain the output in \cref{lst:headings2-mod3}. Note that the argument of
\texttt{paragraph} has received (default) indentation, and that the body after the
heading statement has received (default) indentation.
@@ -3835,9 +4072,11 @@ latexindent.pl headings2.tex -l headings3.yaml
If we specify \texttt{noAdditionalIndent} as in \cref{lst:headings4yaml} and run the
command \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl headings2.tex -l headings4.yaml
\end{commandshell}
+
then we receive the output in \cref{lst:headings2-mod4}. Note that the arguments
\emph{and} the body after the heading of \texttt{paragraph} has received no additional
indentation, because we have specified \texttt{noAdditionalIndent} in scalar form.
@@ -3846,7 +4085,9 @@ latexindent.pl headings2.tex -l headings4.yaml
\cmhlistingsfromfile{demonstrations/headings2-mod4.tex}{\texttt{headings2.tex} using \cref{lst:headings4yaml}}{lst:headings2-mod4}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/headings4.yaml}[yaml-TCB]{\texttt{headings4.yaml}}{lst:headings4yaml}
\end{cmhtcbraster}
+ \end{example}
+ \begin{example}
Similarly, if we specify \texttt{indentRules} as in \cref{lst:headings5yaml} and run
analogous commands to those above, we receive the output in \cref{lst:headings2-mod5};
note that the \emph{body}, \emph{mandatory argument} and content \emph{after the heading}
@@ -3859,7 +4100,9 @@ latexindent.pl headings2.tex -l headings4.yaml
\cmhlistingsfromfile[showtabs=true]{demonstrations/headings2-mod5.tex}{\texttt{headings2.tex} using \cref{lst:headings5yaml}}{lst:headings2-mod5}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/headings5.yaml}[yaml-TCB]{\texttt{headings5.yaml}}{lst:headings5yaml}
\end{cmhtcbraster}
+ \end{example}
+ \begin{example}
We may, instead, specify \texttt{noAdditionalIndent} in `field' form, as in
\cref{lst:headings6yaml} which gives the output in \cref{lst:headings2-mod6}.
@@ -3867,7 +4110,9 @@ latexindent.pl headings2.tex -l headings4.yaml
\cmhlistingsfromfile{demonstrations/headings2-mod6.tex}{\texttt{headings2.tex} using \cref{lst:headings6yaml}}{lst:headings2-mod6}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/headings6.yaml}[yaml-TCB]{\texttt{headings6.yaml}}{lst:headings6yaml}
\end{cmhtcbraster}
+ \end{example}
+ \begin{example}
Analogously, we may specify \texttt{indentRules} as in \cref{lst:headings7yaml} which
gives the output in \cref{lst:headings2-mod7}; note that mandatory argument text has only
received a single space of indentation, while the body after the heading has received
@@ -3877,7 +4122,9 @@ latexindent.pl headings2.tex -l headings4.yaml
\cmhlistingsfromfile[showtabs=true]{demonstrations/headings2-mod7.tex}{\texttt{headings2.tex} using \cref{lst:headings7yaml}}{lst:headings2-mod7}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/headings7.yaml}[yaml-TCB]{\texttt{headings7.yaml}}{lst:headings7yaml}
\end{cmhtcbraster}
+ \end{example}
+ \begin{example}
Finally, let's consider \texttt{noAdditionalIndentGlobal} and \texttt{indentRulesGlobal}
shown in \cref{lst:headings8yaml,lst:headings9yaml} respectively, with respective output
in \cref{lst:headings2-mod8,lst:headings2-mod9}. Note that in \cref{lst:headings8yaml}
@@ -3897,6 +4144,7 @@ latexindent.pl headings2.tex -l headings4.yaml
\cmhlistingsfromfile[showspaces=true,showtabs=true]{demonstrations/headings2-mod9.tex}{\texttt{headings2.tex} using \cref{lst:headings9yaml}}{lst:headings2-mod9}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/headings9.yaml}[yaml-TCB]{\texttt{headings9.yaml}}{lst:headings9yaml}
\end{cmhtcbraster}
+ \end{example}
% arara: pdflatex: { files: [latexindent]}
\subsubsection{The remaining code blocks}
Referencing the different types of code blocks in \vref{tab:code-blocks}, we have a few
@@ -3918,16 +4166,14 @@ latexindent.pl headings2.tex -l headings4.yaml
\texttt{keyEqualsValuesBracesBrackets: name} fields of the fine tuning section in
\vref{lst:fineTuning} \announce{2019-07-13}{fine tuning: keyEqualsValuesBracesBrackets}%
+ \begin{example}
An example is shown in \cref{lst:pgfkeysbefore}, with the default output given in
\cref{lst:pgfkeys1:default}.
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/pgfkeys1.tex}{\texttt{pgfkeys1.tex}}{lst:pgfkeysbefore}
- \end{minipage}%
- \hfill
- \begin{minipage}{.5\textwidth}
\cmhlistingsfromfile[showtabs=true]{demonstrations/pgfkeys1-default.tex}{\texttt{pgfkeys1.tex} default output}{lst:pgfkeys1:default}
- \end{minipage}%
+ \end{cmhtcbraster}
In \cref{lst:pgfkeys1:default}, note that the maximum indentation is three tabs, and
these come from:
@@ -3939,6 +4185,8 @@ latexindent.pl headings2.tex -l headings4.yaml
the \emph{body} field for \texttt{noAdditionalIndent} and friends from
\cpageref{sec:noadd-indent-rules}.
\end{itemize}
+ \end{example}
+
\paragraph{namedGroupingBracesBrackets} This type of code block is mostly motivated by
tikz-based code; we define this code block as follows:
\begin{itemize}
@@ -3953,16 +4201,14 @@ latexindent.pl headings2.tex -l headings4.yaml
\texttt{NamedGroupingBracesBrackets: name} fields of the fine tuning section in
\vref{lst:fineTuning} \announce{2019-07-13}{fine tuning: namedGroupingBracesBrackets}%
+ \begin{example}
A simple example is given in \cref{lst:child1}, with default output in
\cref{lst:child1:default}.
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/child1.tex}{\texttt{child1.tex}}{lst:child1}
- \end{minipage}%
- \hfill
- \begin{minipage}{.5\textwidth}
\cmhlistingsfromfile[showtabs=true]{demonstrations/child1-default.tex}{\texttt{child1.tex} default output}{lst:child1:default}
- \end{minipage}%
+ \end{cmhtcbraster}
In particular, \texttt{latexindent.pl} considers \texttt{child}, \texttt{parent} and
\texttt{node} all to be \texttt{namedGroupingBracesBrackets}\footnote{ You may like to
@@ -3976,6 +4222,7 @@ latexindent.pl headings2.tex -l headings4.yaml
controlled by the \emph{body} field for \texttt{noAdditionalIndent} and friends from
\cpageref{sec:noadd-indent-rules}.
\end{itemize}
+ \end{example}
\paragraph{UnNamedGroupingBracesBrackets} occur in a variety of situations; specifically, we
define this type of code block as satisfying the following criteria:
@@ -3988,16 +4235,14 @@ latexindent.pl headings2.tex -l headings4.yaml
See the \texttt{UnNamedGroupingBracesBrackets: follow} field of the fine tuning section
in \vref{lst:fineTuning} \announce{2019-07-13}{fine tuning: namedGroupingBracesBrackets}%
+ \begin{example}
An example is shown in \cref{lst:psforeach1} with default output give in
\cref{lst:psforeach:default}.
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/psforeach1.tex}{\texttt{psforeach1.tex}}{lst:psforeach1}
- \end{minipage}%
- \hfill
- \begin{minipage}{.5\textwidth}
\cmhlistingsfromfile[showtabs=true]{demonstrations/psforeach1-default.tex}{\texttt{psforeach1.tex} default output}{lst:psforeach:default}
- \end{minipage}%
+ \end{cmhtcbraster}
Referencing \cref{lst:psforeach:default}, there are \emph{three} sets of unnamed braces.
Note also that the maximum value of indentation is three tabs, and these come from:
@@ -4009,6 +4254,8 @@ latexindent.pl headings2.tex -l headings4.yaml
part controlled by the \emph{body} field for \texttt{noAdditionalIndent} and friends from
\cpageref{sec:noadd-indent-rules}.
\end{itemize}
+ \end{example}
+
Users wishing to customise the mandatory and/or optional arguments on a \emph{per-name}
basis for the \texttt{UnNamedGroupingBracesBrackets} should use \texttt{always-un-named}.
@@ -4046,17 +4293,15 @@ latexindent.pl headings2.tex -l headings4.yaml
\yamltitle{roundParenthesesAllowed}{0|1}
+ \begin{example}
The need for this field was mostly motivated by commands found in code used to generate
images in \texttt{PSTricks} and \texttt{tikz}; for example, let's consider the code given
in \cref{lst:pstricks1}.
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/pstricks1.tex}{\texttt{pstricks1.tex}}{lst:pstricks1}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile{demonstrations/pstricks1-default.tex}{\texttt{pstricks1} default output}{lst:pstricks1-default}
- \end{minipage}
+ \end{cmhtcbraster}
Notice that the \lstinline!\defFunction! command has an optional argument, followed by a
mandatory argument, followed by a round-parenthesis argument, $(u,v)$.
@@ -4074,9 +4319,11 @@ latexindent.pl headings2.tex -l headings4.yaml
Upon using the YAML settings in \cref{lst:noRoundParentheses}, and running the command
\index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl pstricks1.tex -l noRoundParentheses.yaml
\end{commandshell}
+
we obtain the output given in \cref{lst:pstricks1-nrp}.
\begin{cmhtcbraster}[raster column skip=.1\linewidth]
@@ -4091,12 +4338,16 @@ latexindent.pl pstricks1.tex -l noRoundParentheses.yaml
arguments are found to be \texttt{UnNamedGroupingBracesBrackets} (see
\vref{tab:code-blocks}) which, by default, assume indentation for their body, and hence
the tabbed indentation in \cref{lst:pstricks1-nrp}.
+ \end{example}
+ \begin{example}
Let's explore this using the YAML given in \cref{lst:defFunction} and run the command
\index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl pstricks1.tex -l defFunction.yaml
\end{commandshell}
+
then the output is as in \cref{lst:pstricks1-indent-rules}.
\begin{cmhtcbraster}[raster column skip=.1\linewidth]
@@ -4108,19 +4359,18 @@ latexindent.pl pstricks1.tex -l defFunction.yaml
\lstinline!defFunction! command i.e, the subsequent lines containing arguments after the
command name, have received the single space of indentation specified by
\cref{lst:defFunction}.
+ \end{example}
\yamltitle{stringsAllowedBetweenArguments}*{fields}
+ \begin{example}
\texttt{tikz} users may well specify code such as that given in
\cref{lst:tikz-node1}; processing this code using
\texttt{latexindent.pl} gives the default output in \cref{lst:tikz-node1-default}.
- \begin{minipage}{.45\textwidth}
- \cmhlistingsfromfile[columns=fixed]{demonstrations/tikz-node1.tex}{\texttt{tikz-node1.tex}}{lst:tikz-node1}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
- \cmhlistingsfromfile[columns=fixed]{demonstrations/tikz-node1-default.tex}{\texttt{tikz-node1} default output}{lst:tikz-node1-default}
- \end{minipage}
+ \begin{cmhtcbraster}
+ \cmhlistingsfromfile{demonstrations/tikz-node1.tex}{\texttt{tikz-node1.tex}}{lst:tikz-node1}
+ \cmhlistingsfromfile{demonstrations/tikz-node1-default.tex}{\texttt{tikz-node1} default output}{lst:tikz-node1-default}
+ \end{cmhtcbraster}
With reference to \vref{lst:commandCodeBlocks}, we see that the strings
\begin{quote}
@@ -4141,12 +4391,16 @@ latexindent.pl pstricks1.tex -l defFunction.yaml
\item the string \lstinline!node! (specified in \texttt{stringsAllowedBetweenArguments})
\item the optional argument \lstinline![below,align=left,scale=0.5]!
\end{itemize}
+ \end{example}
+ \begin{example}
We can explore this further, for example using \cref{lst:draw} and running the command
\index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl tikz-node1.tex -l draw.yaml
\end{commandshell}
+
we receive the output given in \cref{lst:tikz-node1-draw}.
\begin{cmhtcbraster}[raster column skip=.1\linewidth]
@@ -4160,9 +4414,11 @@ latexindent.pl tikz-node1.tex -l draw.yaml
Let's compare this with the output from using the YAML settings in \cref{lst:no-strings},
and running the command \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl tikz-node1.tex -l no-strings.yaml
\end{commandshell}
+
given in \cref{lst:tikz-node1-no-strings}.
\begin{cmhtcbraster}[raster column skip=.1\linewidth]
@@ -4180,6 +4436,7 @@ latexindent.pl tikz-node1.tex -l no-strings.yaml
\item it finds another \texttt{namedGroupingBracesBrackets} but this time called \texttt{node}
with argument \lstinline![below,align=left,scale=0.5]!
\end{itemize}
+ \end{example}
Referencing \vref{lst:commandCodeBlocks}, \announce{2018-04-27}*{amalgamate feature in
commandCodeBlocks}, we see that the first field in the
@@ -4209,6 +4466,7 @@ latexindent.pl tikz-node1.tex -l no-strings.yaml
field, and specified using the syntax given in
\cref{lst:amalgamate-demo1,lst:amalgamate-demo2,lst:amalgamate-demo3}.
+ \begin{example}
We may explore this feature further with the code in \cref{lst:for-each}, whose default
output is given in \cref{lst:for-each-default}.
@@ -4219,9 +4477,11 @@ latexindent.pl tikz-node1.tex -l no-strings.yaml
Let's compare this with the output from using the YAML settings in \cref{lst:foreach},
and running the command \index{switches!-l demonstration}
+
\begin{commandshell}
latexindent.pl for-each.tex -l foreach.yaml
\end{commandshell}
+
given in \cref{lst:for-each-mod1}.
\begin{cmhtcbraster}[raster column skip=.1\linewidth]
@@ -4236,6 +4496,7 @@ latexindent.pl for-each.tex -l foreach.yaml
\cref{lst:for-each-mod1} the \texttt{foreach} command has been allowed to have
\lstinline!\x/\y! and \texttt{in} between arguments because of the settings given in
\cref{lst:foreach}.
+ \end{example}
\yamltitle{commandNameSpecial}*{fields}
There are some special command names \announce{2018-04-27}*{commandNameSpecial} that do
@@ -4246,6 +4507,7 @@ latexindent.pl for-each.tex -l foreach.yaml
\texttt{latexindent.pl} would not be able to label it as such, because the \lstinline![!
is, necessarily, not matched by a closing \lstinline!]!.%
+ \begin{example}
For example, consider the sample file in \cref{lst:ifnextchar}, which has default output
in \cref{lst:ifnextchar-default}.
@@ -4271,6 +4533,7 @@ latexindent.pl for-each.tex -l foreach.yaml
\cmhlistingsfromfile{demonstrations/ifnextchar-off.tex}{\texttt{ifnextchar.tex} using \cref{lst:no-ifnextchar}}{lst:ifnextchar-off}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/no-ifnextchar.yaml}[yaml-TCB]{\texttt{no-ifnextchar.yaml}}{lst:no-ifnextchar}
\end{cmhtcbraster}
+ \end{example}
The \texttt{amalgamate} field can be used for \texttt{commandNameSpecial}, just as for
\texttt{stringsAllowedBetweenArguments}. The same condition holds as stated previously,
@@ -4329,11 +4592,16 @@ latexindent.pl for-each.tex -l foreach.yaml
\yamltitle{condenseMultipleBlankLinesInto}*{positive integer}
Assuming that this switch takes an integer value greater than \texttt{0},
\texttt{latexindent.pl} will condense multiple blank lines into the number of blank lines
- illustrated by this switch. As an example, \cref{lst:mlb-bl} shows a sample file with
- blank lines; upon running \index{switches!-m demonstration}
+ illustrated by this switch.
+
+ \begin{example}
+ As an example, \cref{lst:mlb-bl} shows a sample file with blank lines; upon running
+ \index{switches!-m demonstration}
+
\begin{commandshell}
latexindent.pl myfile.tex -m -o=+-mod1
\end{commandshell}
+
the output is shown in \cref{lst:mlb-bl-out}; note that the multiple blank lines have
been condensed into one blank line, and note also that we have used the \texttt{-m}
switch!
@@ -4342,6 +4610,7 @@ latexindent.pl myfile.tex -m -o=+-mod1
\cmhlistingsfromfile{demonstrations/mlb1.tex}{\texttt{mlb1.tex}}{lst:mlb-bl}
\cmhlistingsfromfile{demonstrations/mlb1-out.tex}{\texttt{mlb1-mod1.tex}}{lst:mlb-bl-out}
\end{cmhtcbraster}
+ \end{example}
% arara: pdflatex: { files: [latexindent]}
\subsection{Text Wrapping}\label{subsec:textwrapping}
\announce{2022-03-13}{text wrap overhaul}\emph{The text wrapping routine has been over-hauled as
@@ -4392,58 +4661,64 @@ latexindent.pl myfile.tex -m -o=+-mod1
\subsubsection{Text wrap: simple examples}\label{subsec:textwrapping-quick-start}
\begin{example}
- Let's use the sample text given in \cref{lst:textwrap1}. \index{text wrap!quick start}
+ Let's use the sample text given in \cref{lst:textwrap1}. \index{text wrap!quick start}
- \cmhlistingsfromfile{demonstrations/textwrap1.tex}{\texttt{textwrap1.tex}}{lst:textwrap1}
+ \cmhlistingsfromfile{demonstrations/textwrap1.tex}{\texttt{textwrap1.tex}}{lst:textwrap1}
- We will change the value of \texttt{columns} in \cref{lst:textwrap1-yaml} and then run
- the command
- \begin{commandshell}
+ We will change the value of \texttt{columns} in \cref{lst:textwrap1-yaml} and then run
+ the command
+
+ \begin{commandshell}
latexindent.pl -m -l textwrap1.yaml textwrap1.tex
\end{commandshell}
- then we receive the output given in \cref{lst:textwrap1-mod1}.
- \begin{cmhtcbraster}[raster column skip=.1\linewidth]
- \cmhlistingsfromfile{demonstrations/textwrap1-mod1.tex}{\texttt{textwrap1-mod1.tex}}{lst:textwrap1-mod1}
- \cmhlistingsfromfile{demonstrations/textwrap1.yaml}[MLB-TCB]{\texttt{textwrap1.yaml}}{lst:textwrap1-yaml}
- \end{cmhtcbraster}
+ then we receive the output given in \cref{lst:textwrap1-mod1}.
+
+ \begin{cmhtcbraster}[raster column skip=.1\linewidth]
+ \cmhlistingsfromfile{demonstrations/textwrap1-mod1.tex}{\texttt{textwrap1-mod1.tex}}{lst:textwrap1-mod1}
+ \cmhlistingsfromfile{demonstrations/textwrap1.yaml}[MLB-TCB]{\texttt{textwrap1.yaml}}{lst:textwrap1-yaml}
+ \end{cmhtcbraster}
\end{example}
\begin{example}
- If we set \texttt{columns} to $-1$ then \texttt{latexindent.pl} remove line breaks within
- the text wrap block, and will \emph{not} perform text wrapping. We can use this to undo
- text wrapping. \index{text wrap!setting columns to -1}
+ If we set \texttt{columns} to $-1$ then \texttt{latexindent.pl} remove line breaks within
+ the text wrap block, and will \emph{not} perform text wrapping. We can use this to undo
+ text wrapping. \index{text wrap!setting columns to -1}
- Starting from the file in \cref{lst:textwrap1-mod1} and using the settings in
- \cref{lst:textwrap1A-yaml}
+ Starting from the file in \cref{lst:textwrap1-mod1} and using the settings in
+ \cref{lst:textwrap1A-yaml}
- \cmhlistingsfromfile{demonstrations/textwrap1A.yaml}[MLB-TCB]{\texttt{textwrap1A.yaml}}{lst:textwrap1A-yaml}
+ \cmhlistingsfromfile{demonstrations/textwrap1A.yaml}[MLB-TCB]{\texttt{textwrap1A.yaml}}{lst:textwrap1A-yaml}
- and running
- \begin{commandshell}
+ and running
+
+ \begin{commandshell}
latexindent.pl -m -l textwrap1A.yaml textwrap1-mod1.tex
\end{commandshell}
- gives the output in \cref{lst:textwrap1-mod1A}.
- \cmhlistingsfromfile{demonstrations/textwrap1-mod1A.tex}{\texttt{textwrap1-mod1A.tex}}{lst:textwrap1-mod1A}
+ gives the output in \cref{lst:textwrap1-mod1A}.
+
+ \cmhlistingsfromfile{demonstrations/textwrap1-mod1A.tex}{\texttt{textwrap1-mod1A.tex}}{lst:textwrap1-mod1A}
\end{example}
\begin{example}
- By default, the text wrapping routine will convert multiple spaces into single spaces.
- You can change this behaviour by flicking the switch \texttt{multipleSpacesToSingle}
- which we have done in \cref{lst:textwrap1B-yaml}
+ By default, the text wrapping routine will convert multiple spaces into single spaces.
+ You can change this behaviour by flicking the switch \texttt{multipleSpacesToSingle}
+ which we have done in \cref{lst:textwrap1B-yaml}
- Using the settings in \cref{lst:textwrap1B-yaml} and running
- \begin{commandshell}
+ Using the settings in \cref{lst:textwrap1B-yaml} and running
+
+ \begin{commandshell}
latexindent.pl -m -l textwrap1B.yaml textwrap1-mod1.tex
\end{commandshell}
- gives the output in \cref{lst:textwrap1-mod1B}.
- \begin{cmhtcbraster}[raster column skip=.1\linewidth]
- \cmhlistingsfromfile{demonstrations/textwrap1B.yaml}[MLB-TCB]{\texttt{textwrap1B.yaml}}{lst:textwrap1B-yaml}
- \cmhlistingsfromfile[showspaces=true]{demonstrations/textwrap1-mod1B.tex}{\texttt{textwrap1-mod1B.tex}}{lst:textwrap1-mod1B}
- \end{cmhtcbraster}
- We note that in \cref{lst:textwrap1-mod1B} the multiple spaces have \emph{not} been
- condensed into single spaces.
+
+ gives the output in \cref{lst:textwrap1-mod1B}.
+ \begin{cmhtcbraster}[raster column skip=.1\linewidth]
+ \cmhlistingsfromfile{demonstrations/textwrap1B.yaml}[MLB-TCB]{\texttt{textwrap1B.yaml}}{lst:textwrap1B-yaml}
+ \cmhlistingsfromfile[showspaces=true]{demonstrations/textwrap1-mod1B.tex}{\texttt{textwrap1-mod1B.tex}}{lst:textwrap1-mod1B}
+ \end{cmhtcbraster}
+ We note that in \cref{lst:textwrap1-mod1B} the multiple spaces have \emph{not} been
+ condensed into single spaces.
\end{example}
\subsubsection{Text wrap: \texttt{blocksFollow} examples}
@@ -4451,77 +4726,82 @@ latexindent.pl -m -l textwrap1B.yaml textwrap1-mod1.tex
wrap!blocksFollow}
\begin{example}
- Let's use the sample text given in \cref{lst:tw-headings1}. \index{text
- wrap!blocksFollow!headings}
+ Let's use the sample text given in \cref{lst:tw-headings1}. \index{text
+ wrap!blocksFollow!headings}
- \cmhlistingsfromfile{demonstrations/tw-headings1.tex}{\texttt{tw-headings1.tex}}{lst:tw-headings1}
+ \cmhlistingsfromfile{demonstrations/tw-headings1.tex}{\texttt{tw-headings1.tex}}{lst:tw-headings1}
- We note that \cref{lst:tw-headings1} contains the heading commands \texttt{section} and
- \texttt{subsection}. Upon running the command
- \begin{commandshell}
+ We note that \cref{lst:tw-headings1} contains the heading commands \texttt{section} and
+ \texttt{subsection}. Upon running the command
+
+ \begin{commandshell}
latexindent.pl -m -l textwrap1.yaml tw-headings1.tex
\end{commandshell}
- then we receive the output given in \cref{lst:tw-headings1-mod1}.
- \cmhlistingsfromfile{demonstrations/tw-headings1-mod1.tex}{\texttt{tw-headings1-mod1.tex}}{lst:tw-headings1-mod1}
+ then we receive the output given in \cref{lst:tw-headings1-mod1}.
- We reference \vref{lst:textWrapOptionsAll} and also \vref{lst:indentAfterHeadings}:
- \begin{itemize}
- \item in \cref{lst:textWrapOptionsAll} the \texttt{headings} field is set to \texttt{1}, which
- instructs \texttt{latexindent.pl} to read the fields from \vref{lst:indentAfterHeadings},
- \emph{regardless of the value of indentAfterThisHeading or level};
- \item the default is to assume that the heading command can, optionally, be followed by a
- \texttt{label} command.
- \end{itemize}
- If you find scenarios in which the default value of \texttt{headings} does not work, then
- you can explore the \texttt{other} field.
+ \cmhlistingsfromfile{demonstrations/tw-headings1-mod1.tex}{\texttt{tw-headings1-mod1.tex}}{lst:tw-headings1-mod1}
- We can turn off \texttt{headings} as in \cref{lst:bf-no-headings-yaml} and then run
- \begin{commandshell}
+ We reference \vref{lst:textWrapOptionsAll} and also \vref{lst:indentAfterHeadings}:
+ \begin{itemize}
+ \item in \cref{lst:textWrapOptionsAll} the \texttt{headings} field is set to \texttt{1}, which
+ instructs \texttt{latexindent.pl} to read the fields from \vref{lst:indentAfterHeadings},
+ \emph{regardless of the value of indentAfterThisHeading or level};
+ \item the default is to assume that the heading command can, optionally, be followed by a
+ \texttt{label} command.
+ \end{itemize}
+ If you find scenarios in which the default value of \texttt{headings} does not work, then
+ you can explore the \texttt{other} field.
+
+ We can turn off \texttt{headings} as in \cref{lst:bf-no-headings-yaml} and then run
+
+ \begin{commandshell}
latexindent.pl -m -l textwrap1.yaml,bf-no-headings.yaml tw-headings1.tex
\end{commandshell}
- gives the output in \cref{lst:tw-headings1-mod2}, in which text wrapping has been
- instructed \emph{not to happen} following headings.
- \begin{cmhtcbraster}[raster column skip=.1\linewidth,
- raster left skip=-3.5cm,
- raster right skip=-2cm,
- ]
- \cmhlistingsfromfile{demonstrations/bf-no-headings.yaml}[MLB-TCB]{\texttt{bf-no-headings.yaml}}{lst:bf-no-headings-yaml}
- \cmhlistingsfromfile{demonstrations/tw-headings1-mod2.tex}{\texttt{tw-headings1-mod2.tex}}{lst:tw-headings1-mod2}
- \end{cmhtcbraster}
+
+ gives the output in \cref{lst:tw-headings1-mod2}, in which text wrapping has been
+ instructed \emph{not to happen} following headings.
+ \begin{cmhtcbraster}
+ \cmhlistingsfromfile{demonstrations/bf-no-headings.yaml}[MLB-TCB]{\texttt{bf-no-headings.yaml}}{lst:bf-no-headings-yaml}
+ \cmhlistingsfromfile{demonstrations/tw-headings1-mod2.tex}{\texttt{tw-headings1-mod2.tex}}{lst:tw-headings1-mod2}
+ \end{cmhtcbraster}
\end{example}
\begin{example}
- Let's use the sample text given in \cref{lst:tw-comments1}. \index{text
- wrap!blocksFollow!comments}
+ Let's use the sample text given in \cref{lst:tw-comments1}. \index{text
+ wrap!blocksFollow!comments}
- \cmhlistingsfromfile{demonstrations/tw-comments1.tex}{\texttt{tw-comments1.tex}}{lst:tw-comments1}
+ \cmhlistingsfromfile{demonstrations/tw-comments1.tex}{\texttt{tw-comments1.tex}}{lst:tw-comments1}
- We note that \cref{lst:tw-comments1} contains trailing comments. Upon running the command
- \begin{commandshell}
+ We note that \cref{lst:tw-comments1} contains trailing comments. Upon running the command
+
+ \begin{commandshell}
latexindent.pl -m -l textwrap1.yaml tw-comments1.tex
\end{commandshell}
- then we receive the output given in \cref{lst:tw-comments1-mod1}.
- \cmhlistingsfromfile{demonstrations/tw-comments1-mod1.tex}{\texttt{tw-comments1-mod1.tex}}{lst:tw-comments1-mod1}
+ then we receive the output given in \cref{lst:tw-comments1-mod1}.
- With reference to \vref{lst:textWrapOptionsAll} the \texttt{commentOnPreviousLine} field
- is set to \texttt{1}, which instructs \texttt{latexindent.pl} to find text wrap blocks
- after a comment on its own line.
+ \cmhlistingsfromfile{demonstrations/tw-comments1-mod1.tex}{\texttt{tw-comments1-mod1.tex}}{lst:tw-comments1-mod1}
- We can turn off \texttt{comments} as in \cref{lst:bf-no-comments-yaml} and then run
- \begin{commandshell}
+ With reference to \vref{lst:textWrapOptionsAll} the \texttt{commentOnPreviousLine} field
+ is set to \texttt{1}, which instructs \texttt{latexindent.pl} to find text wrap blocks
+ after a comment on its own line.
+
+ We can turn off \texttt{comments} as in \cref{lst:bf-no-comments-yaml} and then run
+
+ \begin{commandshell}
latexindent.pl -m -l textwrap1.yaml,bf-no-comments.yaml tw-comments1.tex
\end{commandshell}
- gives the output in \cref{lst:tw-comments1-mod2}, in which text wrapping has been
- instructed \emph{not to happen} following comments on their own line.
- \begin{cmhtcbraster}[raster column skip=.1\linewidth,
- raster left skip=-3.5cm,
- raster right skip=-2cm,
- ]
- \cmhlistingsfromfile{demonstrations/bf-no-comments.yaml}[MLB-TCB]{\texttt{bf-no-comments.yaml}}{lst:bf-no-comments-yaml}
- \cmhlistingsfromfile{demonstrations/tw-comments1-mod2.tex}{\texttt{tw-comments1-mod2.tex}}{lst:tw-comments1-mod2}
- \end{cmhtcbraster}
+
+ gives the output in \cref{lst:tw-comments1-mod2}, in which text wrapping has been
+ instructed \emph{not to happen} following comments on their own line.
+ \begin{cmhtcbraster}[raster column skip=.1\linewidth,
+ raster left skip=-3.5cm,
+ raster right skip=-2cm,
+ ]
+ \cmhlistingsfromfile{demonstrations/bf-no-comments.yaml}[MLB-TCB]{\texttt{bf-no-comments.yaml}}{lst:bf-no-comments-yaml}
+ \cmhlistingsfromfile{demonstrations/tw-comments1-mod2.tex}{\texttt{tw-comments1-mod2.tex}}{lst:tw-comments1-mod2}
+ \end{cmhtcbraster}
\end{example}
Referencing \vref{lst:textWrapOptionsAll} the \texttt{blocksFollow} fields \texttt{par},
@@ -4535,37 +4815,41 @@ latexindent.pl -m -l textwrap1.yaml,bf-no-comments.yaml tw-comments1.tex
bracket}, or in other words, \emph{end of display math} or an item command.
\begin{example}
- Let's use the sample text given in \cref{lst:tw-disp-math1}. \index{text
- wrap!blocksFollow!other} \index{regular expressions!text wrap!blocksFollow}
+ Let's use the sample text given in \cref{lst:tw-disp-math1}. \index{text
+ wrap!blocksFollow!other} \index{regular expressions!text wrap!blocksFollow}
- \cmhlistingsfromfile{demonstrations/tw-disp-math1.tex}{\texttt{tw-disp-math1.tex}}{lst:tw-disp-math1}
+ \cmhlistingsfromfile{demonstrations/tw-disp-math1.tex}{\texttt{tw-disp-math1.tex}}{lst:tw-disp-math1}
- We note that \cref{lst:tw-disp-math1} contains display math. Upon running the command
- \begin{commandshell}
+ We note that \cref{lst:tw-disp-math1} contains display math. Upon running the command
+
+ \begin{commandshell}
latexindent.pl -m -l textwrap1.yaml tw-disp-math1.tex
\end{commandshell}
- then we receive the output given in \cref{lst:tw-disp-math1-mod1}.
- \cmhlistingsfromfile{demonstrations/tw-disp-math1-mod1.tex}{\texttt{tw-disp-math1-mod1.tex}}{lst:tw-disp-math1-mod1}
+ then we receive the output given in \cref{lst:tw-disp-math1-mod1}.
- With reference to \vref{lst:textWrapOptionsAll} the \texttt{other} field is set to
- \lstinline!\\\]!, which instructs \texttt{latexindent.pl} to find text wrap blocks after
- the end of display math.
+ \cmhlistingsfromfile{demonstrations/tw-disp-math1-mod1.tex}{\texttt{tw-disp-math1-mod1.tex}}{lst:tw-disp-math1-mod1}
- We can turn off this switch as in \cref{lst:bf-no-disp-math-yaml} and then run
- \begin{widepage}
- \begin{commandshell}
+ With reference to \vref{lst:textWrapOptionsAll} the \texttt{other} field is set to
+ \lstinline!\\\]!, which instructs \texttt{latexindent.pl} to find text wrap blocks after
+ the end of display math.
+
+ We can turn off this switch as in \cref{lst:bf-no-disp-math-yaml} and then run
+ \begin{widepage}
+
+ \begin{commandshell}
latexindent.pl -m -l textwrap1.yaml,bf-no-disp-math.yaml tw-disp-math1.tex
\end{commandshell}
- \end{widepage}
- gives the output in \cref{lst:tw-disp-math1-mod2}, in which text wrapping has been
- instructed \emph{not to happen} following display math.
- \begin{cmhtcbraster}[raster column skip=.1\linewidth]
- \cmhlistingsfromfile{demonstrations/bf-no-disp-math.yaml}[MLB-TCB]{\texttt{bf-no-disp-math.yaml}}{lst:bf-no-disp-math-yaml}
- \cmhlistingsfromfile{demonstrations/tw-disp-math1-mod2.tex}{\texttt{tw-disp-math1-mod2.tex}}{lst:tw-disp-math1-mod2}
- \end{cmhtcbraster}
- Naturally, you should feel encouraged to customise this as you see fit.
+ \end{widepage}
+ gives the output in \cref{lst:tw-disp-math1-mod2}, in which text wrapping has been
+ instructed \emph{not to happen} following display math.
+ \begin{cmhtcbraster}[raster column skip=.1\linewidth]
+ \cmhlistingsfromfile{demonstrations/bf-no-disp-math.yaml}[MLB-TCB]{\texttt{bf-no-disp-math.yaml}}{lst:bf-no-disp-math-yaml}
+ \cmhlistingsfromfile{demonstrations/tw-disp-math1-mod2.tex}{\texttt{tw-disp-math1-mod2.tex}}{lst:tw-disp-math1-mod2}
+ \end{cmhtcbraster}
+
+ Naturally, you should feel encouraged to customise this as you see fit.
\end{example}
The \texttt{blocksFollow} field \emph{deliberately} does not default to allowing text
@@ -4574,34 +4858,38 @@ latexindent.pl -m -l textwrap1.yaml,bf-no-disp-math.yaml tw-disp-math1.tex
text wrap individually, as in the next example.
\begin{example}
- Let's use the sample text given in \cref{lst:tw-bf-myenv1}. \index{text
- wrap!blocksFollow!other} \index{regular expressions!text wrap!blocksFollow}
+ Let's use the sample text given in \cref{lst:tw-bf-myenv1}. \index{text
+ wrap!blocksFollow!other} \index{regular expressions!text wrap!blocksFollow}
- \cmhlistingsfromfile{demonstrations/tw-bf-myenv1.tex}{\texttt{tw-bf-myenv1.tex}}{lst:tw-bf-myenv1}
+ \cmhlistingsfromfile{demonstrations/tw-bf-myenv1.tex}{\texttt{tw-bf-myenv1.tex}}{lst:tw-bf-myenv1}
- We note that \cref{lst:tw-bf-myenv1} contains \texttt{myenv} environment. Upon running
- the command
- \begin{commandshell}
+ We note that \cref{lst:tw-bf-myenv1} contains \texttt{myenv} environment. Upon running
+ the command
+
+ \begin{commandshell}
latexindent.pl -m -l textwrap1.yaml tw-bf-myenv1.tex
\end{commandshell}
- then we receive the output given in \cref{lst:tw-bf-myenv1-mod1}.
- \cmhlistingsfromfile{demonstrations/tw-bf-myenv1-mod1.tex}{\texttt{tw-bf-myenv1-mod1.tex}}{lst:tw-bf-myenv1-mod1}
+ then we receive the output given in \cref{lst:tw-bf-myenv1-mod1}.
- We note that we have \emph{not} received much text wrapping. We can turn do better by
- employing \cref{lst:tw-bf-myenv-yaml} and then run
- \begin{commandshell}
+ \cmhlistingsfromfile{demonstrations/tw-bf-myenv1-mod1.tex}{\texttt{tw-bf-myenv1-mod1.tex}}{lst:tw-bf-myenv1-mod1}
+
+ We note that we have \emph{not} received much text wrapping. We can turn do better by
+ employing \cref{lst:tw-bf-myenv-yaml} and then run
+
+ \begin{commandshell}
latexindent.pl -m -l textwrap1.yaml,tw-bf-myenv.yaml tw-bf-myenv1.tex
\end{commandshell}
- which gives the output in \cref{lst:tw-bf-myenv1-mod2}, in which text wrapping has been
- implemented across the file.
- \begin{cmhtcbraster}[raster column skip=.1\linewidth,
- raster left skip=-3.5cm,
- raster right skip=-2cm,
- ]
- \cmhlistingsfromfile{demonstrations/tw-bf-myenv.yaml}[MLB-TCB]{\texttt{tw-bf-myenv.yaml}}{lst:tw-bf-myenv-yaml}
- \cmhlistingsfromfile{demonstrations/tw-bf-myenv1-mod2.tex}{\texttt{tw-bf-myenv1-mod2.tex}}{lst:tw-bf-myenv1-mod2}
- \end{cmhtcbraster}
+
+ which gives the output in \cref{lst:tw-bf-myenv1-mod2}, in which text wrapping has been
+ implemented across the file.
+ \begin{cmhtcbraster}[raster column skip=.1\linewidth,
+ raster left skip=-3.5cm,
+ raster right skip=-2cm,
+ ]
+ \cmhlistingsfromfile{demonstrations/tw-bf-myenv.yaml}[MLB-TCB]{\texttt{tw-bf-myenv.yaml}}{lst:tw-bf-myenv-yaml}
+ \cmhlistingsfromfile{demonstrations/tw-bf-myenv1-mod2.tex}{\texttt{tw-bf-myenv1-mod2.tex}}{lst:tw-bf-myenv1-mod2}
+ \end{cmhtcbraster}
\end{example}
@@ -4610,55 +4898,63 @@ latexindent.pl -m -l textwrap1.yaml,tw-bf-myenv.yaml tw-bf-myenv1.tex
series of examples. \index{text wrap!blocksBeginWith}
\begin{example}
- By default, text wrap blocks can begin with the characters \texttt{a-z} and \texttt{A-Z}.
+ By default, text wrap blocks can begin with the characters \texttt{a-z} and \texttt{A-Z}.
- If we start with the file given in \cref{lst:tw-0-9}
- \cmhlistingsfromfile{demonstrations/tw-0-9.tex}{\texttt{tw-0-9.tex}}{lst:tw-0-9}
- and run the command
- \begin{commandshell}
+ If we start with the file given in \cref{lst:tw-0-9}
+ \cmhlistingsfromfile{demonstrations/tw-0-9.tex}{\texttt{tw-0-9.tex}}{lst:tw-0-9}
+ and run the command
+
+ \begin{commandshell}
latexindent.pl -m -l textwrap1.yaml tw-0-9.tex
\end{commandshell}
- then we receive the output given in \cref{lst:tw-0-9-mod1} in which text wrapping has
- \emph{not} occured.
- \cmhlistingsfromfile{demonstrations/tw-0-9-mod1.tex}{\texttt{tw-0-9-mod1.tex}}{lst:tw-0-9-mod1}
- We can allow paragraphs to begin with \texttt{0-9} characters by using the settings in
- \cref{lst:bb-0-9-yaml} and running
- \begin{commandshell}
+ then we receive the output given in \cref{lst:tw-0-9-mod1} in which text wrapping has
+ \emph{not} occured.
+ \cmhlistingsfromfile{demonstrations/tw-0-9-mod1.tex}{\texttt{tw-0-9-mod1.tex}}{lst:tw-0-9-mod1}
+
+ We can allow paragraphs to begin with \texttt{0-9} characters by using the settings in
+ \cref{lst:bb-0-9-yaml} and running
+
+ \begin{commandshell}
latexindent.pl -m -l textwrap1.yaml,bb-0-9-yaml tw-0-9.tex
\end{commandshell}
- gives the output in \cref{lst:tw-0-9-mod2}, in which text wrapping \emph{has} happened.
- \begin{cmhtcbraster}[raster column skip=.1\linewidth,]
- \cmhlistingsfromfile{demonstrations/bb-0-9.yaml}[MLB-TCB]{\texttt{bb-0-9.yaml.yaml}}{lst:bb-0-9-yaml}
- \cmhlistingsfromfile{demonstrations/tw-0-9-mod2.tex}{\texttt{tw-0-9-mod2.tex}}{lst:tw-0-9-mod2}
- \end{cmhtcbraster}
+
+ gives the output in \cref{lst:tw-0-9-mod2}, in which text wrapping \emph{has} happened.
+ \begin{cmhtcbraster}[raster column skip=.1\linewidth,]
+ \cmhlistingsfromfile{demonstrations/bb-0-9.yaml}[MLB-TCB]{\texttt{bb-0-9.yaml.yaml}}{lst:bb-0-9-yaml}
+ \cmhlistingsfromfile{demonstrations/tw-0-9-mod2.tex}{\texttt{tw-0-9-mod2.tex}}{lst:tw-0-9-mod2}
+ \end{cmhtcbraster}
\end{example}
\begin{example}
- Let's now use the file given in \cref{lst:tw-bb-announce1}
- \cmhlistingsfromfile{demonstrations/tw-bb-announce1.tex}{\texttt{tw-bb-announce1.tex}}{lst:tw-bb-announce1}
- and run the command
- \begin{commandshell}
+ Let's now use the file given in \cref{lst:tw-bb-announce1}
+ \cmhlistingsfromfile{demonstrations/tw-bb-announce1.tex}{\texttt{tw-bb-announce1.tex}}{lst:tw-bb-announce1}
+ and run the command
+
+ \begin{commandshell}
latexindent.pl -m -l textwrap1.yaml tw-bb-announce1.tex
\end{commandshell}
- then we receive the output given in \cref{lst:tw-bb-announce1-mod1} in which text
- wrapping has \emph{not} occured.
- \cmhlistingsfromfile{demonstrations/tw-bb-announce1-mod1.tex}{\texttt{tw-bb-announce1-mod1.tex}}{lst:tw-bb-announce1-mod1}
+ then we receive the output given in \cref{lst:tw-bb-announce1-mod1} in which text
+ wrapping has \emph{not} occured.
- We can allow \lstinline!\announce! to be at the beginning of paragraphs by using the
- settings in \cref{lst:tw-bb-announce-yaml} and running
- \begin{widepage}
- \begin{commandshell}
+ \cmhlistingsfromfile{demonstrations/tw-bb-announce1-mod1.tex}{\texttt{tw-bb-announce1-mod1.tex}}{lst:tw-bb-announce1-mod1}
+
+ We can allow \lstinline!\announce! to be at the beginning of paragraphs by using the
+ settings in \cref{lst:tw-bb-announce-yaml} and running
+ \begin{widepage}
+
+ \begin{commandshell}
latexindent.pl -m -l textwrap1.yaml,tw-bb-announce.yaml tw-bb-announce1.tex
\end{commandshell}
- \end{widepage}
- gives the output in \cref{lst:tw-bb-announce1-mod2}, in which text wrapping \emph{has}
- happened.
- \begin{cmhtcbraster}[raster column skip=.1\linewidth,]
- \cmhlistingsfromfile{demonstrations/tw-bb-announce.yaml}[MLB-TCB]{\texttt{tw-bb-announce.yaml}}{lst:tw-bb-announce-yaml}
- \cmhlistingsfromfile{demonstrations/tw-bb-announce1-mod2.tex}{\texttt{tw-bb-announce1-mod2.tex}}{lst:tw-bb-announce1-mod2}
- \end{cmhtcbraster}
+
+ \end{widepage}
+ gives the output in \cref{lst:tw-bb-announce1-mod2}, in which text wrapping \emph{has}
+ happened.
+ \begin{cmhtcbraster}[raster column skip=.1\linewidth,]
+ \cmhlistingsfromfile{demonstrations/tw-bb-announce.yaml}[MLB-TCB]{\texttt{tw-bb-announce.yaml}}{lst:tw-bb-announce-yaml}
+ \cmhlistingsfromfile{demonstrations/tw-bb-announce1-mod2.tex}{\texttt{tw-bb-announce1-mod2.tex}}{lst:tw-bb-announce1-mod2}
+ \end{cmhtcbraster}
\end{example}
@@ -4667,40 +4963,44 @@ latexindent.pl -m -l textwrap1.yaml,tw-bb-announce.yaml tw-bb-announce1.tex
series of examples. \index{text wrap!blocksEndBefore}
\begin{example}
- Let's use the sample text given in \cref{lst:tw-be-equation}. \index{text
- wrap!blocksFollow!other} \index{regular expressions!text wrap!blocksFollow}
+ Let's use the sample text given in \cref{lst:tw-be-equation}. \index{text
+ wrap!blocksFollow!other} \index{regular expressions!text wrap!blocksFollow}
- \cmhlistingsfromfile{demonstrations/tw-be-equation.tex}{\texttt{tw-be-equation.tex}}{lst:tw-be-equation}
+ \cmhlistingsfromfile{demonstrations/tw-be-equation.tex}{\texttt{tw-be-equation.tex}}{lst:tw-be-equation}
- We note that \cref{lst:tw-be-equation} contains an environment. Upon running the command
- \begin{commandshell}
+ We note that \cref{lst:tw-be-equation} contains an environment. Upon running the command
+
+ \begin{commandshell}
latexindent.pl -m -l textwrap1A.yaml tw-be-equation.tex
\end{commandshell}
- then we receive the output given in \cref{lst:tw-be-equation-mod1}.
- \cmhlistingsfromfile{demonstrations/tw-be-equation-mod1.tex}{\texttt{tw-be-equation-mod1.tex}}{lst:tw-be-equation-mod1}
+ then we receive the output given in \cref{lst:tw-be-equation-mod1}.
- With reference to \vref{lst:textWrapOptionsAll} the \texttt{other} field is set to
- \lstinline!\\begin\{|\\\[|\\end\{!, which instructs \texttt{latexindent.pl} to
- \emph{stop} text wrap blocks before \texttt{begin} statements, display math, and
- \texttt{end} statements.
+ \cmhlistingsfromfile{demonstrations/tw-be-equation-mod1.tex}{\texttt{tw-be-equation-mod1.tex}}{lst:tw-be-equation-mod1}
- We can turn off this switch as in \cref{lst:tw-be-equation-yaml} and then run
- \begin{widepage}
- \begin{commandshell}
+ With reference to \vref{lst:textWrapOptionsAll} the \texttt{other} field is set to
+ \lstinline!\\begin\{|\\\[|\\end\{!, which instructs \texttt{latexindent.pl} to
+ \emph{stop} text wrap blocks before \texttt{begin} statements, display math, and
+ \texttt{end} statements.
+
+ We can turn off this switch as in \cref{lst:tw-be-equation-yaml} and then run
+ \begin{widepage}
+
+ \begin{commandshell}
latexindent.pl -m -l textwrap1A.yaml,tw-be-equation.yaml tw-be-equation.tex
\end{commandshell}
- \end{widepage}
- gives the output in \cref{lst:tw-be-equation-mod2}, in which text wrapping has been
- instructed \emph{not} to stop at these statements.
- \cmhlistingsfromfile{demonstrations/tw-be-equation.yaml}[MLB-TCB]{\texttt{tw-be-equation.yaml}}{lst:tw-be-equation-yaml}
+ \end{widepage}
+ gives the output in \cref{lst:tw-be-equation-mod2}, in which text wrapping has been
+ instructed \emph{not} to stop at these statements.
- \begin{widepage}
- \cmhlistingsfromfile{demonstrations/tw-be-equation-mod2.tex}{\texttt{tw-be-equation-mod2.tex}}{lst:tw-be-equation-mod2}
- \end{widepage}
+ \cmhlistingsfromfile{demonstrations/tw-be-equation.yaml}[MLB-TCB]{\texttt{tw-be-equation.yaml}}{lst:tw-be-equation-yaml}
- Naturally, you should feel encouraged to customise this as you see fit.
+ \begin{widepage}
+ \cmhlistingsfromfile{demonstrations/tw-be-equation-mod2.tex}{\texttt{tw-be-equation-mod2.tex}}{lst:tw-be-equation-mod2}
+ \end{widepage}
+
+ Naturally, you should feel encouraged to customise this as you see fit.
\end{example}
\subsubsection{Text wrap: trailing comments and spaces}
@@ -4708,94 +5008,106 @@ latexindent.pl -m -l textwrap1A.yaml,tw-be-equation.yaml tw-be-equation.tex
the following examples.
\begin{example}
- The file in \cref{lst:tw-tc1} contains a trailing comment which \emph{does} have a space
- infront of it.
+ The file in \cref{lst:tw-tc1} contains a trailing comment which \emph{does} have a space
+ infront of it.
- Running the command
- \begin{commandshell}
+ Running the command
+
+ \begin{commandshell}
latexindent.pl -m tw-tc1.tex -l textwrap1A.yaml -o=+-mod1
\end{commandshell}
- gives the output given in \cref{lst:tw-tc1-mod1}.
- \begin{cmhtcbraster}[raster column skip=.1\linewidth]
- \cmhlistingsfromfile[showspaces=true]{demonstrations/tw-tc1.tex}{\texttt{tw-tc1.tex}}{lst:tw-tc1}
- \cmhlistingsfromfile{demonstrations/tw-tc1-mod1.tex}{\texttt{tw-tc1-mod1.tex}}{lst:tw-tc1-mod1}
- \end{cmhtcbraster}
+ gives the output given in \cref{lst:tw-tc1-mod1}.
+
+ \begin{cmhtcbraster}[raster column skip=.1\linewidth]
+ \cmhlistingsfromfile[showspaces=true]{demonstrations/tw-tc1.tex}{\texttt{tw-tc1.tex}}{lst:tw-tc1}
+ \cmhlistingsfromfile{demonstrations/tw-tc1-mod1.tex}{\texttt{tw-tc1-mod1.tex}}{lst:tw-tc1-mod1}
+ \end{cmhtcbraster}
\end{example}
\begin{example}
- The file in \cref{lst:tw-tc2} contains a trailing comment which does \emph{not} have a
- space infront of it.
+ The file in \cref{lst:tw-tc2} contains a trailing comment which does \emph{not} have a
+ space infront of it.
- Running the command
- \begin{commandshell}
+ Running the command
+
+ \begin{commandshell}
latexindent.pl -m tw-tc2.tex -l textwrap1A.yaml -o=+-mod1
\end{commandshell}
- gives the output in \cref{lst:tw-tc2-mod1}.
- \begin{cmhtcbraster}[raster column skip=.1\linewidth]
- \cmhlistingsfromfile{demonstrations/tw-tc2.tex}{\texttt{tw-tc2.tex}}{lst:tw-tc2}
- \cmhlistingsfromfile{demonstrations/tw-tc2-mod1.tex}{\texttt{tw-tc2-mod1.tex}}{lst:tw-tc2-mod1}
- \end{cmhtcbraster}
- We note that, because there is \emph{not} a space before the trailing comment, that the
- lines have been joined \emph{without} a space.
+
+ gives the output in \cref{lst:tw-tc2-mod1}.
+ \begin{cmhtcbraster}[raster column skip=.1\linewidth]
+ \cmhlistingsfromfile{demonstrations/tw-tc2.tex}{\texttt{tw-tc2.tex}}{lst:tw-tc2}
+ \cmhlistingsfromfile{demonstrations/tw-tc2-mod1.tex}{\texttt{tw-tc2-mod1.tex}}{lst:tw-tc2-mod1}
+ \end{cmhtcbraster}
+ We note that, because there is \emph{not} a space before the trailing comment, that the
+ lines have been joined \emph{without} a space.
\end{example}
\begin{example}
- The file in \cref{lst:tw-tc3} contains multiple trailing comments.
+ The file in \cref{lst:tw-tc3} contains multiple trailing comments.
- Running the command
- \begin{commandshell}
+ Running the command
+
+ \begin{commandshell}
latexindent.pl -m tw-tc3.tex -l textwrap1A.yaml -o=+-mod1
\end{commandshell}
- gives the output in \cref{lst:tw-tc3-mod1}.
- \begin{cmhtcbraster}[raster column skip=.1\linewidth]
- \cmhlistingsfromfile{demonstrations/tw-tc3.tex}{\texttt{tw-tc3.tex}}{lst:tw-tc3}
- \cmhlistingsfromfile{demonstrations/tw-tc3-mod1.tex}{\texttt{tw-tc3-mod1.tex}}{lst:tw-tc3-mod1}
- \end{cmhtcbraster}
+
+ gives the output in \cref{lst:tw-tc3-mod1}.
+ \begin{cmhtcbraster}[raster column skip=.1\linewidth]
+ \cmhlistingsfromfile{demonstrations/tw-tc3.tex}{\texttt{tw-tc3.tex}}{lst:tw-tc3}
+ \cmhlistingsfromfile{demonstrations/tw-tc3-mod1.tex}{\texttt{tw-tc3-mod1.tex}}{lst:tw-tc3-mod1}
+ \end{cmhtcbraster}
\end{example}
\begin{example}
- The file in \cref{lst:tw-tc4} contains multiple trailing comments.
+ The file in \cref{lst:tw-tc4} contains multiple trailing comments.
- Running the command
- \begin{commandshell}
+ Running the command
+
+ \begin{commandshell}
latexindent.pl -m tw-tc4.tex -l textwrap1A.yaml -o=+-mod1
\end{commandshell}
- gives the output in \cref{lst:tw-tc4-mod1}.
- \begin{cmhtcbraster}[raster column skip=.1\linewidth]
- \cmhlistingsfromfile{demonstrations/tw-tc4.tex}{\texttt{tw-tc4.tex}}{lst:tw-tc4}
- \cmhlistingsfromfile{demonstrations/tw-tc4-mod1.tex}{\texttt{tw-tc4-mod1.tex}}{lst:tw-tc4-mod1}
- \end{cmhtcbraster}
+
+ gives the output in \cref{lst:tw-tc4-mod1}.
+ \begin{cmhtcbraster}[raster column skip=.1\linewidth]
+ \cmhlistingsfromfile{demonstrations/tw-tc4.tex}{\texttt{tw-tc4.tex}}{lst:tw-tc4}
+ \cmhlistingsfromfile{demonstrations/tw-tc4-mod1.tex}{\texttt{tw-tc4-mod1.tex}}{lst:tw-tc4-mod1}
+ \end{cmhtcbraster}
\end{example}
\begin{example}
- The file in \cref{lst:tw-tc5} contains multiple trailing comments.
+ The file in \cref{lst:tw-tc5} contains multiple trailing comments.
- Running the command
- \begin{commandshell}
+ Running the command
+
+ \begin{commandshell}
latexindent.pl -m tw-tc5.tex -l textwrap1A.yaml -o=+-mod1
\end{commandshell}
- gives the output in \cref{lst:tw-tc5-mod1}.
- \begin{cmhtcbraster}[raster column skip=.1\linewidth]
- \cmhlistingsfromfile[showspaces=true]{demonstrations/tw-tc5.tex}{\texttt{tw-tc5.tex}}{lst:tw-tc5}
- \cmhlistingsfromfile[showspaces=true]{demonstrations/tw-tc5-mod1.tex}{\texttt{tw-tc5-mod1.tex}}{lst:tw-tc5-mod1}
- \end{cmhtcbraster}
- The space at the end of the text block has been preserved.
+
+ gives the output in \cref{lst:tw-tc5-mod1}.
+ \begin{cmhtcbraster}[raster column skip=.1\linewidth]
+ \cmhlistingsfromfile[showspaces=true]{demonstrations/tw-tc5.tex}{\texttt{tw-tc5.tex}}{lst:tw-tc5}
+ \cmhlistingsfromfile[showspaces=true]{demonstrations/tw-tc5-mod1.tex}{\texttt{tw-tc5-mod1.tex}}{lst:tw-tc5-mod1}
+ \end{cmhtcbraster}
+ The space at the end of the text block has been preserved.
\end{example}
\begin{example}
- The file in \cref{lst:tw-tc6} contains multiple trailing comments.
+ The file in \cref{lst:tw-tc6} contains multiple trailing comments.
- Running the command
- \begin{commandshell}
+ Running the command
+
+ \begin{commandshell}
latexindent.pl -m tw-tc6.tex -l textwrap1A.yaml -o=+-mod1
\end{commandshell}
- gives the output in \cref{lst:tw-tc6-mod1}.
- \begin{cmhtcbraster}[raster column skip=.1\linewidth]
- \cmhlistingsfromfile[showspaces=true]{demonstrations/tw-tc6.tex}{\texttt{tw-tc6.tex}}{lst:tw-tc6}
- \cmhlistingsfromfile[showspaces=true]{demonstrations/tw-tc6-mod1.tex}{\texttt{tw-tc6-mod1.tex}}{lst:tw-tc6-mod1}
- \end{cmhtcbraster}
- The space at the end of the text block has been preserved.
+
+ gives the output in \cref{lst:tw-tc6-mod1}.
+ \begin{cmhtcbraster}[raster column skip=.1\linewidth]
+ \cmhlistingsfromfile[showspaces=true]{demonstrations/tw-tc6.tex}{\texttt{tw-tc6.tex}}{lst:tw-tc6}
+ \cmhlistingsfromfile[showspaces=true]{demonstrations/tw-tc6-mod1.tex}{\texttt{tw-tc6-mod1.tex}}{lst:tw-tc6-mod1}
+ \end{cmhtcbraster}
+ The space at the end of the text block has been preserved.
\end{example}
\subsubsection{Text wrap: huge, tabstop and separator}
@@ -4815,13 +5127,16 @@ latexindent.pl -m tw-tc6.tex -l textwrap1A.yaml -o=+-mod1
recommend changing this field.
\end{warning}
+ \begin{example}
For example, using the settings in \cref{lst:textwrap2A-yaml,lst:textwrap2B-yaml} and
running the commands \index{switches!-l demonstration} \index{switches!-m demonstration}
\index{switches!-o demonstration}
+
\begin{commandshell}
latexindent.pl -m textwrap4.tex -o=+-mod2A -l textwrap2A.yaml
latexindent.pl -m textwrap4.tex -o=+-mod2B -l textwrap2B.yaml
\end{commandshell}
+
gives the respective output in \cref{lst:textwrap4-mod2A,lst:textwrap4-mod2B}.
\begin{cmhtcbraster}[raster column skip=.1\linewidth]
@@ -4831,15 +5146,21 @@ latexindent.pl -m tw-tc6.tex -l textwrap1A.yaml -o=+-mod1
\cmhlistingsfromfile{demonstrations/textwrap4-mod2B.tex}{\texttt{textwrap4-mod2B.tex}}{lst:textwrap4-mod2B}
\cmhlistingsfromfile{demonstrations/textwrap2B.yaml}[MLB-TCB]{\texttt{textwrap2B.yaml}}{lst:textwrap2B-yaml}
\end{cmhtcbraster}
+ \end{example}
You can also specify the \texttt{tabstop} field \announce{2020-11-06}{tabstop option for
text wrap module} as an integer value, which is passed to the text wrap module; see
- \cite{textwrap} for details. Starting with the code in \cref{lst:textwrap-ts} with
- settings in \cref{lst:tabstop}, and running the command \index{switches!-l demonstration}
- \index{switches!-m demonstration} \index{switches!-o demonstration}%
+ \cite{textwrap} for details.
+
+ \begin{example}
+ Starting with the code in \cref{lst:textwrap-ts} with settings in \cref{lst:tabstop}, and
+ running the command \index{switches!-l demonstration} \index{switches!-m demonstration}
+ \index{switches!-o demonstration}%
+
\begin{commandshell}
latexindent.pl -m textwrap-ts.tex -o=+-mod1 -l tabstop.yaml
\end{commandshell}
+
gives the code given in \cref{lst:textwrap-ts-mod1}.
\begin{cmhtcbraster}[raster columns=3,
raster left skip=-3.5cm,
@@ -4849,6 +5170,7 @@ latexindent.pl -m tw-tc6.tex -l textwrap1A.yaml -o=+-mod1
\cmhlistingsfromfile{demonstrations/tabstop.yaml}[MLB-TCB]{\texttt{tabstop.yaml}}{lst:tabstop}
\cmhlistingsfromfile[showtabs=true]{demonstrations/textwrap-ts-mod1.tex}{\texttt{textwrap-ts-mod1.tex}}{lst:textwrap-ts-mod1}
\end{cmhtcbraster}
+ \end{example}
You can specify \texttt{separator}, \texttt{break} and \texttt{unexpand} options in your
settings in analogous ways to those demonstrated in
@@ -4881,6 +5203,7 @@ latexindent.pl -m tw-tc6.tex -l textwrap1A.yaml -o=+-mod1
switch to \texttt{0} instructs \texttt{latexindent.pl} not to do so.
\index{sentences!removing sentence line breaks}
+ \begin{example}
For example, consider \texttt{multiple-sentences.tex} shown in
\cref{lst:multiple-sentences}.
@@ -4890,10 +5213,12 @@ latexindent.pl -m tw-tc6.tex -l textwrap1A.yaml -o=+-mod1
\cref{lst:manipulate-sentences-yaml,lst:keep-sen-line-breaks-yaml}, and run the commands
\index{switches!-l demonstration} \index{switches!-m demonstration}
\begin{widepage}
+
\begin{commandshell}
latexindent.pl multiple-sentences -m -l=manipulate-sentences.yaml
latexindent.pl multiple-sentences -m -l=keep-sen-line-breaks.yaml
\end{commandshell}
+
\end{widepage}
then we obtain the respective output given in
\cref{lst:multiple-sentences-mod1,lst:multiple-sentences-mod2}.
@@ -4911,6 +5236,7 @@ latexindent.pl multiple-sentences -m -l=keep-sen-line-breaks.yaml
Notice, in particular, that the `internal' sentence line breaks in
\cref{lst:multiple-sentences} have been removed in \cref{lst:multiple-sentences-mod1},
but have not been removed in \cref{lst:multiple-sentences-mod2}.
+ \end{example}
\yamltitle{multipleSpacesToSingle}{0|1}
\announce{2022-03-25}*{multipleSpacesToSingle for oneSentencePerLine} By default, the
@@ -4947,13 +5273,17 @@ latexindent.pl multiple-sentences -m -l=keep-sen-line-breaks.yaml
\end{cmhtcbraster}
\subsubsection{sentencesFollow}
- Let's explore a few of the switches in \texttt{sentencesFollow}; let's start with
- \vref{lst:multiple-sentences}, and use the YAML settings given in
+ Let's explore a few of the switches in \texttt{sentencesFollow}.
+
+ \begin{example}
+ We start with \vref{lst:multiple-sentences}, and use the YAML settings given in
\cref{lst:sentences-follow1-yaml}. Using the command \index{sentences!follow}
\index{switches!-l demonstration} \index{switches!-m demonstration}
+
\begin{commandshell}
latexindent.pl multiple-sentences -m -l=sentences-follow1.yaml
\end{commandshell}
+
we obtain the output given in \cref{lst:multiple-sentences-mod3}.
\begin{cmhtcbraster}
@@ -4964,7 +5294,9 @@ latexindent.pl multiple-sentences -m -l=sentences-follow1.yaml
Notice that, because \texttt{blankLine} is set to \texttt{0}, \texttt{latexindent.pl}
will not seek sentences following a blank line, and so the fourth sentence has not been
accounted for.
+ \end{example}
+ \begin{example}
We can explore the \texttt{other} field in \cref{lst:sentencesFollow} with the
\texttt{.tex} file detailed in \cref{lst:multiple-sentences1}.
@@ -4973,10 +5305,12 @@ latexindent.pl multiple-sentences -m -l=sentences-follow1.yaml
Upon running the following commands \index{switches!-l demonstration} \index{switches!-m
demonstration}
\begin{widepage}
+
\begin{commandshell}
latexindent.pl multiple-sentences1 -m -l=manipulate-sentences.yaml
latexindent.pl multiple-sentences1 -m -l=manipulate-sentences.yaml,sentences-follow2.yaml
\end{commandshell}
+
\end{widepage}
then we obtain the respective output given in
\cref{lst:multiple-sentences1-mod1,lst:multiple-sentences1-mod2}.
@@ -4995,6 +5329,7 @@ latexindent.pl multiple-sentences1 -m -l=manipulate-sentences.yaml,sentences-fol
\cref{lst:sentences-follow2-yaml}, the output given in
\cref{lst:multiple-sentences1-mod2} demonstrates that the sentence \emph{has} been
accounted for correctly.
+ \end{example}
\subsubsection{sentencesBeginWith}
By default, \texttt{latexindent.pl} will only assume that sentences begin with the upper
@@ -5002,15 +5337,20 @@ latexindent.pl multiple-sentences1 -m -l=manipulate-sentences.yaml,sentences-fol
lower case letters (see \cref{lst:sentencesBeginWith}), and we can use the \texttt{other}
field to define sentences to begin with other characters. \index{sentences!begin with}
+ \begin{example}
+ We use the file in \cref{lst:multiple-sentences2}.
+
\cmhlistingsfromfile{demonstrations/multiple-sentences2.tex}{\texttt{multiple-sentences2.tex}}{lst:multiple-sentences2}
Upon running the following commands \index{switches!-l demonstration} \index{switches!-m
demonstration}
\begin{widepage}
+
\begin{commandshell}
latexindent.pl multiple-sentences2 -m -l=manipulate-sentences.yaml
latexindent.pl multiple-sentences2 -m -l=manipulate-sentences.yaml,sentences-begin1.yaml
\end{commandshell}
+
\end{widepage}
then we obtain the respective output given in
\cref{lst:multiple-sentences2-mod1,lst:multiple-sentences2-mod2}.
@@ -5029,18 +5369,22 @@ latexindent.pl multiple-sentences2 -m -l=manipulate-sentences.yaml,sentences-beg
all of the sentences have been accounted for, because the \texttt{other} field in
\cref{lst:sentences-begin1-yaml} has defined sentences to begin with either \lstinline!$!
or any numeric digit, \texttt{0} to \texttt{9}.
+ \end{example}
\subsubsection{sentencesEndWith}
+ \begin{example}
Let's return to \vref{lst:multiple-sentences}; we have already seen the default way in
which \texttt{latexindent.pl} will operate on the sentences in this file in
\vref{lst:multiple-sentences-mod1}. We can populate the \texttt{other} field with any
character that we wish; for example, using the YAML specified in
\cref{lst:sentences-end1-yaml} and the command \index{sentences!end with}
\index{switches!-l demonstration} \index{switches!-m demonstration}
+
\begin{commandshell}
latexindent.pl multiple-sentences -m -l=sentences-end1.yaml
latexindent.pl multiple-sentences -m -l=sentences-end2.yaml
\end{commandshell}
+
then we obtain the output in \cref{lst:multiple-sentences-mod4}. \index{regular
expressions!lowercase alph a-z}
@@ -5061,20 +5405,24 @@ latexindent.pl multiple-sentences -m -l=sentences-end2.yaml
lower case letters. We have changed this by using the settings in
\cref{lst:sentences-end2-yaml}, and the associated output in
\cref{lst:multiple-sentences-mod5} reflects this.
+ \end{example}
Referencing \vref{lst:sentencesEndWith}, you'll notice that there is a field called
\texttt{basicFullStop}, which is set to \texttt{0}, and that the \texttt{betterFullStop}
is set to \texttt{1} by default.
+ \begin{example}
Let's consider the file shown in \cref{lst:url}.
\cmhlistingsfromfile{demonstrations/url.tex}{\texttt{url.tex}}{lst:url}
Upon running the following commands \index{switches!-l demonstration} \index{switches!-m
demonstration}
+
\begin{commandshell}
latexindent.pl url -m -l=manipulate-sentences.yaml
\end{commandshell}
+
we obtain the output given in \cref{lst:url-mod1}.
\cmhlistingsfromfile{demonstrations/url-mod1.tex}{\texttt{url.tex} using \vref{lst:manipulate-sentences-yaml}}{lst:url-mod1}
@@ -5087,6 +5435,8 @@ latexindent.pl url -m -l=manipulate-sentences.yaml
\item they can not be immediately followed by a lower case or upper case letter;
\item they can not be immediately followed by a hyphen, comma, or number.
\end{itemize}
+ \end{example}
+
If you find that the \texttt{betterFullStop} does not work for your purposes, then you
can switch it off by setting it to \texttt{0}, and you can experiment with the
\texttt{other} field. \announce{2019-07-13}{fine tuning the betterFullStop} You can also
@@ -5094,11 +5444,16 @@ latexindent.pl url -m -l=manipulate-sentences.yaml
detailed in \vref{lst:fineTuning}.%
The \texttt{basicFullStop} routine should probably be avoided in most situations, as it
- does not accommodate the specifications above. For example, using the following command
- \index{switches!-l demonstration} \index{switches!-m demonstration}
+ does not accommodate the specifications above.
+
+ \begin{example}
+ For example, using the following command \index{switches!-l demonstration}
+ \index{switches!-m demonstration}
+
\begin{commandshell}
latexindent.pl url -m -l=alt-full-stop1.yaml
\end{commandshell}
+
and the YAML in \cref{lst:alt-full-stop1-yaml} gives the output in \cref{lst:url-mod2}.
\begin{cmhtcbraster}[ raster left skip=-3.5cm,
@@ -5112,6 +5467,7 @@ latexindent.pl url -m -l=alt-full-stop1.yaml
Notice that the full stop within the URL has not been accommodated correctly because of
the non-default settings in \cref{lst:alt-full-stop1-yaml}.
+ \end{example}
\subsubsection{Features of the oneSentencePerLine routine}
The sentence manipulation routine takes place \emph{after} verbatim \index{verbatim!in
@@ -5119,23 +5475,30 @@ latexindent.pl url -m -l=alt-full-stop1.yaml
accounted for; this means that any characters within these types of code blocks will not
be part of the sentence manipulation routine.
+ \begin{example}
For example, if we begin with the \texttt{.tex} file in \cref{lst:multiple-sentences3},
and run the command \index{switches!-l demonstration} \index{switches!-m demonstration}
+
\begin{commandshell}
latexindent.pl multiple-sentences3 -m -l=manipulate-sentences.yaml
\end{commandshell}
+
then we obtain the output in \cref{lst:multiple-sentences3-mod1}.
\cmhlistingsfromfile{demonstrations/multiple-sentences3.tex}{\texttt{multiple-sentences3.tex}}{lst:multiple-sentences3}
\cmhlistingsfromfile{demonstrations/multiple-sentences3-mod1.tex}{\texttt{multiple-sentences3.tex} using \vref{lst:manipulate-sentences-yaml}}{lst:multiple-sentences3-mod1}
+ \end{example}
+ \begin{example}
Furthermore, if sentences run across environments then, by default, the line breaks
internal to the sentence will be removed. For example, if we use the \texttt{.tex} file
in \cref{lst:multiple-sentences4} and run the commands \index{switches!-l demonstration}
\index{switches!-m demonstration}
+
\begin{commandshell}
latexindent.pl multiple-sentences4 -m -l=manipulate-sentences.yaml
latexindent.pl multiple-sentences4 -m -l=keep-sen-line-breaks.yaml
\end{commandshell}
+
then we obtain the output in
\cref{lst:multiple-sentences4-mod1,lst:multiple-sentences4-mod2}.
\cmhlistingsfromfile{demonstrations/multiple-sentences4.tex}{\texttt{multiple-sentences4.tex}}{lst:multiple-sentences4}
@@ -5143,34 +5506,42 @@ latexindent.pl multiple-sentences4 -m -l=keep-sen-line-breaks.yaml
\cmhlistingsfromfile{demonstrations/multiple-sentences4-mod1.tex}{\texttt{multiple-sentences4.tex} using \vref{lst:manipulate-sentences-yaml}}{lst:multiple-sentences4-mod1}
\end{widepage}
\cmhlistingsfromfile{demonstrations/multiple-sentences4-mod2.tex}{\texttt{multiple-sentences4.tex} using \vref{lst:keep-sen-line-breaks-yaml}}{lst:multiple-sentences4-mod2}
+ \end{example}
+ \begin{example}
Once you've read \cref{sec:poly-switches}, you will know that you can accommodate the
removal of internal sentence line breaks by using the YAML in \cref{lst:item-rules2-yaml}
and the command \index{switches!-l demonstration} \index{switches!-m demonstration}
+
\begin{commandshell}
latexindent.pl multiple-sentences4 -m -l=item-rules2.yaml
\end{commandshell}
+
the output of which is shown in \cref{lst:multiple-sentences4-mod3}.
\begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/multiple-sentences4-mod3.tex}{\texttt{multiple-sentences4.tex} using \cref{lst:item-rules2-yaml}}{lst:multiple-sentences4-mod3}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/item-rules2.yaml}[MLB-TCB]{\texttt{item-rules2.yaml}}{lst:item-rules2-yaml}
\end{cmhtcbraster}
+ \end{example}
\subsubsection{Text wrapping and indenting sentences}
The \texttt{oneSentencePerLine} \announce{2018-08-13}{oneSentencePerline text wrap and
indent} can be instructed to perform text wrapping and indentation upon sentences.
\index{sentences!text wrapping} \index{sentences!indenting}%
+ \begin{example}
Let's use the code in \cref{lst:multiple-sentences5}.
\cmhlistingsfromfile{demonstrations/multiple-sentences5.tex}{\texttt{multiple-sentences5.tex}}{lst:multiple-sentences5}
Referencing \cref{lst:sentence-wrap1-yaml}, and running the following command
\index{switches!-l demonstration} \index{switches!-m demonstration}
+
\begin{commandshell}
latexindent.pl multiple-sentences5 -m -l=sentence-wrap1.yaml
\end{commandshell}
+
we receive the output given in \cref{lst:multiple-sentences5-mod1}.
\begin{cmhtcbraster}[ raster left skip=-3.5cm,
@@ -5181,11 +5552,13 @@ latexindent.pl multiple-sentences5 -m -l=sentence-wrap1.yaml
\cmhlistingsfromfile{demonstrations/multiple-sentences5-mod1.tex}{\texttt{multiple-sentences5.tex} using \cref{lst:sentence-wrap1-yaml}}{lst:multiple-sentences5-mod1}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/sentence-wrap1.yaml}[MLB-TCB,width=0.5\textwidth]{\texttt{sentence-wrap1.yaml}}{lst:sentence-wrap1-yaml}
\end{cmhtcbraster}
+ \end{example}
If you specify \texttt{textWrapSentences} as 1, but do \emph{not} specify a value for
\texttt{columns} then the text wrapping will \emph{not} operate on sentences, and you
will see a warning in \texttt{indent.log}.
+ \begin{example}
The indentation of sentences requires that sentences are stored as code blocks. This
means that you may need to tweak \vref{lst:sentencesEndWith}. Let's explore this in
relation to \cref{lst:multiple-sentences6}.
@@ -5195,10 +5568,12 @@ latexindent.pl multiple-sentences5 -m -l=sentence-wrap1.yaml
By default, \texttt{latexindent.pl} will find the full-stop within the first
\texttt{item}, which means that, upon running the following commands \index{switches!-l
demonstration} \index{switches!-m demonstration} \index{switches!-y demonstration}
+
\begin{commandshell}
latexindent.pl multiple-sentences6 -m -l=sentence-wrap1.yaml
latexindent.pl multiple-sentences6 -m -l=sentence-wrap1.yaml -y="modifyLineBreaks:oneSentencePerLine:sentenceIndent:''"
\end{commandshell}
+
we receive the respective output in \cref{lst:multiple-sentences6-mod1} and
\cref{lst:multiple-sentences6-mod2}.
@@ -5210,7 +5585,9 @@ latexindent.pl multiple-sentences6 -m -l=sentence-wrap1.yaml -y="modifyLineBreak
\emph{not} been indented appropriately. This is because the oneSentencePerLine has been
instructed to store sentences (because \cref{lst:sentence-wrap1-yaml}); each sentence is
then searched for code blocks.
+ \end{example}
+ \begin{example}
We can tweak the settings in \vref{lst:sentencesEndWith} to ensure that full stops are
not followed by \texttt{item} commands, and that the end of sentences contains
\lstinline!\end{itemize}! as in \cref{lst:itemize-yaml} (if you intend to use this,
@@ -5222,15 +5599,18 @@ latexindent.pl multiple-sentences6 -m -l=sentence-wrap1.yaml -y="modifyLineBreak
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/itemized.yaml}[MLB-TCB]{\texttt{itemize.yaml}}{lst:itemize-yaml}
Upon running \index{switches!-l demonstration} \index{switches!-m demonstration}
+
\begin{commandshell}
latexindent.pl multiple-sentences6 -m -l=sentence-wrap1.yaml,itemize.yaml
\end{commandshell}
+
we receive the output in \cref{lst:multiple-sentences6-mod3}.
\cmhlistingsfromfile{demonstrations/multiple-sentences6-mod3.tex}{\texttt{multiple-sentences6-mod3.tex} using \cref{lst:sentence-wrap1-yaml} and \cref{lst:itemize-yaml}}{lst:multiple-sentences6-mod3}
Notice that the sentence has received indentation, and that the \texttt{itemize} code
block has been found and indented correctly.
+ \end{example}
Text \announce{2022-04-04}*{oneSentencePerLine text wrapping update} wrapping when using
the \texttt{oneSentencePerLine} routine determines if it will remove line breaks while
@@ -5294,25 +5674,25 @@ before words(*@$\BeginStartsOnOwnLine$@*) \begin{myenv}(*@$\BodyStartsOnOwnLine$
\end{cmhlistings}
\paragraph{Adding line breaks: BeginStartsOnOwnLine and BodyStartsOnOwnLine}
+ \begin{example}
Let's explore \texttt{BeginStartsOnOwnLine} and \texttt{BodyStartsOnOwnLine} in
\cref{lst:env-mlb1,lst:env-mlb2}, and in particular, let's allow each of them in turn to
take a value of $1$. \index{modifying linebreaks! at the \emph{beginning} of a code
block} \index{poly-switches!adding line breaks: set to 1}
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/env-mlb1.yaml}[MLB-TCB]{\texttt{env-mlb1.yaml}}{lst:env-mlb1}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/env-mlb2.yaml}[MLB-TCB]{\texttt{env-mlb2.yaml}}{lst:env-mlb2}
- \end{minipage}
+ \end{cmhtcbraster}
After running the following commands, \index{switches!-l demonstration}
\index{switches!-m demonstration}
+
\begin{commandshell}
latexindent.pl -m env-mlb.tex -l env-mlb1.yaml
latexindent.pl -m env-mlb.tex -l env-mlb2.yaml
\end{commandshell}
+
the output is as in \cref{lst:env-mlb-mod1,lst:env-mlb-mod2} respectively.
\begin{widepage}
@@ -5334,19 +5714,18 @@ latexindent.pl -m env-mlb.tex -l env-mlb2.yaml
$\BodyStartsOnOwnLine$ in \cref{lst:env-mlb1-tex}; furthermore, note that the \emph{body}
of \texttt{myenv} has received the appropriate (default) indentation.
\end{itemize}
+ \end{example}
+ \begin{example}
Let's now change each of the \texttt{1} values in \cref{lst:env-mlb1,lst:env-mlb2} so
that they are $2$ and save them into \texttt{env-mlb3.yaml} and \texttt{env-mlb4.yaml}
respectively (see \cref{lst:env-mlb3,lst:env-mlb4}). \index{poly-switches!adding comments
and then line breaks: set to 2}
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/env-mlb3.yaml}[MLB-TCB]{\texttt{env-mlb3.yaml}}{lst:env-mlb3}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/env-mlb4.yaml}[MLB-TCB]{\texttt{env-mlb4.yaml}}{lst:env-mlb4}
- \end{minipage}
+ \end{cmhtcbraster}
Upon running commands analogous to the above, we obtain
\cref{lst:env-mlb-mod3,lst:env-mlb-mod4}.
@@ -5364,19 +5743,18 @@ latexindent.pl -m env-mlb.tex -l env-mlb2.yaml
Note that line breaks have been added as in \cref{lst:env-mlb-mod1,lst:env-mlb-mod2}, but
this time a comment symbol has been added before adding the line break; in both cases,
trailing horizontal space has been stripped before doing so.
+ \end{example}
- Let's \announce{2017-08-21}{demonstration of blank line poly-switch (3)} now change each
- of the \texttt{1} values in \cref{lst:env-mlb1,lst:env-mlb2} so that they are $3$ and
- save them into \texttt{env-mlb5.yaml} and \texttt{env-mlb6.yaml} respectively (see
- \cref{lst:env-mlb5,lst:env-mlb6}). \index{poly-switches!adding blank lines: set to 3}%
+ \begin{example}
+ Let's now change each of the \texttt{1} values in \cref{lst:env-mlb1,lst:env-mlb2} so
+ that they are $3$ and save them into \texttt{env-mlb5.yaml} and \texttt{env-mlb6.yaml}
+ respectively (see \cref{lst:env-mlb5,lst:env-mlb6}). \index{poly-switches!adding blank
+ lines: set to 3}\announce{2017-08-21}{demonstration of blank line poly-switch (3)}%
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/env-mlb5.yaml}[MLB-TCB]{\texttt{env-mlb5.yaml}}{lst:env-mlb5}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/env-mlb6.yaml}[MLB-TCB]{\texttt{env-mlb6.yaml}}{lst:env-mlb6}
- \end{minipage}
+ \end{cmhtcbraster}
Upon running commands analogous to the above, we obtain
\cref{lst:env-mlb-mod5,lst:env-mlb-mod6}.
@@ -5393,20 +5771,20 @@ latexindent.pl -m env-mlb.tex -l env-mlb2.yaml
Note that line breaks have been added as in \cref{lst:env-mlb-mod1,lst:env-mlb-mod2}, but
this time a \emph{blank line} has been added after adding the line break.
+ \end{example}
- Let's now change \announce{2019-07-13}{demonstration of new blank line poly-switch} each
- of the \texttt{1} values in \cref{lst:env-mlb5,lst:env-mlb6} so that they are $4$ and
- save them into \texttt{env-beg4.yaml} and \texttt{env-body4.yaml} respectively (see
- \cref{lst:env-beg4,lst:env-body4}). \index{poly-switches!adding blank lines (again"!):
- set to 4}%
+ \begin{example}
+ Let's now change each of the \texttt{1} values in \cref{lst:env-mlb5,lst:env-mlb6} so
+ that they are $4$ and save them into \texttt{env-beg4.yaml} and \texttt{env-body4.yaml}
+ respectively (see \cref{lst:env-beg4,lst:env-body4}). \index{poly-switches!adding blank
+ lines (again"!): set to 4} \announce{2019-07-13}{demonstration of new blank line
+ poly-switch}
+ %
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/env-beg4.yaml}[MLB-TCB]{\texttt{env-beg4.yaml}}{lst:env-beg4}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\textwidth}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/env-body4.yaml}[MLB-TCB]{\texttt{env-body4.yaml}}{lst:env-body4}
- \end{minipage}
+ \end{cmhtcbraster}
We will demonstrate this poly-switch value using the code in \cref{lst:env-mlb1-text}.
@@ -5414,6 +5792,7 @@ latexindent.pl -m env-mlb.tex -l env-mlb2.yaml
Upon running the commands \index{switches!-l demonstration} \index{switches!-m
demonstration}
+
\begin{commandshell}
latexindent.pl -m env-mlb1.tex -l env-beg4.yaml
latexindent.pl -m env-mlb.1tex -l env-body4.yaml
@@ -5433,38 +5812,37 @@ latexindent.pl -m env-mlb.1tex -l env-body4.yaml
\item in \cref{lst:env-mlb1-body4} a blank line has been inserted before the beginning of the
\emph{body}, even though it already began on its own line.
\end{enumerate}
+ \end{example}
- \paragraph{Adding line breaks using EndStartsOnOwnLine and EndFinishesWithLineBreak}
+ \paragraph{Adding line breaks: EndStartsOnOwnLine and EndFinishesWithLineBreak}
+ \begin{example}
Let's explore \texttt{EndStartsOnOwnLine} and \texttt{EndFinishesWithLineBreak} in
\cref{lst:env-mlb7,lst:env-mlb8}, and in particular, let's allow each of them in turn to
take a value of $1$. \index{modifying linebreaks! at the \emph{end} of a code block}
\index{poly-switches!adding line breaks: set to 1}
- \begin{minipage}{.49\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/env-mlb7.yaml}[MLB-TCB]{\texttt{env-mlb7.yaml}}{lst:env-mlb7}
- \end{minipage}
- \hfill
- \begin{minipage}{.49\textwidth}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/env-mlb8.yaml}[MLB-TCB]{\texttt{env-mlb8.yaml}}{lst:env-mlb8}
- \end{minipage}
+ \end{cmhtcbraster}
After running the following commands, \index{switches!-l demonstration}
\index{switches!-m demonstration}
+
\begin{commandshell}
latexindent.pl -m env-mlb.tex -l env-mlb7.yaml
latexindent.pl -m env-mlb.tex -l env-mlb8.yaml
\end{commandshell}
+
the output is as in \cref{lst:env-mlb-mod7,lst:env-mlb-mod8}.
- \begin{widepage}
- \begin{minipage}{.42\linewidth}
- \cmhlistingsfromfile{demonstrations/env-mlb-mod7.tex}{\texttt{env-mlb.tex} using \cref{lst:env-mlb7}}{lst:env-mlb-mod7}
- \end{minipage}
- \hfill
- \begin{minipage}{.57\linewidth}
- \cmhlistingsfromfile{demonstrations/env-mlb-mod8.tex}{\texttt{env-mlb.tex} using \cref{lst:env-mlb8}}{lst:env-mlb-mod8}
- \end{minipage}
- \end{widepage}
+ \begin{cmhtcbraster}[raster columns=3,
+ raster left skip=-3.5cm,
+ raster right skip=-2cm,
+ raster column skip=.06\linewidth]
+ \cmhlistingsfromfile{demonstrations/env-mlb-mod7.tex}{\texttt{env-mlb.tex} using \cref{lst:env-mlb7}}{lst:env-mlb-mod7}
+ \cmhlistingsfromfile{demonstrations/env-mlb-mod8.tex}{\texttt{env-mlb.tex} using \cref{lst:env-mlb8}}{lst:env-mlb-mod8}
+ \end{cmhtcbraster}
There are a couple of points to note:
\begin{itemize}
@@ -5475,19 +5853,18 @@ latexindent.pl -m env-mlb.tex -l env-mlb8.yaml
\item in \cref{lst:env-mlb-mod8} a line break has been added at the point denoted by
$\EndFinishesWithLineBreak$ in \vref{lst:env-mlb1-tex}.
\end{itemize}
+ \end{example}
+ \begin{example}
Let's now change each of the \texttt{1} values in \cref{lst:env-mlb7,lst:env-mlb8} so
that they are $2$ and save them into \texttt{env-mlb9.yaml} and \texttt{env-mlb10.yaml}
respectively (see \cref{lst:env-mlb9,lst:env-mlb10}). \index{poly-switches!adding
comments and then line breaks: set to 2}
- \begin{minipage}{.49\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/env-mlb9.yaml}[MLB-TCB]{\texttt{env-mlb9.yaml}}{lst:env-mlb9}
- \end{minipage}
- \hfill
- \begin{minipage}{.49\textwidth}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/env-mlb10.yaml}[MLB-TCB]{\texttt{env-mlb10.yaml}}{lst:env-mlb10}
- \end{minipage}
+ \end{cmhtcbraster}
Upon running commands analogous to the above, we obtain
\cref{lst:env-mlb-mod9,lst:env-mlb-mod10}.
@@ -5505,19 +5882,18 @@ latexindent.pl -m env-mlb.tex -l env-mlb8.yaml
Note that line breaks have been added as in \cref{lst:env-mlb-mod7,lst:env-mlb-mod8}, but
this time a comment symbol has been added before adding the line break; in both cases,
trailing horizontal space has been stripped before doing so.
+ \end{example}
- Let's \announce{2017-08-21}{demonstration of blank line poly-switch (3)} now change each
- of the \texttt{1} values in \cref{lst:env-mlb7,lst:env-mlb8} so that they are $3$ and
- save them into \texttt{env-mlb11.yaml} and \texttt{env-mlb12.yaml} respectively (see
- \cref{lst:env-mlb11,lst:env-mlb12}). \index{poly-switches!adding blank lines: set to 3}%
+ \begin{example}
+ Let's now change each of the \texttt{1} values in \cref{lst:env-mlb7,lst:env-mlb8} so
+ that they are $3$ and save them into \texttt{env-mlb11.yaml} and \texttt{env-mlb12.yaml}
+ respectively (see \cref{lst:env-mlb11,lst:env-mlb12}). \index{poly-switches!adding blank
+ lines: set to 3}\announce{2017-08-21}{demonstration of blank line poly-switch (3)}%
- \begin{minipage}{.49\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/env-mlb11.yaml}[MLB-TCB]{\texttt{env-mlb11.yaml}}{lst:env-mlb11}
- \end{minipage}
- \hfill
- \begin{minipage}{.49\textwidth}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/env-mlb12.yaml}[MLB-TCB]{\texttt{env-mlb12.yaml}}{lst:env-mlb12}
- \end{minipage}
+ \end{cmhtcbraster}
Upon running commands analogous to the above, we obtain
\cref{lst:env-mlb-mod11,lst:env-mlb-mod12}.
@@ -5534,25 +5910,25 @@ latexindent.pl -m env-mlb.tex -l env-mlb8.yaml
Note that line breaks have been added as in \cref{lst:env-mlb-mod7,lst:env-mlb-mod8}, and
that a \emph{blank line} has been added after the line break.
+ \end{example}
- Let's now change \announce{2019-07-13}{demonstration of new blank line poly-switch} each
- of the \texttt{1} values in \cref{lst:env-mlb11,lst:env-mlb12} so that they are $4$ and
- save them into \texttt{env-end4.yaml} and \texttt{env-end-f4.yaml} respectively (see
- \cref{lst:env-end4,lst:env-end-f4}). \index{poly-switches!adding blank lines (again"!):
- set to 4}%
+ \begin{example}
+ Let's now change each of the \texttt{1} values in \cref{lst:env-mlb11,lst:env-mlb12} so
+ that they are $4$ and save them into \texttt{env-end4.yaml} and \texttt{env-end-f4.yaml}
+ respectively (see \cref{lst:env-end4,lst:env-end-f4}).
+ \announce{2019-07-13}{demonstration of new blank line poly-switch}
+ \index{poly-switches!adding blank lines (again"!): set to 4}%
- \begin{minipage}{.45\textwidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/env-end4.yaml}[MLB-TCB]{\texttt{env-end4.yaml}}{lst:env-end4}
- \end{minipage}
- \hfill
- \begin{minipage}{.5\textwidth}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/env-end-f4.yaml}[MLB-TCB]{\texttt{env-end-f4.yaml}}{lst:env-end-f4}
- \end{minipage}
+ \end{cmhtcbraster}
We will demonstrate this poly-switch value using the code from \vref{lst:env-mlb1-text}.
Upon running the commands \index{switches!-l demonstration} \index{switches!-m
demonstration}
+
\begin{commandshell}
latexindent.pl -m env-mlb1.tex -l env-end4.yaml
latexindent.pl -m env-mlb.1tex -l env-end-f4.yaml
@@ -5572,26 +5948,28 @@ latexindent.pl -m env-mlb.1tex -l env-end-f4.yaml
\item in \cref{lst:env-mlb1-end-f4} a blank line has been inserted after the \lstinline!\end!
statement, even though it already began on its own line.
\end{enumerate}
+ \end{example}
\paragraph{poly-switches 1, 2, and 3 only add line breaks when necessary}
If you ask \texttt{latexindent.pl} to add a line break (possibly with a comment) using a
- poly-switch value of $1$ (or $2$ or $3$), it will only do so if necessary. For example,
- if you process the file in \vref{lst:mlb2} using poly-switch values of 1, 2, or 3, it
- will be left unchanged.
+ poly-switch value of $1$ (or $2$ or $3$), it will only do so if necessary.
- \begin{minipage}{.45\linewidth}
+ \begin{example}
+ For example, if you process the file in \vref{lst:mlb2} using poly-switch values of 1, 2,
+ or 3, it will be left unchanged.
+
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/env-mlb2.tex}{\texttt{env-mlb2.tex}}{lst:mlb2}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\linewidth}
\cmhlistingsfromfile{demonstrations/env-mlb3.tex}{\texttt{env-mlb3.tex}}{lst:mlb3}
- \end{minipage}
+ \end{cmhtcbraster}
+ \end{example}
Setting the poly-switches to a value of $4$ instructs \texttt{latexindent.pl} to add a
line break even if the \emph{<part of thing>} is already on its own line; see
\cref{lst:env-mlb1-beg4,lst:env-mlb1-body4} and
\cref{lst:env-mlb1-end4,lst:env-mlb1-end-f4}.
+ \begin{example}
In contrast, the output from processing the file in \cref{lst:mlb3} will vary depending
on the poly-switches used; in \cref{lst:env-mlb3-mod2} you'll see that the comment symbol
after the \lstinline!\begin{myenv}! has been moved to the next line, as
@@ -5605,6 +5983,7 @@ latexindent.pl -m env-mlb.1tex -l env-end-f4.yaml
\cmhlistingsfromfile{demonstrations/env-mlb3-mod2.tex}{\texttt{env-mlb3.tex} using \vref{lst:env-mlb2}}{lst:env-mlb3-mod2}
\cmhlistingsfromfile{demonstrations/env-mlb3-mod4.tex}{\texttt{env-mlb3.tex} using \vref{lst:env-mlb4}}{lst:env-mlb3-mod4}
\end{cmhtcbraster}
+ \end{example}
The details of the discussion in this section have concerned \emph{global} poly-switches
in the \texttt{environments} field; each switch can also be specified on a
@@ -5614,12 +5993,14 @@ latexindent.pl -m env-mlb.1tex -l env-end-f4.yaml
\paragraph{Removing line breaks (poly-switches set to $-1$)}
Setting poly-switches to $-1$ tells \texttt{latexindent.pl} to remove line breaks of the
- \emph{<part of the thing>}, if necessary. We will consider the example code given in
- \cref{lst:mlb4}, noting in particular the positions of the line break highlighters,
- $\BeginStartsOnOwnLine$, $\BodyStartsOnOwnLine$, $\EndStartsOnOwnLine$ and
- $\EndFinishesWithLineBreak$, together with the associated YAML files in
- \crefrange{lst:env-mlb13}{lst:env-mlb16}. \index{poly-switches!removing line breaks: set
- to -1}
+ \emph{<part of the thing>}, if necessary.
+
+ \begin{example}
+ We will consider the example code given in \cref{lst:mlb4}, noting in particular the
+ positions of the line break highlighters, $\BeginStartsOnOwnLine$,
+ $\BodyStartsOnOwnLine$, $\EndStartsOnOwnLine$ and $\EndFinishesWithLineBreak$, together
+ with the associated YAML files in \crefrange{lst:env-mlb13}{lst:env-mlb16}.
+ \index{poly-switches!removing line breaks: set to -1}
\begin{minipage}{.45\linewidth}
\begin{cmhlistings}[style=tcblatex,escapeinside={(*@}{@*)}]{\texttt{env-mlb4.tex}}{lst:mlb4}
@@ -5643,6 +6024,7 @@ after words
After running the commands \index{switches!-l demonstration} \index{switches!-m
demonstration}
+
\begin{commandshell}
latexindent.pl -m env-mlb4.tex -l env-mlb13.yaml
latexindent.pl -m env-mlb4.tex -l env-mlb14.yaml
@@ -5652,21 +6034,15 @@ latexindent.pl -m env-mlb4.tex -l env-mlb16.yaml
we obtain the respective output in \crefrange{lst:env-mlb4-mod13}{lst:env-mlb4-mod16}.
- \begin{minipage}{.45\linewidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/env-mlb4-mod13.tex}{\texttt{env-mlb4.tex} using \cref{lst:env-mlb13}}{lst:env-mlb4-mod13}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\linewidth}
\cmhlistingsfromfile{demonstrations/env-mlb4-mod14.tex}{\texttt{env-mlb4.tex} using \cref{lst:env-mlb14}}{lst:env-mlb4-mod14}
- \end{minipage}
+ \end{cmhtcbraster}
- \begin{minipage}{.45\linewidth}
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/env-mlb4-mod15.tex}{\texttt{env-mlb4.tex} using \cref{lst:env-mlb15}}{lst:env-mlb4-mod15}
- \end{minipage}
- \hfill
- \begin{minipage}{.45\linewidth}
\cmhlistingsfromfile{demonstrations/env-mlb4-mod16.tex}{\texttt{env-mlb4.tex} using \cref{lst:env-mlb16}}{lst:env-mlb4-mod16}
- \end{minipage}
+ \end{cmhtcbraster}
Notice that in:
\begin{itemize}
@@ -5685,19 +6061,24 @@ latexindent.pl -m env-mlb4.tex -l env-mlb16.yaml
following command, for example \index{switches!-l demonstration} \index{switches!-m
demonstration}
\begin{widepage}
+
\begin{commandshell}
latexindent.pl -m env-mlb4.tex -l env-mlb13.yaml,env-mlb14.yaml,env-mlb15.yaml,env-mlb16.yaml
\end{commandshell}
+
\end{widepage}
which gives the output in \vref{lst:env-mlb1-tex}.
+ \end{example}
\paragraph{About trailing horizontal space}
Recall that on \cpageref{yaml:removeTrailingWhitespace} we discussed the YAML field
\texttt{removeTrailingWhitespace}, and that it has two (binary) switches to determine if
horizontal space should be removed \texttt{beforeProcessing} and
\texttt{afterProcessing}. The \texttt{beforeProcessing} is particularly relevant when
- considering the \texttt{-m} switch; let's consider the file shown in \cref{lst:mlb5},
- which highlights trailing spaces.
+ considering the \texttt{-m} switch.
+
+ \begin{example}
+ We consider the file shown in \cref{lst:mlb5}, which highlights trailing spaces.
\begin{cmhtcbraster}
\begin{cmhlistings}[style=tcblatex,showspaces=true,escapeinside={(*@}{@*)}]{\texttt{env-mlb5.tex}}{lst:mlb5}
@@ -5713,10 +6094,12 @@ after words
The output from the following commands \index{switches!-l demonstration}
\index{switches!-m demonstration}
\begin{widepage}
+
\begin{commandshell}
latexindent.pl -m env-mlb5.tex -l env-mlb13.yaml,env-mlb14.yaml,env-mlb15.yaml,env-mlb16.yaml
latexindent.pl -m env-mlb5.tex -l env-mlb13.yaml,env-mlb14.yaml,env-mlb15.yaml,env-mlb16.yaml,removeTWS-before.yaml
\end{commandshell}
+
\end{widepage}
is shown, respectively, in \cref{lst:env-mlb5-modAll,lst:env-mlb5-modAll-remove-WS}; note
that the trailing horizontal white space has been preserved (by default) in
@@ -5728,8 +6111,10 @@ latexindent.pl -m env-mlb5.tex -l env-mlb13.yaml,env-mlb14.yaml,env-mlb15.yaml,e
\cmhlistingsfromfile[showspaces=true]{demonstrations/env-mlb5-modAll-remove-WS.tex}{\texttt{env-mlb5.tex} using \crefrange{lst:env-mlb4-mod13}{lst:env-mlb4-mod16} \emph{and} \cref{lst:removeTWS-before}}{lst:env-mlb5-modAll-remove-WS}
\end{widepage}
+ \end{example}
\paragraph{poly-switch line break removal and blank lines}
+ \begin{example}
Now let's consider the file in \cref{lst:mlb6}, which contains blank lines.
\index{poly-switches!blank lines}
@@ -5754,10 +6139,12 @@ after words
Upon running the following commands \index{switches!-l demonstration} \index{switches!-m
demonstration}
\begin{widepage}
+
\begin{commandshell}
latexindent.pl -m env-mlb6.tex -l env-mlb13.yaml,env-mlb14.yaml,env-mlb15.yaml,env-mlb16.yaml
latexindent.pl -m env-mlb6.tex -l env-mlb13.yaml,env-mlb14.yaml,env-mlb15.yaml,env-mlb16.yaml,UnpreserveBlankLines.yaml
\end{commandshell}
+
\end{widepage}
we receive the respective outputs in
\cref{lst:env-mlb6-modAll,lst:env-mlb6-modAll-un-Preserve-Blank-Lines}. In
@@ -5777,7 +6164,9 @@ latexindent.pl -m env-mlb6.tex -l env-mlb13.yaml,env-mlb14.yaml,env-mlb15.yaml,e
\cmhlistingsfromfile{demonstrations/env-mlb6-modAll.tex}{\texttt{env-mlb6.tex} using \crefrange{lst:env-mlb4-mod13}{lst:env-mlb4-mod16}}{lst:env-mlb6-modAll}
\cmhlistingsfromfile{demonstrations/env-mlb6-modAll-un-Preserve-Blank-Lines.tex}{\texttt{env-mlb6.tex} using \crefrange{lst:env-mlb4-mod13}{lst:env-mlb4-mod16} \emph{and} \cref{lst:UnpreserveBlankLines}}{lst:env-mlb6-modAll-un-Preserve-Blank-Lines}
\end{cmhtcbraster}
+ \end{example}
+ \begin{example}
We can explore this further using the blank-line poly-switch value of $3$; let's use the
file given in \cref{lst:env-mlb7-tex}.
@@ -5785,10 +6174,12 @@ latexindent.pl -m env-mlb6.tex -l env-mlb13.yaml,env-mlb14.yaml,env-mlb15.yaml,e
Upon running the following commands \index{switches!-l demonstration} \index{switches!-m
demonstration}
+
\begin{commandshell}
latexindent.pl -m env-mlb7.tex -l env-mlb12.yaml,env-mlb13.yaml
latexindent.pl -m env-mlb7.tex -l env-mlb13.yaml,env-mlb14.yaml,UnpreserveBlankLines.yaml
\end{commandshell}
+
we receive the outputs given in \cref{lst:env-mlb7-preserve,lst:env-mlb7-no-preserve}.
\cmhlistingsfromfile{demonstrations/env-mlb7-preserve.tex}{\texttt{env-mlb7-preserve.tex}}{lst:env-mlb7-preserve}
@@ -5804,6 +6195,7 @@ latexindent.pl -m env-mlb7.tex -l env-mlb13.yaml,env-mlb14.yaml,UnpreserveBlankL
\item \cref{lst:env-mlb7-no-preserve}, by contrast, has had the additional line-break removed,
because of the settings in \cref{lst:UnpreserveBlankLines}.
\end{itemize}
+ \end{example}
\subsubsection{Poly-switches for double back slash}\label{subsec:dbs}
With reference to \texttt{lookForAlignDelims} (see \vref{lst:aligndelims:basic})
@@ -5834,23 +6226,26 @@ latexindent.pl -m env-mlb7.tex -l env-mlb13.yaml,env-mlb14.yaml,UnpreserveBlankL
Let's explore each of these in turn.
\paragraph{Double back slash starts on own line}
+ \begin{example}
We explore \texttt{DBSStartsOnOwnLine} ($\ElseStartsOnOwnLine$ in \cref{lst:dbs-demo});
starting with the code in \cref{lst:dbs-demo}, together with the YAML files given in
\cref{lst:DBS1} and \cref{lst:DBS2} and running the following commands \index{switches!-l
demonstration} \index{switches!-m demonstration}
+
\begin{commandshell}
latexindent.pl -m tabular3.tex -l DBS1.yaml
latexindent.pl -m tabular3.tex -l DBS2.yaml
\end{commandshell}
+
then we receive the respective output given in \cref{lst:tabular3-DBS1} and
\cref{lst:tabular3-DBS2}.
- \begin{cmhtcbraster}[raster column skip=.01\linewidth]
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/tabular3-mod1.tex}{\texttt{tabular3.tex} using \cref{lst:DBS1}}{lst:tabular3-DBS1}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/DBS1.yaml}[MLB-TCB]{\texttt{DBS1.yaml}}{lst:DBS1}
\end{cmhtcbraster}
- \begin{cmhtcbraster}[raster column skip=.01\linewidth]
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/tabular3-mod2.tex}{\texttt{tabular3.tex} using \cref{lst:DBS2}}{lst:tabular3-DBS2}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/DBS2.yaml}[MLB-TCB]{\texttt{DBS2.yaml}}{lst:DBS2}
\end{cmhtcbraster}
@@ -5868,26 +6263,30 @@ latexindent.pl -m tabular3.tex -l DBS2.yaml
the double back slashes from \cref{lst:dbs-demo} have been moved to their own line in
\cref{lst:tabular3-DBS2}, having added comment symbols before moving them.
\end{itemize}
+ \end{example}
\paragraph{Double back slash finishes with line break}
+ \begin{example}
Let's now explore \texttt{DBSFinishesWithLineBreak} ($\ElseFinishesWithLineBreak$ in
\cref{lst:dbs-demo}); starting with the code in \cref{lst:dbs-demo}, together with the
YAML files given in \cref{lst:DBS3} and \cref{lst:DBS4} and running the following
commands \index{poly-switches!for double back slash (delimiters)} \index{switches!-l
demonstration} \index{switches!-m demonstration}
+
\begin{commandshell}
latexindent.pl -m tabular3.tex -l DBS3.yaml
latexindent.pl -m tabular3.tex -l DBS4.yaml
\end{commandshell}
+
then we receive the respective output given in \cref{lst:tabular3-DBS3} and
\cref{lst:tabular3-DBS4}.
- \begin{cmhtcbraster}[raster column skip=.01\linewidth]
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/tabular3-mod3.tex}{\texttt{tabular3.tex} using \cref{lst:DBS3}}{lst:tabular3-DBS3}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/DBS3.yaml}[MLB-TCB]{\texttt{DBS3.yaml}}{lst:DBS3}
\end{cmhtcbraster}
- \begin{cmhtcbraster}[raster column skip=.01\linewidth]
+ \begin{cmhtcbraster}
\cmhlistingsfromfile{demonstrations/tabular3-mod4.tex}{\texttt{tabular3.tex} using \cref{lst:DBS4}}{lst:tabular3-DBS4}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/DBS4.yaml}[MLB-TCB]{\texttt{DBS4.yaml}}{lst:DBS4}
\end{cmhtcbraster}
@@ -5907,8 +6306,10 @@ latexindent.pl -m tabular3.tex -l DBS4.yaml
them; the final double back slashes have \emph{not} added a line break as they are at the
end of the body within the code block.
\end{itemize}
+ \end{example}
\paragraph{Double back slash poly-switches for specialBeginEnd}
+ \begin{example}
Let's explore the double back slash poly-switches for code blocks within
\texttt{specialBeginEnd} code blocks (\vref{lst:specialBeginEnd}); we begin with the code
within \cref{lst:special4}. \index{specialBeginEnd!double backslash poly-switch
@@ -5920,9 +6321,11 @@ latexindent.pl -m tabular3.tex -l DBS4.yaml
Upon using the YAML settings in \cref{lst:DBS5}, and running the command
\index{switches!-l demonstration} \index{switches!-m demonstration}
+
\begin{commandshell}
latexindent.pl -m special4.tex -l DBS5.yaml
\end{commandshell}
+
then we receive the output given in \cref{lst:special4-DBS5}. \index{delimiters!with
specialBeginEnd and the -m switch}
@@ -5943,20 +6346,26 @@ latexindent.pl -m special4.tex -l DBS5.yaml
\item the \texttt{SpecialEndStartsOnOwnLine} poly-switch has controlled the addition of a
comment symbol, followed by a line break, as it is set to a value of 2.
\end{itemize}
+ \end{example}
\paragraph{Double back slash poly-switches for optional and mandatory arguments}
For clarity, we provide a demonstration of controlling the double back slash
- poly-switches for optional and mandatory arguments. We begin with the code in
- \cref{lst:mycommand2}. \index{poly-switches!for double back slash (delimiters)}
+ poly-switches for optional and mandatory arguments.
+
+ \begin{example}
+ We use with the code in \cref{lst:mycommand2}. \index{poly-switches!for double back slash
+ (delimiters)}
\cmhlistingsfromfile{demonstrations/mycommand2.tex}{\texttt{mycommand2.tex}}{lst:mycommand2}
Upon using the YAML settings in \cref{lst:DBS6,lst:DBS7}, and running the command
\index{switches!-l demonstration} \index{switches!-m demonstration}
+
\begin{commandshell}
latexindent.pl -m mycommand2.tex -l DBS6.yaml
latexindent.pl -m mycommand2.tex -l DBS7.yaml
\end{commandshell}
+
then we receive the output given in \cref{lst:mycommand2-DBS6,lst:mycommand2-DBS7}.
\begin{cmhtcbraster}[
@@ -5974,24 +6383,29 @@ latexindent.pl -m mycommand2.tex -l DBS7.yaml
\cmhlistingsfromfile{demonstrations/mycommand2-mod7.tex}{\texttt{mycommand2.tex} using \cref{lst:DBS7}}{lst:mycommand2-DBS7}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/DBS7.yaml}[MLB-TCB,width=0.6\textwidth]{\texttt{DBS7.yaml}}{lst:DBS7}
\end{cmhtcbraster}
+ \end{example}
\paragraph{Double back slash optional square brackets}
The pattern matching for the double back slash will also, optionally, allow trailing
square brackets that contain a measurement of vertical spacing, for example
\lstinline!\\[3pt]!. \index{poly-switches!for double back slash (delimiters)}
+ \begin{example}
For example, beginning with the code in \cref{lst:pmatrix3}
\cmhlistingsfromfile{demonstrations/pmatrix3.tex}{\texttt{pmatrix3.tex}}{lst:pmatrix3}
and running the following command, using \cref{lst:DBS3}, \index{switches!-l
demonstration} \index{switches!-m demonstration}
+
\begin{commandshell}
latexindent.pl -m pmatrix3.tex -l DBS3.yaml
\end{commandshell}
+
then we receive the output given in \cref{lst:pmatrix3-DBS3}.
\cmhlistingsfromfile{demonstrations/pmatrix3-mod3.tex}{\texttt{pmatrix3.tex} using \cref{lst:DBS3}}{lst:pmatrix3-DBS3}
+ \end{example}
You can customise the pattern for the double back slash by exploring the \emph{fine
tuning} field detailed in \vref{lst:fineTuning}.
@@ -6087,6 +6501,7 @@ latexindent.pl -m pmatrix3.tex -l DBS3.yaml
\texttt{LCuBStartsOnOwnLine} for mandatory arguments, and \texttt{LSqBStartsOnOwnLine}
for optional arguments. \index{poly-switches!conflicting partnering}
+ \begin{example}
Let's begin with the code in \cref{lst:mycommand1} and the YAML settings in
\cref{lst:mycom-mlb1}; with reference to \vref{tab:poly-switch-mapping}, the key
\texttt{CommandNameFinishesWithLineBreak} is an alias for \texttt{BodyStartsOnOwnLine}.
@@ -6095,9 +6510,11 @@ latexindent.pl -m pmatrix3.tex -l DBS3.yaml
Upon running the command \index{switches!-l demonstration} \index{switches!-m
demonstration}
+
\begin{commandshell}
latexindent.pl -m -l=mycom-mlb1.yaml mycommand1.tex
\end{commandshell}
+
we obtain \cref{lst:mycommand1-mlb1}; note that the \emph{second} mandatory argument
beginning brace \lstinline!{! has had its leading line break removed, but that the
\emph{first} brace has not.
@@ -6109,7 +6526,9 @@ latexindent.pl -m -l=mycom-mlb1.yaml mycommand1.tex
\cmhlistingsfromfile{demonstrations/mycommand1-mlb1.tex}{\texttt{mycommand1.tex} using \cref{lst:mycom-mlb1}}{lst:mycommand1-mlb1}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/mycom-mlb1.yaml}[MLB-TCB,width=.6\textwidth]{\texttt{mycom-mlb1.yaml}}{lst:mycom-mlb1}
\end{cmhtcbraster}
+ \end{example}
+ \begin{example}
Now let's change the YAML file so that it is as in \cref{lst:mycom-mlb2}; upon running
the analogous command to that given above, we obtain \cref{lst:mycommand1-mlb2}; both
beginning braces \lstinline!{! have had their leading line breaks removed.
@@ -6121,7 +6540,9 @@ latexindent.pl -m -l=mycom-mlb1.yaml mycommand1.tex
\cmhlistingsfromfile{demonstrations/mycommand1-mlb2.tex}{\texttt{mycommand1.tex} using \cref{lst:mycom-mlb2}}{lst:mycommand1-mlb2}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/mycom-mlb2.yaml}[MLB-TCB,width=.6\textwidth]{\texttt{mycom-mlb2.yaml}}{lst:mycom-mlb2}
\end{cmhtcbraster}
+ \end{example}
+ \begin{example}
Now let's change the YAML file so that it is as in \cref{lst:mycom-mlb3}; upon running
the analogous command to that given above, we obtain \cref{lst:mycommand1-mlb3}.
@@ -6132,15 +6553,20 @@ latexindent.pl -m -l=mycom-mlb1.yaml mycommand1.tex
\cmhlistingsfromfile{demonstrations/mycommand1-mlb3.tex}{\texttt{mycommand1.tex} using \cref{lst:mycom-mlb3}}{lst:mycommand1-mlb3}
\cmhlistingsfromfile[style=yaml-LST]{demonstrations/mycom-mlb3.yaml}[MLB-TCB,width=.6\textwidth]{\texttt{mycom-mlb3.yaml}}{lst:mycom-mlb3}
\end{cmhtcbraster}
+ \end{example}
\subsubsection{Conflicting poly-switches: sequential code blocks}
- It is very easy to have conflicting poly-switches; if we use the example from
- \vref{lst:mycommand1}, and consider the YAML settings given in \cref{lst:mycom-mlb4}. The
- output from running \index{poly-switches!conflicting switches} \index{switches!-l
- demonstration} \index{switches!-m demonstration}
+ It is very easy to have conflicting poly-switches.
+
+ \begin{example}
+ We use the example from \vref{lst:mycommand1}, and consider the YAML settings given in
+ \cref{lst:mycom-mlb4}. The output from running \index{poly-switches!conflicting switches}
+ \index{switches!-l demonstration} \index{switches!-m demonstration}
+
\begin{commandshell}
latexindent.pl -m -l=mycom-mlb4.yaml mycommand1.tex
\end{commandshell}
+
is given in \cref{lst:mycom-mlb4}.
\begin{cmhtcbraster}
@@ -6160,13 +6586,17 @@ latexindent.pl -m -l=mycom-mlb4.yaml mycommand1.tex
clear that \texttt{LCuBStartsOnOwnLine} won this conflict, and the reason is that
\emph{the second argument was processed after the first} -- in general, the most
recently-processed code block and associated poly-switch takes priority.
+ \end{example}
+ \begin{example}
We can explore this further by considering the YAML settings in \cref{lst:mycom-mlb5};
upon running the command \index{switches!-l demonstration} \index{switches!-m
demonstration}
+
\begin{commandshell}
latexindent.pl -m -l=mycom-mlb5.yaml mycommand1.tex
\end{commandshell}
+
we obtain the output given in \cref{lst:mycommand1-mlb5}.
\begin{cmhtcbraster}[raster column skip=.1\linewidth]
@@ -6192,8 +6622,10 @@ latexindent.pl -m -l=mycom-mlb5.yaml mycommand1.tex
\emph{not} begin on its own line, and so because \texttt{LCuBStartsOnOwnLine} is set to
$2$, it adds a comment, followed by a line break.
\end{itemize}
+ \end{example}
\subsubsection{Conflicting poly-switches: nested code blocks}
+ \begin{example}
Now let's consider an example when nested code blocks have conflicting poly-switches;
we'll use the code in \cref{lst:nested-env}, noting that it contains nested environments.
\index{poly-switches!conflicting switches}
@@ -6202,9 +6634,11 @@ latexindent.pl -m -l=mycom-mlb5.yaml mycommand1.tex
Let's use the YAML settings given in \cref{lst:nested-env-mlb1-yaml}, which upon running
the command \index{switches!-l demonstration} \index{switches!-m demonstration}
+
\begin{commandshell}
latexindent.pl -m -l=nested-env-mlb1.yaml nested-env.tex
\end{commandshell}
+
gives the output in \cref{lst:nested-env-mlb1}.
\begin{cmhtcbraster}[raster column skip=.05\linewidth]
@@ -6216,6 +6650,7 @@ latexindent.pl -m -l=nested-env-mlb1.yaml nested-env.tex
received the appropriate (default) indentation; secondly, note that the poly-switch
\texttt{EndStartsOnOwnLine} appears to have won the conflict, as \lstinline!\end{one}!
has had its leading line break removed.
+ \end{example}
To understand it, let's talk about the three basic phases \label{page:phases}of
\texttt{latexindent.pl}:
@@ -6262,11 +6697,14 @@ latexindent.pl -m -l=nested-env-mlb1.yaml nested-env.tex
of knowing how much indentation to add to the subsequent text (in this case,
\lstinline!\end{one}!).
+ \begin{example}
We can explore this further using the poly-switches in \cref{lst:nested-env-mlb2}; upon
running the command \index{switches!-l demonstration} \index{switches!-m demonstration}
+
\begin{commandshell}
latexindent.pl -m -l=nested-env-mlb2.yaml nested-env.tex
\end{commandshell}
+
we obtain the output given in \cref{lst:nested-env-mlb2-output}.
\begin{cmhtcbraster}
@@ -6288,6 +6726,7 @@ latexindent.pl -m -l=nested-env-mlb2.yaml nested-env.tex
stage}, the \texttt{two} environment finds \texttt{EndFinishesWithLineBreak} is $-1$, so
it removes the trailing line break; remember, at this point, \texttt{latexindent.pl} has
completely finished with the \texttt{one} environment.
+ \end{example}
% arara: pdflatex: { files: [latexindent]}
\section{The -r, -rv and -rr switches}\label{sec:replacements}
\fancyhead[R]{\bfseries\thepage%
@@ -6346,11 +6785,14 @@ latexindent.pl -m -l=nested-env-mlb2.yaml nested-env.tex
with further examples. With reference to \cref{lst:replacements}, the default action will
replace every instance of the text \texttt{latexindent.pl} with \texttt{pl.latexindent}.
+ \begin{example}
Beginning with the code in \cref{lst:replace1} and running the command \index{switches!-r
demonstration}
+
\begin{commandshell}
latexindent.pl -r replace1.tex
\end{commandshell}
+
gives the output given in \cref{lst:replace1-r1}.
\begin{cmhtcbraster}[raster column skip=.01\linewidth]
@@ -6362,9 +6804,11 @@ latexindent.pl -r replace1.tex
\vref{lst:replacements} by changing \texttt{lookForThis} to 0; we perform this action in
\cref{lst:replace1-yaml}, and run the command \index{switches!-l demonstration}
\index{switches!-r demonstration}
+
\begin{commandshell}
latexindent.pl -r replace1.tex -l=replace1.yaml
\end{commandshell}
+
which gives the output in \cref{lst:replace1-mod1}.
\begin{cmhtcbraster}[raster column skip=.01\linewidth]
@@ -6374,6 +6818,7 @@ latexindent.pl -r replace1.tex -l=replace1.yaml
Note that in \cref{lst:replace1-yaml} we have specified \texttt{amalgamate} as 0 so that
the default replacements are overwritten.
+ \end{example}
We haven't yet discussed the \texttt{when} field; don't worry, we'll get to it as part of
the discussion in what follows.
@@ -6397,248 +6842,268 @@ latexindent.pl -r replace1.tex -l=replace1.yaml
\subsection{Examples of replacements}
\begin{example}
- We begin with code given in \cref{lst:colsep}
+ We begin with code given in \cref{lst:colsep}
- \cmhlistingsfromfile{demonstrations/colsep.tex}{\texttt{colsep.tex}}{lst:colsep}
+ \cmhlistingsfromfile{demonstrations/colsep.tex}{\texttt{colsep.tex}}{lst:colsep}
- Let's assume that our goal is to remove both of the \texttt{arraycolsep} statements; we
- can achieve this in a few different ways.
+ Let's assume that our goal is to remove both of the \texttt{arraycolsep} statements; we
+ can achieve this in a few different ways.
- Using the YAML in \cref{lst:colsep-yaml}, and running the command \index{switches!-l
- demonstration} \index{switches!-r demonstration}
- \begin{commandshell}
+ Using the YAML in \cref{lst:colsep-yaml}, and running the command \index{switches!-l
+ demonstration} \index{switches!-r demonstration}
+
+ \begin{commandshell}
latexindent.pl -r colsep.tex -l=colsep.yaml
\end{commandshell}
- then we achieve the output in \cref{lst:colsep-mod0}.
- \begin{cmhtcbraster}[raster column skip=.01\linewidth]
- \cmhlistingsfromfile{demonstrations/colsep-mod0.tex}{\texttt{colsep.tex} using \cref{lst:colsep}}{lst:colsep-mod0}
- \cmhlistingsfromfile[style=yaml-LST]{demonstrations/colsep.yaml}[replace-TCB]{\texttt{colsep.yaml}}{lst:colsep-yaml}
- \end{cmhtcbraster}
- Note that in \cref{lst:colsep-yaml}, we have specified \emph{two} separate fields, each
- with their own `\emph{this}' field; furthermore, for both of the separate fields, we have
- not specified `\texttt{that}', so the \texttt{that} field is assumed to be blank by
- \texttt{latexindent.pl};
-
- We can make the YAML in \cref{lst:colsep-yaml} more concise by exploring the
- \texttt{substitution} field. Using the settings in \cref{lst:colsep1} and running the
- command \index{switches!-l demonstration} \index{switches!-r demonstration}
- \begin{commandshell}
+
+ then we achieve the output in \cref{lst:colsep-mod0}.
+
+ \begin{cmhtcbraster}
+ \cmhlistingsfromfile{demonstrations/colsep-mod0.tex}{\texttt{colsep.tex} using \cref{lst:colsep}}{lst:colsep-mod0}
+ \cmhlistingsfromfile[style=yaml-LST]{demonstrations/colsep.yaml}[replace-TCB]{\texttt{colsep.yaml}}{lst:colsep-yaml}
+ \end{cmhtcbraster}
+ Note that in \cref{lst:colsep-yaml}, we have specified \emph{two} separate fields, each
+ with their own `\emph{this}' field; furthermore, for both of the separate fields, we have
+ not specified `\texttt{that}', so the \texttt{that} field is assumed to be blank by
+ \texttt{latexindent.pl};
+
+ We can make the YAML in \cref{lst:colsep-yaml} more concise by exploring the
+ \texttt{substitution} field. Using the settings in \cref{lst:colsep1} and running the
+ command \index{switches!-l demonstration} \index{switches!-r demonstration}
+
+ \begin{commandshell}
latexindent.pl -r colsep.tex -l=colsep1.yaml
\end{commandshell}
- then we achieve the output in \cref{lst:colsep-mod1}. \index{regular
- expressions!substitution field, arraycolsep} \index{regular expressions!at least one +}
- \begin{cmhtcbraster}[raster column skip=.01\linewidth,
- raster force size=false,
- raster column 1/.style={add to width=-.1\textwidth}]
- \cmhlistingsfromfile{demonstrations/colsep-mod1.tex}{\texttt{colsep.tex} using \cref{lst:colsep1}}{lst:colsep-mod1}
- \cmhlistingsfromfile[style=yaml-LST]{demonstrations/colsep1.yaml}[replace-TCB,width=0.6\textwidth]{\texttt{colsep1.yaml}}{lst:colsep1}
- \end{cmhtcbraster}
- The code given in \cref{lst:colsep1} is an example of a \emph{regular expression}, which
- we may abbreviate to \emph{regex} in what follows. This manual is not intended to be a
- tutorial on regular expressions; you might like to read, for example,
- \cite{masteringregexp} for a detailed covering of the topic. With reference to
- \cref{lst:colsep1}, we do note the following:
- \begin{itemize}
- \item the general form of the \texttt{substitution} field is
- \lstinline!s/regex/replacement/modifiers!. You can place any regular expression you like
- within this;
- \item we have `escaped' the backslash by using \lstinline!\\!
- \item we have used \lstinline!\d+! to represent \emph{at least} one digit
- \item the \texttt{s} \emph{modifier} (in the \texttt{sg} at the end of the line) instructs
- \texttt{latexindent.pl} to treat your file as one single line;
- \item the \texttt{g} \emph{modifier} (in the \texttt{sg} at the end of the line) instructs
- \texttt{latexindent.pl} to make the substitution \emph{globally} throughout your file;
- you might try removing the \texttt{g} modifier from \cref{lst:colsep1} and observing the
- difference in output.
- \end{itemize}
- You might like to see
- \href{https://perldoc.perl.org/perlre.html#Modifiers}{https://perldoc.perl.org/perlre.html\#Modifiers}
- for details of modifiers; in general, I recommend starting with the \texttt{sg} modifiers
- for this feature.
+ then we achieve the output in \cref{lst:colsep-mod1}. \index{regular
+ expressions!substitution field, arraycolsep} \index{regular expressions!at least one +}
+
+ \begin{cmhtcbraster}
+ \cmhlistingsfromfile{demonstrations/colsep-mod1.tex}{\texttt{colsep.tex} using \cref{lst:colsep1}}{lst:colsep-mod1}
+ \cmhlistingsfromfile[style=yaml-LST]{demonstrations/colsep1.yaml}[replace-TCB,width=0.6\textwidth]{\texttt{colsep1.yaml}}{lst:colsep1}
+ \end{cmhtcbraster}
+
+ The code given in \cref{lst:colsep1} is an example of a \emph{regular expression}, which
+ we may abbreviate to \emph{regex} in what follows. This manual is not intended to be a
+ tutorial on regular expressions; you might like to read, for example,
+ \cite{masteringregexp} for a detailed covering of the topic. With reference to
+ \cref{lst:colsep1}, we do note the following:
+ \begin{itemize}
+ \item the general form of the \texttt{substitution} field is
+ \lstinline!s/regex/replacement/modifiers!. You can place any regular expression you like
+ within this;
+ \item we have `escaped' the backslash by using \lstinline!\\!
+ \item we have used \lstinline!\d+! to represent \emph{at least} one digit
+ \item the \texttt{s} \emph{modifier} (in the \texttt{sg} at the end of the line) instructs
+ \texttt{latexindent.pl} to treat your file as one single line;
+ \item the \texttt{g} \emph{modifier} (in the \texttt{sg} at the end of the line) instructs
+ \texttt{latexindent.pl} to make the substitution \emph{globally} throughout your file;
+ you might try removing the \texttt{g} modifier from \cref{lst:colsep1} and observing the
+ difference in output.
+ \end{itemize}
+ You might like to see
+ \href{https://perldoc.perl.org/perlre.html#Modifiers}{https://perldoc.perl.org/perlre.html\#Modifiers}
+ for details of modifiers; in general, I recommend starting with the \texttt{sg} modifiers
+ for this feature.
\end{example}
\begin{example}
- We'll keep working with the file in \vref{lst:colsep} for this example.
+ We'll keep working with the file in \vref{lst:colsep} for this example.
- Using the YAML in \cref{lst:multi-line}, and running the command \index{switches!-l
- demonstration} \index{switches!-r demonstration}
- \begin{commandshell}
+ Using the YAML in \cref{lst:multi-line}, and running the command \index{switches!-l
+ demonstration} \index{switches!-r demonstration}
+
+ \begin{commandshell}
latexindent.pl -r colsep.tex -l=multi-line.yaml
\end{commandshell}
- then we achieve the output in \cref{lst:colsep-mod2}.
- \begin{cmhtcbraster}[raster column skip=.01\linewidth]
- \cmhlistingsfromfile{demonstrations/colsep-mod2.tex}{\texttt{colsep.tex} using \cref{lst:multi-line}}{lst:colsep-mod2}
- \cmhlistingsfromfile[style=yaml-LST]{demonstrations/multi-line.yaml}[replace-TCB]{\texttt{multi-line.yaml}}{lst:multi-line}
- \end{cmhtcbraster}
- With reference to \cref{lst:multi-line}, we have specified a \emph{multi-line} version of
- \texttt{this} by employing the \emph{literal} YAML style \lstinline!|-!. See, for
- example,
- \href{https://stackoverflow.com/questions/3790454/in-yaml-how-do-i-break-a-string-over-multiple-lines}{https://stackoverflow.com/questions/3790454/in-yaml-how-do-i-break-a-string-over-multiple-lines}
- for further options, all of which can be used in your YAML file.
-
- This is a natural point to explore the \texttt{when} field, specified in
- \vref{lst:replacements}. This field can take two values: \emph{before} and \emph{after},
- which respectively instruct \texttt{latexindent.pl} to perform the replacements
- \emph{before} indentation or \emph{after} it. The default value is \texttt{before}.
-
- Using the YAML in \cref{lst:multi-line1}, and running the command \index{switches!-l
- demonstration} \index{switches!-r demonstration}
- \begin{commandshell}
+
+ then we achieve the output in \cref{lst:colsep-mod2}.
+ \begin{cmhtcbraster}[raster column skip=.01\linewidth]
+ \cmhlistingsfromfile{demonstrations/colsep-mod2.tex}{\texttt{colsep.tex} using \cref{lst:multi-line}}{lst:colsep-mod2}
+ \cmhlistingsfromfile[style=yaml-LST]{demonstrations/multi-line.yaml}[replace-TCB]{\texttt{multi-line.yaml}}{lst:multi-line}
+ \end{cmhtcbraster}
+ With reference to \cref{lst:multi-line}, we have specified a \emph{multi-line} version of
+ \texttt{this} by employing the \emph{literal} YAML style \lstinline!|-!. See, for
+ example,
+ \href{https://stackoverflow.com/questions/3790454/in-yaml-how-do-i-break-a-string-over-multiple-lines}{https://stackoverflow.com/questions/3790454/in-yaml-how-do-i-break-a-string-over-multiple-lines}
+ for further options, all of which can be used in your YAML file.
+
+ This is a natural point to explore the \texttt{when} field, specified in
+ \vref{lst:replacements}. This field can take two values: \emph{before} and \emph{after},
+ which respectively instruct \texttt{latexindent.pl} to perform the replacements
+ \emph{before} indentation or \emph{after} it. The default value is \texttt{before}.
+
+ Using the YAML in \cref{lst:multi-line1}, and running the command \index{switches!-l
+ demonstration} \index{switches!-r demonstration}
+
+ \begin{commandshell}
latexindent.pl -r colsep.tex -l=multi-line1.yaml
\end{commandshell}
- then we achieve the output in \cref{lst:colsep-mod3}.
- \begin{cmhtcbraster}[raster column skip=.01\linewidth]
- \cmhlistingsfromfile{demonstrations/colsep-mod3.tex}{\texttt{colsep.tex} using \cref{lst:multi-line1}}{lst:colsep-mod3}
- \cmhlistingsfromfile[style=yaml-LST]{demonstrations/multi-line1.yaml}[replace-TCB]{\texttt{multi-line1.yaml}}{lst:multi-line1}
- \end{cmhtcbraster}
- We note that, because we have specified \texttt{when: after}, that
- \texttt{latexindent.pl} has not found the string specified in \cref{lst:multi-line1}
- within the file in \vref{lst:colsep}. As it has looked for the string within
- \cref{lst:multi-line1} \emph{after} the indentation has been performed. After
- indentation, the string as written in \cref{lst:multi-line1} is no longer part of the
- file, and has therefore not been replaced.
-
- As a final note on this example, if you use the \texttt{-rr} switch, as follows,
- \index{switches!-l demonstration} \index{switches!-rr demonstration}
- \begin{commandshell}
+
+ then we achieve the output in \cref{lst:colsep-mod3}.
+ \begin{cmhtcbraster}[raster column skip=.01\linewidth]
+ \cmhlistingsfromfile{demonstrations/colsep-mod3.tex}{\texttt{colsep.tex} using \cref{lst:multi-line1}}{lst:colsep-mod3}
+ \cmhlistingsfromfile[style=yaml-LST]{demonstrations/multi-line1.yaml}[replace-TCB]{\texttt{multi-line1.yaml}}{lst:multi-line1}
+ \end{cmhtcbraster}
+ We note that, because we have specified \texttt{when: after}, that
+ \texttt{latexindent.pl} has not found the string specified in \cref{lst:multi-line1}
+ within the file in \vref{lst:colsep}. As it has looked for the string within
+ \cref{lst:multi-line1} \emph{after} the indentation has been performed. After
+ indentation, the string as written in \cref{lst:multi-line1} is no longer part of the
+ file, and has therefore not been replaced.
+
+ As a final note on this example, if you use the \texttt{-rr} switch, as follows,
+ \index{switches!-l demonstration} \index{switches!-rr demonstration}
+
+ \begin{commandshell}
latexindent.pl -rr colsep.tex -l=multi-line1.yaml
\end{commandshell}
- then the \texttt{when} field is ignored, no indentation is done, and the output is as in
- \cref{lst:colsep-mod2}.
+
+ then the \texttt{when} field is ignored, no indentation is done, and the output is as in
+ \cref{lst:colsep-mod2}.
\end{example}
\begin{example}
- An important part of the substitution routine is in \emph{capture groups}.
+ An important part of the substitution routine is in \emph{capture groups}.
- Assuming that we start with the code in \cref{lst:displaymath}, let's assume that our
- goal is to replace each occurrence of \lstinline!$$...$$! with
- \lstinline!\begin{equation*}...\end{equation*}!. This example is partly motivated by
- \href{https://tex.stackexchange.com/questions/242150/good-looking-latex-code}{tex
- stackexchange question 242150}.
+ Assuming that we start with the code in \cref{lst:displaymath}, let's assume that our
+ goal is to replace each occurrence of \lstinline!$$...$$! with
+ \lstinline!\begin{equation*}...\end{equation*}!. This example is partly motivated by
+ \href{https://tex.stackexchange.com/questions/242150/good-looking-latex-code}{tex
+ stackexchange question 242150}.
- \cmhlistingsfromfile{demonstrations/displaymath.tex}{\texttt{displaymath.tex}}{lst:displaymath}
+ \cmhlistingsfromfile{demonstrations/displaymath.tex}{\texttt{displaymath.tex}}{lst:displaymath}
- We use the settings in \cref{lst:displaymath1} and run the command \index{switches!-l
- demonstration} \index{switches!-r demonstration}
- \begin{commandshell}
+ We use the settings in \cref{lst:displaymath1} and run the command \index{switches!-l
+ demonstration} \index{switches!-r demonstration}
+
+ \begin{commandshell}
latexindent.pl -r displaymath.tex -l=displaymath1.yaml
\end{commandshell}
- to receive the output given in \cref{lst:displaymath-mod1}. \index{regular
- expressions!substitution field, equation}
- \begin{cmhtcbraster}[raster left skip=-3.75cm,
- raster right skip=-2cm,]
- \cmhlistingsfromfile{demonstrations/displaymath-mod1.tex}{\texttt{displaymath.tex} using \cref{lst:displaymath1}}{lst:displaymath-mod1}
- \cmhlistingsfromfile[style=yaml-LST]{demonstrations/displaymath1.yaml}[replace-TCB]{\texttt{displaymath1.yaml}}{lst:displaymath1}
- \end{cmhtcbraster}
+ to receive the output given in \cref{lst:displaymath-mod1}. \index{regular
+ expressions!substitution field, equation}
- A few notes about \cref{lst:displaymath1}:
- \begin{enumerate}
- \item we have used the \texttt{x} modifier, which allows us to have white space within the
- regex;
- \item we have used a capture group, \lstinline!(.*?)! which captures the content between the
- \lstinline!$$...$$! into the special variable, \lstinline!$1!;
- \item we have used the content of the capture group, \lstinline!$1!, in the replacement text.
- \end{enumerate}
- See
- \href{https://perldoc.perl.org/perlre.html#Capture-groups}{https://perldoc.perl.org/perlre.html\#Capture-groups}
- for a discussion of capture groups.
-
- The features of the replacement switches can, of course, be combined with others from the
- toolkit of \texttt{latexindent.pl}. For example, we can combine the poly-switches of
- \vref{sec:poly-switches}, which we do in \cref{lst:equation}; upon running the command
- \index{switches!-l demonstration} \index{switches!-m demonstration} \index{switches!-r
- demonstration}
- \begin{commandshell}
+ \begin{cmhtcbraster}[raster left skip=-3.75cm,
+ raster right skip=-2cm,]
+ \cmhlistingsfromfile{demonstrations/displaymath-mod1.tex}{\texttt{displaymath.tex} using \cref{lst:displaymath1}}{lst:displaymath-mod1}
+ \cmhlistingsfromfile[style=yaml-LST]{demonstrations/displaymath1.yaml}[replace-TCB]{\texttt{displaymath1.yaml}}{lst:displaymath1}
+ \end{cmhtcbraster}
+
+ A few notes about \cref{lst:displaymath1}:
+ \begin{enumerate}
+ \item we have used the \texttt{x} modifier, which allows us to have white space within the
+ regex;
+ \item we have used a capture group, \lstinline!(.*?)! which captures the content between the
+ \lstinline!$$...$$! into the special variable, \lstinline!$1!;
+ \item we have used the content of the capture group, \lstinline!$1!, in the replacement text.
+ \end{enumerate}
+ See
+ \href{https://perldoc.perl.org/perlre.html#Capture-groups}{https://perldoc.perl.org/perlre.html\#Capture-groups}
+ for a discussion of capture groups.
+
+ The features of the replacement switches can, of course, be combined with others from the
+ toolkit of \texttt{latexindent.pl}. For example, we can combine the poly-switches of
+ \vref{sec:poly-switches}, which we do in \cref{lst:equation}; upon running the command
+ \index{switches!-l demonstration} \index{switches!-m demonstration} \index{switches!-r
+ demonstration}
+
+ \begin{commandshell}
latexindent.pl -r -m displaymath.tex -l=displaymath1.yaml,equation.yaml
\end{commandshell}
- then we receive the output in \cref{lst:displaymath-mod2}.
- \begin{cmhtcbraster}[
- raster force size=false,
- raster column 1/.style={add to width=-.1\textwidth},
- raster column skip=.06\linewidth]
- \cmhlistingsfromfile{demonstrations/displaymath-mod2.tex}{\texttt{displaymath.tex} using \cref{lst:displaymath1,lst:equation}}{lst:displaymath-mod2}
- \cmhlistingsfromfile[style=yaml-LST]{demonstrations/equation.yaml}[MLB-TCB,width=0.55\textwidth]{\texttt{equation.yaml}}{lst:equation}
- \end{cmhtcbraster}
+ then we receive the output in \cref{lst:displaymath-mod2}.
+
+ \begin{cmhtcbraster}[
+ raster force size=false,
+ raster column 1/.style={add to width=-.1\textwidth},
+ raster column skip=.06\linewidth]
+ \cmhlistingsfromfile{demonstrations/displaymath-mod2.tex}{\texttt{displaymath.tex} using \cref{lst:displaymath1,lst:equation}}{lst:displaymath-mod2}
+ \cmhlistingsfromfile[style=yaml-LST]{demonstrations/equation.yaml}[MLB-TCB,width=0.55\textwidth]{\texttt{equation.yaml}}{lst:equation}
+ \end{cmhtcbraster}
\end{example}
\begin{example}
- This example is motivated by
- \href{https://tex.stackexchange.com/questions/490086/bring-several-lines-together-to-fill-blank-spaces-in-texmaker}{tex
- stackexchange question 490086}. We begin with the code in \cref{lst:phrase}.
+ This example is motivated by
+ \href{https://tex.stackexchange.com/questions/490086/bring-several-lines-together-to-fill-blank-spaces-in-texmaker}{tex
+ stackexchange question 490086}. We begin with the code in \cref{lst:phrase}.
- \cmhlistingsfromfile{demonstrations/phrase.tex}{\texttt{phrase.tex}}{lst:phrase}
+ \cmhlistingsfromfile{demonstrations/phrase.tex}{\texttt{phrase.tex}}{lst:phrase}
- Our goal is to make the spacing uniform between the phrases. To achieve this, we employ
- the settings in \cref{lst:hspace}, and run the command \index{switches!-l demonstration}
- \index{switches!-r demonstration}
- \begin{commandshell}
+ Our goal is to make the spacing uniform between the phrases. To achieve this, we employ
+ the settings in \cref{lst:hspace}, and run the command \index{switches!-l demonstration}
+ \index{switches!-r demonstration}
+
+ \begin{commandshell}
latexindent.pl -r phrase.tex -l=hspace.yaml
\end{commandshell}
- which gives the output in \cref{lst:phrase-mod1}. \index{regular expressions!at least one
- +} \index{regular expressions!horizontal space \textbackslash{h}}
- \begin{cmhtcbraster}
- \cmhlistingsfromfile{demonstrations/phrase-mod1.tex}{\texttt{phrase.tex} using \cref{lst:hspace}}{lst:phrase-mod1}
- \cmhlistingsfromfile[style=yaml-LST]{demonstrations/hspace.yaml}[replace-TCB]{\texttt{hspace.yaml}}{lst:hspace}
- \end{cmhtcbraster}
+ which gives the output in \cref{lst:phrase-mod1}. \index{regular expressions!at least one
+ +} \index{regular expressions!horizontal space \textbackslash{h}}
- The \lstinline!\h+! setting in \cref{lst:hspace} say to replace \emph{at least one
- horizontal space} with a single space.
+ \begin{cmhtcbraster}
+ \cmhlistingsfromfile{demonstrations/phrase-mod1.tex}{\texttt{phrase.tex} using \cref{lst:hspace}}{lst:phrase-mod1}
+ \cmhlistingsfromfile[style=yaml-LST]{demonstrations/hspace.yaml}[replace-TCB]{\texttt{hspace.yaml}}{lst:hspace}
+ \end{cmhtcbraster}
+
+ The \lstinline!\h+! setting in \cref{lst:hspace} say to replace \emph{at least one
+ horizontal space} with a single space.
\end{example}
\begin{example}
- We begin with the code in \cref{lst:references}.
+ We begin with the code in \cref{lst:references}.
- \cmhlistingsfromfile{demonstrations/references.tex}{\texttt{references.tex}}{lst:references}
+ \cmhlistingsfromfile{demonstrations/references.tex}{\texttt{references.tex}}{lst:references}
- Our goal is to change each reference so that both the text and the reference are
- contained within one hyperlink. We achieve this by employing \cref{lst:reference} and
- running the command \index{switches!-l demonstration} \index{switches!-r demonstration}
- \begin{commandshell}
+ Our goal is to change each reference so that both the text and the reference are
+ contained within one hyperlink. We achieve this by employing \cref{lst:reference} and
+ running the command \index{switches!-l demonstration} \index{switches!-r demonstration}
+
+ \begin{commandshell}
latexindent.pl -r references.tex -l=reference.yaml
\end{commandshell}
- which gives the output in \cref{lst:references-mod1}. \index{regular
- expressions!horizontal space \textbackslash{h}}
- \cmhlistingsfromfile{demonstrations/references-mod1.tex}{\texttt{references.tex} using \cref{lst:reference}}{lst:references-mod1}
+ which gives the output in \cref{lst:references-mod1}. \index{regular
+ expressions!horizontal space \textbackslash{h}}
+
+ \cmhlistingsfromfile{demonstrations/references-mod1.tex}{\texttt{references.tex} using \cref{lst:reference}}{lst:references-mod1}
- \cmhlistingsfromfile[style=yaml-LST]{demonstrations/reference.yaml}[replace-TCB]{\texttt{reference.yaml}}{lst:reference}
+ \cmhlistingsfromfile[style=yaml-LST]{demonstrations/reference.yaml}[replace-TCB]{\texttt{reference.yaml}}{lst:reference}
- Referencing \cref{lst:reference}, the \lstinline!|! means \emph{or}, we have used
- \emph{capture groups}, together with an example of an \emph{optional} pattern,
- \lstinline!(?:eq)?!.
+ Referencing \cref{lst:reference}, the \lstinline!|! means \emph{or}, we have used
+ \emph{capture groups}, together with an example of an \emph{optional} pattern,
+ \lstinline!(?:eq)?!.
\end{example}
\begin{example}
- Let's explore the three replacement mode switches (see \vref{tab:replacementswitches}) in
- the context of an example that contains a verbatim code block, \cref{lst:verb1}; we will
- use the settings in \cref{lst:verbatim1-yaml}.
+ Let's explore the three replacement mode switches (see \vref{tab:replacementswitches}) in
+ the context of an example that contains a verbatim code block, \cref{lst:verb1}; we will
+ use the settings in \cref{lst:verbatim1-yaml}.
- \begin{cmhtcbraster}
- \cmhlistingsfromfile{demonstrations/verb1.tex}{\texttt{verb1.tex}}{lst:verb1}
- \cmhlistingsfromfile[style=yaml-LST]{demonstrations/verbatim1.yaml}[replace-TCB]{\texttt{verbatim1.yaml}}{lst:verbatim1-yaml}
- \end{cmhtcbraster}
+ \begin{cmhtcbraster}
+ \cmhlistingsfromfile{demonstrations/verb1.tex}{\texttt{verb1.tex}}{lst:verb1}
+ \cmhlistingsfromfile[style=yaml-LST]{demonstrations/verbatim1.yaml}[replace-TCB]{\texttt{verbatim1.yaml}}{lst:verbatim1-yaml}
+ \end{cmhtcbraster}
- Upon running the following commands, \index{verbatim!comparison with -r and -rr switches}
- \index{switches!-l demonstration} \index{switches!-o demonstration} \index{switches!-r
- demonstration} \index{switches!-rv demonstration} \index{switches!-rr demonstration}
- \begin{commandshell}
+ Upon running the following commands, \index{verbatim!comparison with -r and -rr switches}
+ \index{switches!-l demonstration} \index{switches!-o demonstration} \index{switches!-r
+ demonstration} \index{switches!-rv demonstration} \index{switches!-rr demonstration}
+
+ \begin{commandshell}
latexindent.pl -r verb1.tex -l=verbatim1.yaml -o=+mod1
latexindent.pl -rv verb1.tex -l=verbatim1.yaml -o=+-rv-mod1
latexindent.pl -rr verb1.tex -l=verbatim1.yaml -o=+-rr-mod1
\end{commandshell}
- we receive the respective output in \crefrange{lst:verb1-mod1}{lst:verb1-rr-mod1}
- \begin{cmhtcbraster}[raster columns=3,
- raster left skip=-3.75cm,
- raster right skip=-2cm,]
- \cmhlistingsfromfile{demonstrations/verb1-mod1.tex}{\texttt{verb1-mod1.tex}}{lst:verb1-mod1}
- \cmhlistingsfromfile{demonstrations/verb1-rv-mod1.tex}{\texttt{verb1-rv-mod1.tex}}{lst:verb1-rv-mod1}
- \cmhlistingsfromfile{demonstrations/verb1-rr-mod1.tex}{\texttt{verb1-rr-mod1.tex}}{lst:verb1-rr-mod1}
- \end{cmhtcbraster}
+ we receive the respective output in \crefrange{lst:verb1-mod1}{lst:verb1-rr-mod1}
+
+ \begin{cmhtcbraster}[raster columns=3,
+ raster left skip=-3.75cm,
+ raster right skip=-2cm,]
+ \cmhlistingsfromfile{demonstrations/verb1-mod1.tex}{\texttt{verb1-mod1.tex}}{lst:verb1-mod1}
+ \cmhlistingsfromfile{demonstrations/verb1-rv-mod1.tex}{\texttt{verb1-rv-mod1.tex}}{lst:verb1-rv-mod1}
+ \cmhlistingsfromfile{demonstrations/verb1-rr-mod1.tex}{\texttt{verb1-rr-mod1.tex}}{lst:verb1-rr-mod1}
+ \end{cmhtcbraster}
\end{example}
We note that:
@@ -6655,45 +7120,47 @@ latexindent.pl -rr verb1.tex -l=verbatim1.yaml -o=+-rr-mod1
See the summary within \vref{tab:replacementswitches}.
\begin{example}
- Let's explore the \texttt{amalgamate} field from \vref{lst:replacements} in the context
- of the file specified in \cref{lst:amalg1}.
+ Let's explore the \texttt{amalgamate} field from \vref{lst:replacements} in the context
+ of the file specified in \cref{lst:amalg1}.
- \cmhlistingsfromfile{demonstrations/amalg1.tex}{\texttt{amalg1.tex}}{lst:amalg1}
+ \cmhlistingsfromfile{demonstrations/amalg1.tex}{\texttt{amalg1.tex}}{lst:amalg1}
- Let's consider the YAML files given in \crefrange{lst:amalg1-yaml}{lst:amalg3-yaml}.
+ Let's consider the YAML files given in \crefrange{lst:amalg1-yaml}{lst:amalg3-yaml}.
- \begin{cmhtcbraster}[raster columns=3,
- raster left skip=-3.75cm,
- raster right skip=-2cm,]
- \cmhlistingsfromfile[style=yaml-LST]{demonstrations/amalg1-yaml.yaml}[replace-TCB]{\texttt{amalg1-yaml.yaml}}{lst:amalg1-yaml}
- \cmhlistingsfromfile[style=yaml-LST]{demonstrations/amalg2-yaml.yaml}[replace-TCB]{\texttt{amalg2-yaml.yaml}}{lst:amalg2-yaml}
- \cmhlistingsfromfile[style=yaml-LST]{demonstrations/amalg3-yaml.yaml}[replace-TCB]{\texttt{amalg3-yaml.yaml}}{lst:amalg3-yaml}
- \end{cmhtcbraster}
+ \begin{cmhtcbraster}[raster columns=3,
+ raster left skip=-3.75cm,
+ raster right skip=-2cm,]
+ \cmhlistingsfromfile[style=yaml-LST]{demonstrations/amalg1-yaml.yaml}[replace-TCB]{\texttt{amalg1-yaml.yaml}}{lst:amalg1-yaml}
+ \cmhlistingsfromfile[style=yaml-LST]{demonstrations/amalg2-yaml.yaml}[replace-TCB]{\texttt{amalg2-yaml.yaml}}{lst:amalg2-yaml}
+ \cmhlistingsfromfile[style=yaml-LST]{demonstrations/amalg3-yaml.yaml}[replace-TCB]{\texttt{amalg3-yaml.yaml}}{lst:amalg3-yaml}
+ \end{cmhtcbraster}
- Upon running the following commands, \index{switches!-l demonstration} \index{switches!-r
- demonstration}
- \begin{commandshell}
+ Upon running the following commands, \index{switches!-l demonstration} \index{switches!-r
+ demonstration}
+
+ \begin{commandshell}
latexindent.pl -r amalg1.tex -l=amalg1-yaml
latexindent.pl -r amalg1.tex -l=amalg1-yaml,amalg2-yaml
latexindent.pl -r amalg1.tex -l=amalg1-yaml,amalg2-yaml,amalg3-yaml
\end{commandshell}
- we receive the respective output in \crefrange{lst:amalg1-mod1}{lst:amalg1-mod123}.
- \begin{cmhtcbraster}[raster columns=3,
- raster left skip=-3.75cm,
- raster right skip=-2cm,]
- \cmhlistingsfromfile{demonstrations/amalg1-mod1.tex}{\texttt{amalg1.tex} using \cref{lst:amalg1-yaml}}{lst:amalg1-mod1}
- \cmhlistingsfromfile{demonstrations/amalg1-mod12.tex}{\texttt{amalg1.tex} using \cref{lst:amalg1-yaml,lst:amalg2-yaml}}{lst:amalg1-mod12}
- \cmhlistingsfromfile{demonstrations/amalg1-mod123.tex}{\texttt{amalg1.tex} using \cref{lst:amalg1-yaml,lst:amalg2-yaml,lst:amalg3-yaml}}{lst:amalg1-mod123}
- \end{cmhtcbraster}
- We note that:
- \begin{enumerate}
- \item in \cref{lst:amalg1-mod1} the replacements from \cref{lst:amalg1-yaml} have been used;
- \item in \cref{lst:amalg1-mod12} the replacements from \cref{lst:amalg1-yaml,lst:amalg2-yaml}
- have \emph{both} been used, because the default value of \texttt{amalgamate} is 1;
- \item in \cref{lst:amalg1-mod123} \emph{only} the replacements from \cref{lst:amalg3-yaml} have
- been used, because the value of \texttt{amalgamate} has been set to 0.
- \end{enumerate}
+ we receive the respective output in \crefrange{lst:amalg1-mod1}{lst:amalg1-mod123}.
+
+ \begin{cmhtcbraster}[raster columns=3,
+ raster left skip=-3.75cm,
+ raster right skip=-2cm,]
+ \cmhlistingsfromfile{demonstrations/amalg1-mod1.tex}{\texttt{amalg1.tex} using \cref{lst:amalg1-yaml}}{lst:amalg1-mod1}
+ \cmhlistingsfromfile{demonstrations/amalg1-mod12.tex}{\texttt{amalg1.tex} using \cref{lst:amalg1-yaml,lst:amalg2-yaml}}{lst:amalg1-mod12}
+ \cmhlistingsfromfile{demonstrations/amalg1-mod123.tex}{\texttt{amalg1.tex} using \cref{lst:amalg1-yaml,lst:amalg2-yaml,lst:amalg3-yaml}}{lst:amalg1-mod123}
+ \end{cmhtcbraster}
+ We note that:
+ \begin{enumerate}
+ \item in \cref{lst:amalg1-mod1} the replacements from \cref{lst:amalg1-yaml} have been used;
+ \item in \cref{lst:amalg1-mod12} the replacements from \cref{lst:amalg1-yaml,lst:amalg2-yaml}
+ have \emph{both} been used, because the default value of \texttt{amalgamate} is 1;
+ \item in \cref{lst:amalg1-mod123} \emph{only} the replacements from \cref{lst:amalg3-yaml} have
+ been used, because the value of \texttt{amalgamate} has been set to 0.
+ \end{enumerate}
\end{example}
% arara: pdflatex: { files: [latexindent]}
\section{The --lines switch}\label{sec:line-switch}
@@ -6705,10 +7172,12 @@ latexindent.pl -r amalg1.tex -l=amalg1-yaml,amalg2-yaml,amalg3-yaml
\index{switches!-lines demonstration}
The basic syntax is \texttt{--lines MIN-MAX}, so for example
+
\begin{commandshell}
latexindent.pl --lines 3-7 myfile.tex
latexindent.pl -n 3-7 myfile.tex
\end{commandshell}
+
will only operate upon lines 3 to 7 in \texttt{myfile.tex}. All of the other lines will
\emph{not} be operated upon by \texttt{latexindent.pl}.
@@ -6727,171 +7196,203 @@ latexindent.pl -n 3-7 myfile.tex
\cmhlistingsfromfile[style=lineNumbersTeX]{demonstrations/myfile.tex}[tex-TCB]{\texttt{myfile.tex}}{lst:myfile}
\begin{example}
- We demonstrate the basic usage using the command
- \begin{commandshell}
+ We demonstrate the basic usage using the command
+
+ \begin{commandshell}
latexindent.pl --lines 3-7 myfile.tex -o=+-mod1
\end{commandshell}
- which instructs \texttt{latexindent.pl} to only operate on lines 3 to 7; the output is
- given in \cref{lst:myfile-mod1}.
- \cmhlistingsfromfile[style=lineNumbersTeX]{demonstrations/myfile-mod1.tex}[tex-TCB]{\texttt{myfile-mod1.tex}}{lst:myfile-mod1}
+ which instructs \texttt{latexindent.pl} to only operate on lines 3 to 7; the output is
+ given in \cref{lst:myfile-mod1}.
- The following two calls to \texttt{latexindent.pl} are equivalent
- \begin{commandshell}
+ \cmhlistingsfromfile[style=lineNumbersTeX]{demonstrations/myfile-mod1.tex}[tex-TCB]{\texttt{myfile-mod1.tex}}{lst:myfile-mod1}
+
+ The following two calls to \texttt{latexindent.pl} are equivalent
+
+ \begin{commandshell}
latexindent.pl --lines 3-7 myfile.tex -o=+-mod1
latexindent.pl --lines 7-3 myfile.tex -o=+-mod1
\end{commandshell}
- as \texttt{latexindent.pl} performs a check to put the lowest number first.
+
+ as \texttt{latexindent.pl} performs a check to put the lowest number first.
\end{example}
\begin{example}
- You can call the \texttt{lines} switch with only \emph{one number} and in which case only
- that line will be operated upon. For example
- \begin{commandshell}
+ You can call the \texttt{lines} switch with only \emph{one number} and in which case only
+ that line will be operated upon. For example
+
+ \begin{commandshell}
latexindent.pl --lines 5 myfile.tex -o=+-mod2
\end{commandshell}
- instructs \texttt{latexindent.pl} to only operate on line 5; the output is given in
- \cref{lst:myfile-mod2}.
- \cmhlistingsfromfile[style=lineNumbersTeX]{demonstrations/myfile-mod2.tex}[tex-TCB]{\texttt{myfile-mod2.tex}}{lst:myfile-mod2}
+ instructs \texttt{latexindent.pl} to only operate on line 5; the output is given in
+ \cref{lst:myfile-mod2}.
- The following two calls are equivalent:
- \begin{commandshell}
+ \cmhlistingsfromfile[style=lineNumbersTeX]{demonstrations/myfile-mod2.tex}[tex-TCB]{\texttt{myfile-mod2.tex}}{lst:myfile-mod2}
+
+ The following two calls are equivalent:
+
+ \begin{commandshell}
latexindent.pl --lines 5 myfile.tex
latexindent.pl --lines 5-5 myfile.tex
\end{commandshell}
+
\end{example}
\begin{example}
- If you specify a value outside of the line range of the file then \texttt{latexindent.pl}
- will ignore the \texttt{lines} argument, detail as such in the log file, and proceed to
- operate on the entire file.
+ If you specify a value outside of the line range of the file then \texttt{latexindent.pl}
+ will ignore the \texttt{lines} argument, detail as such in the log file, and proceed to
+ operate on the entire file.
- For example, in the following call
- \begin{commandshell}
+ For example, in the following call
+
+ \begin{commandshell}
latexindent.pl --lines 11-13 myfile.tex
\end{commandshell}
- \texttt{latexindent.pl} will ignore the \texttt{lines} argument, and \emph{operate on the entire file} because \cref{lst:myfile} only has 12 lines.
- Similarly, in the call
- \begin{commandshell}
+ \texttt{latexindent.pl} will ignore the \texttt{lines} argument, and \emph{operate on the entire file} because \cref{lst:myfile} only has 12 lines.
+
+ Similarly, in the call
+
+ \begin{commandshell}
latexindent.pl --lines -1-3 myfile.tex
\end{commandshell}
- \texttt{latexindent.pl} will ignore the \texttt{lines} argument, and \emph{operate on the entire file} because we assume that negatively numbered
- lines in a file do not exist.
+
+ \texttt{latexindent.pl} will ignore the \texttt{lines} argument, and \emph{operate on the entire file} because we assume that negatively numbered
+ lines in a file do not exist.
\end{example}
\begin{example}
- You can specify \emph{multiple line ranges} as in the following
- \begin{commandshell}
+ You can specify \emph{multiple line ranges} as in the following
+
+ \begin{commandshell}
latexindent.pl --lines 3-5,8-10 myfile.tex -o=+-mod3
\end{commandshell}
- which instructs \texttt{latexindent.pl} to operate upon lines 3 to 5 and lines 8 to 10;
- the output is given in \cref{lst:myfile-mod3}.
- \cmhlistingsfromfile[style=lineNumbersTeX]{demonstrations/myfile-mod3.tex}[tex-TCB]{\texttt{myfile-mod3.tex}}{lst:myfile-mod3}
+ which instructs \texttt{latexindent.pl} to operate upon lines 3 to 5 and lines 8 to 10;
+ the output is given in \cref{lst:myfile-mod3}.
- The following calls to \texttt{latexindent.pl} are all equivalent
- \begin{commandshell}
+ \cmhlistingsfromfile[style=lineNumbersTeX]{demonstrations/myfile-mod3.tex}[tex-TCB]{\texttt{myfile-mod3.tex}}{lst:myfile-mod3}
+
+ The following calls to \texttt{latexindent.pl} are all equivalent
+
+ \begin{commandshell}
latexindent.pl --lines 3-5,8-10 myfile.tex
latexindent.pl --lines 8-10,3-5 myfile.tex
latexindent.pl --lines 10-8,3-5 myfile.tex
latexindent.pl --lines 10-8,5-3 myfile.tex
\end{commandshell}
- as \texttt{latexindent.pl} performs a check to put the lowest line ranges first, and
- within each line range, it puts the lowest number first.
+
+ as \texttt{latexindent.pl} performs a check to put the lowest line ranges first, and
+ within each line range, it puts the lowest number first.
\end{example}
\begin{example}
- There's no limit to the number of line ranges that you can specify, they just need to be
- separated by commas. For example
- \begin{commandshell}
+ There's no limit to the number of line ranges that you can specify, they just need to be
+ separated by commas. For example
+
+ \begin{commandshell}
latexindent.pl --lines 1-2,4-5,9-10,12 myfile.tex -o=+-mod4
\end{commandshell}
- has four line ranges: lines 1 to 2, lines 4 to 5, lines 9 to 10 and line 12. The output
- is given in \cref{lst:myfile-mod4}.
- \cmhlistingsfromfile[style=lineNumbersTeX]{demonstrations/myfile-mod4.tex}[tex-TCB]{\texttt{myfile-mod4.tex}}{lst:myfile-mod4}
+ has four line ranges: lines 1 to 2, lines 4 to 5, lines 9 to 10 and line 12. The output
+ is given in \cref{lst:myfile-mod4}.
- As previously, the ordering does not matter, and the following calls to
- \texttt{latexindent.pl} are all equivalent
- \begin{commandshell}
+ \cmhlistingsfromfile[style=lineNumbersTeX]{demonstrations/myfile-mod4.tex}[tex-TCB]{\texttt{myfile-mod4.tex}}{lst:myfile-mod4}
+
+ As previously, the ordering does not matter, and the following calls to
+ \texttt{latexindent.pl} are all equivalent
+
+ \begin{commandshell}
latexindent.pl --lines 1-2,4-5,9-10,12 myfile.tex
latexindent.pl --lines 2-1,4-5,9-10,12 myfile.tex
latexindent.pl --lines 4-5,1-2,9-10,12 myfile.tex
latexindent.pl --lines 12,4-5,1-2,9-10 myfile.tex
\end{commandshell}
- as \texttt{latexindent.pl} performs a check to put the lowest line ranges first, and
- within each line range, it puts the lowest number first.
+
+ as \texttt{latexindent.pl} performs a check to put the lowest line ranges first, and
+ within each line range, it puts the lowest number first.
\end{example}
\begin{example}
- \index{switches!-lines demonstration, negation}
- You can specify \emph{negated line ranges} by using \texttt{!} as in
- \begin{commandshell}
+ \index{switches!-lines demonstration, negation}
+ You can specify \emph{negated line ranges} by using \texttt{!} as in
+
+ \begin{commandshell}
latexindent.pl --lines !5-7 myfile.tex -o=+-mod5
\end{commandshell}
- which instructs \texttt{latexindent.pl} to operate upon all of the lines \emph{except}
- lines 5 to 7.
- In other words, \texttt{latexindent.pl} \emph{will} operate on lines 1 to 4, and 8 to 12,
- so the following two calls are equivalent:
- \begin{commandshell}
+ which instructs \texttt{latexindent.pl} to operate upon all of the lines \emph{except}
+ lines 5 to 7.
+
+ In other words, \texttt{latexindent.pl} \emph{will} operate on lines 1 to 4, and 8 to 12,
+ so the following two calls are equivalent:
+
+ \begin{commandshell}
latexindent.pl --lines !5-7 myfile.tex
latexindent.pl --lines 1-4,8-12 myfile.tex
\end{commandshell}
- The output is given in \cref{lst:myfile-mod5}.
- \cmhlistingsfromfile[style=lineNumbersTeX]{demonstrations/myfile-mod5.tex}[tex-TCB]{\texttt{myfile-mod5.tex}}{lst:myfile-mod5}
+ The output is given in \cref{lst:myfile-mod5}.
+
+ \cmhlistingsfromfile[style=lineNumbersTeX]{demonstrations/myfile-mod5.tex}[tex-TCB]{\texttt{myfile-mod5.tex}}{lst:myfile-mod5}
\end{example}
\begin{example}
- \index{switches!-lines demonstration, negation}
- You can specify \emph{multiple negated line ranges} such as
- \begin{commandshell}
+ \index{switches!-lines demonstration, negation}
+ You can specify \emph{multiple negated line ranges} such as
+
+ \begin{commandshell}
latexindent.pl --lines !5-7,!9-10 myfile.tex -o=+-mod6
\end{commandshell}
- which is equivalent to:
- \begin{commandshell}
+
+ which is equivalent to:
+
+ \begin{commandshell}
latexindent.pl --lines 1-4,8,11-12 myfile.tex -o=+-mod6
\end{commandshell}
- The output is given in \cref{lst:myfile-mod6}.
- \cmhlistingsfromfile[style=lineNumbersTeX]{demonstrations/myfile-mod6.tex}[tex-TCB]{\texttt{myfile-mod6.tex}}{lst:myfile-mod6}
+ The output is given in \cref{lst:myfile-mod6}.
+
+ \cmhlistingsfromfile[style=lineNumbersTeX]{demonstrations/myfile-mod6.tex}[tex-TCB]{\texttt{myfile-mod6.tex}}{lst:myfile-mod6}
\end{example}
\begin{example}
- If you specify a line range with anything other than an integer, then
- \texttt{latexindent.pl} will ignore the \texttt{lines} argument, and \emph{operate on the
- entire file}.
+ If you specify a line range with anything other than an integer, then
+ \texttt{latexindent.pl} will ignore the \texttt{lines} argument, and \emph{operate on the
+ entire file}.
- Sample calls that result in the \texttt{lines} argument being ignored include the
- following:
- \begin{commandshell}
+ Sample calls that result in the \texttt{lines} argument being ignored include the
+ following:
+
+ \begin{commandshell}
latexindent.pl --lines 1-x myfile.tex
latexindent.pl --lines !y-3 myfile.tex
\end{commandshell}
+
\end{example}
\begin{example}
- We can, of course, use the \texttt{lines} switch in combination with other switches.
+ We can, of course, use the \texttt{lines} switch in combination with other switches.
- For example, let's use with the file in \cref{lst:myfile1}.
+ For example, let's use with the file in \cref{lst:myfile1}.
- \cmhlistingsfromfile[style=lineNumbersTeX]{demonstrations/myfile1.tex}[tex-TCB]{\texttt{myfile1.tex}}{lst:myfile1}
+ \cmhlistingsfromfile[style=lineNumbersTeX]{demonstrations/myfile1.tex}[tex-TCB]{\texttt{myfile1.tex}}{lst:myfile1}
- We can demonstrate interaction with the \texttt{-m} switch (see
- \vref{sec:modifylinebreaks}); in particular, if we use \vref{lst:mlb2},
- \vref{lst:env-mlb7} and \vref{lst:env-mlb8} and run
- \begin{widepage}
- \begin{commandshell}
+ We can demonstrate interaction with the \texttt{-m} switch (see
+ \vref{sec:modifylinebreaks}); in particular, if we use \vref{lst:mlb2},
+ \vref{lst:env-mlb7} and \vref{lst:env-mlb8} and run
+ \begin{widepage}
+
+ \begin{commandshell}
latexindent.pl --lines 6 myfile1.tex -o=+-mod1 -m -l env-mlb2,env-mlb7,env-mlb8 -o=+-mod1
\end{commandshell}
- \end{widepage}
- then we receive the output in \cref{lst:myfile1-mod1}.
- \cmhlistingsfromfile[style=lineNumbersTeX]{demonstrations/myfile1-mod1.tex}[tex-TCB]{\texttt{myfile1-mod1.tex}}{lst:myfile1-mod1}
+ \end{widepage}
+ then we receive the output in \cref{lst:myfile1-mod1}.
+
+ \cmhlistingsfromfile[style=lineNumbersTeX]{demonstrations/myfile1-mod1.tex}[tex-TCB]{\texttt{myfile1-mod1.tex}}{lst:myfile1-mod1}
\end{example}
% arara: pdflatex: { files: [latexindent]}
\section{Fine tuning}\label{sec:finetuning}
@@ -6991,218 +7492,242 @@ latexindent.pl --lines 6 myfile1.tex -o=+-mod1 -m -l env-mlb2,env-mlb7,env-mlb8
\end{warning}
\begin{example}
- As a demonstration, consider the file given in \cref{lst:finetuning1}, together with its
- default output using the command
- \begin{commandshell}
+ As a demonstration, consider the file given in \cref{lst:finetuning1}, together with its
+ default output using the command
+
+ \begin{commandshell}
latexindent.pl finetuning1.tex
\end{commandshell}
- is given in \cref{lst:finetuning1-default}.
- \begin{cmhtcbraster}[raster column skip=.01\linewidth]
- \cmhlistingsfromfile{demonstrations/finetuning1.tex}{\texttt{finetuning1.tex}}{lst:finetuning1}
- \cmhlistingsfromfile{demonstrations/finetuning1-default.tex}{\texttt{finetuning1.tex} default}{lst:finetuning1-default}
- \end{cmhtcbraster}
+ is given in \cref{lst:finetuning1-default}.
- It's clear from \cref{lst:finetuning1-default} that the indentation scheme has not worked
- as expected. We can \emph{fine tune} the indentation scheme by employing the settings
- given in \cref{lst:fine-tuning1} and running the command \index{switches!-l
- demonstration}
- \begin{commandshell}
+ \begin{cmhtcbraster}[raster column skip=.01\linewidth]
+ \cmhlistingsfromfile{demonstrations/finetuning1.tex}{\texttt{finetuning1.tex}}{lst:finetuning1}
+ \cmhlistingsfromfile{demonstrations/finetuning1-default.tex}{\texttt{finetuning1.tex} default}{lst:finetuning1-default}
+ \end{cmhtcbraster}
+
+ It's clear from \cref{lst:finetuning1-default} that the indentation scheme has not worked
+ as expected. We can \emph{fine tune} the indentation scheme by employing the settings
+ given in \cref{lst:fine-tuning1} and running the command \index{switches!-l
+ demonstration}
+
+ \begin{commandshell}
latexindent.pl finetuning1.tex -l=fine-tuning1.yaml
\end{commandshell}
- and the associated (desired) output is given in \cref{lst:finetuning1-mod1}.
- \index{regular expressions!at least one +}
- \begin{cmhtcbraster}[raster column skip=.01\linewidth]
- \cmhlistingsfromfile{demonstrations/finetuning1-mod1.tex}{\texttt{finetuning1.tex} using \cref{lst:fine-tuning1}}{lst:finetuning1-mod1}
- \cmhlistingsfromfile[style=yaml-LST]{demonstrations/fine-tuning1.yaml}[yaml-TCB]{\texttt{finetuning1.yaml}}{lst:fine-tuning1}
- \end{cmhtcbraster}
+ and the associated (desired) output is given in \cref{lst:finetuning1-mod1}.
+ \index{regular expressions!at least one +}
+
+ \begin{cmhtcbraster}[raster column skip=.01\linewidth]
+ \cmhlistingsfromfile{demonstrations/finetuning1-mod1.tex}{\texttt{finetuning1.tex} using \cref{lst:fine-tuning1}}{lst:finetuning1-mod1}
+ \cmhlistingsfromfile[style=yaml-LST]{demonstrations/fine-tuning1.yaml}[yaml-TCB]{\texttt{finetuning1.yaml}}{lst:fine-tuning1}
+ \end{cmhtcbraster}
\end{example}
\begin{example}
- Let's have another demonstration; consider the file given in \cref{lst:finetuning2},
- together with its default output using the command
- \begin{commandshell}
+ Let's have another demonstration; consider the file given in \cref{lst:finetuning2},
+ together with its default output using the command
+
+ \begin{commandshell}
latexindent.pl finetuning2.tex
\end{commandshell}
- is given in \cref{lst:finetuning2-default}.
- \begin{cmhtcbraster}[raster column skip=.01\linewidth,
- raster left skip=-3.75cm,
- raster right skip=0cm,]
- \cmhlistingsfromfile{demonstrations/finetuning2.tex}{\texttt{finetuning2.tex}}{lst:finetuning2}
- \cmhlistingsfromfile{demonstrations/finetuning2-default.tex}{\texttt{finetuning2.tex} default}{lst:finetuning2-default}
- \end{cmhtcbraster}
+ is given in \cref{lst:finetuning2-default}.
- It's clear from \cref{lst:finetuning2-default} that the indentation scheme has not worked
- as expected. We can \emph{fine tune} the indentation scheme by employing the settings
- given in \cref{lst:fine-tuning2} and running the command \index{switches!-l
- demonstration}
- \begin{commandshell}
+ \begin{cmhtcbraster}[raster column skip=.01\linewidth,
+ raster left skip=-3.75cm,
+ raster right skip=0cm,]
+ \cmhlistingsfromfile{demonstrations/finetuning2.tex}{\texttt{finetuning2.tex}}{lst:finetuning2}
+ \cmhlistingsfromfile{demonstrations/finetuning2-default.tex}{\texttt{finetuning2.tex} default}{lst:finetuning2-default}
+ \end{cmhtcbraster}
+
+ It's clear from \cref{lst:finetuning2-default} that the indentation scheme has not worked
+ as expected. We can \emph{fine tune} the indentation scheme by employing the settings
+ given in \cref{lst:fine-tuning2} and running the command \index{switches!-l
+ demonstration}
+
+ \begin{commandshell}
latexindent.pl finetuning2.tex -l=fine-tuning2.yaml
\end{commandshell}
- and the associated (desired) output is given in \cref{lst:finetuning2-mod1}.
- \begin{cmhtcbraster}[raster column skip=.01\linewidth,
- raster left skip=-3.75cm,
- raster right skip=0cm,]
- \cmhlistingsfromfile{demonstrations/finetuning2-mod1.tex}{\texttt{finetuning2.tex} using \cref{lst:fine-tuning2}}{lst:finetuning2-mod1}
- \cmhlistingsfromfile[style=yaml-LST]{demonstrations/fine-tuning2.yaml}[yaml-TCB]{\texttt{finetuning2.yaml}}{lst:fine-tuning2}
- \end{cmhtcbraster}
+ and the associated (desired) output is given in \cref{lst:finetuning2-mod1}.
+
+ \begin{cmhtcbraster}[raster column skip=.01\linewidth,
+ raster left skip=-3.75cm,
+ raster right skip=0cm,]
+ \cmhlistingsfromfile{demonstrations/finetuning2-mod1.tex}{\texttt{finetuning2.tex} using \cref{lst:fine-tuning2}}{lst:finetuning2-mod1}
+ \cmhlistingsfromfile[style=yaml-LST]{demonstrations/fine-tuning2.yaml}[yaml-TCB]{\texttt{finetuning2.yaml}}{lst:fine-tuning2}
+ \end{cmhtcbraster}
- In particular, note that the settings in \cref{lst:fine-tuning2} specify that
- \texttt{NamedGroupingBracesBrackets} and \texttt{UnNamedGroupingBracesBrackets} can
- follow \texttt{"} and that we allow \lstinline!---! between arguments.
+ In particular, note that the settings in \cref{lst:fine-tuning2} specify that
+ \texttt{NamedGroupingBracesBrackets} and \texttt{UnNamedGroupingBracesBrackets} can
+ follow \texttt{"} and that we allow \lstinline!---! between arguments.
\end{example}
\begin{example}
- You can tweak the \texttt{fineTuning} using the \texttt{-y} switch, but to be sure to use
- quotes appropriately. For example, starting with the code in \cref{lst:finetuning3} and
- running the following command
- \begin{commandshell}
+ You can tweak the \texttt{fineTuning} using the \texttt{-y} switch, but to be sure to use
+ quotes appropriately. For example, starting with the code in \cref{lst:finetuning3} and
+ running the following command
+
+ \begin{commandshell}
latexindent.pl -m -y='modifyLineBreaks:oneSentencePerLine:manipulateSentences: 1, modifyLineBreaks:oneSentencePerLine:sentencesBeginWith:a-z: 1, fineTuning:modifyLineBreaks:betterFullStop: "(?:\.|;|:(?![a-z]))|(?:(?<!(?:(?:e\.g)|(?:i\.e)|(?:etc))))\.(?!(?:[a-z]|[A-Z]|\-|~|\,|[0-9]))"' issue-243.tex -o=+-mod1
\end{commandshell}
- gives the output shown in \cref{lst:finetuning3-mod1}.
- \cmhlistingsfromfile{demonstrations/finetuning3.tex}{\texttt{finetuning3.tex}}{lst:finetuning3}
- \cmhlistingsfromfile{demonstrations/finetuning3-mod1.tex}{\texttt{finetuning3.tex} using -y switch}{lst:finetuning3-mod1}
+ gives the output shown in \cref{lst:finetuning3-mod1}.
+
+ \cmhlistingsfromfile{demonstrations/finetuning3.tex}{\texttt{finetuning3.tex}}{lst:finetuning3}
+ \cmhlistingsfromfile{demonstrations/finetuning3-mod1.tex}{\texttt{finetuning3.tex} using -y switch}{lst:finetuning3-mod1}
\end{example}
\begin{example}
- We can tweak the \texttt{fineTuning} for how trailing comments are classified. For
- motivation, let's consider the code given in \cref{lst:finetuning4}
+ We can tweak the \texttt{fineTuning} for how trailing comments are classified. For
+ motivation, let's consider the code given in \cref{lst:finetuning4}
- \cmhlistingsfromfile{demonstrations/finetuning4.tex}{\texttt{finetuning4.tex}}{lst:finetuning4}
+ \cmhlistingsfromfile{demonstrations/finetuning4.tex}{\texttt{finetuning4.tex}}{lst:finetuning4}
- We will compare the settings given in \cref{lst:href1,lst:href2}.
+ We will compare the settings given in \cref{lst:href1,lst:href2}.
- \begin{cmhtcbraster}[raster column skip=.01\linewidth,
- raster left skip=0cm,
- raster right skip=-0.5cm,]
- \cmhlistingsfromfile[style=yaml-LST]{demonstrations/href1.yaml}[MLB-TCB]{\texttt{href1.yaml}}{lst:href1}
- \cmhlistingsfromfile[style=yaml-LST]{demonstrations/href2.yaml}[MLB-TCB]{\texttt{href2.yaml}}{lst:href2}
- \end{cmhtcbraster}
+ \begin{cmhtcbraster}[raster column skip=.01\linewidth,
+ raster left skip=0cm,
+ raster right skip=-0.5cm,]
+ \cmhlistingsfromfile[style=yaml-LST]{demonstrations/href1.yaml}[MLB-TCB]{\texttt{href1.yaml}}{lst:href1}
+ \cmhlistingsfromfile[style=yaml-LST]{demonstrations/href2.yaml}[MLB-TCB]{\texttt{href2.yaml}}{lst:href2}
+ \end{cmhtcbraster}
- Upon running the following commands
- \begin{commandshell}
+ Upon running the following commands
+
+ \begin{commandshell}
latexindent.pl -m finetuning4.tex -o=+-mod1 -l=href1
latexindent.pl -m finetuning4.tex -o=+-mod2 -l=href2
\end{commandshell}
- we receive the respective output in \cref{lst:finetuning4-mod1,lst:finetuning4-mod2}.
- \begin{widepage}
- \cmhlistingsfromfile{demonstrations/finetuning4-mod1.tex}{\texttt{finetuning4.tex} using \cref{lst:href1}}{lst:finetuning4-mod1}
+ we receive the respective output in \cref{lst:finetuning4-mod1,lst:finetuning4-mod2}.
- \cmhlistingsfromfile{demonstrations/finetuning4-mod2.tex}{\texttt{finetuning4.tex} using \cref{lst:href2}}{lst:finetuning4-mod2}
- \end{widepage}
+ \begin{widepage}
+ \cmhlistingsfromfile{demonstrations/finetuning4-mod1.tex}{\texttt{finetuning4.tex} using \cref{lst:href1}}{lst:finetuning4-mod1}
- We note that in:
- \begin{itemize}
- \item \cref{lst:finetuning4-mod1} the trailing comments are assumed to be everything following
- the first comment symbol, which has meant that everything following it has been moved to
- the end of the line; this is undesirable, clearly!
- \item \cref{lst:finetuning4-mod2} has fine-tuned the trailing comment matching, and says that
- \% cannot
- be immediately preceeded by the words `Handbook', `for' or `Spoken', which means that
- none of the \% symbols have been treated as trailing comments, and the output is
- desirable.
- \end{itemize}
+ \cmhlistingsfromfile{demonstrations/finetuning4-mod2.tex}{\texttt{finetuning4.tex} using \cref{lst:href2}}{lst:finetuning4-mod2}
+ \end{widepage}
- Another approach to this situation, which does not use \texttt{fineTuning}, is to use
- \texttt{noIndentBlock} which we discussed in \vref{lst:noIndentBlock}; using the settings
- in \cref{lst:href3} and running the command
- \begin{commandshell}
+ We note that in:
+ \begin{itemize}
+ \item \cref{lst:finetuning4-mod1} the trailing comments are assumed to be everything following
+ the first comment symbol, which has meant that everything following it has been moved to
+ the end of the line; this is undesirable, clearly!
+ \item \cref{lst:finetuning4-mod2} has fine-tuned the trailing comment matching, and says that
+ \% cannot
+ be immediately preceeded by the words `Handbook', `for' or `Spoken', which means that
+ none of the \% symbols have been treated as trailing comments, and the output is
+ desirable.
+ \end{itemize}
+ \end{example}
+
+ \begin{example}
+ Another approach to this situation, which does not use \texttt{fineTuning}, is to use
+ \texttt{noIndentBlock} which we discussed in \vref{lst:noIndentBlock}; using the settings
+ in \cref{lst:href3} and running the command
+
+ \begin{commandshell}
latexindent.pl -m finetuning4.tex -o=+-mod3 -l=href3
\end{commandshell}
- then we receive the same output given in \cref{lst:finetuning4-mod2}.
- \cmhlistingsfromfile[style=yaml-LST]{demonstrations/href3.yaml}[MLB-TCB]{\texttt{href3.yaml}}{lst:href3}
+ then we receive the same output given in \cref{lst:finetuning4-mod2}.
- With reference to the \texttt{body} field in \cref{lst:href3}, we note that the
- \texttt{body} field can be interpreted as: the fewest number of zero or more characters
- that are not right braces. This is an example of character class. \index{regular
- expressions!character class demonstration}
+ \cmhlistingsfromfile[style=yaml-LST]{demonstrations/href3.yaml}[MLB-TCB]{\texttt{href3.yaml}}{lst:href3}
+
+ With reference to the \texttt{body} field in \cref{lst:href3}, we note that the
+ \texttt{body} field can be interpreted as: the fewest number of zero or more characters
+ that are not right braces. This is an example of character class. \index{regular
+ expressions!character class demonstration}
\end{example}
\begin{example}
- We can use the \texttt{fineTuning} field to assist in the formatting of bibliography
- files. \index{bibliography files} \index{regular expressions!delimiterRegEx}
- \index{regular expressions!capturing parenthesis} \index{regular expressions!ampersand
- alignment} \index{delimiters!delimiterRegEx}
+ We can use the \texttt{fineTuning} field to assist in the formatting of bibliography
+ files. \index{bibliography files} \index{regular expressions!delimiterRegEx}
+ \index{regular expressions!capturing parenthesis} \index{regular expressions!ampersand
+ alignment} \index{delimiters!delimiterRegEx}
- Starting with the file in \cref{lst:bib1} and running the command
- \begin{commandshell}
+ Starting with the file in \cref{lst:bib1} and running the command
+
+ \begin{commandshell}
latexindent.pl bib1.tex -o=+-mod1
\end{commandshell}
- gives the output in \cref{lst:bib1-mod1}.
- \begin{widepage}
- \begin{cmhtcbraster}[raster column skip=.01\linewidth]
- \cmhlistingsfromfile{demonstrations/bib1.bib}{\texttt{bib1.bib}}{lst:bib1}
- \cmhlistingsfromfile{demonstrations/bib1-mod1.bib}{\texttt{bib1-mod1.bib}}{lst:bib1-mod1}
- \end{cmhtcbraster}
- \end{widepage}
+ gives the output in \cref{lst:bib1-mod1}.
- Let's assume that we would like to format the output so as to align the \texttt{=}
- symbols. Using the settings in \cref{lst:bibsettings1} and running the command
- \begin{commandshell}
+ \begin{widepage}
+ \begin{cmhtcbraster}[raster column skip=.01\linewidth]
+ \cmhlistingsfromfile{demonstrations/bib1.bib}{\texttt{bib1.bib}}{lst:bib1}
+ \cmhlistingsfromfile{demonstrations/bib1-mod1.bib}{\texttt{bib1-mod1.bib}}{lst:bib1-mod1}
+ \end{cmhtcbraster}
+ \end{widepage}
+
+ Let's assume that we would like to format the output so as to align the \texttt{=}
+ symbols. Using the settings in \cref{lst:bibsettings1} and running the command
+
+ \begin{commandshell}
latexindent.pl bib1.bib -l bibsettings1.yaml -o=+-mod2
\end{commandshell}
- gives the output in \cref{lst:bib1-mod2}.
- \begin{widepage}
- \begin{cmhtcbraster}[raster column skip=.1\linewidth]
- \cmhlistingsfromfile{demonstrations/bib1-mod2.bib}{\texttt{bib1.bib} using \cref{lst:bibsettings1}}{lst:bib1-mod2}
- \cmhlistingsfromfile[style=yaml-LST]{demonstrations/bibsettings1.yaml}[yaml-TCB]{\texttt{bibsettings1.yaml}}{lst:bibsettings1}
- \end{cmhtcbraster}
- \end{widepage}
- Some notes about \cref{lst:bibsettings1}:
- \begin{itemize}
- \item we have populated the \texttt{lookForAlignDelims} field with the \texttt{online} command,
- and have used the \texttt{delimiterRegEx}, discussed in \vref{sec:delimiter-reg-ex};
- \item we have tweaked the \texttt{keyEqualsValuesBracesBrackets} code block so that it will
- \emph{not} be found following a comma; this means that, in contrast to the default
- behaviour, the lines such as \lstinline!date={2013-05-23},! will \emph{not} be treated as
- key-equals-value braces;
- \item the adjustment to \texttt{keyEqualsValuesBracesBrackets} necessitates the associated
- change to the \texttt{UnNamedGroupingBracesBrackets} field so that they will be searched
- for following \texttt{=} symbols.
- \end{itemize}
+ gives the output in \cref{lst:bib1-mod2}.
+
+ \begin{widepage}
+ \begin{cmhtcbraster}[raster column skip=.1\linewidth]
+ \cmhlistingsfromfile{demonstrations/bib1-mod2.bib}{\texttt{bib1.bib} using \cref{lst:bibsettings1}}{lst:bib1-mod2}
+ \cmhlistingsfromfile[style=yaml-LST]{demonstrations/bibsettings1.yaml}[yaml-TCB]{\texttt{bibsettings1.yaml}}{lst:bibsettings1}
+ \end{cmhtcbraster}
+ \end{widepage}
+ Some notes about \cref{lst:bibsettings1}:
+ \begin{itemize}
+ \item we have populated the \texttt{lookForAlignDelims} field with the \texttt{online} command,
+ and have used the \texttt{delimiterRegEx}, discussed in \vref{sec:delimiter-reg-ex};
+ \item we have tweaked the \texttt{keyEqualsValuesBracesBrackets} code block so that it will
+ \emph{not} be found following a comma; this means that, in contrast to the default
+ behaviour, the lines such as \lstinline!date={2013-05-23},! will \emph{not} be treated as
+ key-equals-value braces;
+ \item the adjustment to \texttt{keyEqualsValuesBracesBrackets} necessitates the associated
+ change to the \texttt{UnNamedGroupingBracesBrackets} field so that they will be searched
+ for following \texttt{=} symbols.
+ \end{itemize}
\end{example}
\begin{example}
- We can build upon \cref{lst:bibsettings1} for slightly more complicated bibliography
- files.
+ We can build upon \cref{lst:bibsettings1} for slightly more complicated bibliography
+ files.
- Starting with the file in \cref{lst:bib2} and running the command
- \begin{commandshell}
+ Starting with the file in \cref{lst:bib2} and running the command
+
+ \begin{commandshell}
latexindent.pl bib2.bib -l bibsettings1.yaml -o=+-mod1
\end{commandshell}
- gives the output in \cref{lst:bib2-mod1}.
- \begin{widepage}
- \cmhlistingsfromfile{demonstrations/bib2.bib}{\texttt{bib2.bib}}{lst:bib2}
- \cmhlistingsfromfile{demonstrations/bib2-mod1.bib}{\texttt{bib2-mod1.bib}}{lst:bib2-mod1}
- \end{widepage}
+ gives the output in \cref{lst:bib2-mod1}.
+
+ \begin{widepage}
+ \cmhlistingsfromfile{demonstrations/bib2.bib}{\texttt{bib2.bib}}{lst:bib2}
+ \cmhlistingsfromfile{demonstrations/bib2-mod1.bib}{\texttt{bib2-mod1.bib}}{lst:bib2-mod1}
+ \end{widepage}
- The output in \cref{lst:bib2-mod1} is not ideal, as the \texttt{=} symbol within the url
- field has been incorrectly used as an alignment delimiter.
+ The output in \cref{lst:bib2-mod1} is not ideal, as the \texttt{=} symbol within the url
+ field has been incorrectly used as an alignment delimiter.
- We address this by tweaking the \texttt{delimiterRegEx} field in \cref{lst:bibsettings2}.
+ We address this by tweaking the \texttt{delimiterRegEx} field in \cref{lst:bibsettings2}.
- \cmhlistingsfromfile[style=yaml-LST]{demonstrations/bibsettings2.yaml}[yaml-TCB]{\texttt{bibsettings2.yaml}}{lst:bibsettings2}
+ \cmhlistingsfromfile[style=yaml-LST]{demonstrations/bibsettings2.yaml}[yaml-TCB]{\texttt{bibsettings2.yaml}}{lst:bibsettings2}
- Upon running the command
- \begin{commandshell}
+ Upon running the command
+
+ \begin{commandshell}
latexindent.pl bib2.bib -l bibsettings1.yaml,bibsettings2.yaml -o=+-mod2
\end{commandshell}
- we receive the \emph{desired} output in \cref{lst:bib2-mod2}.
- \cmhlistingsfromfile{demonstrations/bib2-mod2.bib}{\texttt{bib2-mod2.bib}}{lst:bib2-mod2}
+ we receive the \emph{desired} output in \cref{lst:bib2-mod2}.
+
+ \cmhlistingsfromfile{demonstrations/bib2-mod2.bib}{\texttt{bib2-mod2.bib}}{lst:bib2-mod2}
- With reference to \cref{lst:bibsettings2} we note that the \texttt{delimiterRegEx} has
- been adjusted so that \texttt{=} symbols are used as the delimiter, but only when they
- are \emph{not preceeded} by either \texttt{v} or \texttt{spfreload}.
+ With reference to \cref{lst:bibsettings2} we note that the \texttt{delimiterRegEx} has
+ been adjusted so that \texttt{=} symbols are used as the delimiter, but only when they
+ are \emph{not preceeded} by either \texttt{v} or \texttt{spfreload}.
\end{example}
% arara: pdflatex: { files: [latexindent]}
\section{Conclusions and known limitations}\label{sec:knownlimitations}
@@ -7257,9 +7782,11 @@ latexindent.pl bib2.bib -l bibsettings1.yaml,bibsettings2.yaml -o=+-mod2
Perl modules.
If you can run the minimum code in \cref{lst:helloworld} as in
+
\begin{commandshell}
perl helloworld.pl
\end{commandshell}
+
then you will be able to run \texttt{latexindent.pl}, otherwise you may need to install
the missing modules; see \cref{sec:module-installer,sec:manual-module-instal}.
@@ -7290,9 +7817,11 @@ exit;
\announce{2018-01-13}{perl module helper script} \texttt{latexindent.pl} ships with a
helper script that will install any missing \texttt{perl} modules on your system; if you
run
+
\begin{commandshell}
perl latexindent-module-installer.pl
\end{commandshell}
+
or
\begin{dosprompt}
perl latexindent-module-installer.pl
@@ -7308,38 +7837,46 @@ perl latexindent-module-installer.pl
\paragraph{perlbrew}
Linux users may be interested in exploring Perlbrew \cite{perlbrew}; an example
installation would be:
+
\begin{commandshell}
sudo apt-get install perlbrew
perlbrew init
-perlbrew install perl-5.28.1
-perlbrew switch perl-5.28.1
+perlbrew install perl-5.34.0
+perlbrew switch perl-5.34.0
sudo apt-get install curl
curl -L http://cpanmin.us | perl - App::cpanminus
cpanm YAML::Tiny
cpanm File::HomeDir
\end{commandshell}
+
\index{cpan}
\paragraph{Ubuntu/Debian}
For other distributions, the Ubuntu/Debian approach may work as follows
+
\begin{commandshell}
sudo apt install perl
sudo cpan -i App::cpanminus
sudo cpanm YAML::Tiny
sudo cpanm File::HomeDir
\end{commandshell}
+
or else by running, for example,
+
\begin{commandshell}
sudo perl -MCPAN -e'install "File::HomeDir"'
\end{commandshell}
\paragraph{Ubuntu: using the texlive from apt-get}
Ubuntu users that install texlive using \texttt{apt-get} as in the following
+
\begin{commandshell}
sudo apt install texlive
sudo apt install texlive-latex-recommended
\end{commandshell}
+
may need the following additional command to work with \texttt{latexindent.pl}
+
\begin{commandshell}
sudo apt install texlive-extra-utils
\end{commandshell}
@@ -7352,14 +7889,18 @@ sudo apt install texlive-extra-utils
\paragraph{Arch-based distributions}
First install the dependencies
+
\begin{commandshell}
sudo pacman -S perl cpanminus
\end{commandshell}
+
In addition, install \texttt{perl-file-homedir} from AUR, using your AUR helper of
choice,
+
\begin{commandshell}
sudo paru -S perl-file-homedir
\end{commandshell}
+
then run the latexindent-module-installer.pl file located at helper-scripts/
\paragraph{Alpine}
@@ -7397,6 +7938,7 @@ cpanm -n YAML::Tiny
\subsubsection{Mac}
Users of the Macintosh operating system might like to explore the following commands, for
example:
+
\begin{commandshell}
brew install perl
brew install cpanm
@@ -7404,7 +7946,9 @@ brew install cpanm
cpanm YAML::Tiny
cpanm File::HomeDir
\end{commandshell}
+
Alternatively,
+
\begin{commandshell}
brew install latexindent
\end{commandshell}
@@ -7434,11 +7978,14 @@ latexindent.exe -t myfile.tex
This can be loaded by calling \texttt{latexindent.pl} with the \texttt{GCString} switch
as in
+
\begin{commandshell}
latexindent.pl --GCString myfile.tex
\end{commandshell}
+
In this case, you will need to have the \texttt{Unicode::GCString} installed in your
\texttt{perl} distribution by using, for example,
+
\begin{commandshell}
cpanm Unicode::GCString
\end{commandshell}
@@ -7462,11 +8009,14 @@ cpanm Unicode::GCString
\texttt{CMakeLists.txt} and \lstinline!cmake_uninstall.cmake.in! from
\cite{latexindent-home}/path-helper-files to this directory;
\item run
+
\begin{commandshell}
ls /usr/local/bin
\end{commandshell}
+
to see what is \emph{currently} in there;
\item run the following commands
+
\begin{commandshell}
sudo apt-get update
sudo apt-get install --no-install-recommends cmake make # or any other generator
@@ -7474,17 +8024,22 @@ mkdir build && cd build
cmake ../path-helper-files
sudo make install
\end{commandshell}
+
\item run
+
\begin{commandshell}
ls /usr/local/bin
\end{commandshell}
+
again to check that \texttt{latexindent.pl}, its modules and
\texttt{defaultSettings.yaml} have been added.
\end{enumerate}
To \emph{remove} the files, run
+
\begin{commandshell}
sudo make uninstall
\end{commandshell}
+
\subsection{Add to path for Windows}
To add \texttt{latexindent.exe} to the path for Windows, follow these steps:
\begin{enumerate}
@@ -7510,6 +8065,7 @@ echo %path%
You can \announce{2022-03-25}{batches of files details} instruct \texttt{latexindent.pl}
to operate on multiple files. For example, the following calls are all valid
+
\begin{commandshell}
latexindent.pl myfile1.tex
latexindent.pl myfile1.tex myfile2.tex
@@ -7527,17 +8083,21 @@ latexindent.pl myfile*.tex
\subsection{interaction with -w switch}
If the \texttt{-w} switch is active, as in
+
\begin{commandshell}
latexindent.pl -w myfile*.tex
\end{commandshell}
+
then files will be overwritten individually. Back-up files can be re-directed via the
\texttt{-c} switch.
\subsection{interaction with -o switch}
If \texttt{latexindent.pl} is called using the \texttt{-o} switch as in
+
\begin{commandshell}
latexindent.pl myfile*.tex -o=my-output-file.tex
\end{commandshell}
+
and there are multiple files to operate upon, then the \texttt{-o} switch is ignored
because there is only \emph{one} output file specified.
@@ -7545,16 +8105,20 @@ latexindent.pl myfile*.tex -o=my-output-file.tex
beginning, then the \texttt{-o} switch will be ignored, and is turned it off.
For example
+
\begin{commandshell}
latexindent.pl myfile*.tex -o=+myfile
\end{commandshell}
+
\emph{will} work fine because \emph{each} \texttt{.tex} file will output to
\texttt{<basename>myfile.tex}
Similarly,
+
\begin{commandshell}
latexindent.pl myfile*.tex -o=++
\end{commandshell}
+
\emph{will} work because the `existence check/incrementation' routine will be applied.
\subsection{interaction with lines switch}
@@ -7565,9 +8129,11 @@ latexindent.pl myfile*.tex -o=++
The exit codes for \texttt{latexindent.pl} are given in \vref{tab:exit-codes}.
When operating on multiple files with the check switch active, as in
+
\begin{commandshell}
latexindent.pl myfile*.tex --check
\end{commandshell}
+
then
\begin{itemize}
\item exit code 0 means that the text from \emph{none} of the files has been changed;
@@ -7639,9 +8205,11 @@ latexindent.pl myfile*.tex --check
\section{Using conda}\label{sec:app:conda}
If you use conda you'll only need
+
\begin{commandshell}
conda install latexindent.pl -c conda-forge
\end{commandshell}
+
This will install the executable and all its dependencies (including perl) in the
activate environment. You don't even have to worry about \texttt{defaultSettings.yaml} as
it included too, you can thus skip \cref{sec:requiredmodules,sec:updating-path}.
@@ -7652,6 +8220,7 @@ conda install latexindent.pl -c conda-forge
\subsection{Sample conda installation on Ubuntu}
On Ubuntu I followed the 64-bit installation instructions at \cite{condainstallubuntu}
and then I ran the following commands:
+
\begin{commandshell}
conda create -n latexindent.pl
conda activate latexindent.pl
@@ -7660,13 +8229,16 @@ conda info --envs
conda list
conda run latexindent.pl -vv
\end{commandshell}
+
I found the details given at \cite{condainstallhelp} to be helpful.
\section{Using docker}\label{sec:app:docker}
If you use docker you'll only need \announce{2022-06-12}{docker support}
+
\begin{commandshell}
docker pull ghcr.io/cmhughes/latexindent.pl
\end{commandshell}
+
This will download the image packed \texttt{latexindent}'s executable and its all
dependencies. \index{docker} Thank you to \cite{eggplants} for contributing this feature;
see also \cite{cmhughesio}. For reference, \emph{ghcr} stands for \emph{GitHub Container
@@ -7691,6 +8263,7 @@ docker run ghcr.io/cmhughes/latexindent.pl -h
\subsection{How to format on Docker}
When you use \texttt{latexindent} with the docker image, you have to mount target \texttt{tex} file like this:
+
\begin{commandshell}
docker run -v /path/to/local/myfile.tex:/myfile.tex ghcr.io/cmhughes/latexindent.pl -s -w myfile.tex
\end{commandshell}
@@ -7709,9 +8282,11 @@ docker run -v /path/to/local/myfile.tex:/myfile.tex ghcr.io/cmhughes/latexindent
\subsection{Sample pre-commit installation on Ubuntu}\label{sec:pre-commit-ubuntu}
On Ubuntu I ran the following command:
+
\begin{commandshell}
python3 -m pip install pre-commit
\end{commandshell}
+
I then updated my path via .bashrc so that it includes the line in
\cref{lst:bashrc-update}.
\begin{cmhlistings}[style=tcblatex,language=Bash]{\texttt{.bashrc} update}{lst:bashrc-update}
@@ -7746,9 +8321,11 @@ export PATH=$PATH:/home/cmhughes/.local/bin
\cmhlistingsfromfile{demonstrations/pre-commit-config-cpan.yaml}[yaml-TCB]{\texttt{.pre-commit-config.yaml} (cpan)}{lst:.pre-commit-config.yaml-cpan}
Once created, you should then be able to run the following command:
+
\begin{commandshell}
pre-commit run --all-files
\end{commandshell}
+
A few notes about \cref{lst:.pre-commit-config.yaml-cpan}:
\begin{itemize}
\item the settings given in \cref{lst:.pre-commit-config.yaml-cpan} instruct
@@ -7756,9 +8333,11 @@ pre-commit run --all-files
\item this requires \texttt{pre-commit} and \texttt{perl} to be installed on your system;
\item the \texttt{args} lists selected command-line options; the settings in
\cref{lst:.pre-commit-config.yaml-cpan} are equivalent to calling
+
\begin{commandshell}
latexindent.pl -s myfile.tex
\end{commandshell}
+
for each \texttt{.tex} file in your repository;
\item to instruct \texttt{latexindent.pl} to overwrite the files in your repository, then you
can update \cref{lst:.pre-commit-config.yaml-cpan} so that \texttt{args: [-s, -w]}.
@@ -7775,9 +8354,11 @@ latexindent.pl -s myfile.tex
\cmhlistingsfromfile{demonstrations/pre-commit-config-conda.yaml}[yaml-TCB]{\texttt{.pre-commit-config.yaml} (conda)}{lst:.pre-commit-config.yaml-conda}
Once created, you should then be able to run the following command:
+
\begin{commandshell}
pre-commit run --all-files
\end{commandshell}
+
A few notes about \cref{lst:.pre-commit-config.yaml-cpan}:
\begin{itemize}
\item the settings given in \cref{lst:.pre-commit-config.yaml-conda} instruct
@@ -7785,9 +8366,11 @@ pre-commit run --all-files
\item this requires \texttt{pre-commit} and \texttt{conda} to be installed on your system;
\item the \texttt{args} lists selected command-line options; the settings in
\cref{lst:.pre-commit-config.yaml-cpan} are equivalent to calling
+
\begin{commandshell}
conda run latexindent.pl -s myfile.tex
\end{commandshell}
+
for each \texttt{.tex} file in your repository;
\item to instruct \texttt{latexindent.pl} to overwrite the files in your repository, then you
can update \cref{lst:.pre-commit-config.yaml-cpan} so that \texttt{args: [-s, -w]}.
@@ -7801,9 +8384,11 @@ conda run latexindent.pl -s myfile.tex
\cmhlistingsfromfile{demonstrations/pre-commit-config-docker.yaml}[yaml-TCB]{\texttt{.pre-commit-config.yaml} (docker)}{lst:.pre-commit-config.yaml-docker}
Once created, you should then be able to run the following command:
+
\begin{commandshell}
pre-commit run --all-files
\end{commandshell}
+
A few notes about \cref{lst:.pre-commit-config.yaml-cpan}:
\begin{itemize}
\item the settings given in \cref{lst:.pre-commit-config.yaml-docker} instruct
@@ -7811,9 +8396,11 @@ pre-commit run --all-files
\item this requires \texttt{pre-commit} and \texttt{docker} to be installed on your system;
\item the \texttt{args} lists selected command-line options; the settings in
\cref{lst:.pre-commit-config.yaml-cpan} are equivalent to calling
+
\begin{commandshell}
docker run -v /path/to/myfile.tex:/myfile.tex ghcr.io/cmhughes/latexindent.pl -s myfile.tex
\end{commandshell}
+
for each \texttt{.tex} file in your repository;
\item to instruct \texttt{latexindent.pl} to overwrite the files in your repository, then you
can update \cref{lst:.pre-commit-config.yaml-cpan} so that \texttt{args: [-s, -w]}.
@@ -7824,8 +8411,8 @@ docker run -v /path/to/myfile.tex:/myfile.tex ghcr.io/cmhughes/latexindent.pl -s
\texttt{.latexindent.yaml}.
\begin{example}
- We use the local settings given in \cref{lst:.latexindent.yaml}.
- \begin{cmhlistings}[style=tcblatex]{\texttt{.latexindent.yaml}}{lst:.latexindent.yaml}
+ We use the local settings given in \cref{lst:.latexindent.yaml}.
+ \begin{cmhlistings}[style=tcblatex]{\texttt{.latexindent.yaml}}{lst:.latexindent.yaml}
onlyOneBackUp: 1
modifyLineBreaks:
@@ -7833,34 +8420,40 @@ modifyLineBreaks:
manipulateSentences: 1
\end{cmhlistings}
- and \texttt{.pre-commit-config.yaml} as in \cref{lst:.latexindent.yaml-switches}:
+ and \texttt{.pre-commit-config.yaml} as in \cref{lst:.latexindent.yaml-switches}:
- \cmhlistingsfromfile{demonstrations/pre-commit-config-demo.yaml}[yaml-TCB]{\texttt{.pre-commit-config.yaml} (demo)}{lst:.latexindent.yaml-switches}
- Now running
- \begin{commandshell}
+ \cmhlistingsfromfile{demonstrations/pre-commit-config-demo.yaml}[yaml-TCB]{\texttt{.pre-commit-config.yaml} (demo)}{lst:.latexindent.yaml-switches}
+ Now running
+
+ \begin{commandshell}
pre-commit run --all-files
\end{commandshell}
- is equivalent to running
- \begin{commandshell}
+
+ is equivalent to running
+
+ \begin{commandshell}
latexindent.pl -l -m -s -w myfile.tex
\end{commandshell}
- for each \texttt{.tex} file in your repository.
- A few notes about \cref{lst:.latexindent.yaml-switches}:
- \begin{itemize}
- \item the \texttt{-l} option was added to use the local \texttt{.latexindent.yaml} (where it
- was specified to only create one back-up file, as \texttt{git} typically takes care of
- this when you use \texttt{pre-commit});
- \item \texttt{-m} to modify line breaks; in addition to \texttt{-s} to suppress command-line
- output, and \texttt{-w} to format files in place.
- \end{itemize}
+ for each \texttt{.tex} file in your repository.
+
+ A few notes about \cref{lst:.latexindent.yaml-switches}:
+ \begin{itemize}
+ \item the \texttt{-l} option was added to use the local \texttt{.latexindent.yaml} (where it
+ was specified to only create one back-up file, as \texttt{git} typically takes care of
+ this when you use \texttt{pre-commit});
+ \item \texttt{-m} to modify line breaks; in addition to \texttt{-s} to suppress command-line
+ output, and \texttt{-w} to format files in place.
+ \end{itemize}
\end{example}
\section{logFilePreferences}\label{app:logfile-demo}
\Vref{lst:logFilePreferences} describes the options for customising the information given
- to the log file, and we provide a few demonstrations here. Let's say that we start with
- the code given in \cref{lst:simple}, and the settings specified in
- \cref{lst:logfile-prefs1-yaml}.
+ to the log file, and we provide a few demonstrations here.
+
+ \begin{example}
+ Let's say that we start with the code given in \cref{lst:simple}, and the settings
+ specified in \cref{lst:logfile-prefs1-yaml}.
\begin{minipage}{.35\linewidth}
\cmhlistingsfromfile{demonstrations/simple.tex}{\texttt{simple.tex}}{lst:simple}
@@ -7871,9 +8464,11 @@ latexindent.pl -l -m -s -w myfile.tex
\end{minipage}
If we run the following command (noting that \texttt{-t} is active)
+
\begin{commandshell}
latexindent.pl -t -l=logfile-prefs1.yaml simple.tex
\end{commandshell}
+
then on inspection of \texttt{indent.log} we will find the snippet given in
\cref{lst:indentlog}.
\begin{cmhlistings}[style=tcblatex,morekeywords={TRACE}]{\texttt{indent.log}}{lst:indentlog}
@@ -7894,6 +8489,7 @@ TRACE: Searching myenv for optional and mandatory arguments
\end{cmhlistings}
Notice that the information given about \texttt{myenv} is `framed' using \texttt{+++++}
and \lstinline!-----! respectively.
+ \end{example}
\section{Encoding indentconfig.yaml}\label{app:encoding}
In relation to \vref{sec:indentconfig}, Windows users that encounter encoding issues with
@@ -7931,11 +8527,14 @@ latexindent.pl -y="dos2unixlinebreaks:1" myfile.tex
There are a few (small) changes to the interface when comparing Version 2.2 to Version
3.0. Explicitly, in previous versions you might have run, for example, \index{switches!-o
demonstration}
+
\begin{commandshell}
latexindent.pl -o myfile.tex outputfile.tex
\end{commandshell}
+
whereas in Version 3.0 you would run any of the following, for example,
\index{switches!-o demonstration}
+
\begin{commandshell}
latexindent.pl -o=outputfile.tex myfile.tex
latexindent.pl -o outputfile.tex myfile.tex
@@ -7944,6 +8543,7 @@ latexindent.pl myfile.tex -o=outputfile.tex
latexindent.pl myfile.tex -outputfile=outputfile.tex
latexindent.pl myfile.tex -outputfile outputfile.tex
\end{commandshell}
+
noting that the \emph{output} file is given \emph{next to} the \texttt{-o} switch.
The fields given in \cref{lst:obsoleteYaml} are \emph{obsolete} from Version 3.0 onwards.
diff --git a/support/latexindent/latexindent.pl b/support/latexindent/latexindent.pl
index 838b5ba328..c9fc83e1d3 100755
--- a/support/latexindent/latexindent.pl
+++ b/support/latexindent/latexindent.pl
@@ -1,5 +1,5 @@
#!/usr/bin/env perl
-# latexindent.pl, version 3.19, 2022-10-30
+# latexindent.pl, version 3.19.1, 2022-12-04
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/systems/texlive/tlnet/tlpkg/installer/ctan-mirrors.pl b/systems/texlive/tlnet/tlpkg/installer/ctan-mirrors.pl
index 18ac313869..f147924792 100644
--- a/systems/texlive/tlnet/tlpkg/installer/ctan-mirrors.pl
+++ b/systems/texlive/tlnet/tlpkg/installer/ctan-mirrors.pl
@@ -16,7 +16,6 @@ $mirrors = {
'https://mirrors.cloud.tencent.com/CTAN/' => 1,
'https://mirrors.cqu.edu.cn/CTAN/' => 1,
'https://mirrors.hit.edu.cn/CTAN/' => 1,
- 'https://mirrors.nju.edu.cn/CTAN/' => 1,
'https://mirrors.nwafu.edu.cn/ctan/' => 1,
'https://mirrors.sjtug.sjtu.edu.cn/ctan/' => 1,
'https://mirrors.sustech.edu.cn/CTAN/' => 1,
@@ -31,7 +30,6 @@ $mirrors = {
'https://mirror.niser.ac.in/ctan/' => 1,
},
'Indonesia' => {
- 'http://repo.ugm.ac.id/ctan/' => 1,
'https://mirror.unpad.ac.id/ctan/' => 1,
},
'Iran' => {
@@ -117,9 +115,6 @@ $mirrors = {
'http://ftp.ntua.gr/mirror/ctan/' => 1,
'https://ftp.cc.uoc.gr/mirrors/CTAN/' => 1,
},
- 'Hungary' => {
- 'https://mirror.szerverem.hu/ctan/' => 1,
- },
'Italy' => {
'https://ctan.mirror.garr.it/mirrors/ctan/' => 1,
},
@@ -161,7 +156,6 @@ $mirrors = {
},
'Sweden' => {
'https://ftp.acc.umu.se/mirror/CTAN/' => 1,
- 'https://ftpmirror1.infania.net/mirror/CTAN/' => 1,
},
'Switzerland' => {
'https://mirror.foobar.to/CTAN/' => 1,
diff --git a/systems/texlive/tlnet/tlpkg/texlive.tlpdb b/systems/texlive/tlnet/tlpkg/texlive.tlpdb
index ef363a608c..30928b7953 100644
--- a/systems/texlive/tlnet/tlpkg/texlive.tlpdb
+++ b/systems/texlive/tlnet/tlpkg/texlive.tlpdb
@@ -26,11 +26,11 @@ depend container_split_src_files/1
depend frozen/0
depend minrelease/2016
depend release/2022
-depend revision/65171
+depend revision/65200
name 00texlive.image
category TLCore
-revision 65159
+revision 65197
shortdesc TeX Live files only in the source repository
longdesc The files here are not copied by the installer and containers
longdesc are not built for them; they exist only in the source
@@ -2137,6 +2137,7 @@ runfiles size=12951
tlpkg/tlpsrc/hf-tikz.tlpsrc
tlpkg/tlpsrc/hfbright.tlpsrc
tlpkg/tlpsrc/hfoldsty.tlpsrc
+ tlpkg/tlpsrc/hfutexam.tlpsrc
tlpkg/tlpsrc/hfutthesis.tlpsrc
tlpkg/tlpsrc/hhtensor.tlpsrc
tlpkg/tlpsrc/hideanswer.tlpsrc
@@ -4672,7 +4673,7 @@ depend setting_available_architectures:aarch64-linux amd64-freebsd amd64-netbsd
name 00texlive.installer
category TLCore
-revision 65164
+revision 65199
shortdesc TeX Live standalone installer package
longdesc This package defines the files to go into the installer
longdesc archives (install-tl-unx.tar.gz, install-tl.zip) built by the
@@ -17239,7 +17240,7 @@ catalogue-version 1.1
name amiri
category Package
-revision 55403
+revision 65191
shortdesc A classical Arabic typeface, Naskh style
relocated 1
longdesc Amiri is a classical Arabic typeface in Naskh style for
@@ -17250,25 +17251,24 @@ longdesc the font is named. The project aims at the revival of the
longdesc aesthetics and traditions of Arabic typesetting, and adapting
longdesc it to the era of digital typesetting, in a publicly available
longdesc form.
-containersize 495748
-containerchecksum 36e26c23ddc53de46250f95a0d4a608c7e43e781b56002a62bf96675297aa2e81c9454811b8063080937feab4dd5b1f3782bccff4a1d2376d8484c9d60295fdb
-doccontainersize 99476
-doccontainerchecksum 3328c73a7203ca3239036063c7a65faa9119ccb4c1f7fe4229abf49a0bd8216e4bef1a93a18c452a0200d781240dc643888c2d278eb97edfcd1c716ae14478e2
-docfiles size=38
- RELOC/doc/fonts/amiri/Documentation-Arabic.pdf details="Package documentation (Arabic)" language="ar"
- RELOC/doc/fonts/amiri/NEWS
- RELOC/doc/fonts/amiri/NEWS-Arabic
+containersize 467744
+containerchecksum ee2a1598a4040a069cfdaa275793b34bd8c899f65e888f41bec55fef53fae6312e3b9ad1a3dc024aaff1df22f735e0e633a1524b54d7ead9ff482ccc829e8aba
+doccontainersize 24708
+doccontainerchecksum 8f50fd9ff492cec24fba7a321a4fdc25d5b427eac31609adbc9fba6a0bcaae8ed895aa6cc860a66106e22ae21dbe9984f9e37f4bc2451f77f5d89ea10d0f5e0a
+docfiles size=26
+ RELOC/doc/fonts/amiri/Documentation-Arabic.html details="Package documentation (Arabic)" language="ar"
+ RELOC/doc/fonts/amiri/NEWS-Arabic.md
+ RELOC/doc/fonts/amiri/NEWS.md
RELOC/doc/fonts/amiri/OFL.txt
- RELOC/doc/fonts/amiri/README details="Readme"
- RELOC/doc/fonts/amiri/README-Arabic details="Readme (Arabic)" language="ar"
-runfiles size=621
+ RELOC/doc/fonts/amiri/README-Arabic.md details="Readme (Arabic)" language="ar"
+ RELOC/doc/fonts/amiri/README.md details="Readme"
+runfiles size=507
RELOC/fonts/truetype/public/amiri/Amiri-Bold.ttf
- RELOC/fonts/truetype/public/amiri/Amiri-BoldSlanted.ttf
+ RELOC/fonts/truetype/public/amiri/Amiri-BoldItalic.ttf
+ RELOC/fonts/truetype/public/amiri/Amiri-Italic.ttf
RELOC/fonts/truetype/public/amiri/Amiri-Regular.ttf
- RELOC/fonts/truetype/public/amiri/Amiri-Slanted.ttf
RELOC/fonts/truetype/public/amiri/AmiriQuran.ttf
RELOC/fonts/truetype/public/amiri/AmiriQuranColored.ttf
- RELOC/tex/latex/amiri/Amiri.fontspec
catalogue-contact-bugs https://github.com/alif-type/amiri/issues
catalogue-contact-home http://amirifont.org
catalogue-contact-repository https://github.com/alif-type/amiri
@@ -17276,7 +17276,7 @@ catalogue-contact-support https://github.com/alif-type/amiri/issues
catalogue-ctan /fonts/amiri
catalogue-license ofl
catalogue-topics font font-ttf arabic
-catalogue-version 0.113
+catalogue-version 1.000
name amiweb2c-guide
category Package
@@ -39812,7 +39812,7 @@ catalogue-version 1.1b
name biblatex-publist
category Package
-revision 64802
+revision 65182
shortdesc BibLaTeX bibliography support for publication lists
relocated 1
longdesc The package provides a BibLaTeX bibliography style file (*.bbx)
@@ -39821,10 +39821,10 @@ longdesc authoryear style, but provides some extra features often
longdesc desired for publication lists, such as the omission of the
longdesc author's own name from author or editor data. At least version
longdesc 3.4 of biblatex is required.
-containersize 12172
-containerchecksum 346700c551f5ad9f098327ce2a1ba207018d6753f91b833a1c976e7dc621bb227f0236eabc05c07c2e8d30555e28fa1006eebabd0e85ca3837ae81c7bb5c5d25
-doccontainersize 423724
-doccontainerchecksum 9469b3ac3cd6c9dae1237f3d7b3b24cd8126a124b9016ba25264d7d2ca590d67fa5fb76645a3508ae3c9f2288c754a99fb6c5209c10adeb93a74704ab907f160
+containersize 12200
+containerchecksum 11761f4889c33ff9aed8eb830ab955df18f4470ea54a371164d235d53f581dcde2e00a642461eceaaeef58954c78a05130ed24df3199f16b97ec68bb433c5844
+doccontainersize 423876
+doccontainerchecksum da0060d86fda9ed22e11994f8ea146a7e0b71e379b000ee3042b0a880972795d9eeb88d333d80891556bf317a2f864bb32d6c6b66098ef35375b38aaee862d5e
docfiles size=118
RELOC/doc/latex/biblatex-publist/README details="Readme"
RELOC/doc/latex/biblatex-publist/biblatex-publist.pdf details="Package documentation"
@@ -39838,7 +39838,7 @@ catalogue-contact-repository https://github.com/jspitz/biblatex-publist
catalogue-ctan /macros/latex/contrib/biblatex-contrib/biblatex-publist
catalogue-license lppl1.3
catalogue-topics biblatex
-catalogue-version 2.0
+catalogue-version 2.1
name biblatex-readbbl
category Package
@@ -42057,24 +42057,24 @@ catalogue-version 0.1
name bithesis
category Package
-revision 64871
+revision 65195
shortdesc Templates for the Beijing Institute of Technology
relocated 1
longdesc This package establishes a simple and easy-to-use LaTeX
longdesc template for Beijing Institute of Technology dissertations,
longdesc including general undergraduate theses and master theses.
-containersize 21848
-containerchecksum de9558744345110103fe97ed99d03eeacb2df417d60c3fe7494eec5f35aa6630b9e3b52ce1a57cef297975c12c5434596504974cc2de85b1bee3fa5c5e48f5a8
-doccontainersize 1027740
-doccontainerchecksum 664e9e575a42c4f363bf368708a03d12eaed65e4dc31306ba4343222f91fbad6555ac6535cf10573063894aa0d54f7cdaf3b4c8804fce18c5814c34387875cda
-docfiles size=261
+containersize 21928
+containerchecksum d3ef6b3bef167b35c26b540e7a1cd2ace89407e70d1cb3544ee965799d4ff49fcf7d52e0612f119eadbe3345e623970bc748bedb6374102fed04c462b31f7b8c
+doccontainersize 1030676
+doccontainerchecksum 6e044cfd358529a0222bc816ba14738977c1c43f5e740c12a97094c61ac5d7d22377d7afd72d352bb8ff1ebde5106eb0c7fcd4c7954b95a709bf39c1ad4f5c51
+docfiles size=262
RELOC/doc/latex/bithesis/README.md details="Readme"
RELOC/doc/latex/bithesis/bithesis.pdf details="Package documentation" language="zh"
RELOC/doc/latex/bithesis/contributing-zh.md
RELOC/doc/latex/bithesis/contributing.md
RELOC/doc/latex/bithesis/dtx-style.sty
-srccontainersize 40088
-srccontainerchecksum 29162caca28b5b547436183f305113492472deec0f6603ad8f1ffa790f86315b115c7a6945f9dbbf0cec264b3aaf796826a9ce8be176bcda8871b44912f79326
+srccontainersize 40224
+srccontainerchecksum 9c1c1bd89c354203b4bfa02d46df76b1b10855639a427bf0dfa606cfb06231cda731da4b62a3120e9f2aa60d3280418b3116c4ebe31ced8f8503819700365d46
srcfiles size=49
RELOC/source/latex/bithesis/bithesis.dtx
RELOC/source/latex/bithesis/bithesis.ins
@@ -42093,7 +42093,7 @@ catalogue-contact-support https://github.com/BITNP/BIThesis/discussions
catalogue-ctan /macros/unicodetex/latex/bithesis
catalogue-license lppl1.3c
catalogue-topics class dissertation doc-templ chinese expl3
-catalogue-version 3.1.1
+catalogue-version 3.2.0
name bitpattern
category Package
@@ -72728,7 +72728,7 @@ containerchecksum 54e2b23dfd58d514d577f535e4f8bab08b2a124c43abdea796847d5c8cdf5c
name collection-publishers
category Collection
-revision 65159
+revision 65192
shortdesc Publisher styles, theses, etc.
relocated 1
depend aastex
@@ -72818,6 +72818,7 @@ depend hagenberg-thesis
depend har2nat
depend hecthese
depend hep-paper
+depend hfutexam
depend hfutthesis
depend hithesis
depend hitszbeamer
@@ -73002,7 +73003,7 @@ depend yazd-thesis
depend yb-book
depend york-thesis
containersize 1664
-containerchecksum e28e5ae045a3fa7070ac4492f512f01df1f4dea4ae495c2b4ed8469c4cde48a78056f81dabbf341ed239473749fd1c0670bc408e218653e4d752f7a0e7b0ac6e
+containerchecksum 7124e94878e7b98383a1191bbe3ec96a7adf796893fd3ac69a2a1e67dd12e366e6a7b830a897655462cea1601e676b2de351eee6d8ac9e18e7d3676620a2023b
name collection-texworks
category Collection
@@ -138061,7 +138062,7 @@ catalogue-topics graphics-drv
name graphics-pln
category Package
-revision 64553
+revision 65187
shortdesc LaTeX-style graphics for Plain TeX users
relocated 1
longdesc The Plain TeX graphics package is mostly a thin shell around
@@ -138070,10 +138071,10 @@ longdesc LaTeX-isms in those packages provided by miniltx (which is the
longdesc largest part of the bundle). The bundle also contains a file
longdesc "picture.tex", which is a wrapper around the autopict.sty, and
longdesc provides the LaTeX picture mode to Plain TeX users.
-containersize 8948
-containerchecksum 38be3d687266a6d6a09664ea66d3d83beb39a26253a6db18a085344fac489fc89ad0abadae68483c5774cab176916a72dc58744d8310382ec3065754ef8c550e
-doccontainersize 2248
-doccontainerchecksum cf3a16a1ea3abb3862242dfa0bc391606f91140cfecf928fd67c2413d394027a3624dea6db566debdef0020ada44ec4d2b4a30f22c934f66e2fac8c958cd0660
+containersize 8960
+containerchecksum 968848e9ed432c21594670df42354badca67c38967a716aebe3af678b4904d295f908365532db6937f76fdd4a5195cae2f85093e96641bb49c5f4323797e9aa5
+doccontainersize 2252
+doccontainerchecksum 25628fb24b2817d8bf64a919c2bd29ee3b7fb618e5d3eccf7ec4d177de772f1a580d2cc5bddfe1e69792d88804f28e9e8bbc8471085d5ede1e95f78663fb5615
docfiles size=5
RELOC/doc/plain/graphics-pln/README.md details="Readme"
RELOC/doc/plain/graphics-pln/exmplcol.tex
@@ -143240,6 +143241,38 @@ catalogue-license gpl
catalogue-topics font font-virtual font-supp
catalogue-version 1.15
+name hfutexam
+category Package
+revision 65192
+shortdesc Exam class for Hefei University of Technology (China)
+relocated 1
+longdesc This package provides an exam class for Hefei University of
+longdesc Technology (China).
+containersize 4364
+containerchecksum cdfdd7eb3a3dfb9a093480e95c31a7c0ee7306a733abed885a20e099b8dc7cfb4b71456a030bd50dbe3cc2a7e2ff6eb93063bb018b71b5e8297818796172bafa
+doccontainersize 475516
+doccontainerchecksum 8b54e28a6026a41887d95defd3427734fc0c9ee60f3ae60735633494a2df51137f693a8868c5f10b9d71f910af151f9a1a78ffddc3dc3ba2ad09774bf9787e3b
+docfiles size=159
+ RELOC/doc/latex/hfutexam/CHANGELOG.md
+ RELOC/doc/latex/hfutexam/LICENSE
+ RELOC/doc/latex/hfutexam/README.md details="Readme"
+ RELOC/doc/latex/hfutexam/hfutexam.pdf details="Package documentation"
+ RELOC/doc/latex/hfutexam/hfutexam.tex
+ RELOC/doc/latex/hfutexam/hfutexam_cankaodaan.pdf details="Example of use (1)"
+ RELOC/doc/latex/hfutexam/hfutexam_cankaodaan.tex
+ RELOC/doc/latex/hfutexam/hfutexam_datizhi.pdf details="Example of use (2)"
+ RELOC/doc/latex/hfutexam/hfutexam_datizhi.tex
+ RELOC/doc/latex/hfutexam/hfutexam_shijuan.pdf details="Example of use (3)"
+ RELOC/doc/latex/hfutexam/hfutexam_shijuan.tex
+ RELOC/doc/latex/hfutexam/hfutexam_simple.pdf details="Example of use (4)"
+ RELOC/doc/latex/hfutexam/hfutexam_simple.tex
+runfiles size=4
+ RELOC/tex/latex/hfutexam/hfutexam.cls
+catalogue-ctan /macros/latex/contrib/hfutexam
+catalogue-license lppl1.3c
+catalogue-topics exam chinese
+catalogue-version 1.5
+
name hfutthesis
category Package
revision 64025
@@ -166827,7 +166860,7 @@ binfiles arch=x86_64-solaris size=3
name kpathsea
category TLCore
-revision 65137
+revision 65200
shortdesc Path searching library for TeX-related files
longdesc Kpathsea is a library and utility programs which provide path
longdesc searching facilities for TeX file types, including the
@@ -166837,9 +166870,9 @@ longdesc distributed separately, but rather is released and maintained
longdesc as part of the TeX Live sources.
depend kpathsea.ARCH
containersize 32468
-containerchecksum b927fa3ed461217daa6d3dd2c58789069ebc77c61355d1dc5d7d9108d6910d7f8ca5d68fe5dd7a1901899021c7cc0bdb5d3fddbc6ea50da1beae51222a9472c8
-doccontainersize 1061960
-doccontainerchecksum 9bf4903973827b87920f0c7a77a3ea0c4ecc8b877700075eb2dc1553608549872493f61813456d0fe9633c2c2736f2d75378a871e18381ba893b4c64e540faca
+containerchecksum 8ad78853526535e687e01e90331f05b7b712f697561de2196c9622a7e829cb8931ca0db87cec9146b320411960f15748df6e45c513b156ff15b91d1c2d03bbbc
+doccontainersize 1061956
+doccontainerchecksum 4bca0e1d6a4222aafc372c58d44d40f132ba56939ba093ccf4666fc54ec3b9c2f7f8f4f1d15e8b88280a6fa18234af30dd58381840ebb48cf59814241809e53c
docfiles size=544
texmf-dist/doc/info/dir
texmf-dist/doc/info/kpathsea.info
@@ -172057,7 +172090,7 @@ catalogue-version 2023-05-01 pre-release 0
name latex-base-dev
category Package
-revision 64899
+revision 65180
shortdesc Development pre-release of the LaTeX kernel
relocated 1
longdesc This package provides a testing release for upcoming LaTeX2e
@@ -172067,11 +172100,11 @@ longdesc users is required by adding these changes to the release LaTeX
longdesc kernel. Typically, the code here will be used by a TeX system
longdesc to create dedicated formats, for example pdflatex-dev, which
longdesc can then be used explicitly for testing.
-containersize 229100
-containerchecksum 994bd9106d9b49becda53c83b66d122005f67e763628ea2cab67d881f66027bba34d811ee495bec5b9674b787e0d9bbd58c32ff113482e65d10adf75959cf550
-doccontainersize 31168412
-doccontainerchecksum f6e1d1a76071e4534e6f4011ed8de31ac3c00ef31db7705d47fc0cfdadeb4073e743f9f6df9ffa71a33da2c91919e9dafd824d4ca6ee423c7e389786509a7589
-docfiles size=9822
+containersize 229684
+containerchecksum b10b12af6d6f2f062f37dc9a24fb1df7079816306abe383dfd82292307879628d37cca997e002ffcc6a032ecafad8d2326b21180bda8fc28b5485e39c2883d51
+doccontainersize 31515420
+doccontainerchecksum 83c394e53ac6b7f3cab81210ab92820b5fea969c8d2f5463f8cbfbe1308fd5103dd14a81965da720af0f3ac62966bc427dd7db7220db74cc67e9f88e7c4e55da
+docfiles size=9935
RELOC/doc/latex-dev/base/README.md details="Readme"
RELOC/doc/latex-dev/base/alltt.pdf
RELOC/doc/latex-dev/base/bugs.txt
@@ -172204,6 +172237,8 @@ docfiles size=9822
RELOC/doc/latex-dev/base/ltnews35.tex
RELOC/doc/latex-dev/base/ltnews36.pdf
RELOC/doc/latex-dev/base/ltnews36.tex
+ RELOC/doc/latex-dev/base/ltnews37.pdf
+ RELOC/doc/latex-dev/base/ltnews37.tex
RELOC/doc/latex-dev/base/ltpara-code.pdf
RELOC/doc/latex-dev/base/ltpara-code.tex
RELOC/doc/latex-dev/base/ltpara-doc.pdf
@@ -172236,9 +172271,9 @@ docfiles size=9822
RELOC/doc/latex-dev/base/utf8ienc.pdf
RELOC/doc/latex-dev/base/webcomp.err
RELOC/doc/latex-dev/base/webcomp.pdf
-srccontainersize 719528
-srccontainerchecksum 351e3b81a7bd0452783a600ac7eea73138b0cea03b9d1e84e1e2a47d1efcbe08046f1cbc98f6ee61ec5a9517aec6234205ab5816a5ed9f2fadea3e88fb50cab2
-srcfiles size=1054
+srccontainersize 721712
+srccontainerchecksum 48f09833a75dbad355e1fdb3cc63b173471d54613b16efff3661efa6666e5dd10c3180b44cfd9bd11e990e35bc8410cb9a89571e73ed2061eb3c39a43f4bb423
+srcfiles size=1057
RELOC/source/latex-dev/base/alltt.dtx
RELOC/source/latex-dev/base/alltt.ins
RELOC/source/latex-dev/base/classes.dtx
@@ -172343,7 +172378,7 @@ srcfiles size=1054
RELOC/source/latex-dev/base/tulm.ins
RELOC/source/latex-dev/base/unpack.ins
RELOC/source/latex-dev/base/utf8ienc.dtx
-runfiles size=642
+runfiles size=644
RELOC/tex/latex-dev/base/alltt.sty
RELOC/tex/latex-dev/base/ansinew.def
RELOC/tex/latex-dev/base/applemac.def
@@ -172513,7 +172548,7 @@ catalogue-also latex-base
catalogue-ctan /macros/latex-dev/base
catalogue-license lppl1.3c
catalogue-topics format class latex-devel
-catalogue-version 2023-05-01 pre-release 0
+catalogue-version 2023-06-01 pre-release 1
name latex-bin
category TLCore
@@ -173101,23 +173136,23 @@ catalogue-topics latex-doc
name latex-firstaid-dev
category Package
-revision 64899
+revision 65181
shortdesc Development pre-release of the LaTeX firstaid package
relocated 1
longdesc This is a pre-release version of the standard LaTeX firstaid
longdesc package. It accompanies the pre-testing kernel code
longdesc (latex-base-dev), and is intended for testing by knowledgeable
longdesc users.
-containersize 3360
-containerchecksum ceb0463c4be0ad57d23f37dfd4e1d6194c3fe450f057c0fa6688b5bb0e35e67cd17142d74f27bc889324cf95010bdc32ca7ad65f77e2b418555652b94c3d5fc8
-doccontainersize 262444
-doccontainerchecksum 9458c3740ff39e9ef4daf70255f69e6bc5dc981bbf1330a1ee1f84a781a06fb2ed5ce0d430f2e0a94b4b3324967cc8bdbcf896049c832ebe3c03f3194e0ee9d6
-docfiles size=69
+containersize 3472
+containerchecksum f9305a21c399fac15258a607d12b889ca860eba3673b8b4d91a6470a078f6b23288588dd6d22e9255629060696702d2d22163d6669cede8c83762b286ad22cf8
+doccontainersize 265128
+doccontainerchecksum fe6a3cc24a4aebca09d4c20336016847a177b352d9ad402bc675f0bb67231dafd38f6208e003f6ce39bc7bb451e600c5f1457cc3723bb1f4d7bc7aedaa751ed4
+docfiles size=70
RELOC/doc/latex-dev/firstaid/README.md details="Readme"
RELOC/doc/latex-dev/firstaid/changes.txt
RELOC/doc/latex-dev/firstaid/latex2e-first-aid-for-external-files.pdf details="Package documentation"
-srccontainersize 7968
-srccontainerchecksum 3e8357ee72b8f5dd2cfc74ea793874a1b6c6555d3a02b69ec2fb80fb90beb3f9580fed1f37f0773f189394dda3a7096a29671d54fbb1b47d85de48e14aed0974
+srccontainersize 8284
+srccontainerchecksum b7a1c866724208e2f702e9e7678876e8607e9063686b2cbb81b5bc97bfc84584207156cbf8c0b0470b5f8c2eb6227d8474c17ca52a582ad6e957ca20c3d18b8d
srcfiles size=7
RELOC/source/latex-dev/firstaid/firstaid.ins
RELOC/source/latex-dev/firstaid/latex2e-first-aid-for-external-files.dtx
@@ -173128,7 +173163,7 @@ runfiles size=4
catalogue-ctan /macros/latex-dev/required/firstaid
catalogue-license lppl1.3c
catalogue-topics format bugfix latex-devel
-catalogue-version 1.0u
+catalogue-version 1.0w
name latex-fonts
category Package
@@ -201360,7 +201395,7 @@ catalogue-version 1.01
name mathfont
category Package
-revision 61719
+revision 65193
shortdesc Use TrueType and OpenType fonts in math mode
relocated 1
longdesc The mathfont package adapts unicode text fonts for math mode.
@@ -201369,11 +201404,11 @@ longdesc for different classes of math symbols, and it provides tools to
longdesc change the font locally for math alphabet characters. When
longdesc typesetting with LuaTeX, mathfont adds resizable delimiters,
longdesc big operators, and a MathConstants table to text fonts.
-containersize 21164
-containerchecksum d865f7aeacad69848e20419e9ef88db46f70c04d0e9f9f0a8388cc35fe4d98ef1af26aa6060892efb181addd8b14d592f2a1033be26451979adde7762b23bcba
-doccontainersize 855308
-doccontainerchecksum 05cc45350103bfaa9954b458e77a001d37edf0686de855f6fd2a60069454f7aa8e1e7b266a13eddb74d1a32d151ee529c9b4c0bc15e0e563b1ebc4c4036f949d
-docfiles size=245
+containersize 21264
+containerchecksum 16e5b81c2391d2ee572b90a21b7666749802c81b34f9da9ef97fe525850e01f4ee8cf3c297409ccc9e3fe50437de3bfe507197f3926be88e084b50deec6033be
+doccontainersize 871220
+doccontainerchecksum 65fb6c69f413e6da7286f3eb63f022b22226d9743cffde6d88eb540f980cde28e4f4ecf8a3549759a1704cfa88c5de5de17f1bee75cce55635b4770d7fb71c2c
+docfiles size=250
RELOC/doc/latex/mathfont/README.txt details="Readme"
RELOC/doc/latex/mathfont/mathfont_code.pdf details="Code implementation"
RELOC/doc/latex/mathfont/mathfont_doc_patch.tex
@@ -201391,16 +201426,16 @@ docfiles size=245
RELOC/doc/latex/mathfont/mathfont_symbol_list.tex
RELOC/doc/latex/mathfont/mathfont_user_guide.pdf details="User guide"
RELOC/doc/latex/mathfont/mathfont_user_guide.tex
-srccontainersize 62736
-srccontainerchecksum 7b4a411b4783a7d1a3e1ceaca8c26e6831ead98f8f73eee63b2fa452399e95505edda1bf983759a8261e66a1436496b02c5811074745b64fb64b4d93fc361e22
-srcfiles size=80
+srccontainersize 61740
+srccontainerchecksum 2edfbc1f4ec1ab786242aa45ef2297a33686fa5e00e1c5ffd3808f1d6aaf53018f453ef286836405cb9a1c8372b03f8fac2adf928ad85cec57aa79c6d06692f2
+srcfiles size=77
RELOC/source/latex/mathfont/mathfont_code.dtx
-runfiles size=37
+runfiles size=35
RELOC/tex/latex/mathfont/mathfont.sty
catalogue-ctan /macros/latex/contrib/mathfont
catalogue-license lppl1.3c
catalogue-topics font-mgmt font-use maths
-catalogue-version 2.0
+catalogue-version 2.2
name mathlig
category Package
@@ -225589,7 +225624,7 @@ catalogue-version 0.0.1
name njuthesis
category Package
-revision 64797
+revision 65196
shortdesc LaTeX thesis template for Nanjing University
relocated 1
longdesc The njuthesis class is intended for typesetting Nanjing
@@ -225597,17 +225632,17 @@ longdesc University dissertations with LaTeX, providing support for
longdesc bachelor, master, and doctoral theses as well as postdoctoral
longdesc reports. Compilation of this class requires either XeLaTeX or
longdesc LuaLaTeX.
-containersize 19416
-containerchecksum 8f09d2cd0d11e0334e6627c496be260dd95dbbc5aeb48aedd493814cd25f599ddc729d4de41e46c883f335a3c66f03b873f486d135913ef9296cfff72fe73db7
-doccontainersize 1189824
-doccontainerchecksum b6f015ef40ddd85a774a26a386c0c3d444c1b6ce8d001802fcc0d659412c9c1472766f1c7c4447813e6bace14641163fef2d42e3c4e722b36f1edad48706ac5d
-docfiles size=300
+containersize 19636
+containerchecksum bb1516cf8dd5d6e7d826aafa0b6dbcb0559a68c0956cbb09cbf64a2479a9f2fe762521de9aa897eb22b3dd186449f4cc5ba743cda9d6f67655c4fe73b8b882e5
+doccontainersize 1167612
+doccontainerchecksum af215f99592fb9f655eb2c240924ac8c019139f8932913e23f3d2c13d3e7f56c94b1b05bd9311fa672708bfb1c675d18fab867498fc87a2506694e367165b418
+docfiles size=294
RELOC/doc/latex/njuthesis/LICENSE
RELOC/doc/latex/njuthesis/README.md details="Readme"
RELOC/doc/latex/njuthesis/njuthesis.pdf details="Package documentation" language="zh"
-srccontainersize 64580
-srccontainerchecksum b924dec82bae5368009fc624c3ff760b5789b325d27c03afdcd168fc4739bf695ce56586bf2edce427681e2cd30225b13686114679f0a24fd4a8a84a4994dc11
-srcfiles size=74
+srccontainersize 65444
+srccontainerchecksum dc789087b30c1d56075258c1999bba6d4761cd6f23990de735466117d93e6bb2af690eac4db3c8dfa8b533548261a6bff83e90f3003547ea14230ff7d4a5ed82
+srcfiles size=75
RELOC/source/latex/njuthesis/njuthesis.dtx
RELOC/source/latex/njuthesis/njuthesis.ins
runfiles size=29
@@ -225623,7 +225658,7 @@ catalogue-contact-support https://github.com/nju-lug/NJUThesis/discussions
catalogue-ctan /macros/unicodetex/latex/njuthesis
catalogue-license lppl1.3c
catalogue-topics class dissertation proposal expl3 latex3 chinese
-catalogue-version 1.1.0
+catalogue-version 1.1.1
name njuvisual
category Package
@@ -237392,7 +237427,7 @@ catalogue-version 1.0
name optex
category Package
-revision 64050
+revision 65185
shortdesc LuaTeX format based on Plain TeX and OPmac
longdesc OpTeX is a LuaTeX format based on Plain TeX macros with power
longdesc from OPmac (fonts selection system, colors, external graphics,
@@ -237409,22 +237444,21 @@ depend optex.ARCH
depend rsfs
depend unicode-data
execute AddFormat name=optex engine=luatex options="optex.ini" fmttriggers=amsfonts,cm,ec,hyphen-base,lm,rsfs,unicode-data
-containersize 815472
-containerchecksum 2d967aa70207737b5fcc8583c9e05039b08100e5da539c393841d72ab16dc619e57dab669d088af766da0d694c61555ba8d9640eff7d6402d5c9bd4d73db9c1a
-doccontainersize 1473012
-doccontainerchecksum 0f7fabc8a716d4a32a0adc7caa4f320fe6b99eb890d749e292a2f086f4c20f546393a80b222ff6f2c30f5a003d43220e54c0ae351fee7946e7fdc4d261faa7f2
-docfiles size=413
+containersize 828596
+containerchecksum a30b58b6dc9a1e06c3bf2fe196532ca88e5bf9ebae5e36f5ec2b9f146f95f18a70df2b15698bbcfc51300cef2c1b25c28521885c2ac1a44c6bb8cc485eed8739
+doccontainersize 1519012
+doccontainerchecksum 8b7b46ab7984a0d1f590adabefb99085734532dd0dede6c429fdaa2bcaa3c2dcd1d0e70d37ae3cf9a109ab018f0fd29a7bc36250b8bf5d12c41ee4fa21bf9ccd
+docfiles size=425
texmf-dist/doc/man/man1/optex.1
texmf-dist/doc/man/man1/optex.man1.pdf
texmf-dist/doc/optex/base/README details="Readme"
- texmf-dist/doc/optex/base/mte-doc.tex
texmf-dist/doc/optex/base/omls.tex
texmf-dist/doc/optex/base/optex-doc.pdf details="Package documentation"
texmf-dist/doc/optex/base/optex-doc.tex
texmf-dist/doc/optex/base/optex-math.tex
texmf-dist/doc/optex/base/optex-techdoc.tex
texmf-dist/doc/optex/base/optex-userdoc.tex
-runfiles size=517
+runfiles size=531
texmf-dist/tex/optex/base/alloc.opm
texmf-dist/tex/optex/base/basic-macros.opm
texmf-dist/tex/optex/base/bib-iso690.opm
@@ -237445,8 +237479,11 @@ runfiles size=517
texmf-dist/tex/optex/base/f-garamondl.opm
texmf-dist/tex/optex/base/f-gfsbodoni.opm
texmf-dist/tex/optex/base/f-heros.opm
+ texmf-dist/tex/optex/base/f-iwona.opm
texmf-dist/tex/optex/base/f-kerkis.opm
texmf-dist/tex/optex/base/f-kpfonts.opm
+ texmf-dist/tex/optex/base/f-kurier.opm
+ texmf-dist/tex/optex/base/f-lato.opm
texmf-dist/tex/optex/base/f-libertine-s.opm
texmf-dist/tex/optex/base/f-libertine.opm
texmf-dist/tex/optex/base/f-libertinus.opm
@@ -237496,7 +237533,6 @@ runfiles size=517
texmf-dist/tex/optex/base/margins.opm
texmf-dist/tex/optex/base/math-macros.opm
texmf-dist/tex/optex/base/math-preload.opm
- texmf-dist/tex/optex/base/math-unicode.opm
texmf-dist/tex/optex/base/mathclass.opm
texmf-dist/tex/optex/base/more-macros.opm
texmf-dist/tex/optex/base/multicolumns.opm
@@ -237518,6 +237554,7 @@ runfiles size=517
texmf-dist/tex/optex/base/table.opm
texmf-dist/tex/optex/base/uni-lcuc.opm
texmf-dist/tex/optex/base/unimath-codes.opm
+ texmf-dist/tex/optex/base/unimath-macros.opm
texmf-dist/tex/optex/base/unimath-table.opm
texmf-dist/tex/optex/base/usebib.opm
texmf-dist/tex/optex/base/verbatim.opm
@@ -237530,6 +237567,7 @@ runfiles size=517
texmf-dist/tex/optex/demo/op-slides-bg.png
texmf-dist/tex/optex/demo/op-slides.tex
texmf-dist/tex/optex/pkg/emoji.opm
+ texmf-dist/tex/optex/pkg/math.opm
texmf-dist/tex/optex/pkg/minim-mp.opm
texmf-dist/tex/optex/pkg/minim-pdf.opm
texmf-dist/tex/optex/pkg/minim.opm
@@ -237543,7 +237581,7 @@ catalogue-contact-home http://petr.olsak.net/optex
catalogue-ctan /macros/optex
catalogue-license pd
catalogue-topics format luatex plain-ext
-catalogue-version 1.08
+catalogue-version 1.09
name optex.aarch64-linux
category Package
@@ -242364,7 +242402,7 @@ catalogue-version 1.15
name pdfextra
category Package
-revision 61719
+revision 65184
shortdesc Extra PDF features for (Op)TeX
relocated 1
longdesc This package provides extra PDF features for OpTeX (or in
@@ -242374,11 +242412,11 @@ longdesc file format in its base. This third party package aims to
longdesc provide them. Summary of supported features: insertion of
longdesc multimedia (audio, video, 3D), hyperlinks and other actions,
longdesc triggering events, transitions, attachments.
-containersize 25320
-containerchecksum 2276413818e73fe0c1a6dcde308a5ac00b3d094f5269e7fbee90e35fa336ca5e79bc888bdefc67fd132e5bab1e43ff0b9d3728fa52792a1faa4138f360da78b3
-doccontainersize 641676
-doccontainerchecksum 5a937aaad731f643b7b21002e42a28c556459e6025cfdeaa171922a5d54432d3756004c4ad72c88448b520ff0270cb25c4c6c3eb95b231316c1c4b87cc1314dc
-docfiles size=187
+containersize 25512
+containerchecksum 84a84fe75512fce734c9c6ad3eb2b44091ed07ab69e202b64d0d86f143166a4ab511350120b75a8f71f5c88b8d9b175fde9b5621bea23aa5017e28f0c5c2e2f5
+doccontainersize 629000
+doccontainerchecksum 644bc2b11ae5a538172eccd92e64bfa60b6fb3d5463e3fd897f46086dd84c9bf098d91565b2d88b24d5c481bfc7595f999a7b4a78c8bf74b130fe243abc9f2c4
+docfiles size=183
RELOC/doc/optex/pdfextra/LICENSE
RELOC/doc/optex/pdfextra/README.md details="Readme"
RELOC/doc/optex/pdfextra/examples/pdfextra-example-latex.tex
@@ -242396,7 +242434,7 @@ catalogue-contact-repository https://github.com/vlasakm/pdfextra
catalogue-ctan /macros/luatex/generic/pdfextra
catalogue-license other-free
catalogue-topics pdf-feat
-catalogue-version 0.2
+catalogue-version 0.3
name pdfjam
category Package
@@ -249968,7 +250006,7 @@ catalogue-version 0.1
name platex
category Package
-revision 64072
+revision 65197
shortdesc pLaTeX2e and miscellaneous macros for pTeX
longdesc The bundle provides pLaTeX2e and miscellaneous macros for pTeX
longdesc and e-pTeX. This is a community edition forked from the
@@ -249993,11 +250031,11 @@ depend ptex-fonts
depend tex-ini-files
depend unicode-data
execute AddFormat name=platex engine=eptex options="*platex.ini" patterns=language.dat fmttriggers=atbegshi,atveryend,babel,cm,everyshi,firstaid,hyphen-base,l3backend,l3kernel,l3packages,latex,latex-fonts,tex-ini-files,unicode-data,ptex-fonts,latex
-execute AddFormat name=platex-dev engine=eptex options="*platex.ini" patterns=language.dat fmttriggers=atbegshi,atveryend,babel,cm,everyshi,firstaid,hyphen-base,l3backend,l3kernel,l3packages,latex,latex-fonts,tex-ini-files,unicode-data,ptex-fonts,l3kernel,latex-base-dev,latex-firstaid-dev
-containersize 41924
-containerchecksum d6e920958e7cee051e7b9abed4ebd470b3404db6c38a827bcc0e740dfb6e8381982a31c2bba19d07fdfc1bf073a861f926e0c219562e818857149288c2dae523
+execute AddFormat name=platex-dev engine=eptex options="*platex.ini" patterns=language.dat mode=disabled fmttriggers=atbegshi,atveryend,babel,cm,everyshi,firstaid,hyphen-base,l3backend,l3kernel,l3packages,latex,latex-fonts,tex-ini-files,unicode-data,ptex-fonts,l3kernel,latex-base-dev,latex-firstaid-dev
+containersize 41936
+containerchecksum 0a62fe4781cc8f50d94fd08be3d271c84653dc073114cd693b60a91c422e6058837eebb53682a454c7a17ea1c722c93ca4d3f3839e71ddc72ed9dfea081a664c
doccontainersize 1500064
-doccontainerchecksum 4af1e23ed0ddedf3cce3aa723094337a2bc9490c95d02d53a7c1f404dc3e8bbb857ece6b104d0952fdc9f32d1d43abd8ce46a1cf49ac5c6eae2b4ff064dc3aa5
+doccontainerchecksum 339a700d9c5047a0654097c72bae8ac4a60749c9dcd73cfdbef2fdded8948eee719bae023aa4ce84d376a81b29adec9bb87798c67ea738d27fa242f8fe8c03b9
docfiles size=383
texmf-dist/doc/man/man1/platex.1
texmf-dist/doc/man/man1/platex.man1.pdf
@@ -250009,7 +250047,7 @@ docfiles size=383
texmf-dist/doc/platex/base/platexrelease.pdf
texmf-dist/doc/platex/base/pldoc.pdf
srccontainersize 139172
-srccontainerchecksum 155e979cbe21a114569b1a542d32cc37fd9228b3d4cd258eb30047505009b3ca2f69b2bf95dee27e832eaf70d8b3c833f41029099b783695f584fd917f990945
+srccontainerchecksum 2814a12c2a31dca9b798989e6a65bccbbcfd6323642f9634178d37bc52e297f1bda5c7bef78139063f45da059d3adc002ca532784efe4de91af8a089065a5ab3
srcfiles size=215
texmf-dist/source/platex/base/Makefile
texmf-dist/source/platex/base/jclasses.dtx
@@ -254898,7 +254936,7 @@ catalogue-version 0.13c
name ppt-slides
category Package
-revision 64445
+revision 65194
shortdesc Good-looking slide decks a la PowerPoint (PPT)
relocated 1
longdesc This LaTeX package helps you create slide decks as good-looking
@@ -254917,16 +254955,21 @@ depend tikzpagenodes
depend tools
depend varwidth
depend xcolor
-containersize 3932
-containerchecksum 4d3012b4cc91a9a6b03f6f9190b5f19e869aa2622c799e6f601ec54c5662b34056ea920d752be6983015fba4cafe6f4510c6b6dfc9c80be4c98a459bae3525d5
-doccontainersize 226360
-doccontainerchecksum 2ae978b0516778b228207a2d75ae497f3d160f0778073005ee0a2a7a0123bc64fbb389cbb732312fa94e42936f427e72a88fbfc699e4c5f75de733541ec611b7
-docfiles size=86
+containersize 4160
+containerchecksum 8741def8d57db17bef3490c881a615340290283860e9978e105b7ba0768b5fbf02023722109dd2f6860e9fa8d44fe7cf742eb2a97ae08d1199a6dea9f73503f2
+doccontainersize 788536
+doccontainerchecksum 6528e50797dae2dd928d11f78bdcb3368177412823657baccba10c194bebce97384ed55d10c5307c13aa06883a156abd57a944acc26f9237a138df22b5a33658
+docfiles size=255
RELOC/doc/latex/ppt-slides/DEPENDS.txt
+ RELOC/doc/latex/ppt-slides/LICENSE.txt
RELOC/doc/latex/ppt-slides/README.md details="Readme"
RELOC/doc/latex/ppt-slides/ppt-slides.pdf details="Package documentation and example of use"
- RELOC/doc/latex/ppt-slides/ppt-slides.tex
RELOC/doc/latex/ppt-slides/socrates.jpg
+srccontainersize 6308
+srccontainerchecksum 42dd3fdc96d1ffbf39deba0e2e292392a9aa6a2b266d7787448b93996f12c966abff0b643281fec8b336a395b283e2e88fafb365f616455e3393645cd7c3a55c
+srcfiles size=6
+ RELOC/source/latex/ppt-slides/ppt-slides.dtx
+ RELOC/source/latex/ppt-slides/ppt-slides.ins
runfiles size=7
RELOC/tex/latex/ppt-slides/ppt-schemes/ppt-dark-mono.tex
RELOC/tex/latex/ppt-slides/ppt-schemes/ppt-dark.tex
@@ -254938,7 +254981,7 @@ catalogue-contact-repository https://github.com/yegor256/ppt-slides
catalogue-ctan /macros/latex/contrib/ppt-slides
catalogue-license mit
catalogue-topics presentation
-catalogue-version 0.1.5
+catalogue-version 0.2.1
name pracjourn
category Package
@@ -280266,7 +280309,7 @@ catalogue-version 0.302
name semantex
category Package
-revision 64611
+revision 65183
shortdesc Semantic, keyval-based mathematics
relocated 1
longdesc The SemanTeX package for LaTeX delivers a more semantic,
@@ -280283,15 +280326,15 @@ longdesc considered feature-complete and more or less stable, so using
longdesc it at this point should be safe. Still, suggestions, ideas, and
longdesc bug reports are more than welcome!
depend semtex
-containersize 26344
-containerchecksum 3ff84fbc37063db09f1a800162d516c521fd02e0c6b15ba05d7f18f457cb9b3cf4ec6a5fec7feed777458d66616a40a5fcf2230d676a64b3954e6fced712c908
-doccontainersize 419840
-doccontainerchecksum 5e43442239c9ed7d926b079a8486beb5e716667da215ba2ed050bc8bd989e088275c5ce021cef1a10bfd685c961ac1030d038df13b0824d4d11ed5ebcbb49a4b
+containersize 26516
+containerchecksum 057b229640da956b4c36653cc1e4057317d9fb2123a69aa144078b52192a2aa8d43660a41124fd91b147ebba5473ca43c30a70fc55881daa52f6b7ded05666b3
+doccontainersize 420248
+doccontainerchecksum 6cddaebc42ce355e536fc515b726cc6344f885efd67041b564a4b8c2bd297969aa5aded0a989c5a4b3a30d574af977e44880e2ef8be8d3fae052ef44c9d6b2f9
docfiles size=144
RELOC/doc/latex/semantex/README.md details="Readme"
RELOC/doc/latex/semantex/semantex.pdf details="Package documentation"
RELOC/doc/latex/semantex/semantex.tex
-runfiles size=78
+runfiles size=79
RELOC/tex/latex/semantex/semantex.sty
RELOC/tex/latex/semantex/stripsemantex.lua
RELOC/tex/latex/semantex/stripsemantex.sty
@@ -280299,7 +280342,7 @@ catalogue-contact-repository https://github.com/sorsted/SemanTeX
catalogue-ctan /macros/latex/contrib/semantex
catalogue-license lppl1.3c
catalogue-topics maths expl3
-catalogue-version 0.522
+catalogue-version 0.523
name semantic
category Package
@@ -310790,7 +310833,7 @@ docfiles size=376
name texlive-scripts
category TLCore
-revision 65164
+revision 65199
shortdesc TeX Live infrastructure programs
longdesc Includes install-tl, tl-portable, rungs, etc.; not needed for
longdesc tlmgr to run but still ours. Not included in tlcritical.
@@ -310798,10 +310841,10 @@ depend texlive-scripts.ARCH
depend texlive.infra
execute addMap mathpple.map
postaction shortcut type=menu name="TeX Live command-line" cmd=TEXDIR/tlpkg/installer/tl-cmd.bat
-containersize 113704
-containerchecksum e9e7fa045dc3d7c72e02b8475d07ad4f06ce1d85404dd610d07ddfc166e6c9cb7216671bda8d75849ced3ef7f7a2532afa2f892ee0dda08861912fc23b5be7fb
-doccontainersize 423444
-doccontainerchecksum 95aa096c8f09311623cb767f5d2d142a63fcb27bc6e664555f62ebe8661cf8b1a57cbeb0e22ebfa816e95f708f738fa95063850431dc913378436421999ca23d
+containersize 113652
+containerchecksum 1482a1c7e69621065e70e658c7e2abc11a370c869963bf2960f6a10167f510f205ac770d0223448daabd525c153393aa44ac3a77d4f351732d8e5deead67603e
+doccontainersize 423552
+doccontainerchecksum f71b6e5fec89435ae55c9d6a10b46947cc0cd8b2b9b8dabebfa988540645a62948b25545869a0906a2223970cc0ad476b14dfded03705b2c44d015097327f123
docfiles size=532
doc.html
texmf-dist/doc/man/man1/fmtutil-sys.1
@@ -335111,7 +335154,7 @@ catalogue-topics barcode
name uplatex
category Package
-revision 64072
+revision 65197
shortdesc pLaTeX2e and miscellaneous macros for upTeX
longdesc The bundle provides pLaTeX2e macros for upTeX by Takuji Tanaka.
longdesc This is a community edition syncing with platex. The bundle
@@ -335137,11 +335180,11 @@ depend uplatex.ARCH
depend uptex
depend uptex-fonts
execute AddFormat name=uplatex engine=euptex options="*uplatex.ini" patterns=language.dat fmttriggers=atbegshi,atveryend,babel,cm,everyshi,firstaid,hyphen-base,l3backend,l3kernel,l3packages,latex,latex-fonts,tex-ini-files,unicode-data,uptex-fonts,platex,latex
-execute AddFormat name=uplatex-dev engine=euptex options="*uplatex.ini" patterns=language.dat fmttriggers=atbegshi,atveryend,babel,cm,everyshi,firstaid,hyphen-base,l3backend,l3kernel,l3packages,latex,latex-fonts,tex-ini-files,unicode-data,uptex-fonts,platex,l3kernel,latex-base-dev,latex-firstaid-dev
-containersize 14836
-containerchecksum 4e4e276dd0039c761931ead47441c7da7d78c3d179c8cfdd80576c00fd3e8ad2565961e7ceb4fc0e26bee9fb2fbde821d259feeaa7f84e4fbce0e56f03df4761
+execute AddFormat name=uplatex-dev engine=euptex options="*uplatex.ini" patterns=language.dat mode=disabled fmttriggers=atbegshi,atveryend,babel,cm,everyshi,firstaid,hyphen-base,l3backend,l3kernel,l3packages,latex,latex-fonts,tex-ini-files,unicode-data,uptex-fonts,platex,l3kernel,latex-base-dev,latex-firstaid-dev
+containersize 14844
+containerchecksum e8db3f7adcf5adc5d168d7bbc2ee9e7648e0bc8470e99fd0353a90de79d43d12084e51a62b9691e5cfdf6455a979575c784e4cf3d494973fd731ab5c4ecb8c5d
doccontainersize 777388
-doccontainerchecksum d6fc729c0545801a6d55824ecf263ca23c31aa479b9201eb882003f4c45e1bab346426d5ba8c07754c4ded4cce7d1cba7eb654a855a406306a6ce25951319a87
+doccontainerchecksum c2c475dc0b79282f31acd7ab9bc433d58baf96f2e0e937ffbdb81c3d6723bb73ad24a674fc52a4c943bd5a572f4b94813762924b9cc3d4ce159329ff13107f3f
docfiles size=201
texmf-dist/doc/man/man1/uplatex.1
texmf-dist/doc/man/man1/uplatex.man1.pdf
@@ -335151,8 +335194,8 @@ docfiles size=201
texmf-dist/doc/uplatex/base/uplatex-en.pdf details="Package documentation"
texmf-dist/doc/uplatex/base/uplatex.pdf details="Package documentation" language="ja"
texmf-dist/doc/uplatex/base/upldoc.pdf
-srccontainersize 50748
-srccontainerchecksum a8af2f89bcffca6e58e12b967c2f561a19ff5793c713490e0c5526760c119cd830fc6db28a0f03ac95bb315d2a8c857f502e1447b054e6c0e444bdba19d250b1
+srccontainersize 50744
+srccontainerchecksum 791d737d7e870b79ce6dcb346187c855ab59a70ab0b9dacba82e293524276a87ca7dd561fb85b0cbf61683ecde767abb519a66fbbfc27ef816004f1876c06215
srcfiles size=73
texmf-dist/source/uplatex/base/Makefile
texmf-dist/source/uplatex/base/ujclasses.dtx
@@ -336247,7 +336290,7 @@ catalogue-version 3.4
name urlbst
category Package
-revision 55777
+revision 65190
shortdesc Web support for BibTeX
longdesc Supports a new BibTeX 'webpage' entry type and 'url',
longdesc 'lastchecked', and 'eprint' and 'DOI' fields. The Perl script
@@ -336255,11 +336298,11 @@ longdesc urlbst can be used to add this support to an arbitrary .bst
longdesc file which has a reasonably conventional structure. The result
longdesc is meant to be robust rather than pretty.
depend urlbst.ARCH
-containersize 13668
-containerchecksum 86b600d8beecbf310596915225ae58502d7b5e92783522beec0c6ed365a44e058cb97bc2d016d66ef9a26196b33277c93f82957ee557348ef170a11d58ba30a9
-doccontainersize 238148
-doccontainerchecksum 07cffb5192991e30fd7d6823435718b241841f709f5bef86ff7e0a69102ec93d513282aaf8f046a6205a56997b7ff3ba9442446254467f4490e537a4874a7a31
-docfiles size=82
+containersize 14108
+containerchecksum 526c10cc0ad73b630a21edbf8863c0e52e89918e65500d48ac9c60cba230e0a4286afc4bfd637f025b5737022120bb7386ac48eb0834a0f8cd157829f8f84c7f
+doccontainersize 251788
+doccontainerchecksum 5db32993bf3a07299d6961d6f42747e676494ad8902228deb7530a3e4f1d1abfcea0ad75b883e42296c47b9f46658f59ccf2e6b0d0cab48cfd8084fe86826150
+docfiles size=89
texmf-dist/doc/bibtex/urlbst/LICENCE-gpl-2.0.txt
texmf-dist/doc/bibtex/urlbst/LICENCE-lppl.txt
texmf-dist/doc/bibtex/urlbst/README details="Package Readme"
@@ -336269,23 +336312,24 @@ docfiles size=82
texmf-dist/doc/bibtex/urlbst/urlbst.in
texmf-dist/doc/bibtex/urlbst/urlbst.pdf details="Package documentation (PDF format)"
texmf-dist/doc/bibtex/urlbst/urlbst.tex
-srccontainersize 22884
-srccontainerchecksum eb93a704fe994add75e3cd5202bd5a5fc9e388d35f125fa60bbeeae09bc20d223fc8e34d9899d6f378938f33ae29b96a67b3a1fc3a46782a1caff030975738a4
+srccontainersize 23272
+srccontainerchecksum 5b78e14af18a2e011a13fc9172223b1a7e2a4e68a06d64d9bda1c783f5dac14f26e99e6815a7c344d23b1b7eadca29cc184d1c5305555b52fc3d945fcadca372
srcfiles size=25
texmf-dist/source/bibtex/urlbst/Makefile.in
texmf-dist/source/bibtex/urlbst/configure
texmf-dist/source/bibtex/urlbst/configure.ac
-runfiles size=41
+runfiles size=42
texmf-dist/bibtex/bst/urlbst/abbrvurl.bst
texmf-dist/bibtex/bst/urlbst/alphaurl.bst
texmf-dist/bibtex/bst/urlbst/plainurl.bst
texmf-dist/bibtex/bst/urlbst/unsrturl.bst
texmf-dist/scripts/urlbst/urlbst
-catalogue-contact-home http://purl.org/nxg/dist/urlbst
+catalogue-contact-home https://purl.org/nxg/dist/urlbst
+catalogue-contact-repository https://heptapod.host/nxg/urlbst
catalogue-ctan /biblio/bibtex/contrib/urlbst
catalogue-license gpl2 lppl
catalogue-topics bibtex-sty
-catalogue-version 0.8
+catalogue-version 0.9
name urlbst.aarch64-linux
category Package
@@ -348129,7 +348173,7 @@ catalogue-version 1.00
name xduts
category Package
-revision 65160
+revision 65186
shortdesc Xidian University TeX Suite
relocated 1
longdesc XDUTS is designed to help Xidian University students use LaTeX
@@ -348138,19 +348182,19 @@ longdesc package that meets the school's requirements and can be applied
longdesc to any document class. In addition, there are thesis and thesis
longdesc proposal templates for both undergraduate and postgraduate that
longdesc meet the school's requirements.
-containersize 521608
-containerchecksum 21d9dc3b79389c01bc4f8c1bb970562dd8fa634222a273128f47c8af63e1b499f1984cda88d302e31030f6b8cf82bffdbed4db11d927e24898f30587fec3ebf3
-doccontainersize 304744
-doccontainerchecksum 70c1b86eeb0f524bcc1e4cdaaaec12de864e27856d5767df41bcc4162e8941335b82e4181fb91d5041abc762017b798dd395c7a9c33afdb936587b6c6bd3ab07
-docfiles size=76
+containersize 521960
+containerchecksum f3f870c70bf411a416d42f9219f751af629c967992ede7657af2f9dffd34c89d00a4a35ea72f0a9aac4d504826399f08a42492587d7f9da4251737eaa4168715
+doccontainersize 305984
+doccontainerchecksum 80423d99ba477f5bf7003b562d1d44310a59100f0dd29d8a03548d0cb5d6f26fd98dca112f411168a11b5c06a987547630460530c1d68cde34c432b5d23a5188
+docfiles size=77
RELOC/doc/xelatex/xduts/README.md details="Readme"
RELOC/doc/xelatex/xduts/xduts.pdf details="Package documentation" language="zh"
-srccontainersize 39448
-srccontainerchecksum af8e80ab87bdff270a6b8f007513cc1f887620c15653bbb3f7d78da38c86508b9276f94a02b88b00031e442acd0a3a4a27254ea026f144e87bb926c3bc6ae473
-srcfiles size=61
+srccontainersize 40000
+srccontainerchecksum 845edfd301d5ee59bed89f904ac06e57ad6a10d5cecb58b441d14d6483eb266321fa4f3e08bc8c25a5a317db218e626f6d5214811683ddb21c1787e4c7a90d5d
+srcfiles size=63
RELOC/source/xelatex/xduts/xduts.dtx
RELOC/source/xelatex/xduts/xduts.ins
-runfiles size=255
+runfiles size=257
RELOC/tex/xelatex/xduts/xdufont.sty
RELOC/tex/xelatex/xduts/xdulogo.pdf
RELOC/tex/xelatex/xduts/xdupgthesis.cls
@@ -348163,7 +348207,7 @@ catalogue-contact-support https://github.com/note286/xduts/discussions
catalogue-ctan /macros/xetex/latex/xduts
catalogue-license lppl1.3c
catalogue-topics dissertation proposal expl3 xetex
-catalogue-version 2.18.1.1
+catalogue-version 3.1.0.0
name xdvi
category TLCore
diff --git a/systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5 b/systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5
index 07d1461dcb..bf94879987 100644
--- a/systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5
+++ b/systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5
@@ -1 +1 @@
-aaed663f86a55b73882c236c428065e9 texlive.tlpdb
+0f9f3f445da9d1e0711b74f7b7a72e7a texlive.tlpdb
diff --git a/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512 b/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512
index a41728b747..6ca95c5c38 100644
--- a/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512
+++ b/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512
@@ -1 +1 @@
-aa1af04397b984c8f1c9336f75af5b3f8e45b3d176d3491398437fea3c0bf91e79cde5c7c7c97424e0ccafb42d9ec2d47eaea3089c482a8b3c5bced75cfc9143 texlive.tlpdb
+e41aaac69026db8a9c01e889ae1863e3da555d8a076deecb3badc45979fb7c5483a19e70eb7f431da6570c893807d3ee5728f1e2231f19800b0502811a487213 texlive.tlpdb
diff --git a/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc b/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc
index 8131167484..f10539b2e5 100644
--- a/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc
+++ b/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc
@@ -1,10 +1,10 @@
-----BEGIN PGP SIGNATURE-----
-iQEcBAEBCgAGBQJjip5gAAoJEEzhh34ZQ4xwpFwIAJH3AGmSjI5PuwzTlqd8H++R
-CfYRaslcAAVc+sUhZgBKMm1DiLmiLqsi3U+YcwO+I23PxqKJvdNs9Ro5XJbQKg8X
-7jEMFmdqoEX0eQsIwhrwLH4E22odRQXr28+JWwg4ymRl/UYZBxRMHfvOfYhEGoe/
-B2Hl9liFTLdjAMNyHKXWhv5XWDpWoetV8X08c4tupWrEsAUB5Z+GLaakzpaNMd+I
-qJ9FiiDUfM3mLdKt6vJRlN5g2tQjFIbpzbfIIt5W16wwKbae5zX0yPdERpWP0dC8
-fhNKsXv1NfE9XHKnDCtWrmkKfccFH9jUPbg7QvrHxSMAFaoxcwKqmnReSEWOUVU=
-=fYeK
+iQEcBAEBCgAGBQJjjUASAAoJEEzhh34ZQ4xwHg8IAJVP7Z7RtYZylVZGT4Zd4dvk
++bTkVGDLJau+f0JeouozA/uTklBK1HfBcnx0XkRsElVh55uOYnW6Ymmi55YYoeom
+ODeYy1gfny+ryAD8kC5ovb+XgyRJbLkikLMMnsK2p1oi/18257pTrExJS3aocVEc
+0jAC0mGFsF0Z/5ft05pRkCuN2U6zXat1a4rd3FSIJJVcHUSbzX0coZ+I0SIlCSov
+mVFG1r2nwRHZWc29pp3EJTnen1AvDOsRhgkeBtuoIhavT9JfcuPcAiJZ8l2aGt4U
+w/+l5eM30RClZNUoTuD9uVZU65ZJYlOSoTB7MxpTuD44SjV7OBjJm9Ng5r4cUdo=
+=Vx0F
-----END PGP SIGNATURE-----
diff --git a/systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz b/systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz
index 79e2764c42..948bdb77d5 100644
--- a/systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz
+++ b/systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz
Binary files differ
diff --git a/timestamp b/timestamp
index 285898271d..7dcdc6746b 100644
--- a/timestamp
+++ b/timestamp
@@ -2,4 +2,4 @@
# The source CTAN of this site's material:
dante.ctan.org
# The year-month-day-hour-minute of this site's material:
-2022-12-05-02-02
+2022-12-06-02-02