Michael Ummels
  • Member for 10 years, 9 months
  • Last seen more than 6 years ago
4 answers
211 votes
432k views
Nice looking empty set?
Accepted answer
242 votes

Try \varnothing from the amssymb package. It is perfectly round, and the comprehensive LaTeX symbol list states that it is preferred by many to \emptyset. \documentclass{article} \usepackage{amssymb}...

View answer
91 answers
928 votes
320k views
Showcase of beautiful typography done in TeX & friends
126 votes

If you have time to spare, you can also have a look at my thesis Stochastic Multiplayer Games: Theory and Algorithms. The font is Fedra Serif B, combined with FdSymbol. Edit: My LaTeX class file is ...

View answer
4 answers
12 votes
2k views
Control command arguments
5 votes

I posted this already on Dick's blog. I think there is an easier way to do what Dick wants to do (if I understand him correctly) by using the \url command provided by the hyperref package. In this ...

View answer
1 answers
3 votes
2k views
MinionPro and beamer: figure selection
Accepted answer
3 votes

You need to use the professionalfont option. You get lining figures in math mode if you replace \documentclass[serif,professionalfonts]{beamer} by \documentclass[serif,professionalfont]{beamer} (...

View answer
3 answers
6 votes
704 views
Why does vector graphics font not exist for a certain size?
Accepted answer
7 votes

Latex 2e uses the New Font Selection Scheme (NFSS) to associate font families with single fonts (all the information of which TeX needs resides in TFM files). For this, the NFSS provides two commands \...

View answer
3 answers
9 votes
535 views
Changing href's to footnotes
6 votes

This solution also works with URLs that include active characters such as &, % and # (requires hyperref): \makeatletter \newcommand\hreffootnote@[2]{\footnote{\hyper@linkurl{\Hurl{#2}}{#1}}} \...

View answer
2 answers
11 votes
18k views
LaTeX Calligraphic Script Bold
12 votes

The RSFS fonts are not available in a bold version. You can however use the \pmb command from the amsbsy package, which simulates a bold weight by putting three copies of the respective character next ...

View answer
5 answers
32 votes
35k views
Bold calligraphic typeface
29 votes

You can define your own math alphabet that accesses the Computer Modern symbol font in its bold weight. \documentclass{article} \DeclareMathAlphabet\mathbfcal{OMS}{cmsy}{b}{n} \begin{document} $\...

View answer
3 answers
16 votes
9k views
Removing the line and address from scrlttr
Accepted answer
21 votes

To remove the line and the text, add backaddress=off to the class options. To remove just the line, add backaddress=plain to the class options.

View answer
2 answers
21 votes
9k views
How to create a font from scratch
Accepted answer
21 votes

As stated in this tutorial, there are several ways to design a font. In any case, you will need a software for font editing. FontForge is a powerful and free font editor. In particular, it can ...

View answer
3 answers
12 votes
15k views
Redefining sectioning commands
3 votes

\long macro :-> is not part of the definition of the macro, and you need to change the catcode of @ in the definition. The following should work: \makeatletter \renewcommand{\subsubsection}{\@...

View answer
3 answers
30 votes
7k views
Create a symbol font from SVG symbols
Accepted answer
36 votes

Here are some rough step-by-step instructions to generate a font using FontForge and make it available to TeX. Start FontForge and create a new font. Import the SVG files into the different glyphs. ...

View answer
1 answers
6 votes
313 views
Uneven subscripts.
Accepted answer
8 votes

Are you referring to inline or display math? In display mode, the mathtools package provides a command to adjust the "limits" \documentclass{article} \usepackage{mathtools} \begin{document} \[\...

View answer
5 answers
167 votes
632k views
The \bar and \overline commands
126 votes

I usually define a command \overbar, which reduced the width of \overline by 1.5mu on each side. \documentclass{article} \usepackage{amsfonts} \newcommand{\overbar}[1]{\mkern 1.5mu\overline{\mkern-...

View answer
2 answers
4 votes
13k views
Changing KOMA Script font family?
4 votes

I don't know about FreeSans, but if somebody has built a LaTeX package for your font, just loading the package should make that font the default sans-serif font. For example, add \usepackage{helvet} ...

View answer
2 answers
10 votes
6k views
Is there any way other than \pmb to produce bold greek letters when mathptmx is used?
Accepted answer
9 votes

To use Computer Modern for bold Greek letters, you can put the following into the preamble of your document: \usepackage{amsmath} \SetSymbolFont{letters}{bold}{OML}{cmm}{b}{it} \SetSymbolFont{...

View answer
1 answers
5 votes
548 views
Use variant glyphs from Mac OS X fonts under Linux
3 votes

I once implemented a similar thing using TeX's tail recursion. Adapted to your situation, my macro definition would look like this: \def\varianttext{% \begingroup \obeyspaces \@varianttext} \def\@...

View answer
1 answers
11 votes
7k views
how to use MnSymbol along with other packages
Accepted answer
6 votes

MnSymbol is indeed imcompatible with amssymb and amsfonts. To use the AMS blackboard font in conjunction with MnSymbol, you can add the following to the preamble of your document: \...

View answer
3 answers
19 votes
3k views
How can I get letter spacing?
Accepted answer
25 votes

With the microtype package and pdfTeX, you just need to enclose the text which you want to emphasize in a \textls command. You can adjust the amount of letterspacing (Sperrsatz) globally by adding ...

View answer
1 answers
16 votes
420 views
Unexpected interaction between microtype and \parindent
Accepted answer
10 votes

The idea behind the protrusion option in the microtype package is to allow certain characters protrude into the margin, which can help to make the margins look more even to the human eye. As Hàn Thế ...

View answer
1 answers
3 votes
623 views
Insert \nobreak into subsection title in titletoc's \titlecontents star version
Accepted answer
3 votes

You can put the whole label into a box by adding \mbox to the label argument of \titlecontents. Also, I guess that you want to set the relevant parts of the TOC ragged-right to avoid labels running ...

View answer
1 answers
7 votes
1k views
Large gaps between paragaphs VS avoiding widows / orphans
Accepted answer
6 votes

You can try to set \looseness=1 or \looseness=-1 to make certain paragraphs one line longer or shorter, respectively. This is described in the TeXbook on page 103-104.

View answer
1 answers
1 votes
410 views
Hyphenation in Perl package names
Accepted answer
3 votes

I usually define a command \dbr for discretionary breakpoints like this: \newcommand\dbr{\disretionary{}{}{}}. Then you can write XXXX::\dbr YYYY::\dbr ZZZZ, which should have the effect you desire. ...

View answer
4 answers
12 votes
1k views
Reference undefined in \section with amsbook
5 votes

A workaround is to define a new macro that contains the expanded reference and use this macro in the section title: \edef\mythmref{\ref{thm}} \section{Proof of Theorem~\mythmref}

View answer
1 answers
8 votes
2k views
Why is LaTeX giving all of my theorems the same number?
Accepted answer
11 votes

So, you found the solution already. If you want different theorem environments to share a counter, use the third numbering scheme. However, why do you define a new theoremstyle for each of your ...

View answer
2 answers
2 votes
2k views
kpfonts with eufrak
Accepted answer
2 votes

If you refer to Euler Fraktur as the "standard mathfrak", it should be as easy as loading the eufrak package after the kpfonts package and undefining \mathfrak inbetween. \usepackage{kpfonts} \let\...

View answer
2 answers
43 votes
78k views
Sums in math mode: how to display index under the sigma sign?
Accepted answer
58 votes

\begin{displaymath} \frac{\sum\limits_{s \in S} s^2}{\sum\limits_{p \in P} p^2} \end{displaymath}

View answer
2 answers
5 votes
1k views
Install font easily - product integral?
Accepted answer
3 votes

Here is a quick and dirty bash script to copy the files into the local TeX tree and call the commands to activate the configuration. If you save the file as installprodint in the directory where you ...

View answer
4 answers
9 votes
7k views
Splitting very big numbers over several lines
6 votes

I've written a small macro that automatically inserts \- after each digit of a given number, as proposed by hlovdal: \makeatletter \def\@bignumber#1#2{% \ifx#2\end #1\let\next\@gobble \else ...

View answer
3 answers
9 votes
8k views
Non-repository management of TeXLive packages on Ubuntu
2 votes

If you are just interested in a newer version of beamer, you can also install beamer in your home directory (I believe the default path under Ubuntu is ~/texmf). See Section 2.3 of the beamer user ...

View answer