{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
276 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
443 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 \...
9
votes
2answers
1k views

If document class is equal to something then do not use package

I am trying to create a file which includes common packages and macros I use. It is something like this. commonDefinitions.tex \interdisplaylinepenalty=2500 \usepackage{algorithmic} \usepackage{...
9
votes
1answer
2k 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
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
1answer
190 views

What packages provide text/command substitution for LaTeX, XeTeX and LuaLaTeX?

I am aware of the following: xesearch - Allows both text and command substitution. Only for XeLaTeX Simple example: \usepackage{xesearch} \SearchList{list1}{Hello}}{hlw} Any time "hlw" is ...
9
votes
3answers
10k views

Define numeric variables

I would like to define some variables in a tex document. For example, I write in .tex something similar as: Our tool succeeds to validate x samples by Method A, and y samples by Method B. Thus its ...
9
votes
1answer
487 views

Conflict between steinmetz.sty and cancel.sty. Is there a solution?

The two packages conflict, as can be seen in this MWE: \documentclass{article} \usepackage{steinmetz} \usepackage{cancel} \begin{document} $\cancelto{0}{a+b}$ \end{document} When the steinmetz ...
9
votes
1answer
3k views

What is “\usetikzlibrary”? Shouldn't usepackage tikz just give me everything I need?

I'm new to LaTeX and this may have been answered somewhere already. But I don't understand why I have to use the command \usetikzlibrary{...}. Why doesn't \usepackage{tikz} give me all the libraries? ...
9
votes
1answer
15k views

Linespacing LaTeX for just a few lines

How can I increase the linespacing for just a few lines of code in LaTex?
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
6k views

LaTeX template for Lecture notes

Looking for some good templates for creating lecture notes to be given to students. Mainly for computer science subjects. More frequently need short lecture notes.
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
5k 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
71 views

Can loading unused packages slow down the compilation of a document?

Let's say I call booktabs even if I don't write any table in my document. Would it be better if I leave it out?
9
votes
1answer
117 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
2answers
138 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
1k views

RequirePackage and usepackage behave differently

I design exams which should contain code samples using pdflatex. In lecture scripts I successfully use the listings package. The general design is done via the exam document class. I created my own ...
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
1answer
844 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
1answer
2k views

Is there a difference between texconfig rehash and mktexlsr?

With reference to this answer; Is there a difference between texconfig hash and mktexlsr? For example: Is sudo texconfig rehash able to clean up ls-R in cases where mktexlsr remains deficient? or; ...
9
votes
1answer
2k views

Why does loading pgfplots after tikz break the default layers in a tikzpicture?

Taking the MWE from Jake's answer to the question Background rectangles with equal width but 'fitting' height, I get an error when loading pgfplots after the tikz packages but not before. I'm assuming ...
9
votes
1answer
432 views

Shipout line like Shipout page

In lineno package guide, I found: Attaching line numbers after TeX has broken the paragraph into lines is already quite a difficult job for TeX. Why? Because TeX does not normally give you any ...
9
votes
2answers
12k views

How to install LaTeX .zip package (from CTAN) using texhash on a 'nix system?

Is there an automated script which places files in the relevant directory tree in ~/texmf/ and is that all that is required to install a package (in addition to calling texhash on ~/texmf/)?
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 ...
9
votes
1answer
5k 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: miktex-...
9
votes
1answer
6k views

Where does BasicTeX put the texmf directory on OSX?

I have just installed BasicTeX on OSX 10.5 and I'm trying to locate the texmf directory to copy the llncs (LaTeX .cls and .sty files) folder into. According to the install log the location should be ~...
9
votes
1answer
704 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
161 views

Difference between morewrites and scrwfile

I have tested morewrites and scrwfile in my template which uses so many writes that without loading any of those packages I would run into the no room for new \write problem. I find that with ...
9
votes
1answer
227 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 ...
9
votes
0answers
935 views

How to automatically generate Venn diagrams given the inclusion relations? [closed]

I'm writing a paper about classes of formal languages, and I'd like to have a diagram showing their heirarchy. Something similar to this (from Wikipedia:) Is there a LaTeX package which, I can give ...
8
votes
4answers
226 views

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

Or at least in most distributions...
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
3answers
903 views

How to get only one symbol from a symbol package?

I need to use the \Writinghand symbol from the package marvosym.sty. But, for some reason, loading this package raises an error: (/usr/local/texlive/2013/texmf-dist/tex/latex/ifsym/ifsym.sty (/...
8
votes
2answers
647 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 PGF/TikZ....
8
votes
2answers
4k views

Package to typeset Poems

Is there any package in LaTeX available to typeset poems. I referred this link Typesetting poems but it didn't help me out!!!!
8
votes
2answers
19k views

texlive does not find sty file

I am on Ubuntu 8.04 and just install TeX Live with : sudo apt-get install texlive-full. I tried to compile my .tex file with TexMaker. I get : xcolor.sty not found titlesec.sty not found How ...
8
votes
2answers
5k 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
3answers
391 views

Is there a way to load additional packages specified in the document environment?

It seems strange but I really need this. Is there a built-in macro to load additional packages specified in the document environment? % main.tex \documentclass{article} \begin{document} \input{...
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 \...
8
votes
1answer
2k 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
150 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
895 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
2answers
10k views

Install packages on cygwin

I use latex for cygwin, installed by the cygwin setup GUI. How can I install other missing package? For example i haven't tikz... I've to manually install it or there is a better solution?
8
votes
3answers
3k views

How to specify LaTeX style file precedence when multiple versions (might) exist

For example, let's say that a user has an older version of somepackage.sty somewhere on their system. /path/to/install/latex/somepackage.sty Placing a (possibly different version) somepackage.sty ...
8
votes
1answer
116 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
37k views

How to add new packages to TeXStudio

I'm completely new to writing in LaTeX and am therefore starting up with a pre-made report template. However when I just try to compile the template I get the message that following file is required. ...
8
votes
2answers
276 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
210 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 ...