{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
2answers
917 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
1answer
161 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
31k views

How to install new packages on Texmaker on Ubuntu?

How do I install new packages on Texmaker? I use Ubuntu 10.04 LTS.
10
votes
1answer
149 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
2k views

Problem/solution environment

I'm writing a textbook and an accompanying solution manual. In the book, I have a series of exercises at the end of each chapter. As the number of chapters and exercises grows, I'm getting to the ...
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
311 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
176 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
523 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
2answers
121 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
3answers
821 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
3answers
661 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 ...
9
votes
2answers
572 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
621 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
276 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
417 views

I'm a cargo cult programmer …

... because I don't know why this works \def\my@addextraoption#1{% \xdef\my@extraoptions{% \@ifundefined{my@extraoptions}\@empty\my@extraoptions,% \zap@space#1 \@empty}} ...
9
votes
1answer
634 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
140 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
294 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
3k 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
309 views

Lipsum text generator for an index

Is there something like lipsum package but for generating an index?
9
votes
2answers
190 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
1k 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 ...
9
votes
2answers
91 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}} ...
9
votes
1answer
287 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
259 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
3answers
2k 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?
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
534 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
1k 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
125 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, ...
9
votes
1answer
662 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
218 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
3k 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
8
votes
4answers
216 views

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

Or at least in most distributions...
8
votes
2answers
449 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
1k 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
1answer
5k 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} ...
8
votes
1answer
947 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
154 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 ...
8
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 ...
8
votes
1answer
50 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 ...
8
votes
2answers
2k 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
117 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
287 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
332 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 ...