Most Popular
1500 questions
212
votes
6 answers
Embedding videos and animations
I'm aware that it's possible to embed some kinds of videos and animations in LaTeX files (using the beamer or prosper classes) but I couldn't locate good documentation on this. My web searches returned a list of scattered forum questions and…
Vipul
- 2,221
211
votes
3 answers
How do I put big brackets under different parts of an equation to attach text labels?
How do I put big brackets under different parts of an equation so that I can write, e.g., text specific to these parts?
For example:
f = x^3 + 2
|___| |__|
| |
text 1 text 2
user576654
211
votes
3 answers
'Floor' and 'ceiling' functions
Is there a convenient way to typeset the floor or ceiling of a number, without needing to separately code the left and right parts? For example, is there some way to do $\ceil{x}$ instead of $\lceil x \rceil$?
jamaicanworm
- 29,114
211
votes
11 answers
How to get DOI links in bibliography
I would like to add to all my bibliography items a DOI (Digital Object Identifier) link or a link to a download location.
How can I do this with the natbib / BibTeX / hyperref combination? Currently I am using the plainnat style, but I'm willing to…
Peter Smit
- 14,035
211
votes
3 answers
Hyperref warning - Token not allowed in a PDF string
When compiling a beamer presentation and using the following \author command
\author{Name \\ \texttt{my.email@domain.com}}
I get the following hyperref warning in my logfile
Package hyperref Warning: Token not allowed in a PDF string…
Nickolay Kolev
- 4,671
210
votes
19 answers
How can we draw a Christmas tree with decorations, using TikZ?
I would like to use TikZ for drawing a christmas tree. Here's a start, I used the lindenmayersystems library for drawing a tree:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{lindenmayersystems}
\begin{document}
\begin{tikzpicture}
\draw…
Stefan Kottwitz
- 231,401
210
votes
7 answers
When should one use \verb and when \texttt
Sometimes people here use \verb!A SHORT COMMAND! and sometimes \textt{A SHORT COMMAND}.
I'm unsure when to use which.
Are there any guidelines or arguments for \verbatim vs. \texttt?
Martin
- 4,565
210
votes
11 answers
Left and right subscript / superscript
I am trying to put two subscripts at the left and right of a character. For example, something like: _{t} p_{x} where p is in the middle. How do you do this?
NebulousReveal
- 2,201
- 2
- 14
- 4
209
votes
6 answers
\mid, | (vertical bar), \vert, \lvert, \rvert, \divides
What's the difference between the different vertical bars?
$S = \{\, x \mid x \not= 17 \,\}$
$a \vert b$ implies $a \leq b$ when $b \ne 0$
$a|b$ implies $a \leq b$ when $b \ne 0$
$\lvert x \rvert$ is always non-negative
Are all of these uses…
Sophie Alpert
- 15,550
- 9
- 37
- 37
209
votes
4 answers
fontenc vs inputenc
I just don't seem to get it. So I come from the german speaking part of Switzerland and naturally I need ä ü ö a lot when I write german texts. So in LaTeX I have the option to go via
"a "u "o
which isn't really comfortable, or I can use an…
Philipp
- 5,078
- 10
- 30
- 32
208
votes
2 answers
Bibliographies from multiple .bib files
I would like to use multiple .bib files for my article, such as file1.bib, file2.bib.
However, I would like my references not to be separated (such as "Primary sources", "Secondary sources", etc.). These bibliographies just need to be merged into…
Andrey
- 2,081
207
votes
3 answers
No indent in the first paragraph in a section?
I am just curious that the following format looks good to you or not? The preamble I used is just
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
I don't feel it's so good because the first…
user565739
- 5,482
207
votes
1 answer
How to properly write multiple authors in bibtex file?
I use Jabref to store all articles I need and bibtex4word add-on (in MS Word) to maintain the reference list. So, I would like to know how to properly fill the "author" field in Jabref with multiple authors to appear them correct in the reference…
jacksonslsmg4
207
votes
5 answers
206
votes
3 answers
What do newcommand, renewcommand, and providecommand do, and how do they differ?
What do newcommand, renewcommand, and providecommand do, and how do they differ?
I think \newcommand overwrites any previously existing command, while \providecommand creates the command only if it does not already exists. Does \renewcommand only…
keflavich
- 4,613