7
votes
1answer
141 views

Loading a font via package or fontspec

In Xe(La)TeX, what is the difference between loading a font via its package, i. e. \usepackage{tgpagella}, and loading it through fontspec (\fontspec{TeX Gyre Pagella}). When loaded with the package, ...
3
votes
0answers
33 views

Multiple \usepackage vs comma separated package names [duplicate]

What, if anything, is the difference between \usepackage{foo,bar} and \usepackage{foo} \usepackage{bar}
23
votes
2answers
471 views

Multi-line options with the `\usepackage` command

When including a package using the \usepackage command that has a lot of options, are there: Any restrictions on how the options can be split across multiple lines? Any best practices for formatting ...
8
votes
1answer
54 views

Potential side-effects associated with a dash in a package/class name?

Common practice for naming packages and classes seems to be, using regex-like notation: [a-z][a-z0-9]* In other words, the name usually starts by a lowercase letter, followed by any sequence of ...
27
votes
1answer
276 views

Best practice for fixing a clash between packages without altering the .sty files?

Here is another casualty of TeX's flat namespace and another reason to start using LaTeX3... I noticed today that the algorithm2e and keystroke packages clash. More specifically, they both define a ...
13
votes
1answer
2k views

How should one maintain and update a MiKTeX installation?

Every once in a while after updating MiKTeX, the installation gets into an inconsistent state. This might be a problem with the packages (an example is described in this question), but sometimes ...
36
votes
3answers
6k views

Why use .sty files?

Why is it preferable to put inclusions of commonly used packages and user defined commands in a .sty file instead of putting them in an ordinary .tex file?
26
votes
1answer
2k views

When to use the xcolor package instead of the color package?

Can someone explain when to use the xcolor package instead of the color package? Unless you are creating your own specific colors, the differences between the packages seem to be fairly superficial. ...
4
votes
1answer
134 views

Should I load packages (for instance, all AMS packages) separately or all together?

I was reading some post here at SE and I noticed that many people load packages one by one. For example, \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amsthm} and so on. Usually, I load ...
59
votes
2answers
1k views

Detecting unused packages in LaTeX document

I have quite a bad habit of copy-and-pasting my packages from one LaTeX document to another. Is there any way we can detect unused packages (i.e. \usepackage commands) so that they can be removed from ...
8
votes
1answer
336 views

XeTeX: better using system fonts or packages?

I've recently switched to XeTeX. In my document I use this code to set the fonts: \usepackage[math-style=ISO,bold-style=ISO]{unicode-math} \usepackage{xunicode} \usepackage{fontspec} ...
27
votes
2answers
502 views

Coordinating the work of Biblatex style authors

I am not sure whether this is an admissible question. If it is not, please close it. The problem Biblatex opens up the realistic possibility of highly complex citation systems such as those used in ...
22
votes
3answers
1k views

Modifying .sty files?

Yesterday I did some changes in the layout of my TeX document. I couldn't accomplish the changes until I opened the .sty files and modified some of their code. I am sure this is not the best idea. For ...
11
votes
2answers
457 views

How frequently should one update packages?

When programming, I take some care regarding updating of external dependencies, to be sure that my code isn't affected. With LaTeX (I'm using MikTeX), it seems harder to know when I should update ...
14
votes
3answers
329 views

Does LaTeX allow for namespaces to eliminate the risk of package clashes?

I often get conflicts between distinct sty files, due to things as simple as variable names. The latest one was between proof.sty (which permits to more proofs automatically to the appendix) and ...
15
votes
3answers
3k views

What is the preferable setup for MiKTeX to keep all packages up-to-date easily?

By default, MiKTeX is set up for all users to the folder C:\Program Files\MiKTeX 2.9 However, packages added on-the-fly go to the folder C:\Users\CurrentUser\AppData\Roaming\MiKTeX\2.9 (in case of ...
73
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: ...
60
votes
3answers
5k views

Theorem packages: which to use, which conflict?

As far as I know, one can create theorem environments using any of amsthm, ntheorem, thmtools and probably more. How should I define my theorem environments? Is one package clearly superior? Which ...
64
votes
6answers
3k views

How to keep up with packages and know which ones are obsolete?

I'm an on and off user of LaTeX so I'm not familiar with every package out there. Having said that, whenever I use LaTeX and need to accomplish a certain goal (i.e. generate a list of appendices), I ...
20
votes
4answers
1k 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? ...
0
votes
1answer
4k views

What are the most popular LaTeX packages? [duplicate]

Possible Duplicate: What packages do people load by default in LaTeX? As subject. What are the most popular LaTeX packages?