6.11.5 Base Latex Macros
The "scribble.tex" Latex configuration includes several macros and environments that you can redefine to adjust the output style:
\preDoc —
called before the document content; the default does nothing, while the scribble/manual configuration enabled \sloppy. \postDoc —
called after the document content; the default does nothing. \sectionNewpage —
called before each top-level section starts; the default does nothing, while the scribble/manual configuration uses \newpage to start each chapter on a new page. \SecRefLocal{}{}{} —
the first argument is a Latex label, the second argument is a section number, and the third argument is a section title. This macro is used by secref to reference a section (other than a document or top-level section within a document) that has a number and that is local to the current document. The default expands to \SecRef, passing along just the second and third arguments (so that the label is ignored). \SecRef{}{} —
like \SecRefLocal, but used when the referenced section is in a different document, so that no label is available. The default shows “section” followed by the section number (ignoring the title). The scribble/manual redefinition of this macro shows “§”, the section number, and the title in quotes. \ChapRefLocal{}{}{} and \ChapRef{}{} —
like \SecRefLocal and \SecRef, but for a top-level section within a document. The default implementation defers to \SecRefLocal or \SecRef. \PartRefLocal{}{}{} and \PartRef{}{} —
like \SecRefLocal and \SecRef, but for a top-level section within a document whose part has the 'grouper style property. The default \PartRef shows “part” followed by the section number (ignoring the title). \BookRefLocal{}{}{} and \BookRef{}{} —
like \SecRefLocal and \SecRef, but for a document (as opposed to a section within the document). The default \BookRef implementation shows the title in italic. \SecRefLocalUC{}{}{} and \SecRefUC{}{} —
like \SecRefLocal and \SecRef, but for Secref. The default \SecRefUC shows “Section” followed by the section number. \ChapRefLocalUC{}{}{} and \ChapRefUC{}{} —
like \ChapRefLocal and \ChapRef, but for Secref. The default \ChapRefUCimplementation defers to \SecRefUC. \PartRefLocalUC{}{}{} and \PartRefUC{}{} —
like \PartRefLocal and \PartRef, but for Secref. The default \PartRefUC shows “Part” followed by the section number. \BookRefLocalUC{}{}{} and \BookRefUC{}{} —
like \BookRefLocal and \BookRef, but for Secref. The default \BookRefUC defers to \BookRef. \SecRefLocalUN{}{}, \SecRefUCUN{}, \SecRefLocalUCUN{}{}, \SecRefUN{}, \PartRefLocalUN{}{}, \PartRefUN{}, \PartRefLocalUCUN{}{}, \PartRefUCUN{}, \BookRefLocalUN{}{}, \BookRefUN{}, \BookRefLocalUCUN{}{}, \BookRefUCUN{}, \ChapRefLocalUN{}{}, \ChapRefUN{}, \ChapRefLocalUCUN{}{}, and \ChapRefUCUN{} —
like \SecRefLocal, etc., but in the case that a section/part/chapter number is unavailable. The default implementation of \BookRefUN uses \BookRef with an empty first argument. The default \SecRefLocalUN expands to its second argument in quotes followed by “on page” as a \pageref using the first argument, while the default \SecRefUN expands to its only argument in quotes. The default \PartRef and \ChapRef variants expand to the corresponding \SecRef variant. \Ssection{}{}, \Ssubsection{}{}, \Ssubsubsection{}{}, \Ssubsubsubsection{}{}, \Ssubsubsubsubsection{}{} —
for a top-level section, a second-level section, etc., where the last variant is used for all sections that are deeper than four levels. The first argument corresponds to the optional argument to \section, which is used for the table of contents. \Ssectionstar{}, \Ssubsectionstar{}, \Ssubsubsectionstar{}, \Ssubsubsubsectionstar{}, \Ssubsubsubsubsectionstar{} —
like \Ssection, etc., but for unnumbered sections that are omitted from the table of contents. \Ssectionstarx{}{}, \Ssubsectionstarx{}, \Ssubsubsectionstarx{}{}, \Ssubsubsubsectionstarx{}{}, \Ssubsubsubsubsectionstarx{}{} —
like \Ssection, etc., but for unnumbered sections (that nevertheless appear in the table of contents). \Sincsection, \Sincsubsection, \Sincsubsubsection, \Sincsubsubsubsection, \Sincsubsubsubsubsection —
increments the section counter. \Spart{}{}, \Spartstar{}, \Spartstarx{}{}, \Sincpart —
like the section commands, but used for in place of \Ssection{}{}, \Ssectionstar{}, etc. for a part with the 'grouper style property. SInsetFlow environment —
for a nested-flow with the 'inset style name. SCodeFlow environment —
for a nested-flow with the 'code-inset style name. SVInsetFlow environment —
for a nested-flow with the 'vertical-inset style name. \SCodeBox{}, \SVInsetBox{} —
for a nested-flow with the 'code-inset or 'vertical-inset style name, respectively, and as the content of a table cell. The content is installed into a TeX box using \setbox1.