Example: confidence

LaTeX Cheat Sheet - CTAN

Reference Sheet for a Thesis C. Layout Lists Colors with xcolor with LATEX2e and KOMA - Script Changing Page Layout with geometry \begin{itemize} with bullets \item or \item[ symbol ] . \begin{enumerate} with numbers \item \usepackage{xcolor}. Let KOMA - Script know of geometry by option usegeometry=true. All examples were tested with pdflatex. \begin{description} with bold words \item[ word ]. \definecolor{DarkBlue}{RGB}{0, 115, 207}. The package mentioned in the headings has to be included (see ). \colorlet{col_section}{DarkBlue}. \usepackage[left=2cm, right=2, top=3cm, bottom=4cm, \begin{labeling}[ separator ]{labelinglabel} \item[ word ]. Compile three times after last change (esp. docs with references). bindingoffset=1cm, inlcudeheadfoot]{geometry} \textcolor{red}{text in red} or {\color{red}text}.

ReferenceSheetforaThesis withLATEX2eandKOMA-Script ß Allexamplesweretestedwithpdflatex. ß Thepackagementionedintheheadingshastobeincluded(seeB.2). ß ...

Tags:

  Sheet, Teach, Cheat sheet

Information

Domain:

Source:

Link to this page:

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

Other abuse

Advertisement

Transcription of LaTeX Cheat Sheet - CTAN

1 Reference Sheet for a Thesis C. Layout Lists Colors with xcolor with LATEX2e and KOMA - Script Changing Page Layout with geometry \begin{itemize} with bullets \item or \item[ symbol ] . \begin{enumerate} with numbers \item \usepackage{xcolor}. Let KOMA - Script know of geometry by option usegeometry=true. All examples were tested with pdflatex. \begin{description} with bold words \item[ word ]. \definecolor{DarkBlue}{RGB}{0, 115, 207}. The package mentioned in the headings has to be included (see ). \colorlet{col_section}{DarkBlue}. \usepackage[left=2cm, right=2, top=3cm, bottom=4cm, \begin{labeling}[ separator ]{labelinglabel} \item[ word ]. Compile three times after last change (esp. docs with references). bindingoffset=1cm, inlcudeheadfoot]{geometry} \textcolor{red}{text in red} or {\color{red}text}.

2 \begin{enumerate} . \colorbox{gray!25}{color gray faded by 25\%}.. A. LaTeX Basics Auto-completion determines unspecified dimensions (under or over \item First item Predefined colors: specified as well), here width and height of text (see ). \item Second item\label{it:second} % see References white gray black red green blue cyan magenta yellow Units Other options: paper=a4paper, landscape|portrait, includehead, \end{enumerate}. Available units for length and dimensions: includefoot, includeheadfoot, twocolumn Fade a color with color !value between 0 and 100. Changing page layout mid document: \newgeometry{ opt, opt, .. } Headings in color: \setkomafont{disposition}{\color{color }}. bp point (typographic) mm millimeter in inch em width of M.

3 Px pixel (1/72in) cm centimeter pc pica ex height of x Enhanced Lists with enumitem Header and Footer of Page (aka running heading) Load: \usepackage{enumitem} Footnotes Document dependent units z \textwidth, z \linewidth, z \columnwidth, z \textheight with z a percentage value, \lehead \cehead \rehead \lohead \cohead \rohead Example (for enumerate): \footnote{text } Print footnote marker in text and footnote at \textwidth means 55% of the actual width of the text. \setlist[enumerate,1]{label=\Alph*)} A) one bottom of page 6 6 6 6 6 6. \baselineskip minimum vertical space between the bottom of two \ihead \chead \setlist[enumerate,2]{label=\alph*)} a) one \footnotemark Print footnote marker in text ( within tabu- successive lines in a paragraph.

4 \setlist[enumerate,3]{label=\roman*)} b) two lar or caption).. \ohead Amounts like \smallskipamount, \medskipamount, \bigskipamount. \setlist[enumerate,4]{label=\arabic*)} B) two \footnotetext{text } Print footnote at bottom of page % delete default settings and define your own \usepackage[automark]{scrlayer-scrpage} Example (for legal list): Reserved Characters (see also , cf. H) 1. one \clearpairofpagestyles \newlist{legal}{enumerate}{10}. two References with hyperref (loads url implicitly). \ introduces a command \ohead[]{\headmark} \ofoot[\pagemark]{\pagemark} \setlist[legal]{label*=\arabic*.,noitems ep}. \textbackslash Use: \begin{legal} \item ..\end{legal}. three \autocite{citekey } Cite a bibliographic reference (package biblatex). { } embraces arguments, creates logical parts \{ \} strawberry \label{marker } Set a marker for cross reference, often if the form [ ] embraces optional arguments [ ].

