2,763 reputation
1323
bio website
location Denmark
age 31
visits member for 4 years, 4 months
seen Dec 15 at 14:42

I've been using LaTeX and MetaPost for about 10 years, occasionally playing with pure TeX. I read the newsgroup comp.text.tex regularly, and have learnt a lot from the wizards there.

I spend quite a lot of time reading manuals. When someone asks me for help, and the solution involves package foo, I strongly urge them to read the documentation for foo, or at the very least the part solving their problem.


Since I don't have a blog (or even an actively maintained website), let me put a small rant here:

I don't like to see when people (often beginners) get wrong answers, just because they did not ask the right question. A few examples should explain what I mean:

Q: How do I write $lcm(12,18)$ so that lcm comes out in roman?

A0 Use "lcm$(12,18)"

A1 $\mathrm{lcm}(12,18)$

A2 $\operatorname{lcm}(12,18)

A0 is obviously very wrong. The two others are not strictly wrong as they answer the question, but they don't answer the question the OP meant to ask, namely "How do I define my own operator, like \gcd". Often the beginner does not know that that is the Right Question, so it is up to those with experience to answer

A Use the \DeclareMathOperator from the amsmath package; say e.g. \DeclareMathOperator{\lcm}{lcm}.

While A2 comes close, we certainly don't want people to get the impression that they need to type 18 characters every time they want "lcm".

Another example is

Q How do I make a curly C?

Wrong A: \mathcal{C}

Right A: If you are writing about category theory, say, you can define a macro \cat which typesets its argument using a calligraphic math font: Just write \newcommand{\cat}[1]{\mathcal{#1}} in your preamble, and then use \cat{C} whenever you want to refer to the category C. If you later decide that you want to use boldface for categories instead, you just change \mathcal to \mathbf.


21h
awarded  Guru
Nov
11
awarded  Nice Answer
Sep
24
awarded  Autobiographer
Aug
3
awarded  Yearling
Jul
24
awarded  Nice Answer
Jul
9
awarded  Good Answer
May
20
awarded  Nice Answer
May
14
awarded  Nice Answer
Nov
7
awarded  Nice Answer
Oct
13
awarded  Good Answer
Sep
13
awarded  Nice Answer
Aug
3
awarded  Yearling
Jul
29
awarded  Enlightened
Jul
29
awarded  Nice Answer
May
19
awarded  Good Answer
Dec
17
awarded  Good Answer
Aug
3
awarded  Yearling
Jun
8
awarded  Constituent
Jun
8
awarded  Caucus
Aug
27
awarded  Nice Question