Tag Info

New answers tagged

2

When fontspec doesn’t find the bold or italic of a font, you sometimes have to help it along. If the font’s name is Pecita Bold, \setmainfont{Pecita}[BoldFont={* Bold}] should work (in older versions of fontspec, use \setmainfont[BoldFont={* Bold}]{Pecita}). Section 5.1 of the fontspec documentation gives more information about this.


2

Two versions, one without hyperref, one with it. No hyperref \documentclass{article} \begin{document} \section{\protect\boldmath Bold $\pi$} \end{document} With hyperref \documentclass{article} \usepackage[unicode]{hyperref} \begin{document} \section{\protect\boldmath Bold \texorpdfstring{$\pi$}{\textpi}} \end{document}


1

Unless using a special font, the macro\boldsymbol from amsbsy package should do. (Beware, that math typesetting will make the bookmarks weird if used unless \texorpdfstring with appropiate workaround is applied) \documentclass{article} \usepackage{amsbsy} \usepackage[unicode]{hyperref} \begin{document} \section{Not bold $\pi$} \section{Bold ...


1

The sans-serif default font does not have small capitals. You can use a different font, eg KP Sans-Serif. With \usepackage[sfmath]{kpfonts} in the preambule it produces the following result:


0

this works for me \textbf{BOLD}


4

The definition of \bfseries in latex.ltx reads \DeclareRobustCommand\bfseries {\not@math@alphabet\bfseries\mathbf \fontseries\bfdefault\selectfont} so it's sufficient to say \makeatletter \DeclareRobustCommand\bfseries{% \not@math@alphabet\bfseries\mathbfsf \fontfamily\sfdefault\fontseries\bfdefault\selectfont } ...


3

Have you tried inserting \renewcommand{\textbf}[1]{{\bfseries\sffamily#1}} in the preamble of your document? Note the double pair of curly braces; the innner pair serves to constrain the application of \bfseries\sffamily to the argument of \textbf. Addendum: As the comments by cgnieder and egreg allude to, the LaTeX kernel (see the file latex.ltx, ca. ...



Top 50 recent answers are included