Most Popular
1500 questions
71
votes
5 answers
How to include a document into another document?
I have two documents A and B. Both of them are separate documents. But document A also has to include document B.
Now if I use \include{B} i get the following error:
! LaTeX Error: Can be used only in preamble.
See the LaTeX manual or LaTeX…
RoflcoptrException
- 14,245
71
votes
2 answers
Is it always best practice to not include text punctuation in inline math mode?
It has been pointed out on this site, e.g. here by egreg, that text punctuation doesn't belong to the formula in inline math. I've been following this practice for a long time, so I write for all $v\in V$, where ... as opposed to for all $v\in V,$…
Hendrik Vogt
- 37,935
70
votes
2 answers
Beamer text and image on the same slide
I am new to Beamer and LaTeX itself.
Right now, I want to create a simple slide with an image on the right and text and the sidebar (using the Hannover theme) on the left. I cannot figure out how to do that.
Any suggestions?
Rick_2047
- 1,103
70
votes
2 answers
Hyperref: Changing the linkcolor locally in the TOC
I found that the link-color for TOC text is identical to the link-color for Figures and Tables. When I change the color to black in the TOC also the color for Figures/Tables citation etc. is changed.
Is there a way to separately set the colors…
KOF
- 5,019
70
votes
1 answer
Disable two column mode for separate part
I am writing a document using the report class in two column mode, but I need a \section to spread across both columns, but how can I set that?
Something…
The87Boy
- 1,563
- 4
- 13
- 15
70
votes
7 answers
How to balance last page of two-column layout?
I create a document in two-column-layout with LaTeX (and Koma-Script, if that is relevant). The two-column-layout is defined in documentclass. The last page of an chapter fills the left column first - the result is that both column are of different…
Mnementh
- 4,157
70
votes
3 answers
Understanding \@ifnextchar
I understand the definitions of the \makeatletter and \makeatother commands and also \def and \newcommand somewhat. But, explained in a simple way, what is happening in the following line?
\@ifnextchar[…
Abhimanyu Arora
- 3,733
70
votes
4 answers
How can I get rid of indentation after an equation?
I'm a total newbie to LaTeX and I get very annoyed about this. Every time I write an equation, the text following the equation has some indentation but I don't want it to be there!
Look at the following…
Juan A. Navarro
- 62,139
- 32
- 140
- 169
70
votes
4 answers
Custom theorem numbering
This one should be easy for the gurus…
Suppose I want to define a theorem environment which has a custom numbering scheme. That is, instead of being numbered according to some counter, it is numbered according to a passed parameter. So writing…
Skeptic
- 3,025
- 5
- 26
- 23
70
votes
6 answers
Why are URLs typeset with monospace fonts by default?
When typesetting URLs in LaTeX using the url package, they are set in a mono space font by default. While I just accepted that as a fact for a long time, I am now starting to wonder why?
In Browsers, for example, the URL in the address bar is also…
Ingo
- 20,035
70
votes
3 answers
How to automatically hyphenate within \texttt?
This question was phrased as a bug report for LaTeX and I thought it would be helpful to be presented here (including an answer).
The person had a lot of "common words" in typewriter font sprinkled around his text and he was surprised that this text…
Frank Mittelbach
- 77,146
70
votes
3 answers
TeX family tree with timeline?
When I first started using TeX, I felt overwhelmed by the myriad of names — BibTeX, XeTeX, LaTeX, XeLaTeX, ConTeXt, LuaTeX, MacTeX, TeXLive — and more. I didn't know the packages from the programs from the distributions, or what begat what.
Since…
Todd Lehman
- 13,912
70
votes
6 answers
When should \cdot be used to indicate multiplication?
Is this purely personal style, or are the generally accepted guidelines? Clearly, when dealing with numbers either $2 \cdot 2$ or $2 \times 2$ is needed, but within formulae where an absence of an operator implies multiplication, when should a \cdot…
Gregor Thomas
- 897
70
votes
3 answers
Display source for a command
When using renewcommand, sometimes I wish to first check what the original source code for a particular command, such as chapter was before I change it, so that I can be certain that I do not make unintended changes. When I have a lot of packages…
Village
- 13,603
- 23
- 116
- 219
70
votes
3 answers
What is the difference between tabular, tabular* and tabularx environments?
There have been quite a few hit on Google, including one in Tex SE, but none of those made a complete sense to me. Please don't write something like:
tabular* adjusts the space between text of adjacent columns to get a
given table width, tabularx…
sherlock
- 1,463
- 2
- 15
- 21