Archive for category: LaTeX
29 July, 2010 (06:30) | LaTeX, [English Posts] | By: Wolfgang
Probably the easiest way to set a specific column width and a certain type of alignment is to use the package ragged2e:
\documentclass{article}
\usepackage{inputenc}
\usepackage{array}
\usepackage{ragged2e}
\begin{document}
\begin{tabular}{p{20mm} >{\RaggedLeft}p{20mm} }
foo & bar \\
\end{tabular}
\end{document}
If you don't want to use the ragged2e package the following works too. Note that now \tabularnewline instead of \\ is necessary in order to typeset the ...
Tags: LaTeX, tabular |
4 July, 2010 (06:30) | LaTeX, [English Posts] | By: Wolfgang
Sometimes it is necessary that the section heading isn't listed in the table of contents of a LaTeX document as is, but as a slightly modified entry. To show how to do so, I chose to additionally list the author of a section in the TOC but not in the section heading itself.
\documentclass{report}
\begin{document}
\tableofcontents
\vspace{20mm}
\newcommand{\titlE}{Lorem Ipsum ...
Tags: addcontentsline, LaTeX, table of contents |
2 July, 2010 (06:30) | LaTeX, Mac OS X, [English Posts] | By: Wolfgang
Todays short post describes how to enable inverse search in a typical LaTeX workflow on OS X. That means, that by clicking somewhere on the pdflatex/xelatex generated PDF, MacVim will be opened or brought to foreground, and the cursor jumps to the corresponding location in the LaTeX file. Although usage of the following components ...
Tags: LaTeX, Mac OS X, MacTex, MacVim, pdflatex, Skim, SyncTeX, XeTeX |
27 June, 2010 (06:30) | LaTeX, [English Posts] | By: Wolfgang
Sometimes I like to have page numbers on pages I use pdfpages on. I searched for a solution quite a while until I finally found one in the package's manual (The least obvious location to search for it, of course ;). Here is the solution so you don't have to RTFM too:
By default, the ...
Tags: LaTeX, pdfpages | 1 comment
16 June, 2010 (01:04) | LaTeX, [English Posts] | By: Wolfgang
To adjust the font size in XeTeX add the Scale option as shown below:
\setsansfont{Helvetica}
Tags: LaTeX, XeTeX |
18 May, 2010 (20:23) | LaTeX, [English Posts] | By: Wolfgang
Every so often I want to add a whole multipage PDF-Document to the appendix of a LaTeX document. To do so I use the great pdfpages package which can be found at http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/.
If your TeX distribution doesn't come with pdfpages preinstalled, install it and then add \usepackage{pdfpages} to your preamble.
The only problem is that ...
Tags: includegraphics, LaTeX, pdfpages |
14 May, 2010 (00:45) | LaTeX, Mac OS X, Vim, [Deutschsprachige Einträge] | By: Wolfgang
Durch Verwendung einer der beiden nachfolgend angeführten Methoden sollten Probleme mit Umlauten am Mac endgültig der Vergangenheit angehören:
Kodierung ändern
Am schnellsten geht es, die Kodierung auf applemac zu setzen: \usepackage{inputenc}
Danach sollten Umlaute ganz normal angegeben werden können.
Ersetzen
Persönlich bevorzuge ich die seit jeher von LaTeX vorgesehene Variante Umlaute anzugeben: Dabei wird einfach \"a für ä, ...
Tags: LaTeX, Mac OS X, Umlaut, Umlaute, Vim |
10 May, 2010 (23:16) | Applications, LaTeX, Mac OS X, [Deutschsprachige Einträge] | By: Wolfgang
Das TeX Live Utility ist eine dringende Programmemfehlung an alle, die mit MacTeX arbeiten und ihre TeX-Pakete lieber mit Hilfe eines grafischen Frontends anstatt auf der Konsole verwalten.
Tex Live Utility hilft sowohl bei der Installation von neuen Pakten sowie bei der Aktualisierung oder Entfernung bestehender Pakete.
Das nützliche Programm ist im MacTeXtras Archiv (erhältlich ...
Tags: LaTeX, Mac OS X, MacTex, Tex Live, Tex Live Utility |