Most Popular

1500 questions
1487
votes
7 answers

When should I use \input vs. \include?

There are two different commands to incorporate another file into the source of some document, \input and \include. When should I use one or the other? What are the differences between them? Are there more things like them to be aware of?
Phil Miller
  • 20,208
  • 7
  • 27
  • 28
1126
votes
8 answers

Remove ugly borders around clickable cross-references and hyperlinks

I know that I can use hyperref to make cross-references and hyperlinks clickable. That makes the clickable areas outlined in fluorescent green, however. How can I make the green boxes go away?
Vebjorn Ljosa
  • 22,437
  • 17
  • 43
  • 32
1031
votes
10 answers

How does one insert a backslash or a tilde (~) into LaTeX?

How does one insert a "\" (backslash) into the text of a LaTeX document? And how does one insert a "~" (tilde)? (If you insert \~, it will give you a tilde as an accent over the following letter.) I believe \backslash may be used in math…
Brian M. Hunt
  • 14,277
990
votes
100 answers

Showcase of beautiful typography done in TeX & friends

If you were asked to show examples of beautifully typeset documents in TeX & friends, what would you suggest? Preferably documents available online (I'm aware I could go to a bookstore and find many such documents called 'books'). Extra bonus for…
961
votes
1 answer

What do \makeatletter and \makeatother do?

Many LaTeX “hacks” begin with \makeatletter and end with \makeatother. What do these commands do?
Caramdir
  • 89,023
  • 26
  • 255
  • 291
930
votes
56 answers

LaTeX Editors/IDEs

What editors/IDEs are available for easing the process of writing TeX/LaTeX documents? Please state some useful features like code completion, spell checking, building final DVI or PDF files, etc. This question is undergoing a systematic…
hayalci
  • 6,489
911
votes
1 answer

What commands are there for horizontal spacing?

I know that \: in LaTeX produces a space when rendered. Are there any alternatives, because my LaTeX renderer doesn't support \: (it renders it as text), and there is no help / FAQ that I can find.
Zerium
  • 12,559
906
votes
23 answers

How to add a forced line break inside a table cell

I have some text in a table and I want to add a forced line break. I want to insert a forced line break without having to specify the column width, i.e. something like the following: \begin{tabular}{|c|c|c|} \hline Foo bar & Foo
807
votes
34 answers

How can I explain the meaning of LaTeX to my grandma?

I wrote a book about LaTeX, and my proud grandma wanted to have a copy. So she got it, said "What a beautiful picture on the cover!" and - "What is this, LaTeX?". She doesn't know Word, never used a computer. But she reads books. How can I explain…
Stefan Kottwitz
  • 231,401
756
votes
8 answers

Why is \[ ... \] preferable to $$ ... $$?

I've heard that you should use \[ ... \] for displayed equations instead of $$ ... $$, but why is that? I'd assumed that it's so that you can more easily tell which are starting and which are ending delimiters, but if I always use a…
Sophie Alpert
  • 15,550
  • 9
  • 37
  • 37
733
votes
18 answers

How to look up a symbol or identify a letter from a math alphabet or other character?

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?
machinaut
  • 10,181
  • 5
  • 24
  • 15
724
votes
2 answers

How to influence the position of float environments like figure and table in LaTeX?

How to influence the position of float environments like figure and table in LaTeX? This is a general question and should collect useful answers for all users. I hope we can use this as a reference
Marco Daniel
  • 95,681
711
votes
23 answers

How to include SVG diagrams in LaTeX?

I'm making all my diagrams in SVG format using Inkscape and then I export them to some other format (e.g. PDF, EPS or PNG). I wrote a short script that does this for me automatically, but I'd like to avoid this step, if possible --- sometimes the…
673
votes
8 answers

How can I use BibTeX to cite a web page?

I'm looking to cite a number of web pages using bibtex and I was wondering if there was a specific template of the form @