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

9
votes
2answers
660 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
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
9
votes
2answers
907 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
891 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
306 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
29k 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 ...
9
votes
2answers
287 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 ...
9
votes
2answers
162 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
461 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
10k 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
387 views

Lipsum text generator for an index

Is there something like lipsum package but for generating an index?
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
66 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 ...
9
votes
2answers
209 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
1answer
1k views

Diagrams package that allows to draw computer buffers (memory diagrams)

I'm writing a document that explains internals of memory buffers and computers and I'm looking for a LaTeX package that would allow me to create diagrams similar to the following: Circular buffer: ...
9
votes
1answer
369 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
2k 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
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
1answer
4k 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
72 views

Using a single symbol from kpfonts

I would need some help by extracting the "\varprod"-symbol from the kpfonts package. Similar to how it is done here for the subset-symbol of the mathabx package. Although there is a description how to ...
9
votes
1answer
1k 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
2answers
2k 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 ...
9
votes
1answer
649 views

Hide solution when using xlop

I'm using xlop to display primary school style addition/subtraction/mul/div problems. When using \opadd{1}{2} for example, It will solve the equation. How do you hide the solution so it is suitable ...
9
votes
2answers
119 views

Automatic tabulars : create a table from a list

I just found out about the commands \autorows and \autocols in the memoir class that will wrap a list into a table. For example \autorows{c}{5}{l}{one, two, three, four, five, six, seven, eight, ...
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, ...
9
votes
1answer
505 views

How to update TeX Live distribution manually (without using the frozen TeX Live Manager)?

As an illustration, let consider that I want to update the installed tcolorbox package to the new one from the CTAN. I have downloaded the newest tcolorbox.zip package from ctan.org/pkg/tcolorbox. I ...
9
votes
1answer
1k views

Solution for typesetting interviews in LaTeX?

Are there any packages for typesetting interviews in LaTeX? Of course, I could manually format all the text but I am sure that there are typographical rules for interview sections that I would ...
9
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/ ...
9
votes
1answer
3k views

beamer over miktex 2.9 is not working with math environment

I have this problem where I can't built slide documents with beamer every time I include a math environment as simple as $\mu = A$. The log file posts this message at the end: !pdfTeX error: ...
9
votes
1answer
223 views

Automated placement of text and graphics within presentations

The beamer package creates very professional presentations. Are there any additional packages which can be used with beamer which allows users to focus on content, while leaving TeX to decide where to ...
8
votes
3answers
1k views

Inserting a Creative Commons Licence into a LaTeX document

I'd like to insert a CC license on a manuscript (a book or report). I've seen the page for downloading the CC icons, and also some questions asked in the forum CC logo and Generate CC information. ...
8
votes
4answers
223 views

Is there a common set of packages that is available in every distribution?

Or at least in most distributions...
8
votes
2answers
650 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 ...
8
votes
2answers
581 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 ...
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 ...
8
votes
2answers
567 views

ConTeXt using LaTeX style files

I've just discovered ConTeXt for the first time, and it looks pretty sweet. However, it is near-useless to me if I cannot use LaTeX style files for formatting (i.e. for journal/conference papers). ...
8
votes
2answers
2k views

Drawing Lattice/Trellis Graphs using PGF/TikZ

I am trying to draw a graph containing lattice points and vectors. I wish it to look something like this: I am not sure how to go about it, however, I would ideally like to be able to use ...
8
votes
2answers
4k 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?
8
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 ...
8
votes
2answers
3k views

Inconsolata missing after MiKTeX update

I just ran the MiKTeX Updater and there was an update for Inconsolata. I also refreshed the FNDB and it is listed as installed in the Package Manager, but when I try to compile my documents that have ...
8
votes
1answer
2k views

How to programmatically detect if a LaTeX package is installed?

I am writing a program, and I want it to do different things depending on which LaTeX packages have been installed. My current solution is to automatically generate simple .tex files that \usepackage ...
8
votes
2answers
4k views

LaTeX templates/packages for writing a patent specification

Are there any templates or useful packages for writing a patent specification, such as the ones in this collection?
8
votes
1answer
1k views

Is it safe to update LaTeX package with tlmgr on debian?

I using debian (unstable) and have installed most of my LaTeX packages from the official repositories (except few ones which I copied directly inside a folder recognized by texhash). I just learned ...
8
votes
1answer
137 views

How to warn if a package hasn't been loaded

Is it possible to emit a warning if a package hasn't been loaded? If possible, I would prefer that the solution not require \usepackage{ifthen} as it couldn't emit the warning that it was missing the ...
8
votes
1answer
621 views

How to create conditionals in a document class for latex?

I am trying to write a document class highschool.cls for the high school research papers in our school based on the book.cls in order to make the format of the papers standardized. I am trying to ...
8
votes
1answer
59 views

Is it possible to make LaTeX check that some environment is in each part of a document?

I have a document which is required to have an example for (most) proofs. Is there an easy way to have LaTeX check that I haven't forgotten an example? I'm imagining something like this: ...
8
votes
1answer
241 views

Can someone explain this weird font behavior? (EBGaramond-Maths)

I am using the package EBGaramond-Maths. This font is missing the symbols for these commands (from documentation): \leftharpoonup \triangleright \flat \smile \leftharpoondown \triangleleft \natural ...
8
votes
2answers
172 views

Passing an if-else option to a custom sty file

I have a custom .sty file loading needed packages and defining some commands and environments. Is there an easy way to either: define an if-else option define option's default value I am using the ...
8
votes
1answer
194 views

Looking for an ebook about typography that used to be part of a package

Sorry for asking, but an iron-curtain seems to have settled in my brain... I'm looking for a ebook about typography and how to best write/typeset a book. It used to be part of the documentation for ...
8
votes
3answers
7k views

Package to create a printable form

I need to create a printable form. Please suggest a LaTeX package that can do these types of questions: Text: 1. Your e-mail: __________________________ Paragraph: 2. Describe your ...