Hot answers tagged

14

pdfLaTeX answer The optimum depends somewhat on the used font. For Computer Modern (the default font in LaTeX), there are no bold italics, only bold extended italics. So the optimum depends whether you're using \textbf to highlight things or \textit. If you're using \textbf then the best approach would be to use \renewcommand\seriesdefault{b} in your ...


11

LuaLaTeX and XeLaTeX answer: Use the fontspec package After loading the fontspec package, modify the arguments of the \setmainfont directive to specify Bold and BoldItalics as the default font shapes. And, if needed, modify the arguments of the \setsansfont and \setmonofont instructions to obtain Bold and BoldItalics as the default font shapes for sans-...


7

It is quite normal that the enc file is located in the dvips sub-tree. The problem here is that the map file requests ntxsups_T1.enc but the actual file is called ntxsups_t1.enc. This is no problem on case-insensitive file systems. As a work-around I would try (untested): $ mkdir -p ~/texmf/fonts/enc/dvips/newtx $ cp /usr/local/texlive/2019/texmf-dist/fonts/...


5

There are a few options to use Georgian in LaTeX. A simple one is to use a font that supports the Georgian alphabet, such as DejaVu Serif, and compile with XeLaTeX or LuaLaTeX. Tested in Ubuntu Linux: \documentclass{article} \usepackage{fontspec} \setmainfont{DejaVu Serif} \begin{document} Some fonts support Georgian: კატები ყველგანაა \end{document} Result:...


5

The newtx distribution provides the file newtx.map for rebuilding the main map files (mainly pdftex.map). In this file we read ntxsups-Regular-ot1 ntxsups-Regular " ntxsupsOT1Encoding ReEncodeFont " <[ntxsups_OT1.enc <ntxsups-Regular.pfb ntxsups-Regular-t1 ntxsups-Regular " ntxsupsT1Encoding ReEncodeFont " <[ntxsups_T1.enc <ntxsups-Regular.pfb ...


4

\documentclass{article} \usepackage{bbold} \let\altmathbb\mathbb \usepackage[sc]{mathpazo} \begin{document} Hello world $\altmathbb{012345}$ \end{document} To restore the original so that no syntax variant is required: \documentclass{article} \usepackage{bbold} \let\altmathbb\mathbb \usepackage[sc]{mathpazo} \AtBeginDocument{\let\mathbb\altmathbb} ...


3

You want, I think, \symbf. However, I can't get this to work correctly with Asana Math, even when I load it by filename as XeLaTeX wants. Here's what it looks like with Latin Modern Math for comparison purposes: \documentclass{article} \usepackage{amsmath} \usepackage{unicode-math} \usepackage{parskip} \defaultfontfeatures{Scale=MatchLowercase} \...


3

There are several options. The mathalpha Package This package contains both a pazo and a px blackboard bold alphabet, matching mathpazo. \documentclass{article} \usepackage[T1]{fontenc} \usepackage{mathpazo} \usepackage[bb=pazo]{mathalpha} \begin{document} \( ABC \mathbb{ABC} \) \end{document} You could also replace the mathalpha option bb=pazo with bb=...


3

The winnower.cls available from from https://thewinnower.com/formatting_guidelines does not contain any option handling code at all. Since it loads article.cls under the hood, it would be easy to add \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} \ProcessOptions\relax to the class file. This way all options would be forwarded to article.cls. ...


3

The Pagella family uses "TeX Gyre Pagella" as family name. The italic shape is called "TeXGyrePagella-Italic". In addition, you are not setting a font family but a single font, so it makes more sense to use \newfontface. Overall, the following works for me using TeXLive 2019 on Debian Linux: \documentclass[english,a4paper,12pt]{article} \usepackage[bold-...


2

The problem is, that xelatex dosen't find the font by name. To fix that, you have to specify the font file: \documentclass[a4paper,12pt]{article} \usepackage{libertine} \usepackage[bold-style=ISO]{unicode-math} \newfontfamily\headingfont{texgyrepagella-italic.otf} \begin{document} \headingfont XX \end{document} If you run pdffonts you can see, that the ...


2

You can use the cmtex10 font: \documentclass{article} \usepackage{newunicodechar} \DeclareFontFamily{OT1}{cmtex}{} \DeclareFontShape{OT1}{cmtex}{m}{n}{<-> cmtex10}{} \DeclareTextFontCommand{\textttex}{\usefont{OT1}{cmtex}{m}{n}} \newunicodechar{≤}{\ifmmode\le\else\textttex{\symbol{"1C}}\fi} \newunicodechar{≥}{\ifmmode\ge\else\textttex{\symbol{"1D}}\...


2

You do not need to change anything since Cormorant-Regular.ttf does contain the smcp feature necessary for fontspec to use real small caps: $ otfinfo -f Cormorant_Install_v3.601/1.\ TrueType\ Font\ Files/Cormorant-Regular.ttf | grep smcp smcp Small Capitals An alternative way to see this is provided by fontforge that you mention in the comments. With ...


1

The accepted answer is good, but doesn’t say how to install this package. First, if you can possibly run LuaLaTeX or XeLaTeX, and use Unicode fonts instead, you should. It’s much simpler and works much better. Otherwise, read on. If you run MikTeX, you can use its installer to install both georgian and babel-georgian. If you run TeX Live, which is what ...


1

you need a math font so perhaps use \usepackage{newpxtext,newpxmath} which specifies to use a palatino clone for text and math instead of \usepackage{lmodern} which is specifying latin modern math.


1

TeX Live on Windows can only find fonts that are installed in system directories. You must Install for All Users, which requires Administrator privileges. The default installation will put them in a hidden user directory, which doesn’t work. If you do not want to install a file system-wide as an administrator, you can instead put it in a project directory ...


1

As mentioned in the comments, both tests can be performed quite easily. To test for the default monospace font, the expansion of the \f@family macro can be compared to the expansion of \ttdefault. Note that both macros differ in their prefixes (\long in this case), which is especially important when \ifx is used. Testing for any monospace font can be done ...


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