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

10
votes
3answers
2k views

Adding a CTAN package to a MacPorts-maintained TeX installation

I have installed TeXlive through MacPorts and now discover that I am missing some package. For clarity let's use a trivial example and say I am missing lipsum.sty. I now have two options: Option 1 ...
10
votes
3answers
751 views

How to implement a command that checks for loaded packages?

I use the following code to check if a package is loaded: \RequirePackage{ltxcmds} \newcommand{\IfPackageLoaded}[2]{\ltx@ifpackageloaded{#1}{#2}{}} However, sometimes I want to check if more than ...
10
votes
3answers
2k views

How to use \bigtimes without pain

I've been fighting with mathabx lately and it's not really worth my time, so I tried switching to MnSymbol which also modifies some of my regular symbols. Is the best solution just to make my own ...
10
votes
1answer
481 views

Availability of LaTeX packages' functionality in ConTeXt, XeTeX, and LuaTeX

I am considering trying out ConTeXt, XeTeX, and LuaTeX, but one concern of mine is the fact that I am using a large number of LaTeX packages. There are a number of questions comparing these TeX ...
10
votes
1answer
249 views

Loading a package more than once

What would happen when you load a package more than once, say via \usepackage{<package>} or \RequirePackage{<package>}. For example: \documentclass{book} \usepackage{geometry} ...
10
votes
3answers
212 views

How many LaTeX classes and packages are there (say, on CTAN)?

Well, the question is pretty self-explanatory. (I'm writing a short tutorial on LaTeX, and wanted some trivia;)).
10
votes
2answers
746 views

How to resolve conflicts in symbol packages?

I want to use symbols from wasysym and marvosym packages: \usepackage{wasysym} \usepackage{marvosym} but it gives an errors as both packages have the command of \CheckedBox. I do not want to use ...
10
votes
4answers
246 views

“Killmargins” package?

Editors such as "Gummi" show a split-screen with the LaTeX source code on the left, and a preview of the later document on the right. However, having a substantial paper margin makes editing more ...
10
votes
2answers
2k 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} % ...
10
votes
4answers
565 views

Is there a package for warning about unbalanced delimiters?

I'm copy-editing a rather lengthy set theory book. One thing I'd like to check systematically is whether all left-right unambiguous delimiters (parentheses brackets curly, square and angle) are ...
10
votes
1answer
2k views

installing comicsans to TeX Live, Windows

I need help to install the comicsans package and the fonts. My system is TeX Live 2011, and Windows 7. Below is what I did: Copied comic.ttf and comicbd.ttf in C:\texlive\texmf-local\fonts\ttf. (I ...
10
votes
2answers
140 views

Conditionally use package and define command

I'm creating a class which should define a command if some package is available: \IfFileExists{eforms.sty}{ \usepackage[xetex]{eforms} \everyTextField{\textFont{GaramondNo8}\textSize{12}} ...
10
votes
1answer
169 views

Inserting document compiled from LaTex code inside a .tex file

Is there a way to insert a document within a document? The inserted code is fully .tex compliant and could be compiled as a document on its own. I envision an article document, where inside the ...
10
votes
2answers
992 views

Is there a tool/script available to simply install packages locally?

This question is not on how to manually install packages but how to install packages automatically via script. This question is not about MikTeX or the limited tex package management in certain linux ...
10
votes
3answers
3k 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?
10
votes
1answer
183 views

Update a package after TeX live freeze?

I realized that I want/have to update a package (moderncv). The problem is that TeX Live went frozen – so there are no more updates. Is the only thing to do is wait till the release of the next TeX ...
10
votes
2answers
1k views

Correct way to distribute/embed an image in a LaTeX package/document?

I am creating a new document class that needs to render an image (e.g., a logo) on the title page. What is the correct way to distribute image with the class? Should the image file be distributed ...
10
votes
1answer
334 views

Using \BeforePackage to load a package before hyperref does not work

I am using the lipics document class, which includes hyperref. I want to load the float package, which should be loaded before hyperref, without changing the document class. As suggested in this ...
10
votes
1answer
181 views

Directory structure for a large CTAN package upload

I'm going to upload my first package to CTAN. But after reading all the upload guides from CTAN and TeXLive I'm still feeling daunted by the directory structure. My package is rather complex and by ...
9
votes
2answers
134 views

How to call a package added previously

I'm using the package mcode to show matlab code in my thesis. This package requires the xcolor package so it automatically loads it. My problem is that I have to call the table option in the xcolor ...
9
votes
2answers
556 views

What are good packages / techniques for writing more readable LaTeX *code*?

A while ago I stumbled upon the semantic package --- its 'math ligatures' feature in particular --- and the whole way in which I write math-code in LaTeX changed. Instead of \[ \sem{\sigma}_s^x ...
9
votes
3answers
987 views

Package switches within the document?

Many packages come with switches, to be defined in the preamble. Is it possible to hit such a switch also in the body of the document? Example: Can I switch from the functionality of ...
9
votes
5answers
3k views

Is there a simple way to use the gentium font in latex?

I'd like to use the gentium font in a LaTeX document, and the instructions I found at this site make it look rather difficult. Is there a simple package that is now available that would allow me to ...
9
votes
2answers
654 views

Using package locally

Is there a way to use a package locally? Here is the case... I NEED to use \phiup on my document, however it needs the using of package pxfonts or txfonts. However, when I use either of those ...
9
votes
2answers
696 views

How do I detect the options passed to the documentclass from my own style?

In the listings package, they note that "a global \documentclass-option draft is recognized, so you don’t need to repeat it as a package option" I tried looking into its source to see how it ...
9
votes
3answers
285 views

Hyperref is loaded by the class, and I need to load packages that are supposed to be loaded before

I am using the lipics documentclass, which loads hyperref. Since I want my figures boxed, I added the following \usepackage{float} \floatstyle{boxed} \restylefloat{figure} The problem: I receive ...
9
votes
2answers
6k views

Conflict between amsthm and some other package

This is the preamble to a book I'm editing: \usepackage{amsmath} \usepackage{amssymb} \usepackage{xspace} \usepackage{proof} \usepackage{url} \usepackage{xy} \xyoption{all} \usepackage{amsthm} ...
9
votes
1answer
818 views

Why does url.sty appear in 3 different places in the TeX Directory Structure?

On my up-to-date MiKTeX system, there is a copy of url.sty in three different places in the TDS: texmf\tex\xelatex\xetexurl (part of MiKTeX package xetexurl, packaged on 2007-Sep-05) ...
9
votes
2answers
148 views

How to type permutations with commas a bit faster?

Is it possible to use a package or something to make typing permutations a bit faster? I now have to type $(a,b,c,d)$ in the best case, but I'd like to do something like \Pm{a b c d}. Can I do that?
9
votes
3answers
329 views

Which package should I use for doing a connecting homomorphism diagram like this in latex

which package should I use for doing a diagram like this in latex:
9
votes
2answers
5k views

What's the best way to typeset C++ codes in latex?

I'm participating in a programming contest and we are allowed to prepare a team reference document which must not exceed 25 pages. Typically we will prepare many code templates and this year I'm ...
9
votes
1answer
337 views

Lipsum text generator for an index

Is there something like lipsum package but for generating an index?
9
votes
2answers
176 views

Put all package options into one command

The title might not be perfect, but what I want to achieve is: Inside my own package mypackage.sty, I would like to have a command, say \allpackageoptions, which should have stored the entire package ...
9
votes
2answers
209 views

Generating single random sentences

lipsum, blindtext and kantlipsum all seem to default to producing paragraphs, whereas I want them to generate individual sentences. From the documentation, it looks as if it should be possible to ...
9
votes
1answer
384 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 ...
9
votes
1answer
792 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?
9
votes
1answer
339 views

Printing stamp albums

Is there any TeX package well suited for producing stamp albums? Some examples of stamp album pages can be seen here, here, here or here. In particular, captions can go anywhere around the frames ...
9
votes
1answer
292 views

How to use hyph-utf8 correctly?

I'm using MiKTeX and pdfLaTeX and the package manager tells me that hyph-utf8 is installed and auto-download of packages is activated, too. But when I do \usepackage{hyph-utf8}, because I hope that ...
9
votes
1answer
1k views

Installing the comicsans package to MiKTeX

Consider this question theoretical in nature; an exercise to understand the TDS tree structure better. Assume one were attempting to install the comicsans package, which is part of neither of the two ...
9
votes
1answer
296 views

Determining which TeX Live collection a package belongs to

When using the TeX Live Manager or browsing CTAN, sometimes I want to know what TeX Live collection a particular package is found in. What is a convenient way to check?
9
votes
2answers
1k views

Good (latex) package for typesetting bible quotations?

I'm in the market for a good package for typesetting quotations from the bible. Got any suggestions?
9
votes
1answer
3k views

Installing new packages from ctan through command line or AUCTeX on Mac OS?

I've needed a few new packages for some macros to draw diagrams that I'm working with. I've heard that some LaTeX editors can automatically download the correct packages from CTAN when they're not ...
9
votes
1answer
697 views

Middle English Yogh character

I was wondering if anyone knows of a package which supports the Middle English character yogh - that's Ȝ (U+021C) ȝ (U+021D). In TIPA, there is the character ezh - that's Ʒ (U+01B7) ʒ (U+0292). Ezh is ...
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 ...
9
votes
3answers
180 views

Is it safe to “renewcommand” \SS? (Which packages use \SS command?)

I've tried to set \newcommand{\SS}{\mathcal{S}} in the preamble but I've discovered that this command is already defined. So, I tried native command on my code and I've found that it is a "simple" ...
9
votes
1answer
160 views

Using usepackage twice with the same package name

I've seen duplicated package inclusion multiple times in questions. I've looming memories of comments like "it's a really bad thing to do" (which I couldn't find). I was wondering what are the ...
9
votes
3answers
190 views

Citing TikZ and other packages

In some areas of maths, it is advised to cite mathematical and drawing software you use to make your computations and drawings. Since I draw in TikZ, I would like to know how officially cite the ...
9
votes
3answers
143 views

classics package throws weird error message

I can't get any documents built with the classics package to compile at all, including the package documentation source file. I have the package (v0.1 2013/02/02) installed correctly in my tex distro ...
9
votes
1answer
2k 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 ...
9
votes
1answer
2k views

Author(s) per chapter - short story collection

I'm trying to use LaTeX to typeset a collection of short stories. I need something that lets each chapter have its own author or authors, with the author name(s) listed along with the chapter title, ...