Indlæg tagget ‘Latex’

LaTeX caption options

In LaTeX the size and type of caption text, is normally the same as for the rest of the text. This can sometimes be confusing with long captions, because it can seems like the rest of the text.
The Caption package can be used to change the caption text, by adding
\usepackage[options]{caption}
to the preamble of your [...]

Læst resten af dette indlæg »

Word-wrap in LaTeX \table?

I am trying to make word-wrap in a table, which isn’t going that well :)
I found a solution at this blog, which uses
\begin{tabular}{|c|p{5cm}|p{5cm}|}
to set the width of the two last columns to 5 cm. It is futhermore possible to use
p{\linewidth-2cm}
which for me is better, but I still would prefere not to have any fixed width [...]

Læst resten af dette indlæg »

Depth / number of levels in the table of content

If you need to adjust the depth / number of levels in the table of content, use
\setcounter{tocdepth}{n}
where n is the level, starting at 0.
This must be set in the preample – i.e. before \begin{document}

Læst resten af dette indlæg »