5 % Variant for a thesis with horizontal rules at head and foot \label{sec:item} or \label{fig:diag1}. % comments: code after % will be ignored. \% \usepackage[headsepline= :,footsepline= :, Separate Files \autoref{marker } Give type name and number of marker & separates columns in tabular-like environments \& plainfootsepline,automark]{scrlayer-scrp age} After preamble within the text place:\include{file } Text starts and \clearpairofpagestyles \autopageref{marker } Give abbreviation of page and page # parameter for own command declarations \# ends on a new page. file has to be in the same directory as the \ohead[]{\headmark} \ofoot[\pagemark]{\pagemark} number of marker $ text style math mode (abbr. for \( .. \) ) \$ master file. Otherwise specify a path: \include{path/file }.

6 \ModifyLayer[addvoffset= ]{ }. In preamble place: \includeonly{file1,file2 } to run only these files. \url{url } Print clickable web page _^ index/exponent only valid in math mode, a12 see \ModifyLayer[addvoffset= ]{ } \href[options ]{url }{text } Print clickable link Use \input{file } includes a file without starting/ending on a new \setkomafont{pageheadfoot}{\small}. page (\includeonly not valid). \hyperref[marker ]{text } Print clickable reference B. Preamble (before \begin{document}) Style: \urlstyle{xx } with xx a style like tt , rm , sf or same . E. Text Names for autoref (package babel): Documentclass (necessary) Linespread with setspace \renewcaptionname{language }{\typename autorefname}{text }, Use: \documentclass[opt,opt,.. ]{class } Load: \usepackage[onehalfspacing]{setspace} for line spacing.

7 Paragraphs ( new idea in content ) \renewcaptionname{english}{\subsectionau torefname}{section}. Recommended classes: scrartcl, scrreprt, scrbook, scrlttr2 Paragraphs are separated by an empty line in the code or by \par. Non-KOMA - Script classes: beamer, koma-moderncvclassic D. Document Structure (see also L) A \\ produces a new line use sparingly, seldom needed outside tabulars. Acronyms with acro Correct Overfull Box Warnings with more than 4pt (look into log file).. Common options with default Values available (subtotal) Start Document \usepackage{acro,hyperref,longtable,tabu } %next 5 to praeambel fontsize=11pt 10pt | 12pt ( also valid) \begin{document} Complete document contents. \end{document} \acsetup{list-style=longtabu,list-headin g=addchap}.

8 Text Symbols/Characters (see also ). \DeclareAcroListStyle{longtabu}{table}{t able=longtabu, paper=a4, paper=portrait a3 | a5 | b4 | letter, landscape A lot of diacritic symbols can be typed directly, . table-spec=@ parskip=no half | full Title \S _ \textunderscore{} ~ \textasciitilde{} \DeclareAcronym{ecm}{short=EM,long=Elect ro Machining}. headings=big small | normal simple title: \author{text } \title{text } \date{\today} \maketitle .. ^ \textasciicircum{} .. \ldots | \textbar chapterprefix=false true title page self designed: \begin{titlepage} text \end{titlepage} \ac{EM} or \Ac{EM} for capitalized first letter Other symbols need packages, \texteuro (textcomp) \printacronyms open=right (scrbook). captions=oneline any (scrartcl, scrreprt) | left nooneline Table of Contents, List of Figures (for other List of see & G).}

9 \tableofcontents \listoftables \listoffigures Fonts captions=tablebelow,figurebelow tableabove, figureabove KOMA option toc=listof (see ) generates entries for TOC. Command Declaration Effect F. Figures & Tables (floating environments). toc=nolistof listof | listofnumbered bibliography=totoc | totocnumbered nottotoc \textrm{ text} {\rmfamily text} Roman family Headings Figures with graphicx twoside=true (scrbook) false (scrartcl, scrreprt) \textsf{ text} {\sffamily text} Sans serif family Load: \usepackage{graphicx}. twocolumn=false true \part{ title} \chapter{ title} Typewriter family \texttt{ text} {\ttfamily text} Use: \includegraphics[opt ]{file } (png, jpg, pdf). draft=false true (show overfull boxes) \section{ title} \subsection{ title} \subsubsection{ title} \textmd{ text} {\mdseries text} Medium series With figure' the environment to place a graphic is meant.

10 The figure Options of document class are passed to every loaded package. \paragraph{ title} \subparagraph{ title} \textbf{ text} {\bfseries text} Bold series caption is printed where the caption command is placed in the input. Set or change options later in file, \KOMA options{twoside=true} \chapter only valid in documentclass scrbook and scrreprt \textup{ text} {\upshape text} Upright shape Extra vertical space is controlled by the KOMA option captions (see ). Use * variants for headings without numbering, no change in counter \textit{ text} {\itshape text} Italic shape Use: \begin{figure}[pos ] ..\caption{..}\label{fig:x} \end{figure}. Loading Packages and no entry in table of contents. \textsl{ text} {\slshape text} Slanted shape Parameter: pos is a suggestion for placing, it can be ignored by TEX.


Related search queries