I am interested in your opinion regarding the recommend packages for a standard technical document (Engineering, Physics). I normally use the following header:
\documentclass{article}
% Basic Packages for Encoding (Input AND Output) and Langauge Support
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
% Change Layout with a User-Friendly Interface
\usepackage{geometry}
% Include Pictures with a User-Friendly Interface
\usepackage{graphicx}
\usepackage{float}
% Extended Math Support from the Famous 'American Mathematical Society'
\usepackage{amsmath}
% Just for Demonstration Purposes
\usepackage[math]{blindtext}
\begin{document}
\blinddocument
\blindmathpaper
\end{document}
Which leads to
I am wondering which other packages are recommended nowadays by the specialists here in this community. I found the following packages and I think they are debatable candidates:
- inputenx (Link)
- xcolor (Link)
- ragged2e (Link)
- fixmath (Link)
- fixltx2e (Link)
- mathtools (Link)
- caption (Link) and not the older caption2 (Link) as one could think
- fancyhdr (Link)
- biblatex/biber (Link) of course for larger documents
- Update 2020: xurl (https://ctan.org/pkg/xurl)
I didn't mention tikz
on purpose. It's great but I don't consider it as a standard package for the average user.
Important for me is that packages like fixltx2e
do normally not require to configure/code much or anything. Which is important for average users.
The class memoir
(Link) and the koma-script
classes (Link) are very important of course. But I want to discuss this without document classes.
I am looking for stable and good packages – not the newest ones. I want to use the information here to help students who are new to LaTeX.
And of course it's always a compromise between too much packages and not using the appropriate packages.
I think a collection/list of good packages (that you use very often) with a very brief
description would be a good outcome of this question.
What do you think?
Reaction so far
- A one page, dictatorial guide to LATEX packages by alan munn, last update: April 4, 2015
- Possible duplicate of question: What packages do people load by default in LaTeX? (user alan munn)
amssymb
(Link) andbm
(access bold symbols in maths mode, Link) (user daleif)mathtools
loadsamsmath
(user bernard)- One should use
utf8
as the input encoding (which is supported bybiber
and not bybibtex
, user bernard) - Using
titleps
(Link) fromtitlesec
distribution (Link) instead of fancyhdr (Link) (user bernard). fixltx2e
(Link) will be included in the next LaTeX update by default (user Johannes_B)- Don't mix
koma-script
classes (Link) withfancyhdr
(Link) andfloat
(Link) (user Johannes_B) cfr-lm
(Enhanced support for the Latin Modern fonts, Link), thumbs up forfancyhdr
, maybeenumitem
,microtype
,chemformula
andsiunitx
.xcolor
is not needed necessarily (I agree, user cfr)
Best Answer
I just ran a workshop on LaTeX for postgraduate students. Here is the list of packages which I recommended they all load in every document:
This is, I think, the right answer. This is not to say that I did not tell them about packages - I did. Nor is it to say that I made no recommendations - I did. But I made conditional recommendations. I wanted them to understand that packages extend LaTeX in particular ways. You load them if you need those extensions. I also made very few such recommendations.
This workshop was introductory. It assumed no prior experience with LaTeX. No participant had used LaTeX before. (One had used Scientific Word but had never seen LaTeX code.)
When I run the follow-up, I plan to recommend loading a small number of packages routinely. Right now, my planned list includes the following
babel
withbritish
orwelsh
orwelsh,british
passed to the document class;inputenc
with optionutf8
;fontenc
with optionT1
.I will also, probably, give them a list of 'what if I want to...?' with suggested packages, and I may try to give them a list of discipline-specific packages, if I can manage it or if I can get people here to volunteer the information.
Why so minimal? Because the huge temptation is to add packages with abandon, and the result is a mess. Better to load fewer packages initially, as a beginner, and learn which ones you need later.
Note that this is very different from the list of packages which I always, or almost always, load. Even if I cleaned up my code (which I should), that list would be a significant one. But I know why I load those packages, I'm aware that I load them, and I have at least some sense of some of the problems they may cause. I want custom page layouts and diagrams and finer-grained control over fonts and microtypography and fancy cross-references and other fiddly bits. Those are not, in my view, things which somebody who has just started to use LaTeX should be thinking about.
I realise that this is not the answer you want. It is, however, the answer which I think is correct. I may be wrong but, for whatever it is worth, that is what I recommend.
Perhaps I should also say that, if I had not been answering questions here for a while, my list of recommendations would have been much closer to the list of packages I use. That would, I think, have been a bad thing - indeed, I am convinced that it would have been a Bad Thing - and so I think that my answer is at least a minimally informed one.
EDIT
At the intermediate workshop I'm scheduled to run in June, I do plan to give students a conditional package list.
I would on NO account give this to students when introducing LaTeX.
Right now, my draft list looks as follows:
EDIT
I've decided to add a second page with discipline-specific packages. Hence,
turnstile
andforest
have been removed from my general list. The above now represents the first page which lists general packages. The next page is currently the subject of this question and so I'm removing that part of the code from here, since it is not relevant to the core of this question anyway.Here is the first page of the handout:
Thanks to ManuelKuehner for adding screen shots from an earlier version of this answer.