{packages} is about packages in general, e.g. about choosing, installing or using packages. For questions about writing packages, choose {package-writing} instead. If your question concerns a specific package, choose its name as tag. For {document-classes} or {templates} use the respective tag.

learn more… | top users | synonyms (2)

16
votes
4answers
16k views

box around theorem statement

Is there an easy way to put a box around a theorem in LaTeX? For example to state an important theorem. I tried using page 20 of the ntheorem documentation ...
16
votes
2answers
778 views

Do I risk breaking documents by updating my TeX distribution?

I ran into a feature missing because its package was out to date and started the MikTeX update utility for the first time after installing MikTeX in February. The updater found dozens of packages that ...
16
votes
4answers
556 views

Why is LaTeX separated into many thousands of packages?

This question might belong elsewhere but I figured if I posted it here I might come across someone that deals behind the scenes of LaTeX. I'm an assistant Linux Admin at my school and we install LaTeX ...
16
votes
2answers
3k views

Are there any LaTeX packages for multicolumn typesetting besides multicol?

I'm going to need two-column layout (more advanced than LaTeX's \twocolumn - I'll need changing the number of columns without starting a new page or column balancing); however, due to the nature of ...
16
votes
1answer
683 views

Where is the documentation for the nth package

The ctan entry has no documentation and texdoc nth does not find an entry. Any idea where to find documentation for the package options?
16
votes
1answer
520 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 ...
16
votes
1answer
1k views

LuaLaTeX: use or don't use classical font packages?

In the lualatex-doc I am reading under "switching from LaTeX to LuaLaTeX": Don’t load inputenc, just encode your source in UTF-8. Don’t load fontenc, but load fontspec. Don’t use any package that ...
16
votes
3answers
1k views

Reference about “modern” LaTeX usage for scientific works

