Most Popular
1500 questions
175
votes
3 answers
subcaption vs. subfig: Best package for referencing a subfigure
On this question, a comment by Martin H says: that one should forget about the subfigure and subfig packages and use subcaption. As subfig replaces subfigure, no argument there.
I am currently using subfig for displaying my subfigures and quite…
meep.meep
- 16,905
175
votes
3 answers
What is the difference between \dfrac and \frac?
The title says it all, both \dfrac{a}{b} and \frac{a}{b} make fractions, so what is the difference between the two?
user93089
- 2,369
174
votes
1 answer
How do I use '&' literally in LaTeX?
Possible Duplicate:
How to look up a symbol?
Escape character in LaTeX
In the itemize environment, how do I use the ampersand symbol & without LaTeX trying to use it as a command?
Aei
- 1,841
174
votes
6 answers
How can I write multiple lines in a subscript?
Is there a way to force a line break inside a math mode text?
My example:
\[
\underbrace{....}_\text{Some long text that should be multiline}
\]
Trying
\text{Some long text that\\ should be multiline}
Didn't do the trick.
Chris
- 4,055
174
votes
5 answers
Can I redefine a command to contain itself?
I'd like to "add to" an existing command by writing something like
\renewcommand{\somecommand}{\begin{something}\somecommand\end{something}}
but (not surprisingly) I get errors about being "too deeply nested".
Is there a way to take an existing…
orome
- 10,459
174
votes
11 answers
Creating .bib file containing only the cited references of a bigger .bib file
Normally, LaTeX will only create references for the BibTeX entries cited in the text. Is there a way of extracting these entries into a different .bib file automatically? For example if I have a .bib file with two entries, and only one is cited in a…
user1032285
174
votes
6 answers
How can I generate PDF metadata from LaTeX?
I am writing a document using LaTeX and generating PDF. Can anybody tell me how I can generate the PDF metadata, e.g. author or title, from LaTeX? On Windows XP, I am using MikTex's texify to generate the PDF. On linux, I am using pdflatex to…
kc2001
- 2,601
174
votes
7 answers
How to write hidden notes in a LaTeX file?
How can I write notes in a LaTeX file, that don't appear in the PDF file?
user3626
173
votes
6 answers
align* but show one equation number at the end
I am using align*, but I still need an equation number. I know one solution is to use align and add \nonumber to all lines but the last. Is there a 'lazy' way to do it?
I searched a little and found similar ones suggesting use split:
Show equation…
digit plumber
- 1,963
173
votes
1 answer
What is the difference between \newline and \\?
As far as I know, \\ and \newline both insert a new line. But they do not have an identical expansion and tracing shows they do not execute the same commands, so what is their difference?
JanKanis
- 2,307
173
votes
5 answers
Real number symbol (UTF-8: ℝ) in XeTeX
How can I get the 'real number' sign (something like \mathbb{R} with the amssymb package in LaTeX) in XeTeX?
lvaneesbeeck
- 3,095
172
votes
4 answers
Adjusting font size with TikZ picture
Taking from the PGF manual,
\begin{tikzpicture}
\draw [help lines] (0,0) grid (3,3);
\coordinate (a) at (rnd,rnd);
\coordinate (b) at (3-rnd,3-rnd);
\draw (a) -- (b);
\node (c) at (1,2) {x};
\draw let \p1 = ($ (a)!(c)!(b) - (c) $),
…
TheRealFakeNews
- 5,537
171
votes
2 answers
No hyphen for a word
I want to put pdflatex to not put a hyphen in a word went it comes to the end of the line.
I tried to put a \- in the beginning or the end of that word but it doesn't work.
For example if I put:This is a very long sentence that needs two lines with…
MSIS
- 1,877
171
votes
6 answers
How productive are you with TikZ?
First, I must say I have very limited knowledge about PGF/TikZ. Most things I do are blind copy-pastes of examples I find on the Internet with lots of trial-and-error and googling around.
After spending 4 hours on drawing the simple diagram below…
Caetano Sauer
- 1,751
- 3
- 11
- 6
170
votes
4 answers
How do I force a column-break in a multi-column page?
I want to display my article's abstract and table of contents side-by-side, to save space. I'm using the multicol package, but it tries to keep each column the same height, and I can't figure out how to force it to move content into the second…
John Millikin
- 1,803