Most Popular
1500 questions
170
votes
7 answers
How do I prevent widow/orphan lines?
How do I prevent a line from appearing by itself:
Orphan: at the bottom of the page, or
Widow: at the top of the page?
Kit
- 16,430
169
votes
11 answers
How to expand TeX's "main memory size"? (pgfplots memory overload)
I'm compiling one pretty simple LaTeX file with few dozen of pgfplots. Now, I can compile part by part, but am unable to compile it all at once. I really need good precision for all those plots (noise plots) and would like to avoid decimating graphs…
user1996
169
votes
8 answers
What is the best way to use quotation mark glyphs?
There are several types of quotation marks in the English language (and in other languages there are even more). There are also several ways in LaTeX to represent these. I have seen editors, that are capable of directly entering “ and ”. And I have…
Nils Schmidt
- 3,423
- 4
- 20
- 13
169
votes
3 answers
Which measurement units should one use in LaTeX?
There are various measurement units that one can use (such as pt, mm, in, em, ex etc.) for specifying lengths and heights. For font-based units (em and ex) the actual spacing will vary slightly depending on the font. For the other types of units the…
Steve
- 2,509
169
votes
1 answer
Hash character in LaTeX
Possible Duplicate:
Escape character in LaTeX
How do you write the # character in LaTeX?
alamodey
169
votes
3 answers
Creating unnumbered parts/chapters/sections (plus adding them to the ToC and/or header)
I'm using the report document class for a thesis, and I need to add things like "Acknowledgements" and an "Introduction". I noticed that there is an \abstract command which would have been wonderful if applied similarly. How do I add these without…
Ayman Elmasry
- 8,814
169
votes
6 answers
How to rotate a table?
I have a table and I want to rotate it. The table has 3 rows and 4 columns, and I want to rotate the text inside this table as well. How can I do this?
Prelude
- 4,242
169
votes
2 answers
Displaying the binomial coefficient symbol in math mode
The problem is caused by the symbol of binomial coefficient (symbol of Newton), often used in math:
{N}\choose{k}
In my document I have formula:
$$ P(A) = \sum P(\{ (e_1,...,e_N) \}) = {N}\choose{k} \cdot p^kq^{N-k}$$
which is rendered as:
but…
MC2DX
- 2,447
168
votes
5 answers
Large braces for specifying values of variables by condition
How do I produce a conditional expression with large brackets?
For example:
X = 0 if a=1, 1 otherwise, with a large left bracket and specifying each condition in a line?
Nikhil
- 2,375
- 5
- 19
- 14
168
votes
3 answers
How to get "LaTeX" symbol in document
I want to get that fancy LaTeX symbol to put in one of my documents but I cannot find it anywhere. All searching for things like latex symbol have not resulted in the symbol but other symbols.
sixtyfootersdude
- 3,690
168
votes
1 answer
Scale figure to a percentage of \textwidth
I would like to change my figure's width to a precentage of my \textwidth:
\textwidth /2 would scale to 50% of the \textwidth.
What is the proper syntax (if any) to do this ?
Lucas Kauffman
- 1,845
167
votes
6 answers
Reducing font size in equation
I wanted to type an equation in LaTeX. But it is too long to fit into one line. It involves big arrays with many columns so I cannot split it. I wanted to reduce the font size so that it can fit in one line. However, \small doesn't work in the…
sheet_ethics
- 2,921
167
votes
5 answers
Change size of section, subsection, subsubsection, paragraph and subparagraph title
I would like to increase the size of pretty much every headlines, so that it is more prominent than the normal text.
I read about the titlesec package, but can't seem to find good example how to use the package.
Using Gonzalo Medina does in fact…
cherrung
- 3,759
167
votes
6 answers
More than one optional argument for newcommand
The \newcommand macro allows to use an optional argument for the first parameter #1 with:
\newcommand{\mycommand}[3][defaultfor1]{blah blah blah}
Is it possible to have more than one option with \newcommand?
raphink
- 31,894
167
votes
8 answers
How to make horizontal lists?
This might seem like a very simple question, but what is the easiest way to turn a normal vertical list into a horizontal one?
Milka
- 1,823