# Tag Info

75

Although this question is quite old (only found it because lockstep reactivated it) it’s maybe worth to add this information. For my lectures on LaTeX I use the following image to explain the way LaTeX categorizes the different characteristics of printed material. 1. Encoding The first thing to select is how the font is encoded in it’s file(s), that means ...

33

Your issue is "font-dependent". Background Indeed, special shapes of a font (bold, italic, slanted, small caps) are not defined relatively to a main font (its regular shape), but independently. The "bold version" of a font is defined per se (it is an independent *otf, *.ttf-file you can install and use, even if you don't have the main/regular version), and ...

23

I'm now doing one: https://github.com/firamath/firamath, which is based on FiraSans. Here is a showcase (use beamer theme metropolis): Of course, this work is far away from finished. For example, most of the relation symbols haven't been drawn. By the way, I'm a newbie to font design and creation, so if you have any suggestions, please tell me. Update: ...

21

The answer, as I have pieced together, appears here on one page, for posterity. The package sansmath ... ...is designed to offer sans-serif mathematics in the absence of proper sans maths fonts. After \usepackage{sansmath}, a new “math version” sans is deﬁned, together with a command \sansmath, which behaves as \boldmath does. -from the ...

18

The easiest way I've found to do this is to use \mathsf. So I write $7\times \rho = \mathsf{c_1}$

18

TeX fonts have only 256 slots. And you can't mix encodings without telling LaTeX to do it; \textcyrillic defined by babel with the russian option does this. The last specified encoding becomes the default one. This should be a complete list of sans serif fonts available also in T2A encoding (for cyrillic): \documentclass{article} \usepackage[T2A,T1]{...

16

The command \allsectionsfont{\normalfont\sffamily\bfseries} of the sectsty package achieves this easily.

16


15

This can be achieved using a setting in the tick label style key. By default (without getting into too much details), pgf/pgfplots uses some "\ensuremath-like" business internally when typesetting the tick labels. We can disable this by setting tick label style={/pgf/number format/assume math mode=true}. What this does is tells pgf to assume that the input ...

14

You'll notice the following warning in your .log file: LaTeX Font Warning: Font shape OT1/cmss/bx/it' undefined (Font) using OT1/cmss/bx/n' instead on input line 4. It suggests that under the OT1 font encoding, there is no bold bx *italic** it version within the sans serif font. So, it substitutes it just for a normal bold, hence the output ...

14

Math alphabets commands such as \mathit and \mathsf are not “cumulative”. You have to allocate a specific math alphabet. \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{bm} \usepackage{fix-cm} % not needed if not using Computer Modern \DeclareMathAlphabet{\mathsfit}{T1}{\sfdefault}{\mddefault}{\sldefault} \SetMathAlphabet{\...

12

Mico's shown a possibility of using one of the unicode TeX engines, but to answer you explict questions, and using pdftex, you are not doing anything wrong, and TeX isn't adding space anywhere (as you can see from the log output generated by the code below. the side bearings on teh M are equal, but the - is not centred. TeX has no knowledge of this, to TeX ...

12

Partial solution. \usepackage{graphicx} \renewcommand*\partial{\textsf{\reflectbox{6}}}

11

Imitation of small caps by reducing the uppercase letters can, in some rare cases, give a result slightly above the atrocious level. With Computer Modern Sans Serif such an attempt is doomed to horrible failure, because the heavy strokes are a distinctive feature of the font and you'd be mixing very different strokes between capitals and small capitals. I ...

11

The problem The problem arises because you are using very old and deprecated two-letter font commands, which, as you have discovered, yield unexpected effects when combined together. Here's what you probably tried first: \documentclass[12pt]{beamer} \usepackage[T1]{fontenc} \title{\rm\sc Great title} \date{\tiny Blah blah} \author{Fred} \begin{...

11

From the usage of \RequirePackage I guess you're writing a package, so you'd like it to be as independent as possible on a particular user's setup. I'll assume that your users will be supposed to have an up-to-date TeX distribution, but not that they have the fonts available as system fonts. Setting Erewhon as the main font can be obtained by \setmainfont{...

11

Fira Math: sans-serif font with Unicode math support Developed by Xiangdong Zeng (Stone-Zeng) at https://github.com/Stone-Zeng/FiraMath

11

The x-height of the sans-serif font you're working with -- tgheros, an Helvetica clone -- is much larger than the x-height of your math font, which is Computer Modern. As far as I know, the tgheros package doesn't provide a scaling option. However, if you replace \usepackage{tgheros} with \usepackage[scaled=0.78]{helvet} and change the document font ...

10

The sansmath package provides a command (\sansmath) and environment (sansmath) for exactly this purpose: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{sansmath} \def\mySfFamily{\fontfamily{cmbr}\selectfont\sffamily\sansmath} \def\N{\mathbf{N}} \def\R{\mathbf{R}} \def\Q{\mathbf{Q}} \def\Z{\mathbf{Z}} \def\C{\mathbf{C}} \begin{document} \...

10

Latin Modern doesn't support Cyrillic. There are not many choices for a monospaced font in TeX Live 2013 featuring boldface and supporting Cyrillic. You can do it with PTMono, though. \documentclass{article} \usepackage[T2A]{fontenc} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} \usepackage[scaled=.85]{PTMono} \usepackage{lipsum} \begin{document}...

10

If the document is going to take the form of a beamer presentation, I recommend you -- or the colleague you're helping to get started -- do two things: issue the instruction \usefonttheme{professionalfonts} in the preamble, and load the arev package, which loads the arevtext and arevmath packages. In my experience, the arev text and math fonts are both a ...

9

The best would be, if you’d avoid loading the package. And also it is a bad idea to use this font for longer text parts. Comic Sans once was developed for Comics – hence the name – where the text is usually short. In my eyes it is depending on the context sometimes tolerable in headings, for instance in texts for children. On the other hand it is over used. ...

9

If it helps to keep everything clear, you can use the \setromanfont command instead of \setmainfont, although the fontspec manual doesn't mention it: \documentclass{article} \usepackage{fontspec} \setromanfont{Latin Modern Roman} \setsansfont{Latin Modern Sans} \renewcommand{\familydefault}{\sfdefault} \begin{document} abc \textrm{abc} \textsf{abc} \...

8

Here is an example how to use sansmath package in a document and switch between sans and serif. \documentclass{article} \usepackage{sansmath} \begin{document} {\sansmath Sans: $\alpha = Fml$} Serif: $\alpha = Fml$ \end{document} The output is: You might be interested also in SI-units and latex rendering in python: https://stackoverflow.com/questions/...

8

Another fine choice is the Raleway font, which is available in a recent TeXlive via \usepackage{raleway}. It is interoperable with pdftex, but also with the new Unicode engines xetex and luatex. \documentclass{article} \usepackage{raleway} \begin{document} \sffamily W. H. Gates III. | Ill Bill \end{document}

8

Some time ago I asked nearly the same question, the answer was to define a new math alphabet and hack it into the definition of \sffamily. So I’d suggest to close this question as duplicate but it can’ be done until the bounty is closed. This is the code a build upon the answer of egreg. \documentclass[parskip=half]{scrartcl} \usepackage[T1]{fontenc} \...

8

\ellipsigap is not a length register, but a macro! Doing \setlength{\ellipsisgap}{0.5em} or any other value is a big mistake. The definition of \ellipsisgap in the package is \newcommand{\ellipsisgap}{\fontdimen3\font} and \setlength{\ellipsisgap}{0.5em} will do, according to the definition of \setlength, \ellipsisgap0.5em\relax Now \ellipsisgap will ...

8

The solution of Paul Gessler works very well. The only flaw is the small minus sign. In fact it is a hypen. I found a way to circumvent this by using \num command of the siunitx package. % !TeX program = lualatex \documentclass{article} \usepackage{siunitx} \sisetup{locale = DE} \usepackage{unicode-math} \setmainfont[Ligatures=TeX, Numbers=OldStyle]{TeX ...

8

This uses Iwona for Greek, change the font family in \DeclareSymbolFont if you want a different font. \documentclass{scrartcl} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath, amssymb} \usepackage[default]{sourcesanspro} \usepackage{sansmath} \sansmath \DeclareSymbolFont{Greekletters}{OT1}{iwona}{m}{...

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