Most Popular

1500 questions
323
votes
4 answers

Why do the less than symbol (<) and the greater than symbol (>) appear wrong as upside down exclamation (¡) or question mark (¿)?

When typing < or > in LaTeX and compiling with pdflatex, the less than and greater than symbols appear at upside down exclamation points. I'm not in math mode.
322
votes
6 answers

How to add a URL to a LaTeX bibtex file?

I'm using bibtex for my bibliography in LaTeX. I have some URL's I need to cite in the paper. How do I add URLs into the .bib file? A typical section in my .bib file looks like this: @conference{eigenfacepaper, title={{Face recognition using…
Janusz
  • 3,321
321
votes
12 answers

How to typeset subscript in usual text mode?

It's easy to make subscripts in math mode: $a_i$. How do I make a subscript outside math environment, likethis?
P Shved
  • 3,423
320
votes
9 answers

Absolute Value Symbols

What is the "best LaTeX practices" for writing absolute value symbols? Are there any packages which provide good methods? Some options include |x| and \mid x \mid, but I'm not sure which is best...
jamaicanworm
  • 29,114
319
votes
3 answers

How to typeset the symbol “^” (caret/circumflex/hat)

I need to display the symbol '^' d <- dist(fascores, method = "euclidean")^2 How do I do that?
Cost
  • 4,517
317
votes
3 answers

How do I create an invisible character?

I cannot remember how to create an invisible character in LaTeX, i.e. I want to put a space that has the width of a particular character, say `M'. I know there is a command for this, and this is a really dumb question, but my Google-fu has failed…
Matt Leifer
  • 3,970
313
votes
4 answers

Why are default LaTeX margins so big?

I've read that—unless I know a lot about typesetting—I shouldn't change the margins of a LaTeX document. The default margin size of the article class is really big and it feels like a lot of space is waste. Thanks to the geometry package, it is…
jlconlin
  • 10,172
311
votes
1 answer

What are the different kinds of boxes in (La)TeX?

I've seen hbox, vbox, mbox, parbox and others used in various code samples. What are the different kinds of box in (La)Tex? Which are suitable for use in LaTeX, as opposed to plain TeX?
Mohan
  • 15,906
311
votes
4 answers

How to create fixed width table columns with text raggedright/centered/raggedleft?

I would like to create a table with some columns' width specified, while the text in those columns should be centered both horizontally and vertically. I found out that \usepackage{array} \begin{tabular}{| c | c | m{5cm} |} vertically centers the…
Covi
  • 7,055
311
votes
12 answers

How to force a table into page width?

I have the following table: \begin{table}[htb] \begin{tikzpicture} \node (table) [inner sep=0pt] { \begin{tabular}{ l | l } {\bf Symptom} & {\bf Metric} \\ \hline Class that has many accessor methods and accesses a lot of external data & ATFD is…
310
votes
15 answers

Entering Unicode characters in LaTeX

How do I enter Unicode characters in LaTeX? What packages do I need to install and what escape sequence do I type to specify Unicode characters in an ASCII source file?
John D. Cook
  • 3,331
308
votes
9 answers

Command for argmin or argmax?

How can you get the argmin or argmax in Latex? Two solutions I found are: \underset{x}{\operatorname{argmax}} \DeclareMathOperator*{\argmin}{arg\,min} Any other ideas? [1] http://www.breakthru.altervista.org/?p=27 [2]…
Alejandro
  • 3,746
306
votes
7 answers

How to add border for an image?

I use \includegraphics command to insert image to the document. But how can I add a border around this image w/o any margin between border lines and image? It seems to be very easy, but I can't find it in the documentation.
TheBug
  • 5,649
305
votes
18 answers

Reference different places to the same footnote

I want to make footnotes both at Sentence 1 and Sentence 2 (which are on the same page) to the same footnote. For example, Wikipedia's "References" have this effect.
Covi
  • 7,055
303
votes
17 answers

Good way to make \textcircled numbers?

This question led to a new package: circledsteps I'm trying to make some good-looking numbers in a circle, using the simple command: \textcircled{1} However, the circle is misaligned vertically with the number, and look a bit sloppy: Any…