Example: stock market

Standard Document Classes for LaTeX version 2e

Standard Document Classes for LaTeX version 2e Copyright (C) 1992 by Leslie LamportCopyright (C) 1994-2021 by Frank Mittelbach,Johannes Braams and the LaTeX Project Team2021/10/04 This file is maintained by the LaTeX Project reports can be opened (categorylatex) Thedocstripmodules32 Initial Code33 Declaration of Setting Paper Sizes .. Choosing the type size .. Two-side or one-side printing .. Draft option .. Titlepage option .. openright option .. Two-column printing .. Equation numbering on the left .. Flush left displays .. Open bibliography ..64 Executing Options65 Loading Packages76 Document Fonts .. Paragraphing .. Page Layout .. spacing .. dimension of text ..14 This file has version number , last revised 2021/10 .. placement parameters .. Page Styles.

\if@restonecol When the document has to be printed in two columns, we sometimes have to temporarily switch to one column. This switch is used to remember to switch back. 3 \newif\if@restonecol \if@titlepage A switch to indicate if a titlepage has to be produced. For the article document class the default is not to make a separate titlepage.

Tags:

  Standards, Document, Version, Standard document

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of Standard Document Classes for LaTeX version 2e

1 Standard Document Classes for LaTeX version 2e Copyright (C) 1992 by Leslie LamportCopyright (C) 1994-2021 by Frank Mittelbach,Johannes Braams and the LaTeX Project Team2021/10/04 This file is maintained by the LaTeX Project reports can be opened (categorylatex) Thedocstripmodules32 Initial Code33 Declaration of Setting Paper Sizes .. Choosing the type size .. Two-side or one-side printing .. Draft option .. Titlepage option .. openright option .. Two-column printing .. Equation numbering on the left .. Flush left displays .. Open bibliography ..64 Executing Options65 Loading Packages76 Document Fonts .. Paragraphing .. Page Layout .. spacing .. dimension of text ..14 This file has version number , last revised 2021/10 .. placement parameters .. Page Styles.

2 Conventions .. the page styles ..207 Document The title .. Chapters and Sections .. blocks .. commands .. Counters .. Matter, Main Matter, and Back Matter .. level headings .. Lists .. List Parameters .. Defining new environments .. Setting parameters for existing environments .. and tabular .. boxes .. and eqnarray .. Floating objects .. Font changing ..448 Cross Table of Contents, etc.. of Contents .. of figures .. of tables .. Bibliography .. The index .. Footnotes ..5229 Words .. Date .. Two-column mode .. The page style .. Single or double sided printing ..541 ThedocstripmodulesThe following modules are used in the implementation to directdocstripingenerating the external files:articleproduce the documentclass articlereportproduce the documentclass reportsize10produce the class option for 10ptsize11produce the class option for 11ptsize12produce the class option for 12ptbookproduce the documentclass bookbk10produce the book class option for 10ptbk11produce the book class option for 11ptbk12produce the book class option for 12ptdriverproduce a documentation driver file2 Initial CodeIn this part we define a few commands that are used later on.

3 \@ptsizeThis control sequence is used to store the second digit of the pointsize we aretypesetting in. So, normally, it s value is one of 0, 1 or *article|report|book 2\newcommand\@ptsize{}\if@restonecolWhen the Document has to be printed in two columns, we sometimes have totemporarily switch to one column. This switch is used to remember to \newif\if@restonecol\if@titlepageA switch to indicate if a titlepage has to be produced. For the article documentclass the default is not to make a separate \newif\if@titlepage5 article \@titlepagefalse6 !article \@titlepagetrue\if@openrightA switch to indicate if chapters must start on a right-hand page. The default forthe report class is no; for the book class it s !article \newif\if@openright\if@mainmatterThe switch\if@mainmatter, only available in the Document class book, indicateswhether we are processing the main material in the book \newif\if@mainmatter \@mainmattertrue33 Declaration of Setting Paper SizesThe variables\paperwidthand\paperheightshoul d reflect the physical papersize after trimming.

