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

17
votes
2answers
316 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
1answer
182 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?
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 ...
17
votes
2answers
250 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 ...
17
votes
1answer
220 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 ...
16
votes
2answers
321 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
245 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} ...
16
votes
3answers
794 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
627 views

Inserting git commit date without hooks

Is there a way to insert the last git commit date into a document without having to add git hooks (like the gitinfo package does it)? I'm not 100% sure how LaTeX packages work, but if they can access ...
16
votes
2answers
2k 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
885 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
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
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 ...
15
votes
4answers
547 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
506 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
314 views

What packages does beamer load automatically?

I just learned that beamer loads amsmath and graphicx packages automatically, what other packages does it load?
15
votes
1answer
577 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
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 ...
15
votes
2answers
205 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
3answers
7k 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 ...
15
votes
1answer
373 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
872 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
206 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
240 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
496 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
582 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 ...
14
votes
2answers
962 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
318 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
642 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 ...
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: ...
14
votes
1answer
233 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
532 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 ...
14
votes
0answers
230 views

Documenting on code revisions

I have made modifications to a few files of a C++ program. I would like to document on these changes in a nice LaTeX report, by showing exactly what I modified and explaining why I did so. Since ...
13
votes
4answers
809 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 ...
13
votes
3answers
1k 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
438 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
737 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 ...
13
votes
2answers
167 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
1answer
167 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 ...
13
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?
13
votes
1answer
1k 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 ...
13
votes
2answers
390 views

Is there a simple way to open “.sty” files by something similar to the “texdoc”?

Is there a simple way to open ".sty" files by something similar to the "texdoc"? I'm looking for something like texsty to simply open .sty files.
12
votes
3answers
14k 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 ...
12
votes
3answers
6k 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. ...
12
votes
2answers
875 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 ...
12
votes
3answers
478 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 ...
12
votes
1answer
345 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?
12
votes
1answer
4k 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} ...
12
votes
2answers
694 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 ...
12
votes
2answers
451 views

Did I misunderstand \RequirePackage? I don’t understand an option clash

Have a look at the following example, please. \documentclass{article} \usepackage{filecontents} \begin{filecontents}{my.sty} \RequirePackage{xcolor} \end{filecontents} \RequirePackage{my} ...