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

5
votes
4answers
2k views

Verbatim Environment in Figure Caption

verbatim environment is not working in figure caption. Checked How to put \verb command inside of \textbf{} block? and Verbatim inside a command is not working. \documentclass[11pt, double ...
59
votes
7answers
6k views

How to add some visual style and pizzazz to course notes?

LaTeX is wonderful for writing mathematical papers, but while the output is perfectly typeset it is not visually very exciting. And although it may just be "familiarity breeds contempt", I am ...
36
votes
4answers
25k views

Smileys in LaTeX

I would like to include smileys in my LaTeX document. Is there any package with lots of different smileys? In mnsymbol and wasysym, I found some general symbols: \documentclass{article} ...
37
votes
2answers
38k 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: ...
29
votes
4answers
12k views

Packages: graphics vs graphicx

Different websites suggest using one of those two packages. \usepackage{graphicx} \usepackage{graphics} What are differences between them? Which is better?
17
votes
2answers
943 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 ...
1
vote
1answer
265 views

Packages to install once for all

I just upgraded my Ubuntu from 12.04 to 14.04. Then, I have manually installed tex-common, texlive-base and texlive-latex-recommended. And I realize that some packages do not exist anymore. For ...
78
votes
4answers
3k 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: ...
73
votes
11answers
7k views

Are there other “fun” packages like the “coffee stains” package?

I'm trying to convert some friends to LaTeX and have come up against a (to me) unexpected objection: there are too few packages that support "fun" (really), to which I responded: I know there are ...
52
votes
2answers
15k views

What does each AMS package do?

In my view, any document with a substantial amount of mathematics should load the packages from AMS-TeX. Hence, most of my document's preambles contain \usepackage{amsmath, amsthm, amssymb, amsfonts} ...
35
votes
3answers
3k views

Nicely force 66 characters per line

I would like to have "something" (a package, a trick, a macro, ...?) that makes it possible for me to nicely play with the margins (or the layout) in order to set the average or typical number of ...
29
votes
5answers
6k views

What is the best package out there to typeset proof trees?

So, I want to typeset some proof trees, i.e. trees of inference rules like those in natural deduction (see diagram below). Which are the best packages that you have found that allow you to do this, ...
31
votes
1answer
24k views

Gantt chart package

I need a package to draw a Gantt chart in LaTeX, the primary criteria is just: ease of use. I am spending too much time learning "packages" here and there, this just needs to get a simple job done. I ...
61
votes
5answers
14k views

What's the difference between \RequirePackage and \usepackage?

I understand that "the convention is to use \RequirePackage in a package or class and \usepackage in a document", but apart from that, is there any practical difference between the two commands? (I ...
21
votes
5answers
883 views

Using KOMA-Script packages with other classes

When speaking of KOMA-Script most people will refer to its classes scrbook, scrreprt, scrartcl and perhaps scrlttr2. But not everyone will know, that part of the bundle are also some packages, that ...
22
votes
1answer
2k views

How to install a package from an older version of TeXLive?

I am using TeXLive 2010. I wanted to try xelatex for better unicode support. But I am unable to install these new packages as the TeXLive mirrors have moved on to 2011. tlmgr: package repository ...
24
votes
2answers
7k views

Option clash with xcolor and TikZ

I want to draw some coloured circles, so I loaded tikz in my preamble. However, now xcolor is telling me that it has an "option clash". How should I fix this? \documentclass{article} ...
20
votes
3answers
2k 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 ...
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 ...
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 ...
14
votes
2answers
2k 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 ...
9
votes
1answer
2k views

Decimal Long Division

Does anyone know of a package or macro that handles decimal long division? For example, I want to convert 3/8 to a decimal and show all of the steps. I found a macro for longdiv that works great for ...
5
votes
2answers
8k views

How to install LaTeX .zip package (from CTAN) using texhash on a 'nix system?

Is there an automated script which places files in the relevant directory tree in ~/texmf/ and is that all that is required to install a package (in addition to calling texhash on ~/texmf/)?
22
votes
3answers
2k 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 ...
21
votes
3answers
4k views

Linux Libertine package and fonts not working anymore (fall 2012)

So in the last couple of weeks I've had some issues with the Linux Libertine font and package, both don't seem to work anymore on a completely up-to-date version of MacTeX (which is equivalent to TeX ...
5
votes
2answers
5k views

Package repository down, how to relocate?

I would like to use the function of TeXnicCenter 1.0, where is automatically downloads missing packages used. The problem is, that the repository it wants to download from does not exist anymore (the ...
39
votes
3answers
12k views

Most useful additions in KOMA-Script?

(Background: I'm a beginner who will mostly use LaTeX for university articles and reports, but no math. Also, as I reside in Canada, the German typography conventions, which I understand KOMA-Script ...
49
votes
6answers
10k views

What are benefits of e-TeX for LaTeX users?

The etex package provides an interface to e-TeX features. What advantages does it offer to LaTeX users? Are there any possible disadvantages like incompatibility to any other package or can I just ...
16
votes
1answer
482 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 ...
22
votes
1answer
2k views

mix marginnotes with marginpars without overlap

We are trying to put the figure caption as well as the footnotes in the margin and got very good results with the tufte-latex package. However, we have to manually adjust the offset of each sidenote ...
14
votes
4answers
12k 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 ...
12
votes
1answer
573 views

Loading a package conditionally

Is it possible to load some package from a .sty file only if some option is selected? (Naive approach \DeclareOption{something}{\RequirePackage{something}} doesn't work.)
11
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?
8
votes
2answers
1k views

Defining a new command for making functional lines / package

As you have probably guessed from the title my mother tounge is not English. Therefore I have no idea if "Functional lines" is the correct term for what I am looking for. Basically I am looking to ...
10
votes
1answer
31k 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 ...
7
votes
2answers
122 views

Is there a way to create a standalone folder/document with non standard packages?

I am working on an article which will be compiled on another machines (of somebody else). I don't want to depend on the other person to install missing packages. Is there a way to include them with ...
6
votes
1answer
4k views

How to change fonts

I'm sure this is a newbie question, but I can't figure this out. I have tried to follow the advice here: http://en.wikibooks.org/wiki/LaTeX/Fonts and here: ...
20
votes
1answer
306 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 ...
6
votes
1answer
10k views

How to install additional LaTeX packages in Debian/Ubuntu

I just installed texlive-latex-base package from official Ubuntu repo, now I have to add some modules (ucs and utf8x) for compiling .pdf files with Cyrillic encoding, so, how to install it? I found ...
5
votes
2answers
345 views

How can I ignore everything except a specified environment?

In other words, I'd like to have the comment environment of the verbatim package "inverted". I am pretty sure I read about some package allowing this some time ago, but I can't recall its name (nor ...
13
votes
3answers
4k 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 ...
8
votes
1answer
9k views

How can I change the package repository?

The package repository shows that the packages can be installed from internet. But I need it to be installed from random package repository. How can I change it Please help me
7
votes
1answer
3k views

how to use MnSymbol along with other packages

I'm writing a file about algebraic topology, which means that I need all sorts of mathematical symbols, along with many various packages. I tried to use MnSymbol for its various arrows, only to find ...
2
votes
1answer
8k views

How to fix “LaTeX Error: File `somepackage.sty' not found”?

I am using TeXworks 0.4.5 r1280 with MikTeX 2.9 on Windows 7 64-bit. When I add \usepackage{datetime} and try to typeset the document, I get a dialog window like this: I select "Install", ...
62
votes
3answers
2k 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 ...
42
votes
2answers
13k views

Which package can be used to draw automata?

I'm looking for a LaTeX package which helps drawing automata problems. I googled and found A package for drawing automata and graphs (Version 0.4). But I'm not sure is this package a standard one, or ...
38
votes
5answers
6k views

What package supports this kind of timeline?

I found some examples of timelines on the site, but they don't seem fit for the type of graph I want to create. Basically I'd like to create one of those timelines you see in books, where you compare ...
35
votes
1answer
5k 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. ...
28
votes
1answer
394 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 ...
20
votes
1answer
19k 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} ...