4 For desk printer output this is usually the real paper sizesince there is no post-processing. Classes for real book production will probablyadd other paper sizes and additionally the production of crop marks for compatibility mode, these (and some of the subsequent) options are disabled,as they were not present in \if@compatibility\else10\DeclareOption{a 4paper}11{\setlength\paperheight {297mm}%12\setlength\paperwidth {210mm}}13\DeclareOption{a5paper}14{\set length\paperheight {210mm}%15\setlength\paperwidth {148mm}}16\DeclareOption{b5paper}17{\set length\paperheight {250mm}%18\setlength\paperwidth {176mm}}19\DeclareOption{letterpaper}20{ \setlength\paperheight {11in}%21\setlength\paperwidth { }}22\DeclareOption{legalpaper}23{\setlen gth\paperheight {14in}%24\setlength\paperwidth { }}25\DeclareOption{executivepaper}26{\se tlength\paperheight { }%27\setlength\paperwidth { }}The optionlandscapeswitches the values of\paperheightand\paperwidth.

5 Assuming the dimensions were given for portrait \DeclareOption{landscape}29{\setlength\@ tempdima {\paperheight}%30\setlength\paperheight {\paperwidth}%31\setlength\paperwidth Choosing the type sizeThe type size options are handled by defining\@ptsizeto contain the last digitof the size in question and branching on\ifcasestatements. This is done forhistorical reasons to stay compatible with other packages that use the\@ptsizevariable to select special actions. It makes the declarations of size options lessthan 10pt difficult, although one can probably use9and8assuming that a classwont define \if@compatibility34\renewcommand\@ptsize {0}35\else36\DeclareOption{10pt}{\renewc ommand\@ptsize{0}}37\fi38\DeclareOption{ 11pt}{\renewcommand\@ Two-side or one-side printingFor two-sided printing we use the In addition we have to setthe\if@mparswitchto get any margin paragraphs into the outside \if@compatibility\else41\DeclareOption{o neside}{\@twosidefalse \@mparswitchfalse}42\fi43\DeclareOption{ twoside}{\@twosidetrue Draft optionIf the user requestsdraftwe show any overfull boxes.}}}

6 We could probably add somemore interesting stuff to this Titlepage optionAn article usually has no separate titlepage, but the user can request \DeclareOption{titlepage}{\@titlepagetru e}49\if@ openright optionThis option determines whether or not a chapter must start on a right-hand pagerequest !article \if@compatibility53 book \@openrighttrue54 !article \else55 !article \DeclareOption{openright}{\@openrighttru e}56 !article \DeclareOption{openany}{\@openrightfalse }57 !article \ Two-column printingTwo-column and one-column printing is again realized via a \if@compatibility\else59\DeclareOption{o necolumn}{\@ Equation numbering on the leftThe optionleqnocan be used to get the equation numbers on the left side of theequation. It loads code which is generated automatically from the kernel fileswhen the format is built.}

7 If the equation number does get a special formatting5then instead of using the kernel file the class would need to provide the \DeclareOption{leqno}{\input{ }} Flush left displaysThe optionfleqnredefines the displayed math environments in such a way thatthey come out flush left, with an indentation of\mathindentfrom the prevailingleft margin. It loads code which is generated automatically from the kernel fileswhen the format is \DeclareOption{fleqn}{\input{ }} Open bibliographyThe optionopenbibproduces the open bibliography style, in which each blockstarts on a new line, and succeeding lines in a block are indented by\ \DeclareOption{openbib}{%First some hook into the bibliography environment is \AtEndOfPackage{%66\renewcommand\@openbi b@code{%67\advance\leftmargin\bibindent6 8\itemindent -\bibindent69\listparindent \itemindent70\parsep \z@71}%In addition the definition of\newblockis \renewcommand\newblock{\par}}%73}4 Executing OptionsHere we execute the default options to initialize certain variables.

