latex.ltx

Classes and Packages
   2.1 titlesec
   2.2 Scientific Word
Common to Plain and LaTeX-Plain
ltspace (Horizontal Spaces)
ltlength
Cross References
   6.1 LaTeX
   6.2 apacite.sty bibtex
   6.3 mla.sty bibtex
   6.4 Biblatex
   6.5 amstex
   6.6 varioref.sty
   6.7 nameref
   6.8 by name
   6.9 xr.sty: Cross-Document References
   6.10 xr-hyper.sty: Hyperref-Oriented Cross-Document References
   6.11 url.sty
   6.12 path.sty
   6.13 hyperref
   6.14 hypcap.sty
Miscellaneous Environments
   7.1 document...enddocument
   7.2 Output Encoding
   7.3 Blocks: The /begin.../end Delimiters
   7.4 CR-based Line Breaks
   7.5 Verbatim
Math Setup
   8.1 Big, BIG, ....
   8.2 Choose
   8.3 Mathpalette
   8.4 roots
   8.5 Matrices
   8.6 TeX and LaTex: Bordermatrix
   8.7 Displaylines
   8.8 [] and ()
   8.9 Equation (latex, amsmath, fleqn)
   8.10 stackrel
   8.11 Eqnarray
List Environments
   9.1 Configure Description Lists
   9.2 LaTeX
10 List-Based Environments
   10.1 Verse, Quote, and Quoattion
   10.2 Centered
   10.3 Flushed Blocks
   10.4 Centering and Fussy
11 Boxes
   11.1 Centerline, Leftline, Rightline
12 Tabbing
   12.1 Tabbing
13 Tabular and Array Environments
   13.1 Array, Tabular
   13.2 supertabular.sty
   13.3 array.sty
   13.4 dcolumn
   13.5 longtable.sty
   13.6 table.sty of pctex
   13.7 Horizontal Lines
   13.8 Tabulary
   13.9 Tabularx
   13.10 mdwtab
14 multirow
15 Pictures
16 Theorem Environments
   16.1 LaTeX
   16.2 ntheorem.sty
   16.3 ntheorem.sty
17 Sectioning Commands
   17.1 Cut Points
   17.2 Shared Below Chapter Stuff
   17.3 Cut Points
18 Footnotes, Floats, and Figures
   18.1 Floats, Inserts, and Captions
   18.2 Wrapfig
   18.3 Footnotes
   18.4 subfigure.sty
   18.5 caption.sty
19 Index and Glossary
   19.1 theindex
   19.2 makeidx
   19.3 splitidx.sty
   19.4 External Processing of Index File (idxmake.4ht)
   19.5 Glossaries
   19.6 Glossary
20 Bibliography
   20.1 LaTeX
21 Page styles and related commands
22 LaTeX Accents
23 Output Routine
24 Utilities
25 TO BE ORGANIZED
   25.1 Non-classified LaTeX************************
   25.2 srcltx.sty
   25.3 emulateapj.sty
   25.4 ifthen.sty
26 Display-Paragraph Environments of LaTeX
27 Tables of Contents
   27.1 Modifying LaTeX Macros
   27.2 Default Choice of Entries for TOC’s
   27.3 Extra entries to Toc
   27.4 Configurations
28 Content in Margins
   28.1 Margin Notes
   28.2 Picture Insertions
29 Other
   29.1 Lost Spaces
   29.2 Accents
   29.3 List-Tocs of Figures and Tables
   29.4 /input Command
   29.5 Fonts (latex.ltx + fontmath.4ht)
   29.6 Hfonts
30 latex209.def
31 Sectioning Commands
   31.1 Parts
   31.2 Chapters, Appendixes, and Like Chapters
   31.3 Sections and Like Sections
   31.4 SubSections
   31.5 SubSubSections
   31.6 Paragraphs and Sub-Paragraphs
   31.7 Options 1, 2, 3 for LaTeX
32 Encodings
   32.1 t2benc
   32.2 ot4enc
   32.3 pd1enc
   32.4 inputenc
33 More LaTeX
   33.1 /listoffigures and /listoftables
   33.2 Newline and Vspace
   33.3 Title Page
   33.4 Multi Columns

latex.ltx,

latex source components

