Most Popular
1500 questions
65
votes
1 answer
What, if anything, is the advantage of \bigskip and friends over \vspace?
What are the advantages to using \bigskip, \medskip, and \smallskip instead of just using \vspace{somelength}?
vanden
- 30,891
- 23
- 67
- 87
65
votes
1 answer
Multiple Alignment in equations
The following equations need to be aligned in two spots. If I use the align* environment then the second column of alignment is pushed to the right edge of the page. I googled this and saw that alignat* was suggested. So I tried that, and now the…
gsgx
- 1,239
65
votes
3 answers
What are the differences between latexmk and rubber?
I just stumbled on this blog post about rubber and was thinking: "Isn't that exactly what latexmk does?". So, now I wonder: isn't it? Or are there any differences?
jonalv
- 11,466
65
votes
9 answers
Comparing the output of two PDFs
Sometimes I want to compare the results of two different settings to see which gives better results (e.g. during the final fine tuning before handing in a document). Such settings can result in small changes in the location of words and other…
Village
- 13,603
- 23
- 116
- 219
65
votes
10 answers
How to draw a fish?
I would like to draw an image like the following.
This is what I've done so far (I used tikz, but any other package is welcome):
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[fill=blue] (.5,0)…
CarLaTeX
- 62,716
65
votes
4 answers
Change the word "Chapter" to something else
I am using fancyhdr. With that, using the command
\renewcommand{\chaptername}{Lecture}
has no effect. How can I change the name "Chapter" into something else?
Andro
- 1,587
65
votes
1 answer
How to hide/show section levels in the table of contents?
I have a table of contents (\tableofcontents) in my document. How can I hide subsections in it? I want that only names of sections are displayed there.
Lucky_girl
- 1,365
65
votes
6 answers
1.5e-10 style scientific notation looks ugly in LaTeX math mode. How can I format it (kerning, etc) more nicely?
I've noticed that e-style (for example, 1.5e-10) scientific notation does not look especially nice in Latex math mode:
(code used to generate the above image: $1.5e-10$)
In particular, the width and kerning of the negative sign is totally off. Is…
tel
- 779
65
votes
1 answer
How to code ß (German "sharp S") in BibTeX
I have an author called Jörg Geißler, whom I want to include in my BibTeX database.
I tried to use
Gei\ssler, J\"{o}rg
but this doesn't work correctly. I can't generate the PDF anymore. How do I type in the name correctly?
RoflcoptrException
- 14,245
65
votes
14 answers
Disabling URLs in bibliography
I use Mendeley for article management and export the related items to a bib file for referencing in LaTeX documents. I use IEEEtran style and see that the bibliography items include URLs which I don't want to include. The URLs may have URLs like…
petrichor
- 1,869
65
votes
9 answers
Fit text into given box by adjusting the fontsize
I would like to fit text (potentially several paragraphs) into a box of given size. This should be done by adjusting the fontsize of the contained text.
Clarification edit: The given dimensions are the maximum space the result should occupy. There…
kongo09
- 2,486
65
votes
7 answers
Beamer frame numbering in appendix
I have a beamer presentation in which I have some additional slides in an appendix. The additional slides are only there in case someone asks a specific question; I won't necessarily have to use any of them.
I am using a theme that prints both the…
ESultanik
- 4,410
65
votes
4 answers
Reference guide to begin writing a class and/or a package
Once a LaTeX user gets more and more skilled, and writes his/her own code, the question "Should I make a package (or a class) out of it?" will probably arise.
My question is (you catch me: I'm one of those users!): is there a reference guide other…
Alessandro Cuttin
- 6,963
65
votes
3 answers
Arrow in text mode
Is there a way to write the equivalent of \rightarrow in text mode?
I tried → but it threw an error, and the math arrow complained about bad environment.
It doesn't need to be exactly the same arrow, I just want to write something like "A → B" as in…
MightyPork
- 769
65
votes
3 answers
how to have a caption on top of longtable?
I want to have a longtable like this:
\begin{center}
\begin{longtable}{|p{2cm}|p{3cm}|p{7cm}|p{3cm}|}
\caption{my caption}
\hline
1 & 2 & 3 & 4\\
\hline
\hline
1 & 2 & 3 & 4\\
\hline
1 & 2 & 3 & 4\\
\hline
.
.
.
1 & 2 & 3 &…
AshKan
- 951