Most Popular

1500 questions
137
votes
6 answers

How to center text without adding space AND not altering alignment of surrounding text?

In normal text, how do I center part of a sentence (it happens to be the end of a sentence) but leave the text in the rest of the paragraph unaltered? Also, no vertical space should be added before or after the centered text. In a word processor, I…
136
votes
7 answers

How to include graphics with spaces in their path?

I want to import graphics into my main input file using the macro \includegraphics. It does not work if the filename contains spaces. Include image with spaces in path directory to be processed with dvips also discusses this subject, but there is no…
Display Name
  • 46,933
136
votes
9 answers

Image on full slide in beamer package

I would like to make a slide of only one image without any borders or any other beamer specific element. I tried : \begin{frame}[plain] \includegraphics[keepaspectratio=true,width=1\paperwidth]{kernel-panic.png} \end{frame} But I still get a border…
Alexandru
  • 2,465
  • 4
  • 18
  • 10
136
votes
1 answer

Use LaTeX to simulate old typewriter written texts

This question led to a new package: typewriter I'm giving my students an old exam and barely remembered to change the date at the top. A colleague and I joked about how long we could reuse the same exam, and it made me wonder if I could use LaTeX…
GregH
  • 3,499
136
votes
2 answers

What does each AMS package do?

In my view, any document with a substantial amount of mathematics should load the packages from AMS-TeX. Hence, most of my document's preambles contain \usepackage{amsmath, amsthm, amssymb, amsfonts} (I could add to that the non-AMS mathtools,…
135
votes
2 answers

Table and figure side-by-side with independent captions

Looking to put a table and a figure side by side so that the table and figure have their own captions. A crude sketch ------------ ----------------- TABLE | a | b | FIGURE | c | d | ------------ …
badroit
  • 7,557
135
votes
7 answers

Cool Text Highlighting in LaTeX

LaTeX has soul. ConTeXt, of course, has beautifully marked up "sharpie" highlighting, where you can put sweet hightligher under your text for free! In the pictured example, you can see highlights that not only highlight, but that do it with cool…
135
votes
3 answers

How can I draw simple trees in LaTeX?

I need to draw a tree, and constantly using dotty and including the PNGs is starting to be a pain. Is there a way to get LaTeX to draw it's own trees that doesn't involve learning an entirely new language like TikZ?
Billy ONeal
  • 10,439
135
votes
9 answers

TikZ: How to draw an arrow in the middle of the line?

Like this: .------<------. | | v ^ | | '------>------' I am currently using \begin{scope}[very thick,->] \draw (-4,1)--(-4,0)--(0.1,0); \draw (0,0)--(4,0)--(4,1.1); \draw (4,1)--(4,2)--(-0.1,2); \draw…
kennytm
  • 6,392
  • 6
  • 27
  • 18
135
votes
4 answers

Attractive Boxed Equations

I often used \boxed{...} from the AMS math package to place a box around important equations. However, this approach often produces somewhat awkward looking output. …
135
votes
2 answers

removing page number for title page

I'm using titlepage to create a title/abstract page for a paper, and I don't want a page number to appear, so I use the following fragment: \begin{titlepage} \clearpage\thispagestyle{empty} …
Suresh
  • 16,511
  • 14
  • 55
  • 64
135
votes
3 answers

Which package version am I using?

Is there a LaTeX command for printing the versions of the currently installed packages? I need to know the installed version of the pgfplots package.
Tim N
  • 10,219
  • 13
  • 63
  • 88
134
votes
3 answers

Creating Running Headers and Footers, but not on the First Page

I want a header similar to Microsoft word that appears at the top of each page. However I do not want this on the first page. I would like to have the name of the project on the left, my name in the middle, and the date on the right. What packages…
134
votes
14 answers

File extensions related to LaTeX, etc

In addition to the .tex and .dvi or .pdf files, TeX/LaTeX/ConTeXt produces and uses lots of other files. What do they do? Which ones are used to create the document and which ones are automatically created by the compiler. What files can I safely…
Rafid
  • 5,717
134
votes
5 answers

Reducing spacing after headings

I've searched many sites but I couldn't get any answer. Here is this mystical question: How can i reduce the spacing after headings? Here is my code.…
interlude
  • 2,316