{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)

18
votes
3answers
1k views

Customizing LaTeX - create a document class or a package?

Are there general rules for when to create a document class vs. creating a package to customize LaTeX? Does one have benefits over the other? My specific need is to create a customized page layout, ...
18
votes
2answers
966 views

draw colored world/US map in LaTeX

I'm trying to draw maps similar to these in a LaTeX pdf document: I want to auto-generate them from a list of pairs (country,color) to determine the colors. I have found the package pst-map2dII ...
18
votes
3answers
263 views

Is there a package that can automatically sort items based on tags?

For example, I write a problem booklet with a ton of problems. I don't want to use a database. In the input file, I write as follows. \pro{geometry} Find the area of ... \endpro \pro{trigonometry} ...
18
votes
1answer
212 views

The origin of filecontents

Does anyone know why the filecontents environment was introduced? What is the purpose of packing it all in one file, but without using a tarball?
18
votes
2answers
2k views

Should I use fix-cm?

I recently became aware of the existence of the fix-cm package. I've looked at the documentation in fixltx2e.pdf, but it's not clear to me exactly what the problem is that it fixes. Should I worry ...
18
votes
3answers
633 views

Using indexing packages with memoir

Friends, as you probably know, I have a quite complex document for cataloging songs. :) As my normal workflow, I use the book document class with some dozens of packages loaded. I've been playing ...
18
votes
1answer
6k views

Auto Package download for TeXLive

I use MiKTeX on Windows and quite satisfied with it. Recently I started switching all my tasks toward open-source alternatives, and in the course I would love to use Linux. But the problem is in Linux ...
18
votes
2answers
361 views

Best practice of (technically) preparing files (on Windows systems) for CTAN

Similar questions were asked before but I did not found one for the recently discovered problem. What I want to do is uploading a package to CTAN which is in good technical shape. I did this before ...
18
votes
1answer
787 views

Is there any package for LaTeX dealing with a database?

