Linked Questions

220
votes
13answers
29k views

Which packages should be loaded after hyperref instead of before?

The hyperref documentation says: "Make sure it comes last of your loaded packages". The reason is that it redefines many LaTeX commands. It's a rule of thumb that helps to avoid errors. However, ...
0
votes
0answers
33 views

Any Overlapping or Misordering in My Preamble? [duplicate]

I've used both hyperref and url to enable href and url, but heard that they're redundant. Also I realized that ordering \usepackages matters. For example, \usepackage{hyperref} \usepackage[...
109
votes
5answers
21k views

Importing a Single Symbol From a Different Font

Is there a general way to change the font of a particular symbol without switching packages? For example, suppose I'm using Computer Modern for my entire document, but I want the "subset" operator to ...
37
votes
7answers
6k views

What to decide before writing a math book?

Until now, I have only written short documents in LaTeX. Whenever I encounter a problem or an error, I google'd it, and copy-paste'd the package/newcommand to my code. I use the same beginning code ...
100
votes
4answers
6k views

Techniques and packages to keep up with good practices

Question What techniques and packages are there to keep up with good practices? What I already know I already know of the following packages for this kind of purpose: \RequirePackage[l2tabu,...
0
votes
0answers
376 views

when does the order of packages in a preamble matter? [duplicate]

I am writing my first very long document (thesis) and decided to try to keep things super organized to avoid future headaches. One thing I decided to do is to categorize the things in my preamble, ...
84
votes
1answer
2k views

Automated management of package options and loading order

This question led to a new package: pkgloader(CTAN, Github) LaTeX package conflicts are a common source of frustration: (1) (2) (3) (4) (5) (6). To quote Freek Dijkstra: Package conflicts in ...
4
votes
1answer
101 views

Is there a hierarchy between packages?

In the code: \documentclass{article} \hyphenation{acro-nym} \usepackage[none]{hyphenat} \begin{document} \fbox{\begin{minipage}{3cm} TUG is an acronym. It means \TeX\ Users Group. \end{minipage}} \...
4
votes
1answer
386 views

Creating a new type of cross reference and referencing them spelling the same text

I would like to create 2 commands \newcommand\deffeat[1]... \newcommand\reffeat[1] ... The deffeat command would print out as something like \textbf{F001}, and the reffeat command would reference ...
141
votes
5answers
13k views

Best practice on organising your preamble

I am putting together a large document and my preamble is unwieldly and disorganised. What order does it make sense to load packages. Obviously, hyperref goes last, apart from things that have to go ...
20
votes
4answers
2k views

Possible conflicts with fixltx2e?

I only recently came across the fixltx2e package. Given that it patches aspects of LaTeX, my spidey-sense begins to tingle out of a concern for possible package conflicts. Are there known conflicts? ...
1
vote
1answer
182 views

Chapter title not displayed in pdfbook mark: Only sections and subsections are displayed

I am trying to get the PDF output of my thesis with bookmarks using hyperref package. I am able to get the sections and subsections displayed in bookmark however the chapter is not displayed. How can ...
8
votes
2answers
2k views

minted's listing environment with hyperref and caption package together

I use the minted package for code highlight. I use its listing environment. I also use the hyperref package to provide links all through my document: figures, tables, listings, etc. If I import the ...
31
votes
2answers
3k views

Should the fontenc package be loaded before or after font packages?

I seem to recall reading somewhere that fontenc should be loaded either before or after the packages loading fonts, but I cannot remember which. I don't see differences between loading it before and ...
8
votes
0answers
697 views

What's the right order when loading packages? [duplicate]

Possible Duplicate: Non-commutative packages I remember reading in some reference guide that the order of loading packages with \usepackage in principle doesn't matter. Real life, however, has ...