Linked Questions

120
votes
10answers
9k 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, ...
77
votes
4answers
2k 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: ...
36
votes
7answers
2k views

Should I place \title, \author, \date in the preamble or after \begin{document}?

The motivation for this question Forgive me if this looks very basic to you but nobody has pointed out to me yet until now in a comment to a question that the \title command (and thus the other two ...
23
votes
2answers
3k views

Make hyperref take pdfinfo from \title and \author

I once read about an option for hyperref that automatically takes the info provided via the standard \author and \title, and puts it into the pdfinfo. Now I want to implement it in my template and ...
19
votes
2answers
2k 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 ...
40
votes
1answer
2k views

Packages that need to be included in a specific order

This isn't a real question, so I'm marking it community wiki. When I was new to LaTeX, I thought that the \usepackage command worked much like the #include command of the C language: just put ...
7
votes
3answers
3k views

titling's \thetitle, \theauthor and \thedate don't work

I was trying to use \thetitle, \theauthor and \thedate of the titling package, but none of them worked. MWE: \documentclass{article} \usepackage{titling} \begin{document} \thetitle \theauthor ...
6
votes
2answers
3k views

Is it possible to create a LaTeX preamble “header”?

Is it possible to create a header in LaTeX containing my usual preamble, functioning similar to a header in C? Specifically, can I write a text document (or something similar) with the preamble that I ...
10
votes
2answers
753 views

Are there any situtations where it is better to load a package after other code?

I always place all my packages immediately following the document class, followed by setting information (\hypersetup for example) and customization to my documents (header and footer customization ...
15
votes
1answer
415 views

Sorting preamble packages thematically while accounting for compulsory load orders

Within a document's preamble (or a custom "preamble" package), at times there's the need to take compulsory load orders for certain packages into account. Most packages must be loaded before the ...
8
votes
2answers
155 views

How to clean all personal commands?

I'm trying to improve the answers to my other question to create my personal package which provides some commands, like \alert to write in red color, or some options like lineno to turn on line ...
3
votes
1answer
186 views

Dividing preamble into smaller files

Preamble of my tex file is going to be so long, Can I divide it to some smaller and reusable files? I used \include but it seems that it did not include any thing.
0
votes
1answer
764 views

MLA Package and Thumbpdf

I'm currently trying to set up a template for MLA format. There's one warning that never goes away, however: Package thumbpdf Warning: Thumbnail data file `Project*Name.tpt' not found. Does ...
9
votes
1answer
266 views

What are your best practices to compile only a part of the document or presentation (or how do you prepare the big ones)?

I see that there a number of questions (A, B, C, D, E) on best practices, none of them answer the issue I am going to talk about. We all need to prepare large documents (or slides) from time-to-time. ...
9
votes
1answer
159 views

How do you prepare your preprints?

My first paper has been accepted for publication recently, and I was instructed to send the .tex source code based on one of the two templates available on the journal website. This was painful, both ...

15 30 50 per page