Linked Questions
78 questions linked to/from Will two-letter font style commands (\bf , \it , …) ever be resurrected in LaTeX?
7
votes
1answer
16k views
\bf is an undefined command [duplicate]
I am very new to Latex and I am getting this error:
Class scrartcl Error: undefined old font command `\bf'.
See the scrartcl class documentation for explanation.
Type H <return> for immediate ...
0
votes
0answers
1k views
Difference between `\sl` and `\slshape`? [duplicate]
What's the difference between using \sl and \slshape? I don't see any in the pdf.
1
vote
0answers
119 views
Parse markdown automatically (just emphasis) without luatex [duplicate]
I want to parse markdown emphasis automatically in XeLaTeX. This basically means converting asterisks either side of a word into the \emph{word} that LaTeX uses. I know that more complex Markdown ...
1
vote
0answers
56 views
How to make **hello** produce hello in italics? [duplicate]
I know I can make *hello* produce hello in bold typeface. But how would I, in addition, make **hello** produce hello in italics?
\documentclass{article}
\begingroup\lccode`\~=`* \lowercase{\...
187
votes
46answers
20k views
What are the most common mistakes that beginners of (La)TeX and Friends make?
I want to collect the most common mistakes, misconceptions, pitfalls, etc that (La)TeX and Friends users make. Please one answer for each mistake, misconception, pitfall, etc.
I am only interested in ...
420
votes
3answers
877k views
“Correct” way to bold/italicize text?
Is either of these considered better/more readable/more "proper"/more conventional than the other for making text bold? If so, what is the reason?
I like my text \textbf{bold}
versus:
I like my ...
180
votes
10answers
21k views
Why is LaTeX so complicated? [closed]
I have been using LaTeX professionally almost every day for almost 10 years, so I think I can say that, by now, I more or less know what I'm doing. I also do a lot of ordinary computer programming, in ...
97
votes
8answers
8k views
Why can't the end code of an environment contain an argument?
Environments are allowed to have arguments, but reference to those arguments can only appear in the opening code of the environment, and not the closing code. What is the reason for this, and are ...
93
votes
9answers
29k views
How do I repeat a theorem number?
Often in my papers I want to mention theorems in the introduction that are introduced in more detail and proved in a later section.
I'd like to include the statement of these theorems twice over, ...
53
votes
4answers
63k views
How to construct a coloured box with rounded corners
Here is the specs of the box.
Color of the bar rule should be:
\definecolor{mycolor}{rgb}{0.122, 0.435, 0.698}
Radius of the 4 corners of the box: 4pt
Thick line = 0.5pt
Text should be 6pt ...
83
votes
3answers
33k views
“Too many math alphabets” error
I just got the error
Too many math alphabets used in version normal.
on a document I'm editing. What can I do to fix this, other than stop using an alphabet? All I've found online is instructions ...
45
votes
5answers
35k views
Changing style of Proof
I'm using the \begin{proof} of the amsthm package. And I want to change the style of the Proof word that is added in the beginning. By default it is italic, I want to make it bold. How can I do it?
43
votes
4answers
5k views
What do \@firstoftwo and \@secondoftwo do?
The LaTeX kernel uses these two all over the place. For example, apparently the correct way of defining something like \ifeq{\macro 1}{\macro 2}{true}{false} is (note Martin's response: each case ...
21
votes
3answers
4k views
Use Markdown-style formatting for bold and italic
I rather like the system here where *...* is italic, **...** is bold, and ***...*** is bold italic. Is it possible to do that in (La)TeX?
A MWE that implements the first one:
\documentclass{article}
...
19
votes
4answers
36k views
How to align text to the right in math mode?
I have a table of formulas, some have a description next to them, I want the equations to appear left flush and the text between parentheses right flush. I was writing it in the following way.
\...
16
votes
3answers
104k views
How to bold just one word in a line
If I have a line of text, how do I make just the first word bold?
I tried this:
\bf{NTn} = Number of lines
but it made the entire line bold.
14
votes
4answers
1k views
Can I get $$…$$ to behave like \[…\]?
Is it possible to modify LaTeX so that good old $$...$$ behaves like \[...\] (and by this I mean that it should be synonymous to it).
If yes: Dear LaTeX3 developer, please integrate this into LaTeX3! ...
16
votes
2answers
2k views
Why are these commands considered as bad practice?
I was reading LaTeX: Do not use these commands, but the author didn't explain why they are bad. Could anyone help me understand.
\\ (except inside a special environment like tabular, array, or ...
19
votes
2answers
1k views
Is there any reason not to use \let to redefine a deprecated control sequence to the currently recommended one?
I understand that \bf and \it are both deprecated in the current version of LaTeX. To the best of my knowledge, the correct control sequences replacing them are \bfseries and \itshape.
Is there any ...
15
votes
2answers
37k views
customizing the algorithmic package: break and loop labels
I would like to add two customizations to the algorithmic package: introduce a new break command and have the possibility to provide labels to the LOOP so that break {label} is clear to which loop is ...
11
votes
3answers
11k views
Memoir class and Bibtex
I have
biblio.bib:
@article{XX,
title={{Title}},
author={Author},
journal={Journal Title},
volume=1,
number=11,
pages={1-2},
year=1666
}
And myfile.tex
\documentclass[oneside]{memoir}
\...
10
votes
4answers
28k views
Space between lines
I try to typeset title pages and use LARGE and bold for this. The problem is that the lines seem to be too close to each other. I think it looks bad. Is this the way it is supposed to be? Is there a ...
7
votes
1answer
29k views
Merge columns in LaTeX
I would like to merge column in LaTeX. I can make that but this line is incomplete because it still open on the left. Perhaps you will not understand what I mean, but this is the code that I wrote
\...
13
votes
1answer
14k views
Synonyms for \bfseries and \itshape and such?
Seeing as it is quite confusing for non-TeX expert to know how to specify italic or bold font, and the names such as \bfseries are not straightforward...
Is there a package that defines synonyms like ...
4
votes
1answer
9k views
! Paragraph ended before \@optionaltemp was complete
I'm desperate, can't figure out what's going on...
So here's my code for a gloosed example:
\a
\begingl
\gla nie ale jeśli ją \underline{pan} \underline{zobaczy} \underline{będzie}
\underline{pan} \...
6
votes
2answers
2k views
Why is the \bf command applied to more than I asked?
MWE:
\documentclass{article}
\usepackage{bm}
\begin{document}
$$x(t), \bf{x}(t), \bf{x(t)}$$
\end{document}
Result:
Question:
Why are the second and third x(t) typeset the same? In the second ...
9
votes
2answers
2k views
Remove spaces after a custom definition
As scientific species names should be written in italic, I have adopted a shortcut to do this in LaTex by creating a definition in the preamble:
\def\GM{{\it Gadus morhua~}}
Then it's easy to call ...
8
votes
1answer
8k views
How can I get TeXstudio's syntax highlighting to recognize an unknown command?
TeXstudio does not recognize the LaTeX command \rm (red highlighting in the document, with the message: unrecognized command), even after I activate all possible completion files (.cwl).
In such a ...
3
votes
2answers
11k views
How to write maths symbols
I have written in my work $X^{+},\,\rm{e}^{X},\,|X|^{p}$. Why is the second and third term not in italics?
9
votes
1answer
11k views
define an global variable; error ! Use of \@ doesn't match its definition
I want to define some variable for my IPE template, such as the title, affiliation and author etc. The code is listed below. However when I compile it using pdflatex, it does not show the result what ...