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

20
votes
1answer
302 views

Defining multiple shorthands quickly

Most of the bloated preambles I see have dozens of lines like \newcommand{\Acal}{\mathcal{A}} \newcommand{\Bcal}{\mathcal{B}} %... \newcommand{\Gcal}{\mathcal{G}} While I can easily code a macro to ...
20
votes
2answers
17k views

Windows Miktex can't find mathtools.sty [duplicate]

When I try to compile my paper I get the following error: ! LaTeX Error: Filemathtools.sty' not found.` Other packages are successfully found and automatically installed, but mathtools.sty is not. I ...
19
votes
2answers
2k 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 ...
19
votes
1answer
18k 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} ...
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 ...
19
votes
2answers
548 views

Different package manager: Why? [closed]

I was wondering why do we need different package managers in TeXLive and MiKTex? Would it not be better and less work for both authors if there was a common approach and even other persons taking ...
19
votes
3answers
5k 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).
19
votes
1answer
6k 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} ...
19
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 ...
19
votes
1answer
239 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?
19
votes
1answer
251 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 ...
18
votes
5answers
2k views

Comprehensive List of LaTeX Packages

I am fairly new to LaTeX and am really struggling with finding the right packages for my document. Is there a resource for 1) looking up the package (e.g. \graphicx) and finding out what it does and ...
18
votes
4answers
1k views

Editing the package

I didn't find anything about this issue, but if I missed something, please point me to it. The documentation on the ctan.org site is usually about how to use the packages in a LaTeX document, but ...
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
226 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 ...
18
votes
3answers
280 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
2answers
25k 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 ...
18
votes
3answers
5k 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 ...
18
votes
1answer
465 views

What packages does beamer load automatically?

I just learned that beamer loads amsmath and graphicx packages automatically, what other packages does it load?
18
votes
2answers
455 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 ...
18
votes
4answers
4k 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 ...
18
votes
3answers
788 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
3answers
11k 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 ...
18
votes
2answers
414 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
2k 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 ...
18
votes
1answer
879 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, ...
17
votes
4answers
2k 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 ...
17
votes
2answers
446 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
663 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 ...
17
votes
2answers
925 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 ...
17
votes
3answers
1k 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 ...
17
votes
1answer
3k 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: ...
16
votes
2answers
369 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
867 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
2answers
739 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
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
2answers
12k views

Where is “texmf” on a Windows install?

On UNIX you have the texmf folder in your home directory where you store packages you've installed yourself, but where is that folder on a Windows install? Yeah, I know that if you use MiKTeX then ...
16
votes
1answer
5k 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 ...
16
votes
1answer
466 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
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
711 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
21k 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 ...
15
votes
4answers
749 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
4answers
524 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
3answers
728 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
245 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
3k views

Strikeout - when which package ? ( ulem vs soul vs …)

When to use which package for strikeout? I see answers : \usepackage{ulem} \sout{Hello World} or \usepackage{soul} \st{Hello world} or \usepackage{cancel} \cancel{Hello world} In what ...
15
votes
1answer
959 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 ...
15
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
1answer
315 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 ...