Questions tagged [latex]

LaTeX is a programming language used primarily for creating high quality academic written documents, slideshows and posters. LaTeX questions are often a better fit for the sister site "TeX - LaTeX" (https://tex.stackexchange.com). This includes questions on tools and other languages producing LaTeX code. The JavaScript libraries MathJax and KaTeX are off-topic on "TeX - LaTeX" and should be asked on Stack Overflow instead (and tagged accordingly).

LaTeX is a macro package implemented on Donald Knuth's TeX programming language and is used primarily for creating high quality written documents. The underlying TeX system is Turing complete and LaTeX inherits this property, making it possible (but rarely advisable) to perform arbitrary computations in LaTeX; more interestingly it makes it possible to get any layout scheme you can describe precisely.

Which site to use for LaTeX questions?

As LaTeX is primarily used for simply writing documents many people characterize it as a "markup language" (like HTML) and site selection criteria have been discussed several times. See:

The Stack Exchange site dedicated to LaTeX is tex.stackexchange.com, which is probably a better place to ask any LaTeX-related questions than here on Stack Overflow. The other site also covers TeX and other related technologies.

Other resources

11140 questions
97
votes
2 answers

how to add a jpg image in Latex

I want to insert a .jpg image(that is in my current folder, where the .tex file is) after a paragraph. How can I do it in Latex? What should I include / what commands should I use?
qwerty
  • 1,967
  • 6
  • 22
  • 22
97
votes
8 answers

How to force two figures to stay on the same page in LaTeX?

I have two images that I want to display on a page as figures. Each eats up little less than half of the space available so there's not much room for any other stuff on that page, but I know there is enough space for both of the figures. I tried to…
Kusti
  • 1,279
  • 1
  • 10
  • 18
95
votes
2 answers

Hiding the presentation controls in LaTeX beamer presentation

I am currently building a presentation using LaTeX beamer. Is there a way to hide the presentation controls on the bottom of the slides? I don't use those controls, and they sometimes collide with the slide's text.
Fabian Meumertzheim
  • 1,569
  • 1
  • 11
  • 21
94
votes
6 answers

I've heard that LaTeX is Turing complete. Are there any programs written in LaTeX?

It's possible to do interesting things with what would ordinarily be thought of as typesetting languages. For example, you can construct the Mandelbrot set using postscript. It is suggested in this MathOverflow question that LaTeX may be…
ire_and_curses
  • 68,372
  • 23
  • 116
  • 141
94
votes
9 answers

How to create a timeline with LaTeX?

In history-books you often have timeline, where events and periods are marked on a line in the correct relative distance to each other. How is it possible to create something similar in LaTeX?
Mnementh
  • 50,487
  • 48
  • 148
  • 202
89
votes
2 answers

How do I write a Latex formula in the legend of a plot using Matplotlib inside a .py file?

I am writing a script in Python (.py file) and I am using Matplotlib to plot an array. I want to add a legend with a formula to the plot, but I haven't been able to do it. I have done this before in IPython or the terminal. In this case, writing…
Titianne
  • 1,323
  • 2
  • 12
  • 13
87
votes
6 answers

Is it possible to extract TikZ diagrams as image files?

I’m using TikZ to draw diagrams in LaTeX that I then want to isolate as image files to put online. I’m using TeXnicCenter to edit the sources. Is there is a way to extract these diagrams directly without having to extract them from the finished PDF…
Qiaochu Yuan
  • 973
  • 1
  • 7
  • 7
85
votes
6 answers

LaTeX VERY compact itemize

I am trying to build a very compact itemize with LaTeX, because I want to fit it in a table without whitespace everywhere. What I need: No whitespace before list No whitespace after list No whitespace between lines Less indent before the…
gex
  • 891
  • 1
  • 7
  • 5
85
votes
3 answers

How to put a symbol above another in LaTeX?

How to put a symbol above (on the head of) another? For example, I want to produce something like this in one line. a # i.e., a above #. The effect should be almost the same with $#^a$ except that a is on the top instead of top right of #.
day
  • 2,292
  • 1
  • 20
  • 23
84
votes
11 answers

Math in reStructuredText with LaTeX

I would like to use a lightweight markup language to take notes in my college classes. My editor of choice is gedit, and I found reStructuredText Tools for Gedit, which will run the reStructuredText processor and render the HTML in a pane in gedit.…
Craig Younkins
  • 1,360
  • 2
  • 11
  • 18
84
votes
7 answers

How can I compile LaTeX in UTF8?

I did my document in an ISO-standard. It does not support umlaut alphabets, such as ä and ö. I need them. The document gets compiled without UTF8, but not with UTF8. More precisely, the document does not get compiled with the line at the beginning…
Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697
83
votes
9 answers

Ignoring page numbers in backup slides

I am using the beamer document class in latex to make a presentation. I will have a number of back up slides which are there for offline viewing, reference etc. Beamer has a feature that shows the progress through the presentation as…
mwlebour
  • 1,001
  • 1
  • 7
  • 7
78
votes
2 answers

Iteration in LaTeX

I would like to use some iteration control flow to simplify the following LaTeX code. \begin{sidewaystable} \caption{A glance of images} \centering \begin{tabular}{| c ||c| c| c |c| c|| c |c| c|c|c| } \hline \backslashbox{Theme}{Class}…
Tim
  • 1
  • 141
  • 372
  • 590
77
votes
9 answers

Correct word-count of a LaTeX document

I'm currently searching for an application or a script that does a correct word count for a LaTeX document. Up till now, I have only encountered scripts that only work on a single file but what I want is a script that can safely ignore LaTeX…
Andreas Grech
  • 105,982
  • 98
  • 297
  • 360
76
votes
5 answers

How to draw a graph in LaTeX?

First of all, let me say I'm using LyX, though I have no problem using ERT. Secondly, what is the most simplest way to draw a simple graph like this in Latex? I've seen some documents with graphs and I've seen some examples, but I couldn't figure…
Amir Rachum
  • 76,817
  • 74
  • 166
  • 248