Is there any package for LaTeX dealing with a database (with some of the fields being LaTeX code). For example, given a collection of problems with fields {id, name, author, refs, statement, ...
18
votes
1answer
227 views

Should packages on CTAN be widely applicable?

I have a couple 'packages' (more appropriately called styles) that I'd like to painlessly distribute to my classmates. The most straightforward way to do this is via CTAN, but I'm not sure if it is ...
17
votes
2answers
210 views

Pretending a package has been loaded

I am trying to use imakeidx and the regexpatch package in the same class. Since imakeidx depends on the xpatch package and xpatch provides the same commands (same names, improved implementation) as ...
17
votes
3answers
7k views

Which package can be used to write BNF grammars?

I googled and found two packages: mdwtools bnf Unfortunately, both of them have extremely poor documentation. There are only one to two examples for each one, which makes it hard to follow. ...
17
votes
2answers
430 views

What to do with 237 eps files?

I have some 237 .eps files that represent the printer's ornaments from the small press The Underground Grammarian. I would like to build and provide (to CTAN) a package similar to the pgfornament ...
17
votes
1answer
395 views

What packages does beamer load automatically?

I just learned that beamer loads amsmath and graphicx packages automatically, what other packages does it load?
17
votes
2answers
383 views

Load package after other package with \AfterPackage

I want to group packages together (in the real document, I load many more packages) and want to solve the sorting of the packages with commands like \AfterPackage from KOMA-Script. I am using this ...
17
votes
4answers
3k views

Typesetting a poem book for manual binding

I would like to typeset a poem book, which I am planning to print then stitch and bind manually. My requirements are: The book should be printed on A4 paper, with two A5 pages on each side. It ...
17
votes
3answers
9k views

Can I download CTAN packages from the command-line? (Ubuntu)

I'm reading this, where one of the respondents says to "get a package from CTAN". There are no installation instructions in the package mentioned. I've installed texlive-full and use the long-term ...
17
votes
3answers
1k views

What are good packages for laying out a play?

I'm formatting a play as a LaTeX book. Is there any particular package the is best for laying out books like this (aside from the LaTeX-book class)? I'm wondering if there are any examples of ...
16
votes
4answers
1k views

LaTeX “under construction”, “in work” or “work in progress” symbols

Are there "under construction", "in work" or "work in progress" symbols in one of the LaTeX symbol packages? Something like this (google search link). I have tried detexity, but could not find an ...
16
votes
2answers
340 views

What is the quickest way to check whether I already have a given package?

What is the quickest way to check (on Linux) whether I already have a given package? In particular I'm interested in whether there is something that will take less time than the 20 seconds or so it ...
16
votes
3answers
3k views

How do I find which pgf version I have installed on Windows (MikTeX)?

I'm not sure how to find which version of pgf with MikTeX installed on my computer (Windows 7 - 64 bit).
16
votes
1answer
12k views

Subcaption package: compatibility issue

There is a compatibility problem between the CIFA document class and the subcaption package. When I compile the following example (with PDFLaTex): \documentclass{cifa} ...
16
votes
3answers
840 views

Is there a charts package for LaTeX?

I wanted to include some more or less complex charts into my LaTeX document. I have attached a picture that shows an example how it should like. Is there any charts package in LaTeX that allows me to ...
16
votes
3answers
4k 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 ...
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
3answers
833 views

what TeX package(s) should I use for a Church Bulletin

I create Sunday Bulletins (aka service leaflets) for an Episcopal Church each week. Currently, I use the MS Publisher (PITA) I also do some web design using Ruby. While a physics undergrad, I ...
16
votes
1answer
1k views

In which order should I load inputenc and fontenc?

When Iā€™m using pdfLaTeX, my preamble usually contains \usepackage[utf8]{inputenc} and \usepackage[T1]{fontenc} Should these two be loaded in any particular order? What problems could arise if ...
15
votes
3answers
18k views

Error in TeX Live ā€“ Font … not loadable: Metric (TFM) file not found

I freshly installed 'basic' version of TeX Live 2012 (not full, only basic version). I have following line in my code: \usepackage[T1]{fontenc} I get following error: ...
15
votes
2answers
1k 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
641 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
4answers
633 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
1answer
5k views

Why does amsmath print a warning about a foreign command?

I was wondering what was the cause of the following warning message with the specific \usepackage used below: Using the following: Preamble \documentclass[amssymb,twocolumn,aps]{revtex4} ...
15
votes
4answers
508 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 ...
15
votes
1answer
606 views

Find out which packages are used

I have written a LaTeX Document and it compiles fine on my machine, but now I would like to give the sources to someone else. Is there a quick way to list all the packages that have been used for ...
15
votes
2answers
805 views

Conditional “if a package is available”

I'd like to do something like the following (in pseudo-TeX) \ifpackageavailable{packagefoo} \usefoo \else \usefooreplacement \fi For example, I know that a template file I wrote is used by people ...
15
votes
2answers
229 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
412 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 ...
15
votes
3answers
931 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
1answer
257 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
296 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 ...
14
votes
3answers
550 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
1k views

Two conflicting packages in one document ā€” doable?

I have two packages I want to use in the same document. Specifically musixtex and tengwarscript. However they do conflict. Both packages use some of the same commands, obviously for very different ...
14
votes
2answers
1k 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
3answers
18k views

How to install a latex package in MacOS TeXLive?

I just downloaded cyrillic package into a temp directory and executed: sudo latex cyrlatex.ins It works, but it produces a few dozen files in the same directory. How to place them into my TeXLive ...
14
votes
2answers
16k views

Finding a Ubuntu package for a sty file [duplicate]

Possible Duplicate: How do I install an individual package on a Linux system? I've had this problem for a while now on Ubuntu. Whenever I have a missing .sty file (right now, it's ...
14
votes
3answers
530 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
1answer
824 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
198 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
332 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
1answer
2k views

Multivariate polynomial long division using LaTeX

How do I typeset polynomial long division using multiple variables in LaTeX? I am hoping to be able to do polynomial long division using 2 or more divisors. Currently, the packages I am using are: ...