<..latex.4ht..>
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % latex.4ht                             2014-07-12-22:36 %
 % Copyright (C) 1997--2009       Eitan M. Gurari         %
 <.TeX4ht copyright.>
 <.exit if already loaded.>
 <.early latex definitions.>
 <.latex changes for tex4ht.sty.>
 <.plain,latex utilities.>
 <.latex ltclass.>     ltclass
                       ltdirchk
 <.latex ltplain.>     ltplain
                       ltvers
                       ltdefns
                       ltalloc
                       ltcntrl
                       lterror
                       ltpar
 <.latex ltspace.>     ltspace
                       ltlogos
                       ltfiles
 <.latex ltoutenc.>    ltoutenc
 <.latex ltcounts.>    ltcounts
 <.latex ltlength.>    ltlength
                       ltfssbas
 <.latex ltfsstrc.>    ltfsstrc
                       ltfsscmp
 <.latex ltfssdcl.>    ltfssdcl
                       ltfssini
                       ltfntcmd
                       ltpageno
 <.latex ltxref.>      ltxref
 <.latex ltmiscen.>    ltmiscen
 <.latex ltmath.>      ltmath
 <.latex ltlists.>     ltlists
 <.latex ltboxes.>     ltboxes
 <.latex lttab.>       lttab
 <.latex ltpictur.>    oltpictur
 <.latex ltthm.>       ltthm
 <.latex ltsect.>      ltsect
 <.latex ltfloat.>     ltfloat
 <.latex ltidxglo.>    ltidxglo
 <.latex ltbibl.>      ltbibl
 <.latex ltpage.>      ltpage
 <.latex ltoutput.>    ltoutput
 <.latex ltfinal.>     ltfinal
 <.non classified latex.>
 <.html /addcontentsline.>
 
 \let\:MClass:=\c:MathClass:
 \NewConfigure{MathClass}[5]{\bgroup
    \let\@nodocument=\empty
    \let\normalcolor=\relax
    \:MClass:{#1}{#2}{#3}{#4}{#5}\egroup}
 
 \let\:MDelims:=\c:MathDelimiters:
 \NewConfigure{MathDelimiters}[2]{\bgroup
    \let\@nodocument=\empty
    \let\normalcolor=\relax
    \:MDelims:{#1}{#2}\egroup}
 
 
 
 \Hinput{latex}
 \endinput
 -_-_-

<..latex ltfsstrc..>
 \edef\:temp{%
   \every@math@size={\noexpand\ifx \noexpand\EndPicture\noexpand\:UnDef
       \noexpand\else \the\every@math@size \noexpand\fi}%
 }
 \:temp
 -_-_-

<..exit if already loaded..>
 \ifx\SaveMkHalignConf:g\:UnDef \else \expandafter\endinput\fi
 -_-_-

Latex prohibits content before the ‘\begin{document}’ by putting ‘\ht:everypar{\@nodocument}’ before ‘\begin{document}’ to get an error if text appears before the beginning. A possible solution is to put sensitive stuff in, for instance, ‘{ \let\@nodocument=\empty ...}’.

It is unsafe to define \romannumeral because it is used within immediate definition \edef, as well as definitions of macro names \csname ...\romannumeral ...\endcsname. Consider also \Configure{enumerate} (e.g., paralist)

<..latex ltcounts..>
 \:CheckOption{enum}\if:Option
    \def\:temp#1{\a:romannumeral {\expandafter
       \:slowroman\romannumeral #1@}\b:romannumeral}
    \HLet\@roman=\:temp
    \def\:temp#1{\a:romannumeral {\expandafter
       \:Slowroman\romannumeral #1@}\b:romannumeral}
    \HLet\@Roman=\:temp
 \item
    :warning{To configure roman numbers use
                        the option ’enum’ (unsafe)}
 \fi
 \NewConfigure{romannumeral}{2}
 -_-_-

<..latex ltcounts..>+
 \def\:Slowroman#1{\ifx @#1\else \@slowromancap
   \if i#1\I:rnum\else
   \if v#1\V:rnum\else
   \if x#1\X:rnum\else
   \if l#1\L:rnum\else
   \if c#1\C:rnum\else
   \if d#1\D:rnum\else
   \if m#1\M:rnum\else
   #1\fi\fi\fi\fi\fi\fi\fi\expandafter\:Slowroman\fi
 }
 \NewConfigure{Roman}[7]{%
    \def\I:rnum{#1}\def\V:rnum{#2}\def\X:rnum{#3}\def\L:rnum{#4}%
    \def\C:rnum{#5}\def\D:rnum{#6}\def\M:rnum{#7}}
 \Configure{Roman}{I}{V}{X}{L}{C}{D}{M}
 -_-_-

<..latex ltcounts..>+
 \def\:slowroman#1{\ifx @#1\else
   \if i#1\i:rnum\else
   \if v#1\v:rnum\else
   \if x#1\x:rnum\else
   \if l#1\l:rnum\else
   \if c#1\c:rnum\else
   \if d#1\d:rnum\else
   \if m#1\m:rnum\else
   #1\fi\fi\fi\fi\fi\fi\fi\expandafter\:slowroman\fi
 }
 \NewConfigure{roman}[7]{%
    \def\i:rnum{#1}\def\v:rnum{#2}\def\x:rnum{#3}\def\l:rnum{#4}%
    \def\c:rnum{#5}\def\d:rnum{#6}\def\m:rnum{#7}}
 \Configure{roman}{i}{v}{x}{l}{c}{d}{m}
 -_-_-