Most Popular
1500 questions
303
votes
2 answers
algorithm, algorithmic, algorithmicx, algorithm2e, algpseudocode = confused
I am confused about the packages for writing simple "algorithms". There are too many options, and it is confusing when to use what. For example, if I use algpseudocode, then I can't add algorithmic because it is already included in the algorithm…
ramgorur
- 3,694
- 4
- 18
- 15
302
votes
2 answers
Manual/automatic line breaks and text alignment in TikZ nodes
How can I insert a line break in a TikZ node? Simply putting \\ where I want the break doesn't work (see MWE).
Is there a way to make lines break automatically at some specified width?
And can I control the alignment of the text (left, right,…
Jake
- 232,450
299
votes
15 answers
What's the proper way to typeset a differential operator?
I can't seem to find any consensus on the right way to typeset a differential operator, whether it is:
in a standalone context:
as part of a derivative:
as part of an integral:
In all of these cases, I have seen them sometimes italicized like…
Adrian Petrescu
- 3,809
297
votes
7 answers
Scale image to page width?
I use
\inclugraphics[scale=TRYING TO GUESS THE NUMBER FOR PAGE WIDTH]{...}
but I find this errorsome, is there some ready flag to set the image to page width? I usually use PNG and JPG photos.
hhh
- 8,743
296
votes
4 answers
itemize, removing natural indent
When you itemize items you usually have the entire list indented. This is expected when you have a title or description of what you are listing. I want to itemize but not have the natural indent. I need to move all of the bullet points over…
Bobdul
- 3,217
293
votes
4 answers
What point (pt) font size are \Large etc.?
In the preamble I have:
\documentclass[a4paper,11pt]{article}
\usepackage{fontspec}
\setmainfont{Arial}
What can be inferred about the real font pt size for the following?
\tiny, \scriptsize, \footnotesize, \small, \normalsize, \large, \Large,…
Level1Coder
- 7,029
292
votes
1 answer
Hyperref - Token not allowed
Possible Duplicate:
Hyperref warning - Token not allowed in a PDF string
The following code:
\subsection{The classes $\mathcal{L}(\gamma)$}
generates the errors:
Package hyperref Warning: Token not allowed in a PDF string…
Chris
- 4,965
- 8
- 22
- 19
291
votes
12 answers
What are the various units (ex, em, in, pt, bp, dd, pc) expressed in mm?
How can one determine the length of the different units (measured 1ex, 1em, 1in, 1pt, 1bp, 1dd, 1pc) in mm?
Regis Santos
- 14,463
290
votes
14 answers
What are the advantages of TeX Live over MiKTeX?
I have been using MiKTeX for a couple of years. I don't know whether it is "wise" to insist on using it. Could you give me a list of advantages of TeX Live over MiKTeX?
Display Name
- 46,933
286
votes
5 answers
LaTeX beamer presentation-package 16:9 aspect ratio?
I'm programming a presentation in LaTeX using the beamer class.
However, it defaults to 4:3 aspect ratio slides, while everything I use is 16:9. Is there an easy way to change this using a command or two?
anon
285
votes
4 answers
What is the "correct" way of embedding text into math mode?
Lets say I have something like:
\[ Let x = number of cats \]
(This is a contrived example, but pretend we are actually inside a long align environment block...) "Let" and "number of cats" need to be written like normal text, while x= needs to be…
Billy ONeal
- 10,439
284
votes
2 answers
When should we use \begin{center} instead of \centering?
After reading this question Should I use center or centering for figures?, I want to know the answer of the following.
When should we use \begin{center} instead of \centering?
For example, should we use this one?
{%
\centering
}
or…
Display Name
- 46,933
283
votes
3 answers
options for appearance of links in hyperref
If I use
\usepackage[colorlinks]{hyperref}
I get colored links for \cite (not good for printing or even viewing) but table of content looks fine.
If I use
\usepackage[colorlinks=false]{hyperref}
I get \cite links in black with a colored frame…
Maesumi
- 9,059
283
votes
6 answers
Horizontal line spanning the entire document in LaTeX
I have used the \hrulefill command to create a horizontal rule, along with some other commands. In each case I have the rules extended up to the margin.
I want the rule width to be controllable, i.e. I want them to span the entire page. How can this…
assemblylearner
282
votes
4 answers
LaTeX conditional expression
I would like to be able to set a flag at the beginning of the main flag (say output) that tells if I want to produce a paper document or an electronic document.
Then I should check this flag to define or not empty pages, hypperref, oneside or…
Cedric H.
- 4,162