8 Note that thedocument class book always uses two sided *article 75\ExecuteOptions{letterpaper,10pt,onesi de,onecolumn,final}76 /article 77 *report 78\ExecuteOptions{letterpaper,10pt,onesi de,onecolumn,final,openany}79 /report 80 *book 81\ExecuteOptions{letterpaper,10pt,twosi de,onecolumn,final,openright}82 /book The\ProcessOptionscommand causes the execution of the code for everyoptionFOOwhich is declared and for which the user typed theFOOoption inhis\documentclasscommand. For every optionBARhe typed, which is notdeclared, the option is assumed to be a global option. All options will be passedas Document options to any\usepackagecommand in the Document \ProcessOptions6 Now that all the options have been executed we can load the chosen class optionfile that contains all size dependent !book book /article|report|book 5 Loading PackagesThe Standard class files do not load additional Document LayoutIn this section we are finally dealing with the nasty typographical FontsLATEX offers the user commands to change the size of the font, relative to the main size.

9 Each relative size changing command\sizeexecutes the command\@setfontsize\size font-size baselineskip where: font-size The absolute size of the font to use from now on. baselineskip The normal value of\baselineskipfor the size of the font se-lected. (The actual value will be\baselinestretch* baselineskip .)A number of commands, defined in the LaTeX kernel, shorten the followingdefinitions and are used throughout. They are:\@vpt5\@vipt6\@viipt7\@viiipt8\@ixpt 9\@ @ @normalsizeThe user level command for the main size is\normalsize. Internally LaTeX uses\@normalsizewhen it refers to the main size.\@normalsizewill be defined towork like\normalsizeif the latter is redefined from its default definition (thatjust issues an error message). Otherwise\@normalsizesimply selects a 10 \normalsizemacro also sets new values for\abovedisplayskip,\abovedisplayshorts kipand\ *10pt|11pt|12pt 88\renewcommand\normalsize{%89 *10pt 90\@setfontsize\normalsize\@xpt\@xiipt91 \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@92\abovedisplayshortskip \z@ \@plus3\p@93\belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@94 /10pt 95 *11pt 96\@ 11\p@ \@plus3\p@ \@minus6\p@798\abovedisplayshortskip \z@ \@plus3\p@99\belowdisplayshortskip \p@ @ \@minus3\p@100 /11pt 101 *12pt 102\@ 12\p@ \@plus3\p@ \@minus7\p@104\abovedisplayshortskip \z@ \@plus3\p@105\belowdisplayshortskip \p@ @ \@minus3\p@106 /12pt The\belowdisplayskipis always equal to the\abovedisplayskip.}

10 The param-eters of the first level list are always given \abovedisplayskip108\let\@listi\@listI}W e initially choose the normalsize \normalsizeWe use\MakeRobustinstead of\DeclareRobustCommandabove to avoid a logentry for the redefinition. But if we are running in a rollback situation (prior to2015) we don t touch \ifx\MakeRobust\@undefined \else111\MakeRobust\normalsize112\fi\sma llThis is similar to\ \DeclareRobustCommand\small{%114 *10pt 115\@setfontsize\small\@ixpt{11}%116\abo vedisplayskip \p@ \@plus3\p@ \@minus4\p@117\abovedisplayshortskip \z@ \@plus2\p@118\belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@119\def\@listi{\leftmargin\le ftmargini120\topsep 4\p@ \@plus2\p@ \@minus2\p@121\parsep 2\p@ \@plus\p@ \@minus\p@122\itemsep \parsep}%123 /10pt 124 *11pt 125\@setfontsize\small\@xpt\@xiipt126\ab ovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@127\abovedisplayshortskip \z@ \@plus3\p@128\belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@129\def\@listi{\leftmargin\le ftmargini130\topsep 6\p@ \@plus2\p@ \@minus2\p@131\parsep 3\p@ \@plus2\p@ \@minus\p@132\itemsep \parsep}%133 /11pt 134 *12pt 135\@ 11\p@ \@plus3\p@


Related search queries