# Tag Info

1

The following code defines \bmA to be \bm{A} for A running over all letters in the alphabet. Please do not use single letter macros, as these tend to have special meaning (accents, special symbols). \documentclass{article} \usepackage{bm} \makeatletter \newcounter{letter} \setcounter{letter}{1} \@whilenum\value{letter}<27\do{% loop over all letters in ...

1

Double embrace the \Box will allow compilation, though I can't say the boxes are emboldened. What was goal? Bold boxes, or mere compilation? For bold boxes, see Workaround below. \documentclass[]{article} \usepackage{amssymb} % Math symbols \usepackage{bm} % Access bold symbols in maths mode \usepackage{breqn} % Automatic ...

0

Another option: \documentclass{article} \newcommand{\boldm}[1] {\mathversion{bold}#1\mathversion{normal}} \begin{document} There is a normal symbol, $p_1$. Now, a bold symbol: {\boldm $p_2$}. It works! \end{document} Output:

0

I'm not sure this is wise.... Caveat emptor.... \documentclass{book} \begin{document} \frontmatter \let\bforigdefault\bfdefault \addtocontents{toc}{\let\string\bfdefault\string\mddefault} \chapter{Abstract} The Abstract'' entry (and entries for other frontmatter chapters) in the table of contents should be unbolded. \tableofcontents \mainmatter ...

2

There is no semibold version but you could scale up a smaller font size (the code I use is okay for a short portion like a title but not suitable for longer text!): \scalebox and resizebox of the graphicx package can be used too. It is up to you to decide if this looks pleasing ... \documentclass{article} \usepackage[T1]{fontenc} \usepackage{lmodern} ...

6

As described in the documentation of bm in 3.5 Strange failures you sometimes need to add braces to protect complicated commands. But in your case I would simply use \mathversion{bold} \documentclass[]{article} \usepackage{bm} \usepackage{amsmath} \begin{document} $\bm{a\mathrel{\xleftarrow{r}}b}$ \mathversion{bold}$a\xleftarrow{r}b$ \end{document}

-1

\usepackage{bm,xstring} $\vect{{\cal M}}$

7

Or this? This allows you to pass a single argument rather than two. Unlike my original code, this makes an approximate adjustment for the loss of kerning when switching fonts (bold -> small-caps), based on David's suggestion. \documentclass{article}% don't use minimal for examples \newlength\ltempa \newlength\ltempb \newcommand\newthought[1]{% ...

3

Is this what you want? The command newthought now has 2 arguments and the 1st is the first letter to be typeset in bold. \documentclass{minimal} \providecommand\newthought[2]{% \addvspace{1.0\baselineskip plus 0.5ex minus 0.2ex}% \noindent\textbf{#1}\textsc{#2}% small caps text out %\noindent\textsc{\textbf{#1}#2}% prettier code } ...

0

Your MWE is full of tricks, so one more will not be harmful :-). Try the following: \documentclass{article} \usepackage{array} \usepackage{booktabs} % midrule, tabularnewline \usepackage{amssymb} % boldmath \newcolumntype{+}{>{\global\let\currentrowstyle\relax}} \newcolumntype{^}{>{\currentrowstyle}} ...

4

If \ce is used, there's no need to use either \mathbf nor the optional argument of the \subsection command at all. \documentclass{article} \usepackage[version=4]{mhchem} \begin{document} \tableofcontents \section{Foo} \subsection{Foobar} \subsection{formation of \ce{N2O} during \ce{NH3}-SCR} \end{document}

1

Remove the \mathbf from the section head, and then just specify that you want math to be bold in the heading at the same point as you specify bold text, for example in article the default definition is \newcommand\subsection{\@startsection{subsection}{2}{\z@}% {-3.25ex\@plus -1ex \@minus -.2ex}% ...

1

Rather than rely on macros which you yourself consider to be "a little out of date", you may to employ the capabilities of the tocbibind and tocloft packages to achieve your formatting objectives. Incidentally, \bf is a plain-TeX macro whose use is deprecated under LaTeX. At any rate, \bf does not take an argument; if you must use it, write {\bf List of ...

Top 50 recent answers are included