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

22
votes
3answers
5k 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 ...
20
votes
1answer
342 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 ...
20
votes
3answers
1k views

Customizing LaTeX - create a document class or a package?

Are there general rules for when to create a document class vs. creating a package to customize LaTeX? Does one have benefits over the other? My specific need is to create a customized page layout, ...
6
votes
2answers
360 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 ...
7
votes
1answer
4k 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 ...
5
votes
3answers
207 views

How to get a list of the filenames of the figures embedded in a document

I have a TeX document that is embedding a huge amount of figures from a fig folder that is full of another humongous amount of other figures. I would like to move the document along with its figures, ...
73
votes
4answers
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 ...
40
votes
5answers
7k 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 ...
42
votes
1answer
7k 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. ...
23
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 ...
16
votes
4answers
2k 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. ...
15
votes
2answers
2k views

Package options and \RequirePackage: order of commands and option conflicts?

How do the options of a \RequirePackage command interact with options specified for that same package elsewhere? Here is an example: The pdfx package, if loaded with the a-1b-option, executes the ...
11
votes
2answers
16k 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 ...
31
votes
2answers
18k views

Auto Package download for TeXLive

I use MiKTeX on Windows and quite satisfied with it. Recently I started switching all my tasks toward open-source alternatives, and in the course I would love to use Linux. But the problem is in Linux ...
28
votes
1answer
507 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 ...
23
votes
2answers
7k views

How to type a Backus-Naur form in LaTeX

I need to type Backus-Naur form in LaTeX document. I found several packages on CTAN: ebnf seems to not work with TeXLive 2009 latex-bnf does not align the declaration, etc. There is a module for ...
14
votes
3answers
8k views

Macro or package for typesetting “LaTeX” (the name)?

I just realized there's a LaTeX package for printing the text of "lorem ipsum". Surely then, there's also a macro / package for writing "LaTeX" (with the proper super-/subscript) in a document. But ...
10
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
2k views

Including package to create MATLAB labels using LaTeX

When using LaTeX as the interpreter to typeset labels in MATLAB it would be great to be able to include packages to customize appearance. Is this possible? As of now I know no method to create non ...
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 PGF/TikZ....
31
votes
1answer
280 views

Loading Packages Together versus Separately

There are a few questions regarding the speed of loading packages together, but this question isn't necessarily about that. I'm more interested in any tangible, persistent differences, such as ...
24
votes
3answers
6k views

How do I find which pgf version I have installed on Windows (MikTeX)?

I'm not sure how to find which version of pgf with MikTeX installed on my computer (Windows 7 - 64 bit).
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!
9
votes
3answers
8k 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 ...
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 ...
17
votes
1answer
3k views

Multivariate polynomial long division using LaTeX

How do I typeset polynomial long division using multiple variables in LaTeX? I am hoping to be able to do polynomial long division using 2 or more divisors. Currently, the packages I am using are: \...
15
votes
1answer
830 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 ...
13
votes
2answers
553 views

Which packages/practices are relevant for writing Structured Derivations? (similar to Dijkstra's calculational style of proofs)

Does anyone know of any packages that support this style of writing proofs? The only things that I've found are: tex-ewd, a bunch of plain TeX macros on CTAN written specifically with Dijkstra in ...
12
votes
1answer
369 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
4answers
486 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
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 \...
8
votes
2answers
4k 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 \...
7
votes
2answers
8k views

How can I install uarial.sty on a mac?

I'm using TexShop (2.43 on 10.6) to manage LaTeX, but have the following error: ! LaTeX Error: File 'uarial.sty' not found. I tried to use the approach in this question with \usepackage{listings} ...
5
votes
1answer
825 views

How to install mathgifg package

How do I install the mathgifg package on Mac with MacTeX 2013 and Windows with TeX Live 2013? I am using pdflatex so Using the erdc package on Mac OS X does not solve my problem.
3
votes
1answer
5k views

Tex Cover Letter Doesn't Display “Sincerely, My Name”

I'm using the cover letter example from this website: http://www.matthewjmiller.net/howtos/customized-cover-letter-scripts/ What it should look like and the source of the tex is on that website, I ...
11
votes
1answer
259 views

Publishing a package update on CTAN?

This is one of the questions I get on and off, so I thought I'd post about it. A couple of times, I've ended up with a situation where I need to modify code in a CTAN package proper - that is, I ...
8
votes
1answer
2k views

Defining a custom ‘wrapfig’ environment

[ This is an updated version of http://stackoverflow.com/questions/3233031/latex-defining-a-custom-wrapfig-environment ] The wrapfig package interacts badly with the setup and teardown done by \begin ...
8
votes
1answer
18k views

MiKTeX: connect failed in tcp_connect [closed]

I already read these threads: 1, 2, 3 and 4 which address the connection error connect failed in tcp_connect(). I found out that the address I can't connect to is 178.77.68.21 but there is nothing ftp:...
7
votes
3answers
2k views

LaTeX command with optional arguments

While writing lecture notes from statistical physics I found out, that I am often writing very similar long LaTeX sequences like \frac{\partial }{\partial <foo>} \frac{\partial <bar>}{\...
5
votes
3answers
2k views

install package in subfolder

At the moment I have some modified and some of my own packages placed in the same folder as my tex file. I would like to move all of them in a subfolder called packages so that I have a better ...
4
votes
1answer
818 views

A horizontal line with the same space-filling behaviour as /hfill?

Is there a command or package which would allow me to draw a line in the largest available space in the way that \hfill fills up the remaining space in a line? i.e., a command to draw a line from the ...
25
votes
2answers
704 views

Teaching LaTeX to visually disabled

I will teach a blind person how to use LaTeX this week. Has anyone any hints for me or package recommendations?
21
votes
1answer
269 views

Should packages on CTAN be widely applicable?

I have a couple 'packages' (more appropriately called styles) that I'd like to painlessly distribute to my classmates. The most straightforward way to do this is via CTAN, but I'm not sure if it is ...
16
votes
3answers
6k 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 ...
13
votes
2answers
4k 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} % ......
12
votes
2answers
492 views

Is there a way to limit the scope of \usepackage?

When I tried to use the breqn package suggested by an answer to the question How do I break a long equation over lines It managed to break a whole bunch of unrelated equations (equations that did ...
8
votes
1answer
13k 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
5
votes
1answer
2k views

What library do I have to use such that the document can render \lt and \gt as less than and greater than signs, respectively?

\documentclass{article} %\usepackage{amsmath} It does Not work ! \begin{document} \[ x\lt y \gt z \] \end{document} What library do I have to use such that the document can render \lt and \gt as ...
3
votes
1answer
1k views

Highlighted source code inline with Latex/Minted?

I am using the minted package (based on pygments) to do syntax-highlighting for xml-code in my Latex documents. However I did not find an option to make it display the code inline. \mint{xml}|<?...
3
votes
2answers
283 views

Easy method to activate cyrplain package (CyrTeX)

I would like to have a Cyrillic version of TeX/AMSTeX. I have installed the cyrplain package, but further instructions are too long and technical for me, sometimes referring to README of other ...