Académique Documents
Professionnel Documents
Culture Documents
Homepage: www.latex4ei.de please report misstakes immediately. by Emanuel Regnath, contact emanuel.regnath@tum.de Created 17. November 2013 at 16:54 1
6.6. Delimeters
8. Floating Environments 9.2. Quotation Marks 10.2. References with hyperref
(.) (.) [.] [.] b.c \lfloor.\rfloor 8.1. Figures with graphicx \cite{key } Cite a reference
Language Symbols LaTeX
|.| |.| {.} \{.\} d.e \lceil.\rceil \label{marker } Set a marker for cross-reference, of-
k.k \|.\| |.| \vert.\vert h.i \langle.\rangle \ begin { figure } German ... \glqq \glq ... \grq \grqq ten of the form \label{sec:item} like
Use \left( expr \right) to stretch any delimeter to the height of expr \ centering English ... \lq ... \rq \label{fig:diag1}.
Or \big, \Big, \bigg for manual sizing e.g. \Big\| \Big\| \ includegraphics [ width =9 cm ]{./ img / diagram . pdf } <. . . > \ref{marker } Give section/body number of marker.
France \flqq \flq ... \frq \frqq
\ caption [ title for LOF ]{ this is the long title }
\pageref{marker } Give page number of marker.
\ label { fig : example 1} I think, said Anna, he shouted This is Larss car!, when I saw him.
6.7. Arrows \ end { figure } \footnote{text} Print footnote at bottom of page.
Every combination of left,right,up,down with arrow(s) \url{url} Creates click-able web-adress.
Load image: \includegraphics[width=x]{file}
9.3. Numbers and Dates
7 \mapsto \leadsto \href[options]{url}{text} click-able link
Alter numbering: \renewcommand\thefigure{\arabic{figure}} Numbers Look Usage \hyperref[marker ]{text} click-able ref
\rightarrow \Rightarrow
8.1.1 Subfigures with subfigure
\longrightarrow = \Longrightarrow old-style as part of text, dates
Usage \subfigure[caption]{graphic, label} 10.3. Reference management software supporting BibTEX
\leftarrow \Leftarrow lining 1234567890 as math value
Mendeley: free, Win/Linux/Mac, import from several websites
\longleftarrow = \Longleftarrow Citavi: free, Win
\uparrow \Uparrow
8.2. Tables British American German
\downarrow \Downarrow \ begin { table } 27/06/93 06/27/93 27.06.1993 11. Include beautiful Matlab Plots
\leftrightarrow \Leftrightarrow \ centering 27 June, 1993 June 27, 1993 27. Juni 1993 Same font, line width, vector graphic
\leftleftarrows \rightrightarrows \ begin { tabular }{ ll }
International notation (ISO 8601): yyyy-mm-dd: 1993-06-27
\leftrightarrows \rightleftarrows \ textsc { Name } & \ textsc { Desc .}\\ \ hline
\leftrightharpoons
\rightleftharpoons
test 1 & is no good idea &\\ 12. Own Commands and Writing Packages
bla 2 & even worse &\\ 9.4. Spacing
\ end { tabular } \usepackage[options]{package} load package
a\!b ab a\,b ab a\;b ab a\quad b a b
6.8. Physical Units with siunitx \ caption { My first Table } \newcommand[paranum]{\newcmd}{tex #1} define command
\ label { tab : example 1} ab ab a\>b ab a\ b ab a\qquad b a b
Use the package siunitx for correct display of numbers and units. \hspace{length}, \vspace{length} *: even at line start \renewcommand{\cmd}{ latex #1,#2 } alter command
It provide the commands \num{<number>}, \si{<unit>}, and \ end { table }
\phantom{text}, \vphantom{text} \let\cmdcopy\cmd copy a command
\SI{<number>}{<unit>}. Some examples: Protected space ~ Read this document CTAN
Usage: \begin{tabular}[htbp]{@{}lrc|p{3cm}}
Column distance: \setlength{\tabcolsep}{5pt}
7.123 456 1012 \num{7.123456e12} Some important variables:
Adjust row distance: \renewcommand{\arraystretch}{1.5} 9.5. Boxes and Rules
[g] = m s2 [g] = \si{\meter \per \second \squared} Partial lines: \cline{2-3} instead of \hline
Normal: \parbox[pos][height][contentpos]{width}{text} or
Counters: \thepage, \thesection, \thefigure
Additional packages: longtable, booktabs, colortbl Lengths: \textwidth, \parindent, \parskip
E = 1.3 mm kV E = \SI{1.3}{\kilo\volt\per\milli\meter} \begin{minipage}[pos][height][contentpos]{width} text
You can use all SI units (pascal, henry, ...) and not only the 8.3. Source Code Listings with listings Prevent line breaking: \mbox{text}
base units. It is also possible to change the style of display with Options: \lstset{basicstyle=\tt, language=C} Lift Text: \raisebox{lift}[height][depth]{text} 12.1. Plain TEX
\sisetup{per-mode=reciprocal} or \sisetup{per-mode=fraction}: Languages: C,C++,Java,Matlab,Python,HTML,XML,bash,... Framed Box: \framebox[width][pos]{text} or \fbox{text} These plain TEX commands should be used carfully
Prefixes like \kilo,\deca,\mega,\micro Resize: \scalebox{10}{Giant} Fonts \rm, \sf, \sc, \sl, \it, \tt
Environment: \begin{lstlisting} code \end{lstlisting} Lengths: \setlength{\fboxsep}{10pt}, \setlength{\fboxrule}{2pt} Definitions \def\newcmd{texcode}, \let\newcmd\cmd
Inline: \lstinline?code?
7. LaTeX4EI classes & packages If \ifnum\counter<10 true text \else false text \fi
latex4ei_thesis: layout with TUM colors \ begin { lstlisting } 10. Bibliography with BibTEX
scientific: useful scientific macros int i =0; 13. Useful Weblinks
dx \diff x N, R,!
C \N, \R, \C for ( i = 0; i < 10; i ++){ 10.1. BibTEX entry types
x1 printf ( " Line % i " , i ); LaTeX4EI www.latex4ei.de
x \vec x \vect{ x_1 \\ x_2 } @article Journal or magazine article.
x2 } Font & Symbols https://de.wikipedia.org/wiki/Hilfe:TeX
\ end { ltlisting } % missing s ! fields: author, title, journal, year, volume Color Schemes http://colorschemedesigner.com
" #
1 2 @book Book with publisher. Tipps for Package Writers:
A \ma A \mat{ 1 & 2 \\ 3 & 4}
e 3 4 fields: author/editor, title, publisher, year
9. Correct Typography
bF r \FT b r
DT F
\DTFT
@techreport Tech report, usually numbered in series.
fields: author, title, institution, year
bL r \LT bZ r \ZT 9.1. Hyphen and Dashes
@phdthesis PhD. or other thesis.
Additional function names (upright, correct spacing): Rule: The hyphen is never placed between two spaces!
fields: author, title, school, year
\const, \sinc, \grad, \rot, \div, \tri, \rect, \erf
Name Source Example Usage
\ b ibl iog raph yst yle { alphadin }
hyphen - X-ray, in- and output connect words \ bibliography { < bibliographyfile . bib >}
en-dash -- 1 5, Paris Rom seperate numbers.
em-dash --- Yesor no? Punctuation.
minus $-$ 53=2 Equations.
Homepage: www.latex4ei.de please report misstakes immediately. by Emanuel Regnath, contact emanuel.regnath@tum.de Created 17. November 2013 at 16:54 2