Most Popular
1500 questions
249
votes
15 answers
Which packages should be loaded after hyperref instead of before?
The hyperref documentation says: "Make sure it comes last of your loaded packages". The reason is that it redefines many LaTeX commands. It's a rule of thumb that helps to avoid errors.
However, there are exceptions, for instance the amsrefs user's…
Stefan Kottwitz
- 231,401
248
votes
4 answers
\mathbb{Z} yields undefined control sequence error
I am using WinEdt 6 for compiling my TeX documents. I am getting an error with contains the line $\mathbb{Z}$ showing that it is undefined control sequence. How should I rectify it? Should I include any math packages or something. I am a beginner in…
Ramana Venkata
- 2,583
246
votes
5 answers
Double line spacing
I would like to typeset a draft of my document with double linespacing so that my collaborators have space to write in their edits (with a pen). How do I do it?
Vebjorn Ljosa
- 22,437
- 17
- 43
- 32
246
votes
14 answers
Underscores in words (text)
How can I produce the text Word_one_two in LaTeX?
I tried:
Samp\_Dist\_Corr
But, it doesn't quite look right. Also, I want it in the typewriter font, so actually, I'm doing:
\texttt{Samp\_Dist\_Corr}
I find it looks a bit like the underscore is…
Flux Capacitor
- 2,765
246
votes
15 answers
Compile a LaTeX document into a PNG image that's as short as possible
I need to convert my LaTeX documents into PNG. The problem is, I also need the resulting image to be as short as possible (height-wise). I've tried latex followed by dvipng, but the result is always the size of a page. For instance, take a .tex file…
Malabarba
- 6,972
245
votes
2 answers
Should \tikzset or \tikzstyle be used to define TikZ styles?
The PGF/TikZ manual states in section 12.4 Using Graphic Options, page 120 (v2.10), that TikZ styles can be set using:
\tikzset{my style/.style={},...}
However, in several places in the same manual the otherwise undocumented macro…
Martin Scharrer
- 262,582
245
votes
2 answers
Make a table span multiple pages
I have a table that takes up a full page, but I want it to start on a page that already has some text and then continue onto the next page (i.e. it's ok if the table gets broken up and spans two pages). It is a simple two column…
NP01
- 2,935
245
votes
5 answers
eqnarray vs align
Motivation
I want to include a list of related equations, say, for a proof, in my LaTeX document. As far as I know, I have two good options, eqnarray and align.
Question
What is the difference between eqnarray and align, and how do I know which I…
Larry Wang
- 3,485
- 4
- 23
- 18
244
votes
7 answers
How to type special/accented letters in LaTeX?
How to type these special letters from European languages in latex?
ä, é, and L'?
user2918
- 2,549
244
votes
6 answers
Resuming a list
I'd like to be able to resume an enumerated list, continuing the old numbering, after some intervening text which should not be formatted like a list item. Is there a nice way to do this?
In particular, I don't want to start a second list with a…
Mark Meckes
- 17,791
243
votes
4 answers
Continuous v. per-chapter/section numbering of figures, tables, and other document elements
Some document elements (e.g., figures in the book class) are numbered per chapter (figure 1.1, 1.2, 2.1, ...). How can I achieve continuous numbering (figure 1, 2, 3, ...)?
And vice versa: Some document elements (e.g., figures in the article class)…
lockstep
- 250,273
242
votes
10 answers
"Inspirational" quote at start of chapter
I recall seeing a package to make quotes like that of the following image at the start of a chapter, but I can't seem to find it again.
(This image is from the book Combinatorics and Graph Theory by Harris, Hirst, and Mossinghoff)
Snowball
- 2,835
- 5
- 17
- 11
242
votes
2 answers
How to write conditional equations with one-sided curly brackets
I want to write a conditional expression such as the following.
What is the best way to express such conditional expressions in Latex?
highBandWidth
- 2,533
- 2
- 15
- 6
241
votes
4 answers
What is XeTeX exactly and why should I use it?
I have been using LaTeX for five years now and have been using PDFLaTeX ever since. I find it hard to monitor the progress of LaTeX development.
Recently there is a lot of talk about XeTeX. What is that exactly? Does it make sense to switch to it?
Ingo
- 20,035
240
votes
21 answers
Compiling documents online
I have heard rumors that you can compile documents online, and more specifically that Google has a free online compiler, but I have never been able to find any. Is there a way to compile documents online, so that I can write and compile documents…
Vivi
- 26,953
- 31
- 77
- 79