New answers tagged

2

You posted a lot of code unrelated to math fonts, but not enough to actually run your example. I made a document up here. \& isn't really set up as a math command so is most likely using your body font (which seems to be Times) not the fonts used in the math expression. I give some alternatives here, I think the first is essentially what you have ...


0

Create a new character. \documentclass{article} \usepackage[]{graphicx} \usepackage{scalerel} \def\thumbsup{\scalerel*{\includegraphics{up.png}}{O}} \def\thumbsdown{\scalerel*{\includegraphics{down.png}}{g}} \begin{document} thumbs up \thumbsup thumbs down \thumbsdown \end{document} 0 and g refers to the character used as reference of size and vertical ...


1

With Miktex 2.9 it is also possible to install the font. I managed to do so following the above instructions and using those in the link provided by @knut. If you are not the admin user on your system remove the --admin switches as necessary while following the instructions. Download and extract the cowfont.tar.xz file from @knut's answer into extracted\...


0

Tcolorbox did the job with the following: \usepackage[theorems]{tcolorbox} \tcbset{ theostyle/.style={ fonttitle=\bfseries\upshape, fontupper=\slshape, before skip=\baselineskip, arc=0mm, boxrule=0mm, left=0mm, right=0mm, coltitle=black, colback=pale, colframe=lightblue!30, breakable, description delimiters ...


4

Most of the procedure is identical to the one I outlined in my answer concerning type1 fonts. Here, I will focus only on the additional complications involved in dealing with TTF fonts. I will ignore some rarer complications which do not apply to most cases and focus on only the standard complications. You have two choices. Option 1 Convert the font to ...


1

Following this answer, you should use the following command for the new (9.15+) ghostscript *nix gs -dNoOutputFonts -sDEVICE=pdfwrite -o vectorized_file.pdf file.pdf Win gswin32 -dNoOutputFonts -sDEVICE=pdfwrite -o vectorized_file.pdf file.pdf


0

It seems to be a TTF font. AFAIK, if you use XeLaTeX or LuaLaTeX, you should be able to use it without issues.


7

Crimson is useful for experimenting with the new approach, because it’s free and defines few of the features it could support. Here are the features defined in its latest version: | r | i | b | bi | sb si | |------+---+---+---+----+-------| | c2sc | ✓ | ✓ | ✓ | | | | kern | ✓ | ✓ | ✓ | ✓ | ✓ | | liga | | | | ✓ | | | onum | ✓...


3

luatex has removed the fontforge libraries and with them dfont support. https://github.com/lualatex/luaotfload/blob/master/NEWS there seem to be many sites and applications offering free dfont conversions, so if the font licence allows it that is a possibility, or you could use one of the many Helvetica style fonts such as Tex gyre heros or URW Nim­bus ...


1

My advice is to not use Scale in this way. You'll note that you are defining a 'new font family' with \newfontfamily, so it is not reasonable to expect it to intuit that this 'new' family is in fact not new. Perhaps a better way is to use the regular LaTeX2e font command, \DeclareTextCommand: \documentclass[10pt]{article} \parindent 0pt \usepackage{...


5

use the SizeFeature instead of Scale. The last line shows that the two 10pt lines have the same height: \documentclass[10pt]{article} \usepackage{fontspec} \parindent=0pt \setmainfont{DejaVu Serif} \setsansfont[Scale=MatchLowercase]{Latin Modern Sans} \newfontfamily\dejavuseriften[SizeFeatures={Size=10}]{DejaVu Serif} \newfontfamily\dejavuseriftwelve[...


4

I guess you did the wrong attempts, because \boldsymbol works. However, it's better \bm (needs the bm package to be loaded after amsmath). \documentclass{article} \usepackage{amsmath} \usepackage{bm} \begin{document} $\hbar\ne\bm{\hbar}$ \end{document} If you are using Times based fonts with \usepackage{mathptmx}, then no attempt can be successful, ...


2

Try \renewcommand{\cftsecfont}{\fontseries{md}\fontsize{14}{16}\selectfont} \renewcommand{\cftsubsecfont}{\fontseries{md}\fontsize{10}{12}\selectfont} If you want the corresponding page numbers to have the same font size (or another size), use \renewcommand{\cftsecpagefont}{\fontsize{14}{16}\selectfont} \renewcommand{\cftsubsecpagefont}{\fontsize{10}{12}...


3

You can use parentheses with siunitx, but you have to reserve places for them with table-space-pre-text and table-space-post-text. Here is a code: \documentclass{beamer} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{amsmath} \usepackage{tabularx} \usepackage{dcolumn} \newcolumntype{d}[1]{D{.}{.}{#1}} \usepackage{booktabs, siunitx} \usepackage{...


1

The full error message you quote says that it is "bitmap or missing fonts", not just typ3 3 fonts that cause the warning. The only font not embedded in the list you show is helvetica, presumably that has come from some external image tool, try to get it to embed fonts.


1

I would guess you have something like this where the specified column width is narrower than | +| and you have something (a space here) in the column specification that allows a line break, so i fits on one line but + requires a line break with the space on the first line and the + on the second. \documentclass{article} \usepackage{array} \begin{document} ...


0

The problem I had was with the subfig package. I removed it and then the figure caption font-size returned to its original size (should be 8pt). The following are the list of packages that I've noticed so far that causes this unwanted behaviour with the figure caption fonts by default (unless you are able to change them with suitable options): subfig ...


1

ygoth is a type1 (pfb) font but your miktex seems not to find it. Normally this means that the map file has not been activated correctly. Try if it works if you run on the command line updmap You can also load the map-file manually in your document: \documentclass[11pt]{article} \pdfmapfile{=gothict1.map} \begin{document} \font\test=ygoth \test abc \...


2

The files should not go under .../texlive/2016/texmf-dist/, but under .../texlive/texmf-local. The main tree is only for things in the official distribution: changing it might leave an unstable TeX system. Installing the files in the “distribution” tree has the consequence that everything has to be redone at every release of TeX Live. This said, the ...


2

Curious choice. However, the bulk of the text font selection in cmbright.sty is just three lines. \documentclass{article} %%% from cmbright.sty \renewcommand{\familydefault}{\sfdefault} \renewcommand{\sfdefault}{cmbr} \renewcommand{\ttdefault}{cmtl} \newtheorem{theorem}{Theorem} \begin{document} \begin{theorem} A great theorem \end{theorem} Here is the ...


0

I can't read the script so I find it hard to compare but \documentclass{article} \usepackage{fontspec} \setmainfont[Script=Devanagari]{FreeSerif.ttf} \begin{document} \begin{verse} धर्मक्षेत्रे कुरुक्षेत्रे समवेता युयुत्सवः ।\\ मामकाः पाण्डवाश्चैव किमकुर्वत सञ्जय ॥\\ \end{verse} \end{document} Produces noticeably different results in texlive 2016 with ...


1

I hate the listing of fonts loaded because this is not important information when things are OK. Of course, if there is an problem with fonts then this listing may be useful. I have the terminal with limited height and important information (about overfull boxes, about OPmac warning, about undeclared references etc.) are scrolled due to this non-useful ...


7

Looks like a normal sans serif L, so \mathsf{L} \documentclass{article} \begin{document} $\mathsf{L}(\mathbf{z},\mathbf{x})$ \end{document}


4

You're comparing the wrong things: the right comparison is with > tex '\relax A\bye' && dvips texput This is TeX, Version 3.14159265 (TeX Live 2016) (preloaded format=tex) [1] Output written on texput.dvi (1 page, 208 bytes). Transcript written on texput.log. This is dvips(k) 5.996 Copyright 2016 Radical Eye Software (www.radicaleye.com) ' TeX ...


1

There are some other fonts with Small Caps: \documentclass[11pt]{scrartcl} \usepackage[T1]{fontenc} \usepackage{libertine} \newcommand\Ena[1]{{\sffamily\scshape#1}} \newcommand\Enb[1]{{\scshape#1}} \begin{document} Normal Text and \Ena{Text with Small Caps} or \Enb{Text with Small Caps} \end{document}


0

the above answer is not working for me my alternative: \textsc{\textsf{Test}} works fine :D Another alternative are super fonts: \usepackage{type1ec}


3

You could make use of the selnolig package. Its main purpose is to let users suppress ligatures selectively, e.g., to suppress ligatures if they cross morpheme boundaries in composite words. (For instance, in the TeXbook, Don Knuth mentions the word "shelfful" as a word in which the ff ligature shouldn't be used.) However, the selnolig package can also be ...


2

Instead of sansmath use the sansmathfonts package. It automatically switches the math font to sans serif throughout the whole document (no need for \sansmath). If you want to use a font other than CM, you might run into trouble with upright uppercase greek letters as other fonts might not have them (or not have them in the correct slot). A possible ...


1

\documentclass{article} \usepackage{sansmath} \usepackage{amsmath} \begin{document} \sansmath \[ w\mathrm{\Delta} z = \operatorname{cov}(w,z) + \operatorname{E}(w\mathrm{\Delta} z), \] \end{document} Hello. To straighten the symbol in front of it is enough to add the command \mathrm{}.


1

The following document produces a single page document with the text a in texlive 2016 lualatex. \documentclass{article} \usepackage{fontspec} \setmainfont{Arial} \listfiles \begin{document} a \end{document} If you get lmrlmrlmsslmtt (which will be code accidentally typesetting the default latin modern family names lmr, lmss, lmtt) then post the file list ...


3

You can use CB fonts \documentclass{article} \usepackage[scaled=0.95]{helvet} \usepackage{sansmathfonts} \renewcommand{\familydefault}{\sfdefault} \DeclareFontEncoding{LGR}{}{} \DeclareSymbolFont{sfgreek}{LGR}{cmss}{m}{n} \SetSymbolFont{sfgreek}{bold}{LGR}{cmss}{bx}{n} \DeclareMathSymbol{\alpha}{\mathord}{sfgreek}{`a} \DeclareMathSymbol{\beta}{\mathord}{...


1

This answer comes following discussion in the comments to the question, to which I refer the reader. I pointed out that my solution at Upright Greek font fitting to Computer Modern works directly at unslanting a font (it is based on Bruno's answer at Shear transform a "box"). I show there how to apply it to greek letter forms, but noted that it ...


2

\glsnamefont only affects how the entry name appears in the glossary. For the default long-short acronym style, only the short form appears in the name field. The long form is put in the description field. Is there an easy way without having to introduce a custom glossary format? Not for the base glossaries package unless you simply put the entire ...


3

You don't need to give an explicit path, so long as the font is in a directory searched by XeTeX. The relevant (pseudo)environment variables are % TrueType outline fonts. TTFONTS = .;$TEXMF/fonts/{truetype,opentype}//;$OSFONTDIR// % OpenType outline fonts. OPENTYPEFONTS = .;$TEXMF/fonts/{opentype,truetype}//;$OSFONTDIR// A user can set in the environment ...


1

The answer to my question is to use \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage[]{ebgaramond} \DeclareSymbolFont{numbers}{T1}{MinionPro-TOsF}{m}{n} \DeclareMathSymbol{0}\mathalpha{numbers}{"30} \DeclareMathSymbol{1}\mathalpha{numbers}{"31} \DeclareMathSymbol{2}\mathalpha{numbers}{"32} \DeclareMathSymbol{3}\...


4

Apply a simple \smash{\raisebox{-8pt}{}} to the \dancers{}. Without the \smash, you can lower each glyph as much as 12pt, before the vertical extent runs off the bottom of the glyph space and screws up the appearance of the chart. It does seem unusual that the glyphs sit so high above the baseline (maybe they are jumping while dancing ;^) \documentclass[...


2

Use \setmonofont{Inconsolatazi4} or \setmonofont[ BoldFont=Inconsolatazi4-Bold.otf]{Inconsolatazi4-Regular.otf} By default fontconfig, which is used by xetex/xelatex for searching font files do not scan the TeX font directories. But xetex/xelatex use kpsewhich, the reason why it will find fonts with the full name. One can put these files into ...


4

Although NotoSansCJK-Regular.ttc has a .ttc extension, this is actually an Open Type Collection format font as Google says here. Support for OTC format was added to LuaTeX in LuaTeX beta-0.81.0 (please refer to Revision 5330). So, if you are using older version of LuaTeX (e.g. Version beta-0.80.0, which is in TeX Live 2015), you cannot use OTC fonts with ...


9

You can try it like this: Find dancers.mf (in fonts/source/public), make a copy in fonts/source/... in some local texmf and call it eg dancers20.mf. Update the fndb. Open the mf in your editor and change the mg variable in dancers20.mf like this mg:=2.0; % CHANGE THIS TO GET DIFFERENT SIZES OF FONT (font size = 33*mg pt) Then setup your document like ...


3

There's nothing more than a visual comparison, showing that ptm is exactly the same as what you get with TeX Gyre Termes. \documentclass{article} \usepackage{amsmath} \usepackage{fontspec} \setmainfont{TeX Gyre Termes} \newfontfamily{\OTIMES}{Times New Roman} \def\fn"#1/#2"{#1}% \begin{document} {\OTIMES abcdefghijklmnopqrstuvwxyzfifl \expandafter\fn\...


0

Write \usepackage{helvet} \renewcommand{\familydefault}{\sfdefault} In your preamble.


2

I would just use 12pt, but if you want to get closer to exactly 12 characters to the inch it seems like 11.71pt is the size you need (for latin modern typewriter) \documentclass[12pt]{article} \usepackage{lmodern}%scalable fonts \sbox0{\texttt{123456789abc}} \typeout{12 characters are \the\wd0 at 72.27pt to the inch} % or if you are really fixed on 12 ...


2

As Cambria Math is only available as an OpenType font and necessarily depends on its OpenType Math table, it does not work with pdftex and needs luatex or xetex.


2

It will not change the font at that point, only from the next font change. add \normalfont if you want the font to change at the point that you make this declaration.


3

Following the advice of Use \mathrm by default, and using the ptm fonts instead, one can get roman math fonts as the default with \DeclareSymbolFont{letters}{OT1}{ptm}{m}{n}. As mentioned in my earlier comment, roman-style math symbols are not the LaTeX default. While the use of \mathrm{} can overcome the default italics, on a case by case basis, the ...


2

The key is to pick a font that supports arbitrary scaling, such as lmodern, and then use the \fontsize{}{}\selectfont approach to select it. The revised font size will stay active until subsequently changed. As to default size at startup, LaTeX only supports 10pt, 11pt, and 12pt, which is why the [6pt] option was ignored in the OP's approach. \...


0

Oh, sorry, I found the solution. \begin{document} \tiny


1

Here is my take on it, the idea is to use xstring to look at the last character in the input and then adjust accordingly. The positive thing here is of course that we can adjust this from the preamble. Of course things like \big) is not something that can be catched with this method. \documentclass[a4paper]{memoir} \usepackage{xstring} % Caveat \transpose{ ...


5

I know the OP wants Xelatex solutions, and here I give a pdf solution, so i don't expect any votes, but wanted to show it anyhow, because it is so less grainy than the other answer of mine. For this different answer, I steal from our most excellent LaTeX colleague Malipivo, extracting bits of \pdfliteral code from his answer at TikZ: halo around text? that ...


2

You're lucky: TeX Gyre Pagella supports the L7x encoding. \documentclass[a4paper,12pt]{article} \usepackage{mathpazo} \usepackage{tgpagella} \linespread{1.05} \usepackage[L7x,T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[lithuanian,english]{babel} \renewcommand{\ltfamily}{\familydefault} \begin{document} \begin{otherlanguage}{lithuanian} ...



Top 50 recent answers are included