Most Popular
1500 questions
64
votes
3 answers
Classes and packages – what's the difference?
Could someone explain the difference between classes and packages? We call prosper a class and amsmath a package. I couldn't find out the difference.
tex
- 3,445
64
votes
5 answers
How can I create a template for 2048 game situations?
I guess some of you might know the game 2048. A situation has the following shape:
I would like to create a TikZ template that allows me to make similar drawings.
MWE
To create the following example (which is the best I got), I've used answers from…
Martin Thoma
- 18,799
64
votes
4 answers
How do I insert an image in LaTeX so it looks good on print?
LaTeX documents print beautifully, but images often looks "ugly", "pixelated" or "low-res" compared to the text. By images I don't mean photos, which I rarely use, but rather diagrams, charts and drawings made in other programs such as Visio, Excel…
Casper Fabricius
- 743
- 1
- 6
- 7
64
votes
4 answers
Defining custom commands is bad style?
I recently received this in a e-mail from my professor
Good LaTeX style would preclude creating any of your own commands, counters, etc. (Most journals would reject submissions with user-defined commands.)
I have two questions:
Is this in fact…
soandos
- 2,211
- 2
- 23
- 35
64
votes
5 answers
Add space between paragraphs in Beamer
Customizing spacing between paragraphs in Beamer plagues me constantly. To split two paragraphs by one empty line I usually put \medskip tag between paragraphs, but this is very ugly solution.
Now I try with \parskip, which works fine, but fails…
Andrej
- 2,742
63
votes
7 answers
Symbol for external links
I'm using the hyperref package in my document to provide hyperlinks to external documents. However, I don't want to have the links coloured or underlined, because I find this usually ugly and distracting. What I would rather like is a little symbol…
Elmar Zander
- 1,890
63
votes
1 answer
What software do publishers use?
I know I am not alone in my frustration when converting my LaTeX documents for submission to publishers whose typesetters don't use LaTeX. For instance: maybe they only accept eps figures, which doesn't allow transparency; or maybe they end up…
petrelharp
- 949
63
votes
2 answers
Multiple references in LaTeX
I'm writing a paper and using the IEEEtran.cls in LaTeX. I need to have my references to appear like:
\cite{test1,test2,test3}
I want :
[1-3]
I searched and found that I need to include cite package. However, after I have used cite packages, I get…
EngS
- 847
63
votes
3 answers
How to place a textnode at the center of a drawn rectangle
A rectangle label does not appear inside the rectangle but on the corner of it.
\tikzstyle{every node} = [align=center]
\begin{tikzpicture}
\draw (0, 0) rectangle (2, 2) node [center] {label};
%center is unknown but was my best guess
…
Johannes
- 1,579
63
votes
1 answer
Comprehensive list of TikZ style options?
I'm aware that one can use \tikzstyle{every label}=[...] to apply styles to every label within a tikzpicture; or \tikzset{mystyle/.style={...}} to apply style specs to a specific type of node mystyle (from this answer); however, I'm having trouble…
Tim Parenti
- 1,251
63
votes
4 answers
Are there any (La)TeX Easter Eggs?
Given Donald Knuth's legendary sense of humor, one cannot help but suppose he would have succumbed to the temptation to add in a "special" command or two that did something unsuspected or unusual just for the fun of it. (And I don't just mean some…
frabjous
- 41,473
63
votes
5 answers
Self-replicating (La)TeX document
Since TeX and LaTeX can print out any text, it should be possible to write a self-replicating document, i.e., a document that is typeset as a PDF/DVI of itself. Have you seen something like that?
mafp
- 19,096
63
votes
1 answer
LaTeX adjusting \sum limits
Is there a way to show \sum limits partially in inline mode and partially in display mode?
I want to write:
\begin{equation}
\sum_{n=-\infty}^{+\infty} [...]
\end{equation}
but this way the lower limit is too wide, and I don't like it. So I was…
gbaso
- 731
63
votes
6 answers
Syntax Coloring in LaTeX
Is there any way to include Python code in a LaTeX file and automatically color its syntax? Is it possible to do syntax coloring with any other language? If yes what packages can I use to do that?
Mark
- 1,286
63
votes
8 answers
Writing readable LaTeX code for math formulas
Lets say I have the following LaTeX code
\subsection{Convex sets}
A set \( \mathcal{S} \)
in \( \mathbb{R}^n \)
is said to be convex if
\[ \mathbf{x}_1, \mathbf{x}_2 \in \mathcal{S} \implies \lambda \mathbf{x}_1 +
(1-\lambda) \mathbf{x}_2 \in…
evading
- 783