ertza

software librea eta lokalizazioaren arteko ertzean.

Archive for November, 2008


Customizing verbatim text in LaTeX

Recently, when writing a document using LaTeX, I’ve often mixed normal text with verbatim text. Sadly, text written using \verb macro was printed in a larger size than the normal text, so things were misplaced.

A solution: the fancyvrb package. Using fancyvrb it’s possible to customize the printing of this kind of text. Now you can also use verbatim text in footnotes, just putting \VerbatimFootnotes on your document.

The only thing you have to care about is using \Verb and \Verbatim instead of the usual \verb and \verbatim (note the case difference).

Now, to set an option in a global manner, it’s enough using \fvset and passing the fancyvrb package options between braces.