Most Popular
1500 questions
282
votes
4 answers
Show equation number only once in align environment
I want the equation number to be shown only at the last line, or better, somewhere in the middle of all. So instead of (1), (2), ... only (1).
I use \begin{align} ... \end{align}
Bogdan Lataianu
- 2,983
279
votes
13 answers
Package natbib Error: Bibliography not compatible with author-year citations
I have a basic tex file and a bibliography which is exported from Mendeley
However, when I want to cite in the author-year style, I get the error:
Package natbib Error: Bibliography not compatible with author-year citations.
(natbib) Press …
grrrbytes
- 3,855
279
votes
4 answers
Center figure that is wider than \textwidth
I have a figure that is wider than the \textwidth of my document. (I don't want to change the \textwidth.) As a result, the leftmost part of the figure is flush with the left margin, while the rightmost part spills into the right margin too much.…
zfm
- 8,987
- 9
- 30
- 21
276
votes
9 answers
Suggest a "nice" font family for my basic LaTeX template (text and math)
My goal is to choose a "nice" font family (serif, sans serif, monospace, and "math") for my basic LaTeX template.
I know the default setting (Computer Modern's family) is a very good choice.
However, I want something a bit less "by default", a bit…
Christophe
- 3,417
276
votes
12 answers
How to typeset $:=$ correctly?
I like to use $:=$ for "is defined to be equal to", but this is never typeset with the symmetry one would like, as the colon is always too low relatively to the equals sign. Is there any way of getting this to appear correctly?
Oscar Randal-Williams
- 2,863
275
votes
15 answers
Beautiful table samples
I'm interested in learning about some nice-looking table samples. Colors can make a huge difference, and just providing some color to headers, background, or borders can dramatically change presentation. Any samples you're proud to share?
(BTW…
please delete me
- 1,045
273
votes
1 answer
Displaying a wide figure in a two-column document
It's my first time working with a two-column document (declared as an argument to \documentclass) and I need to put in a very wide figure. The thing is, LaTeX puts it bounded by a column so it either (1) gets truncated, bleeding off the border or…
skytreader
- 3,027
- 3
- 16
- 10
271
votes
13 answers
How can I add "page # of ##" on my document?
I want to add a footer to my document displaying the current number out of total number of pages. How do I do that?
Lipis
- 3,857
- 4
- 23
- 12
269
votes
2 answers
When to use \par and when \\, \newline, or blank lines
What is the difference between \par, \newline, \\ and blank lines?
When should I use which one?
Jonas Stein
- 8,909
269
votes
12 answers
Use LaTeX to produce ePub
I'm asking here a question which was asked on the Italian TeX group forum.
Is there a way to produce ePub output automatically from a LaTeX source?
I should remark that ePub is just HTML + a subset of CSS + some XML for metadata, packed in a ZIP…
Andrea
- 4,127
267
votes
3 answers
What is the difference between \let and \def?
What is the difference between the \let and \def commands in TeX/LaTeX?
Ideally please provide a simple example that will illustrate the difference between them.
bryn
- 10,264
- 14
- 46
- 43
265
votes
4 answers
Two figures side by side
How can I put two figures side-by-side? Not two sub-figures, but two actual figures with separate "Fig.: bla bla" captions. A figure is supposed to spread over the entire text width, but I have two figures which are narrow and long, and I need to…
Little Bobby Tables
- 14,755
265
votes
9 answers
What is the difference between TeX and LaTeX?
I know LaTeX and I've heard that LaTeX is a set of macros in TeX.
But what does it exactly mean?
Łukasz Lew
- 8,543
- 12
- 43
- 42
264
votes
13 answers
"Track changes" in LaTeX
I am writing a scientific paper with my collaborator. We have submitted a version to a journal and now we got a review from them, so we need to fix a few things. In Microsoft Word there is the option to "track changes", which displays the deleted…
Grzenio
- 9,465
264
votes
3 answers
Design a custom Beamer theme from scratch
No matter how hard I search, I cannot find any information on creating a Beamer theme from scratch, as opposed to LEGOing it together from the built-in inner, outer and color themes, maybe modifying one or two beamer templates by using cryptic…
marczellm
- 11,809