When using default LaTeX styles, you get a rather small text width. This is for a very good reason: readability. However, when you want to add an image, figure or table, this width can be a bit limiting. If you naively add an image (or table) that is wider than …
-
-
LaTeX: inline BibTeX entries with the bibentry package
In the introduction chapter of my PhD dissertation, I had to make a listing of my publications. The obvious brain dead way to achieve this is just typing everything manually in a list. But this feels just so wrong when you're already using BibTeX for managing references and bibliographical stuff …
-
Setting global XFig defaults for working with LyX/LaTeX
-
LaTeX: promille/permille sign
I needed the LaTeX code for the sign that is called the "promille" sign in Dutch. It's the sign like the percent sign "%" ("procent" in Dutch), but with two circles at the bottom. Googling for "latex promille" was not very successful, so I thought this would be a good botsnack …
-
LaTeX trick: putting the subversion revision number on every page
I mostly use LaTeX for writing documents (LyX actually, but that doesn't matter here) and use Subversion for version control. For managing the revision info of a source code file I use Subversion's built in feature Keyword Substitution which expands some special keyword (like
$Date$
or$Revision$
) in the source … -
LaTeX trick: customizing captions
Captions of floats (figures and tables) in LaTeX are by default typeset the same way as the body text. For better readability it could be appropriate to use a different font, font size or margin for the captions. This is possible with the LaTeX package caption.
For example, with the …
-
Using custom LaTeX document classes in LyX
For writing with LaTeX I prefer using LyX because it hides the ugliness of LaTeX source code behind a pseudo-WYSIWYG frontend (the developers call it WYSIWYM: what you see is what you mean ). Including mathematical expressions, however, is very LaTeX minded and comfortable: you type LaTeX math constructs (stuff with …
-
LaTeX: use \textnormal instead of \textrm (or \textsf) in math
If you you want to use normal text in a math environment (mathdisplay, equation,...) you should use
\textnormal{}
instead of\textrm{}
. Apparently the latter is more popular: a google search for "latex textrm" delivers almost 25.000 hits, whereas google search for "latex textnormal" returns not more than 800 hits … -
LaTeX: change the font and other properties of captions of floats
With the LaTeX package
caption
you can change the properties (such as font family) of the captions of floats (tables and figures). It's part of a default LaTeX installation, so probably you don't need installing something.You could use this package to better separate the captions of floats from the …
-
LaTeX: the order of \caption and \label matters in floats
The order of
\caption
and\label
declarations matter in LaTeX floats (tables and figures). It is important to get references to the float right. The\label
should come after the\caption
or even inside the\caption
environment. If you put the\label
before the\caption
you will get a reference …