LaTex – Typesetting help
Tabulars
Multirow: http://www.ctex.org/documents/packages/table/multirow.pdf
Multicolumn:
Typesetting lists, tabulars, etc. with braces
http://www.golatex.de/geschweifte-klammer-in-einer-tabelle-t4898.html
Using the bigdelim-Paket
URLs and Emails
breaking URLs http://ftp.gwdg.de/pub/ctan/macros/latex/contrib/breakurl/breakurl.pdf
emails: http://markelikalderon.com/2007/10/16/email-links-in-latex-generated-pdfs/
http://tex.stackexchange.com/questions/268/whats-the-best-way-to-write-e-mail-addresses \newcommand{\mail}[1]{\href{mailto:#1}{\nolinkurl{#1}}}
Include figures
http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions#Figures
Captions can be handled with the packet \usepackage{caption} http://www.ctan.org/tex-archive/macros/latex/contrib/caption/
A change of
\renewcommand{\figurename}{Fig.}
(AFTER \begin{document}) fixes this.
The Trim option
|
This option will crop the imported image by l from the left, b from the bottom, r from the right, and t from the top. Where l, b, r and t are lengths. | |
|
For the trim option to work, you must set clip=true. |
http://en.wikibooks.org/wiki/LaTeX/Importing_Graphics
Different size im Math mode
\Bigg|_{\mbox{\footnotesize%
$\begin{aligned}u&=u(x,y)\\[-4pt] v&=v(x,y)\\[-4pt] v’&=v'(x,y,y’)\\[-4pt] &\ldots\end{aligned}$}}
Typesetting commutive diagrams using Tikz
http://www.felixl.de/commu.pdf
Subfigures etc…
According to the link http://www.golatex.de/subfig-vs-subcaption-floatrow-etc-t4226.html the subcaption or the floatrow package should be used to do this…
http://www.tug.org/texlive/Contents/live/texmf-dist/doc/latex/caption/subcaption.pdf
Hack to align the subfigures at the top and place the caption side by side:
\begin{figure}[htb]
\centering%
\begin{minipage}[t]{.5\linewidth}\vspace{0pt}
\centering
\includegraphics[scale=.35]{1}%
\end{minipage}%
\begin{minipage}[t]{.5\linewidth}\vspace{0pt}
\centering
\includegraphics[scale=.22]{2}
\vspace*{\fill}\vspace*{\fill}
\end{minipage}\\
\begin{minipage}[b]{.5\linewidth}\vspace{0pt}
\subcaption{}
\end{minipage}%
\begin{minipage}[b]{.5\linewidth}\vspace{0pt}
\subcaption{}
\end{minipage}%
\caption{…}
\end{figure}
Minipage alignment
To align minipages vertically one can use the [tbc] option. However, one also may need to add a \vspace{0pt} to the top of each minipage in order to see an effect
http://www.latex-community.org/forum/viewtopic.php?f=4&t=1059
ftp://ftp.tex.ac.uk/tex-archive/info/epslatex.pdf
Minipage with fixed height
http://me.in-berlin.de/~miwie/tex-refs/html/latex.html
\begin{minipage}[position][height][inner-pos]{width} text \end{minipage}
References in other documents
Producing alignment with hfill
http://www.giss.nasa.gov/tools/latex/ltx-238.html
Optional arguments
http://stackoverflow.com/questions/1812214/latex-optional-arguments
xparse package http://ftp.gwdg.de/pub/ctan/macros/latex/contrib/xpackages/xparse.pdf
Raisebox (2011-07-12)
To shift things vertically one can use the raisebox command http://www.personal.ceu.hu/tex/spacebox.htm
Text formating in Math Mode (2011-07-12)
In math-mode one should use http://www.andy-roberts.net/misc/latex/latextutorial10.html
\mathrm instead of\textrm and so forth...
QR-Codes (2011-08-10)
There is a blog entry here: http://xaphire.de/recipes/?p=344
Basically the packet http://ctan.org/tex-archive/graphics/pstricks/contrib/pst-barcode is used.
To use pdflatex see this link http://www.tug.org/pipermail/texhax/2009-September/013160.html
solution is based on \usepackage{auto-pst-pdf,pst-barcode} and to compile one has to use
pdflatex -shell-escape <file> Information can be encoded using the MECARD format http://code.google.com/p/zxing/wiki/BarcodeContents
Leave a comment