I am looking for a reference (book, free pdf, website) that would summarize the working of "modern" LaTeX for scientific works (I'm writing my master thesis). I know and have been using LaTeX for ...
15
votes
2answers
2k views

Unload a LaTeX package

Is it possible to unload a LaTeX package? I have a preamble file which I use for most documents. Now suppose I want to use a preamble file preamble.tex and explicitly don't want to use one of the ...
15
votes
2answers
793 views

Easily assign undefined ligatures with pdfLaTeX?

Ulrike Fischer showed how Linux Libertine's special ligatures are accessible. Even though she also pointed me at a chapter of the LaTeX Graphics Companion, I'm not really sure how to get these ...
15
votes
2answers
5k views

Can I \usepackage with a full path?

As the name suggests - can I do something like: \usepackage{/home/nebffa/Desktop/maths/questions/fillwithlines.sty} LaTeX is throwing errors at me when I try to do it.
15
votes
4answers
2k views

Inserting a Creative Commons Licence into a LaTeX document

I'd like to insert a CC license on a manuscript (a book or report). I've seen the page for downloading the CC icons, and also some questions asked in the forum CC logo and Generate CC information. ...
15
votes
4answers
896 views

Any nice packages for word alignment?

I want to visualize word alignments between sentence pairs, where the positions of aligned words may differ between the sentences, and a word in one sentence may be aligned to more than one word in ...
15
votes
3answers
842 views

Where can I find the changelog of TeX Live releases?

I know that TeX Live 2013 is now in beta and that there are already some new packages. I would like to know where the complete changelog will be available, when the new version will be released, and ...
15
votes
2answers
3k views

How do I declare an option that takes an input value?

I know I can declare and execute an option for my package using \DeclareOption{myoption}{\typeout{I did it!}} \ProcessOptions but now I'd like to give the option a value: ...
15
votes
1answer
762 views

Require a certain (or later) version of a package?

Is there a way to enforce that a certain version, or a later version, of a package is loaded when building the document? I've found that compiling a document on another platform, where the package ...
15
votes
2answers
2k views

What's the difference between a class and a style?

What are the actual differences between the two? I am new to LaTeX and I need to create a custom "look & feel" -- should I be looking into making a class or a style?
15
votes
1answer
566 views

amsmath is now latex-amsmath: what does this mean for me?

I saw in the latest updates to CTAN that the amsmath package is now called latex-amsmath. What effects is this change going to make for me? Am I going to have to \usepackage{latex-amsmath} in the ...
15
votes
2answers
264 views

How to find packages/classes

What is the "right" way to search for a package/class to solve a random problem? Whenever I need to find a new package or class, I never feel like I am doing it efficiently. I tend to use a mixture of ...
15
votes
1answer
220 views

How to draw fully packed loops on medial lattice?

I want to draw a variant of the following figure, [Figure 22 of Freedman et al, Annals of Physics,310(2):428–492, April 2004.] The lattice and dashed lines are easy. Using two for loops ...
15
votes
2answers
6k views

Problem/solution environment

I'm writing a textbook and an accompanying solution manual. In the book, I have a series of exercises at the end of each chapter. As the number of chapters and exercises grows, I'm getting to the ...
15
votes
3answers
478 views

Automated removal of unneeded packages

As others certainly do, I generally use a template for my papers, which contains everything I usually need (packages, macros, ...) to typeset my documents. However, my needs sometimes vary, and in the ...
15
votes
1answer
362 views

Why are lstlang*.sty files from listings package loaded 3 times?

During compilation of the following MCE: \documentclass{article} \usepackage{listings} \lstset{language=TeX} \begin{document} \begin{lstlisting} Foo \end{lstlisting} \end{document} the lstlang*.sty ...
15
votes
3answers
373 views

Which packages should I recommend to postgraduates in different academic disciplines?

I'm preparing a list of package recommendations for an intermediate workshop on LaTeX. I avoided providing such a list at the introductory workshop as the tendency is to then add packages without ...
15
votes
1answer
890 views

Is there a document class or package specifically for drafting United States legal documents?

I recently drafted a non-disclosure agreement in TeX using the document class article. I liked doing this a lot and I intend to continue doing my legal paperwork in TeX. Do document classes or ...
14
votes
3answers
8k views

Macro or package for typesetting “LaTeX” (the name)?

I just realized there's a LaTeX package for printing the text of "lorem ipsum". Surely then, there's also a macro / package for writing "LaTeX" (with the proper super-/subscript) in a document. But ...
14
votes
4answers
1k views

meta packages and typesetting

Background(just ignore): Is there an exhaustive list of packages that you should load and of things you should do to improve your document? Here I mean packages and things that have to do with the ...
14
votes
3answers
869 views

How do I determine in which order packages have been loaded?

The \listfiles command will give the list of all loaded files (and therefore also packages) at the end of the .log file, but how do I determine from inside LaTeX, whether package A was loaded before ...
14
votes
2answers
2k views

Package options and \RequirePackage: order of commands and option conflicts?

How do the options of a \RequirePackage command interact with options specified for that same package elsewhere? Here is an example: The pdfx package, if loaded with the a-1b-option, executes the ...
14
votes
2answers
869 views

How to undo \usepackage?

I would like to use two packages which conflict with each others. I hope I can apply them separately whenever I need and then cancel them so as to solve the problem. Is it possible? For example, I ...
14
votes
3answers
686 views

I'm a cargo cult programmer …

... because I don't know why this works \def\my@addextraoption#1{% \xdef\my@extraoptions{% \@ifundefined{my@extraoptions}\@empty\my@extraoptions,% \zap@space#1 \@empty}} ...
14
votes
2answers
13k views

Determine full list of installed LaTeX packages in Ubuntu

Newbie here, just inherited a large (250+ page) doc written in LaTeX after the previous author left the company. Is there an easy way to determine all the LaTeX packages installed on my system? I'm ...
14
votes
1answer
1k views

How to patch a package

I have a document that uses symbols both from the marvosym package as well as the eurosym package. There are two commands that clash and I get an error message (due to \newcommand being used and ...
14
votes
1answer
271 views

Spotcolor bleeds into the surrounding

This question led to a new package: xspotcolor I have a problem using spotcolor package. When using the package for redefining headers, titles, \emph etc. the color bleeds into the ...
14
votes
3answers
6k views

Survey or questionnaire document class or package?

I like to create surveys and questionnaires, what would be a good \documentclass or package to use?
14
votes
1answer
2k views

What's the name of this timeline package in LaTeX?

I tried searching through many resources to identify the package that allows to create this type of time lines: but all in vain. Could anyone, please, point in the right direction?
14
votes
2answers
472 views

Is there a way to revert manually to earlier versions of a package?

Is there a way to revert manually to earlier versions of a package? I know this is a bit weird but I need previous versions of some packages for some reason.
14
votes
3answers
372 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 ...
14
votes
3answers
5k views

Is there a way to use a document class/package from another folder?

I am building a document class and a set of packages to be used as templates for various documents. I'd like to aviod having to copy those over to another folder every time I use them, but I'd also ...
14
votes
1answer
2k views

Typeset a dialogue?

I need to typeset a dialogue in LaTeX, it's for a translation assignment. The original dialogue does something like this: - I found it, I told him. My finger was in the book, where George Best's ...
14
votes
1answer
285 views

Why do AMS document classes incorporate amsthm rather than loading it?

Why do AMS document classes incorporate the amsthm package, rather than loading it using the usual \RequirePackage mechanism the way they load amsmath and amsfonts? The document classes even ...
14
votes
1answer
4k views

LaTeX on Gmail (GmailTex?) [closed]

I added GmailTex to talk about math with my friends via Gmail. However even if I type something like $3^n$, it doesn't turn into a superscript (I confirmed it by sending an email to me.) Do I need to ...
14
votes
1answer
6k views

Europass CV in (Xe)LaTeX

I was requested to re-write my CV in the Europass format, and I would like to do it using (preferably) XeLaTeX. I came across the europecv package, which seems to do the job just fine, but I would ...
13
votes
2answers
5k views

Placing items before \documentclass

When looking in books or at sample code, I always see \documentclass appearing first. Is that absolutely necessary? I have created some test code which seems to compile fine: \def\SetClass{article} ...
13
votes
3answers
2k views

texlive: How to determine which package a font is contained in?

I've written a script that repeatedly runs lualatex file.tex to install missing packages, but I'm having a hard time doing the same with missing fonts. When an error message like ! Font ...
13
votes
2answers
2k views

Is there a package to secure rendered pdf with a password?

Is there a package and command that can secure rendered pdf with a password?
13
votes
2answers
720 views

What “font sets” can I access using packages?

I roughly know how fonts work in LaTeX but right know, I don't want to mess with the details. What I do want to do is to use: \usepackage{[lmodern|palatino|times|...]} to get matching sets of ...
13
votes
1answer
45k views

MikTeX 2.9, install packages on the fly?

I set the Install Packages on the Fly setting to Yes and try to compile my document in Texmaker, but I still get the error File [...] not found, where [...] is the package I need. Basically, I need to ...
13
votes
2answers
259 views

“!Missing $ inserted.” when using svn $Id$ keyword substitution

I'd like to to surface subversion revision numbers for use in the contents of my document. svninfo and svn packages rely on svn keyword substitution to accomplish this, but I get this error when I ...
13
votes
2answers
4k views

Obey spaces with URL package (path command)

Background Using the \path command from the URL package to mark-up directory paths. Some of the paths have spaces. Problem The preamble is set to: \usepackage{algorithm} \usepackage{booktabs} % ...