Tag Info

Hot answers tagged

10

Option professionalfont helps to reduce the font declarations by beamer (older versions): \documentclass[professionalfont]{beamer} \usepackage{siunitx} \usepackage{newtxtext,newtxmath} \usepackage{bm} \begin{document} \end{document} Newer beamer versions want a font theme instead of the option: \documentclass{beamer} \usefonttheme{professionalfonts} ...


7

\documentclass{article} \newcommand{\myF}{\textit{f}} \newcommand{\myA}{\textit{a}} \newcommand{\yourF}{\begingroup\itshape f\endgroup} \newcommand{\yourA}{\begingroup\itshape a\endgroup} \begin{document} \myF\myA \yourF\yourA \textit{fa} \end{document}


5

The argument of \operatorname is typeset in the “operator font” that uses the OT1 encoding, where no \L character is available, but only plain ASCII letters. Changing it to be T1-encoded would make it harder to use Greek uppercase letters. When you run your example, you see three warnings LaTeX Warning: Command \L invalid in math mode LaTeX Warning: ...


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

If you are using the default settings and want serif font for just a symbol, you can define a command for it using \mathrm \documentclass{beamer} \newcommand\SPi{\mathrm{\Pi}} \begin{document} \begin{frame} $\SPi\quad\Pi$ \end{frame} \end{document} On the other hand, if you are using the serif math fonts, you can use \mathsf to define your sans-serif ...


2

When you install fonts into a TEXMF tree, TeX needs various things in order to use them: The various files must end up in the directories TeX expects. In your case, this is already all in order. TeX must be able to find the various files when it looks. Since you installed into your personal tree, TEXMFHOME, this is straightforward: TeX will find them so ...


2

Assuming that it is, in fact, the first image which is created by LaTeX and the first by Word, I take it that the following would be an adequate MWE (actually, not quite minimal but almost): \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{setspace} \doublespacing \usepackage{lipsum} \begin{document} ...


1

I've found out a solution. Here's a MWE: \documentclass{article} \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage{MinionPro} % https://github.com/sebschub/fontpro \usepackage{libertine} \usepackage{titlesec} % garamondx emph % install it with https://www.tug.org/fonts/getnonfreefonts \let\emph\relax ...


1

The following example with up-to-date TeXLive works well: \documentclass{amsart} \usepackage{colonequals} \usepackage[math-style=ISO]{unicode-math} \setmainfont[Numbers=OldStyle]{Minion Pro} \setmathfont{MinionMath-Regular} \setmathfont[range={\mathfrak,\mathcal}]{XITS Math} \begin{document} foo \textit{bar} \textbf{baz} \begin{equation*} f(x) ...


1

I had the same problem with FontAwesome and struggled a lot with my new Windows 10 Installation, MiKTeX 2.9 and TexStudio. I also tried other things like running initexmf --mkmaps and initexmf --update-fndb or reinstalling MiKTeX or reinstalling the packages using MPM which didn't help me. Here is what worked: miktex-makepk: PK font ...



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