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

11
votes
1answer
199 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 ...
11
votes
0answers
15k views

'biblatex.sty' not found - although package is installed [closed]

When I want to include the biblatex package I always get the error-message above. Here are some basic information: I'm using Ubuntu 14.04LTS and have installed Texlive with the Ubuntu Software-...
11
votes
0answers
157 views

Is there a package manager that works directly with CTAN (or local TDS structures)?

Almost out of sheer frustration, I'm on the verge of writing a Python script that will automate the install of both local TDS packages and those retrieved automatically from CTAN, without regard to ...
10
votes
2answers
789 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 \...
10
votes
3answers
4k views

Best practice for control flow charts

I wanted to plot a flow chart graph which looks similar to this diagram: that comes from this source. Which package would be best for that? I don't want to use pstricks
10
votes
4answers
586 views

Looking for style files for writing a programming language book

I am looking for LaTeX style files for writing a programming language book (OO programming with Java examples). I'd appreciate if anyone can point me to style files that I can use.
10
votes
2answers
1k views

Turn off locally one package

In the following code, I would like to show two different formatting styles: one using the package nath output, and another showing the default output. How can I do that? % Source : http://tex....
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
2answers
5k views

How to use the ifsym package?

I have added \usepackage{ifsym} in the front, and LaTeX cannot parse the command \Letter. What should I do to fix this?
10
votes
2answers
771 views

lgrxenc.def not nound

Yesterday I've finally reinstalled my TeXLive to the version of 2014. While compiling, I have the following error: fontec.sty Package fontenc Error: Encoding file `lgrxenc.def' not found \...
10
votes
1answer
488 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
2answers
12k views

Shortcuts and/or user-defined shortcuts for math symbols in LaTeX?

I am very new to being able to use LaTeX to type up mathematical papers, and I just got my "system" set up. Currently I have installed TexWorks, and MikTex, and I have put together a 'hello world' ...
10
votes
1answer
2k views

What does the .def file do?

When downloading a new package and running tex packagename.ins you always get a bunch of files, including the .def file. It's also mentioned in the .sty file. Apparently it's a definition being ...
10
votes
1answer
626 views

How to “un-use” a package?

When using packages in LaTeX (or XeLaTeX, in my case), I load packages with \usepackage[options]{package}, but how can I "un-use" the package later in the document? Is that even possible?
10
votes
4answers
489 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
1answer
3k views

How to evaluate an expression before printing it?

Start of Edit In response to the comments I have added the following mwe: \documentclass{article} \usepackage{tikz} \begin{document} Let's see if this prints: \pgfmathparse{sin(60)}. \end{document} ...
10
votes
3answers
3k 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?
10
votes
2answers
362 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
2answers
329 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 ...
10
votes
2answers
407 views

Loading a font via package or fontspec

In Xe(La)TeX, what is the difference between loading a font via its package, i. e. \usepackage{tgpagella}, and loading it through fontspec (\fontspec{TeX Gyre Pagella}). When loaded with the package, ...
10
votes
2answers
3k views

Mail-merging documents from a database

I use the term database loosely here -- it can be an actual database, or a spreadsheet (in any format including CSV) or can be package-dependent. Is there a way to create mail-merged documents ...
10
votes
1answer
216 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
1answer
900 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 ...
10
votes
1answer
490 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 ...
10
votes
3answers
443 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 ...
10
votes
3answers
446 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" ...
10
votes
1answer
9k views

How to install the package “slashbox” using tlmgr?

I'd like to install the package slashbox to my MacTex/TeXlive installation (on Mac OSX) using tlmgr. The package seems to be still available on CTAN, but my attempts to install it, failed: sudo tlmgr ...
10
votes
3answers
296 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 ...
10
votes
1answer
2k views

Is there a LaTeX package for conference event programs?

I'm helping to organize a symposium, and I'd like to generate the event programs with LaTeX. Is there an appropriate package for this, or should I do it by hand? Thanks in advance!
10
votes
1answer
1k views

Install downloaded package via tlmgr

I’d like to install a package (microtype 2.5 beta 4) under TeX Live that isn’t available in the official repository. Now, I know that it’s usually enough to put the package under ~/texmf/tex/latex/ ...
10
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, ...
10
votes
1answer
129 views

How do I set the documentation PDF for my package?

I wanted to check the syntax of something in one of my packages, and rather than hunt for the file on my system I just did texdoc hobby on the command line. To my dismay, this brought up the PDF ...
10
votes
1answer
286 views

Can you use LaTeX packages in ConTeXt/emulate ConTeXt in LaTeX?

Is it possible to use LaTeX packages in ConTeXt? I want to know because I'd like to use ConTeXt's greater formatting facilities but I also want to use several LaTeX packages (crossword and xskak in ...
10
votes
0answers
110 views

How to get a list of valid commands?

I want to dynamically create a list of LaTeX commands that are valid in a particular file based on the packages used so that I can use them for code completion. Does LaTeX provide a method for ...
9
votes
2answers
235 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
33k views

LaTeX Error: Environment keywords undefined

I am using a template for a conference and everything is OK, except for the "Keywords", This is strange, it didn't occur to me before. Usually I don't use a specific package for keywords. and the code ...
9
votes
2answers
857 views

Drawing Solids with LaTeX

I want to know if there is a package that automatically draw solids (spheres, cylinders, cubes, prisms). I know I can do this kind of drawing using TikZ or PSTricks. But what about a package where ...
9
votes
2answers
734 views

Global key-value dictionary

Is there any package that implements a data structure that provides a key-value mapping (akin to Python's dict)? The keys will be user input and may contain spaces and non-ASCII characters. I would ...
9
votes
2answers
1k 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
1k 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
328 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
1answer
33k views

Which package is using \includegraphics?

Which package is using \includegraphics? I have a issue in my installation package, I need to know which package is using \includegraphics. The issue is picture showing like a DOT . If we zoom (6400%...
9
votes
2answers
180 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
704 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
1answer
434 views

Lipsum text generator for an index

Is there something like lipsum package but for generating an index?
9
votes
3answers
7k views

Writing (mixed) tensors

Does anybody know about a specific package for handling tensors? Consider, for example, a contraction of the type $g^{\alpha\beta}g^{\gamma\delta}R_{\alpha\mu\gamma\nu}=R^{\beta\;delta}_{\;\mu\;\nu}$...
9
votes
3answers
2k views

Is there a package to create Optical Mark Reader answer-sheets?

Is there a package to create Optical Mark Reader answer-sheets (aka bubble sheet)? EDIT 1: No choice. I think I must use PSTricks and \multido to make it.
9
votes
1answer
1k views

Package to indent and syntax highlight C++ code

I am looking for a package to have an environment for C++ source code, with options for syntax highlighting, automatic indentation, proper multipage behavior, etc. I read something about the listings ...
9
votes
1answer
2k views

Displaystyle Package?

I am curious to know if there is a display style package, or something that would produce the same effect. You see, I get tired of constantly having to type \displaystyle, and making sure that it is ...
9
votes
1answer
74 views

Potential side-effects associated with a dash in a package/class name?

Common practice for naming packages and classes seems to be, using regex-like notation: [a-z][a-z0-9]* In other words, the name usually starts by a lowercase letter, followed by any sequence of ...