Tag Info

Hot answers tagged

5

You shouldn't use the package with lualatex and xelatex. It uses the wrong font encodings for this engines. If I got it right from your various questions your problem is that you want to set the slanted font and that this disturbs the small caps. This is imho a bug in fontspec and I made a report: https://github.com/wspr/fontspec/issues/209. You can get ...


5

\boldsymbol is still inside \mathnormal, thus the setting of \mathnormal is overwritten by \boldsymbol. A way to solve this is to redefine \boldsymbol inside \coef: \documentclass[12pt,a4paper]{letter} \usepackage[latin1]{inputenc} \usepackage{amsmath,amsfonts,amssymb} \newcommand{\x}{\boldsymbol{x}} \newcommand{\coef}[2]{% \begingroup ...


4

A variant of Heiko's method; I also use bm, that features a better implementation of \boldsymbol (that can also be called \bm). With \ifcoef you can disable \boldsymbol more easily also in other situations, by simply setting \coeftrue (in a group). \documentclass[12pt,a4paper]{article} \usepackage{amsmath,amssymb,bm} \newif\ifcoef \newcommand{\bvec}[1]{% ...


4

Open Sans Condensed comes in Light, Light Italic, and Bold, with no Bold Italic. You can use it like this: \documentclass[20pt]{beamer} \usepackage{fontspec} \usefonttheme{professionalfonts} \setsansfont{Open Sans Condensed Light}[ Numbers=OldStyle, ItalicFont={* Italic}, BoldFont={Open Sans Condensed Bold}] \begin{document} \begin{frame} ...


3

For automatic correct positioning, you should define a new math alphabet: \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \DeclareMathAlphabet{\mathbcal}{OMS}{cmsy}{b}{n} \begin{document} \begin{align*} \check{A}\\ \check{\mathbf{A}}\\ \check{\mathcal{A}}\\ \check{\mathbcal{A}} \end{align*} \end{document}


3

For one-off cells you can always use a \multicolumn command such as \multicolumn{1}{c}{\bfseries \num{11111.11}} This can be packaged in to a macro \tbnum for convenience: \newcommand{\tbnum}[1]{\multicolumn{1}{c}{\bfseries \num{#1}}} \documentclass{article} \usepackage{etoolbox,siunitx} \robustify\bfseries ...


2

I assume you're using LuaLaTeX. An advantage of running \usepackage{erewhon} is that it lets you generate not only "regular" (i.e., upright) smallcaps but also bold smallcaps, slanted smallcaps, and bold-slanted smallcaps. (I'll let others weigh in on the subject of whether it's in fact a good idea to have these additional font shape and weight ...


2

I think, only X and Y should b bold, whereas Var and Cov upright as words/operators (short for "variance" and "covariance"). Defining and using \X and \Y for \mathbf{X} and \mathbf{Y} is a good compromise IMHO. \documentclass{article} \usepackage{amsmath} \DeclareMathOperator{\Var}{Var} \DeclareMathOperator{\Cov}{Cov} \newcommand*{\X}{\mathbf{X}} ...


2

The idea is correct using addtohook and \bookmarksetupnext. However, bold=false of \bookmarksetupnext is overwritten by the hook. Therefore \bookmarksetupnext must also use the hook: \documentclass[listof=totoc]{scrreprt} \usepackage{bookmark} \bookmarksetup{ open, addtohook={% \ifnum\bookmarkget{level}=0 % \bookmarksetup{bold}% ...


2

You can provide an additional toggle (or conditional) that is used in your hook. Below I defined \ifboldPDFchapters that you can switch depending on what you need, and added the conditional to the hook: \usepackage{bookmark} \newif\ifboldPDFchapters \bookmarksetup{ open, addtohook={% \ifnum\bookmarkget{level}=0 % \ifboldPDFchapters ...


1

You have to redeclare the math code for the uppercase letters after defining a new symbol font. \documentclass{article} \usepackage{amsmath} \DeclareSymbolFont{boldletters}{\encodingdefault}{\familydefault}{bx}{n} \DeclareSymbolFontAlphabet{\mathbf}{boldletters} \DeclareMathSymbol{A}{\mathalpha}{boldletters}{`A} ...


1

Does this solution work for you? \documentclass{beamer} \usefonttheme{serif} \setbeamerfont{title}{series=\bfseries,parent=structure} \setbeamerfont{frametitle}{series=\bfseries,parent=structure} \title{Test} \begin{document} \begin{frame} \titlepage \end{frame} \begin{frame} \frametitle{Test} Test \end{frame} ...



Only top voted, non community-wiki answers of a minimum length are eligible