Most Popular
1500 questions
68
votes
2 answers
Why should I put a ~ before \ref or \cite?
My question is in the title of this post, but extends to other referencing commands like \eqref, \citep, \citet (and the like) as well.
Mesar
- 835
68
votes
5 answers
How to draw a solid colored circle?
I am working on some book writing. For that I need to draw circle filled with red color.
I tried \circle but it generate black circle only. How can I fill it with color?
manish
- 9,111
68
votes
1 answer
What does --shell-escape do?
I stumbled upon an example, which needed to be compiled with the additional option --shell-escape. Using this option it worked just fine, but I'm curious:
Why or when is this option needed and what does it actually do?
rtzll
- 5,531
68
votes
5 answers
Quickly extracting individual pages from a document
Let's say I have created a 100-page book with the book document class.
What is the quickest way to extract, say, pages 3, 67-70, and 80 from the book into six separate PDF files? Is there any standard tool/script out there that does this very…
MayGodBlessKnuth
- 2,843
68
votes
4 answers
double perpendicular symbol (for independence)
I found from http://jblevins.org/notes/latex that I could use the independence symbol:
\newcommand\independent{\protect\mathpalette{\protect\independenT}{\perp}}
\def\independenT#1#2{\mathrel{\rlap{$#1#2$}\mkern2mu{#1#2}}}
I was wondering how…
Memming
- 1,137
68
votes
7 answers
How to create Highlight Boxes in LaTeX?
I am writing an Article in LaTeX.
Please suggest me how to create a highlight boxes like the ones shown below in LaTeX:
Sandeep Singh
- 2,069
68
votes
1 answer
Using \author and \thanks for authors with common affiliations
What is the correct way to use \author and \thanks when I want to have multiple authors having common affiliations? For instance, using
\author{ABC\thanks{XYZ} \and DEF\thanks{UVW} \and GHI\thanks{XYZ}}
produces the following output
at the top of…
user1876
68
votes
5 answers
Remove space after figure and before text
I have a figure in my paper (I am using IEEEtran package). After this figure there exists a space between the figure and the text. How can I reduce the size of this white space. To be specific the space is between the caption of the figure and the…
sheet_ethics
- 2,921
68
votes
3 answers
Creating a new environment with one optional argument
I want to create a new environment with one optional argument in LaTeX. Here is what I used:
\newenvironment{argument}[1][]{%
\par
\noindent
\textbf{Argument#1:}
\noindent}
{}
When there is no argument, it typesets the ':' right after the word…
Ali
- 1,331
68
votes
9 answers
Creating gears in TikZ
I am trying to create a gear in TikZ in which the number of spikes can be determined and the size as well. I was looking through the pgfmanual and stumbled upon the decorations section and I tried a piece of code there. Here is what I have so…
azetina
- 28,884
68
votes
1 answer
Optional argument for newcommand?
Possible Duplicate:
Different command definitions with and without optional argument
I would like to define a macro which takes an optional argument, and behaves in different ways depending on if the optional argument is given or not. As a very…
StrawberryFieldsForever
- 3,798
68
votes
5 answers
How to get an even smaller font size than \tiny?
I wanted to amplify the effect of specifying the font size. So I tried:
{\tiny\tiny Super tiny text!}
But that doesn't seem to work. I needed suggestions to achieve the same goal.
Shashank Sawant
- 6,557
- 11
- 37
- 49
68
votes
3 answers
How to include existing PDF slides into my Beamer presentation?
Is there a way to incorporate some slides into an existing slide into my Beamer presentation?
Say, I want to put slide 2 in file A (a Beamer PDF file) into my Beamer presentation, can this be done?
PS: file A is a PDF and does not have bounding box.
Richard
- 1,157
68
votes
3 answers
Forcing page numbers with IEEEtran
The IEEEtran document class is hiding page numbers from my document! Is it possible to force page numbers to appear in the document?
EDIT: Sorry I should have mentioned that I am using conference mode!
Sandro
- 783
- 1
- 5
- 5
68
votes
1 answer
Closer underline
I am currently using \underline{...} to underline text.
However, I want the underline to be closer to the letters (as of now, there's too much whitespace between the letters and the line). Is there a simple way to do this?
jamaicanworm
- 29,114