14k views

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, ...
3k 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: ...
3k 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 ...
5k 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 ...
3k 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 ...
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 ...
5k 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 ...
6k 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 ...
318 views

### Advice on how to help non-techies writing in LaTeX [closed]

Several of friends are soon going to write their theses, and I have offered to help them set it up in LaTeX. Their studies cover the entire spectrum, ranging from literature to medicine. None of them ...
1k 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 ...
521 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 ...
842 views

### How to code-fold in TeX-Studio or LaTeX in general?

I want to fold the whole part before \begin{document} where it is just formatting the LaTeX document. Is there a way to do this in LaTeX, in general, or at least in TeXstudio? Could I use some ...
563 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. ...