Home General LaTeX tips and tricks → Packages [Previous Page] [Question index] [Next Page]

7. What LaTeX packages do you use?


I use the following third-party packages written for LaTeX: babel, type1cm, courier, sectsty, fncychap, url, graphicx, relsize, geometry, crop, fancyhdr, caption, tocbibind, tocloft, natbib, and amsthhm.

Except for fncychap all these packages are included in the teTeX 2.0 distribution, and the most recent versions of all of them can be found on CTAN.

Overall, my experience with these packages is extremely positive. I have found them to be bugfree and stable, their documentation is excellent, and most importantly, they play well with each other if you want to use a whole bunch of them together.

Below, I reproduce the entire LaTeX preamble section of my thesis.tex master file, just to give an overview of what will be discussed in more detail (with example screenshots) in subsequent tips pages dealing with the effects of the individual packages.

My thesis.tex preamble

%% thesis.tex - main LaTeX file for Leo's PhD thesis.

%% A thesis is a book. No kidding, Sherlock...

%% We want UK-english and Dutch hyphenation patterns.

%% Use scalable, PostScript Type 1 versions of the Computer Modern fonts.

%% Replace the standard Computer Modern Typewriter font LaTeX uses
%% for monospace text with the PostScript font Adobe Courier.

%% Redefine the font used for the section headings to
%% Helvetica-Narrow Bold.

%% Use fancy chapter headers, with Jos Dingjan's modifications,
%% plus my own tweaks. This style is not part of teTeX,
%% so we are using a local (and renamed) copy.

%% Nicely format and linebreak URLs in the bibliography (and elsewhere).
%% Define a new 'leo' style for the package that will use a smaller font.
%% Now actually use the newly defined style.

%% Standard graphics support. Always use this package
%% instead of the older 'graphics' package.

%% Allow relative font size specifications (e.g. \smaller, \larger).

%% For defining all text/page measurements. 170x240mm is the
%% standard thesis page size Ponsen & Looijen require. 124x185mm is
%% simply a text body size that resulted in margins that pleased me.
%% The dvips option will be superceded if pdflatex is used, but is
%% necessary in order to generate a correct PostScript bounding box
%% under standard LaTeX.

%% For printing crop-marks in a final a4 version. This is not used
%% in the final 170x240mm-sized version to be delivered to Ponsen & Looijen.

%% We will completely define our own header strings, so switch the fancy
%% headers on, but nuke all the default values. (Note that this package
%% *has* to load after the geometry package!)
%% Now begin customising things. See the fancyhdr docs for more info.

%% Nicer formatting of figure captions.

%% Make sure that the bibliography is listed in the table of contents,
%% but that the table of contents itself is not.

%% Control the fonts and formatting used in the table of contents.
%% Use Helvetica-Narrow Bold for Chapter entries
%% Because of the font change, the page number becomes too large for the
%% horizontal space LaTeX reserves for it by default. Without the following
%% redefines to fix it, this would cause the Chapter entry page numbers
%% to extend a few points into the right margin. The horror!
%% Aesthetic spacing redefines that look nicer to me than the defaults.

%% Support for more complex bibiography handling.
%% Custom bibliography style defined using the Makebst utility
%% that comes with the natbib package.

%% Include entire AMS Theorem package, just because we want to use the
%% unnumbered \newtheorem* environment it provides.

%% Thesis-specific, self-defined grammar styles, based on originals by
%% Kees van Reeuwijk. These styles work just fine, but have one problem
%% and that is that they cause lots of "underfull hbox" errors during
%% compilation. I have never had the time to look into a way of fixing this.

%% Other thesis-specific macros and redefines.

%% The actual manuscript starts here.



[Previous page] [Question index] [Next page]

Leo Breebaart (leo@lspace.org)
Last updated: 27 June 2016