Linked Questions

5
votes
1answer
12k 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
229 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
117 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
47 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{\...
177
votes
45answers
18k 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 ...
361
votes
3answers
698k 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 ...
166
votes
10answers
18k 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 ...
89
votes
8answers
7k 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 ...
45
votes
4answers
47k 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 ...
74
votes
3answers
25k 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 ...
39
votes
5answers
30k 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?
41
votes
4answers
4k 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
2k 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} ...
15
votes
3answers
99k 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! ...

15 30 50 per page