New answers tagged

1 vote

What font combination produces these math symbols?

If someone ever comes along this question: One easy way to inspect a pdf like this is opening it in Inkscape, then mark the text in question with the text tool. Even if you don't have the font, ...
user avatar
  • 2,109
0 votes

How to convert amsfonts(pfb) to otf fonts with fontforge?

https://fontforge.org/docs/tutorial/scripting-tutorial.html I found a tutorial here. I will update my answer to https://github.com/Firestar-Reimu/AMSFonts-OTF
user avatar
0 votes
Accepted

Changing only one property of font globally for all tikz pictures but keeping other locally set properties of font

All common styles for all pictures you can define in \pgfplotsset. For example, a MWE where are locally set different colors for more easy to see effect of global and local settings. in it is ...
user avatar
  • 250k
3 votes

How do I get a list of all available fonts for luaotfload?

luafindfont -n "*" lists all fonts which can be used by xelatex/ lualatex without a special path setting.
user avatar
  • 12.6k
0 votes

Changing only one property of font globally for all tikz pictures but keeping other locally set properties of font

You should use \pgfplotsset{every axis/.append style={ylabel/.append style={font={\small \sffamily}},tick label style={font=\scriptsize \sffamily}}} in your main document.
user avatar
  • 1,518
2 votes

How can I renew the macro "\log" (from "log" to "\ell og")?

An alternative to undefining and redefining the command is to declare the log-like operator as a \mathop atom. You would also want to add \nolimits so superscripts and subscripts appear to the right, ...
user avatar
  • 37.4k
1 vote

How to properly typeset numbers with multiple fonts?

There are two packages with commands to change the font of numbers in math mode specifically: unicode-math (which requires LuaTeX or XeTeX), and mathspec (which requires XeTeX). In addition, you can ...
user avatar
  • 37.4k
6 votes
Accepted

How can I renew the macro "\log" (from "log" to "\ell og")?

The standard macro \log is defined as a "math operator". You first need to undefine the existing macro and then recreate it via, e.g., a \DeclareMathOperator instruction. \documentclass{...
user avatar
  • 435k
1 vote
Accepted

How to properly typeset numbers with multiple fonts?

The aesthetics are bit strange for me personally when the running line is in serif, and the numbers are in sans. The other way around seems fine, especially for math. I guess as long as you are ...
user avatar
0 votes

Latex Beautiful showcase

you can use this package: \usepackage{mathptmx}
user avatar
16 votes
Accepted

Garamond Italic font: First capital letter looks strange

EB Garamond I always like to support Open Source/Open License, so consider using OFL Licensed EB Garamond. \documentclass{article} \usepackage{fontspec} \setmainfont[Numbers=Lining]{EB Garamond} \...
user avatar
  • 35.7k
1 vote
Accepted

How to adjust the italic font of numbers in the theorem environment?

The result you're seeing is just the italic Computer Modern font. It sounds like you would prefer if numbers were slanted rather than italic. To do that, you could use \textsl to use a slanted font ...
user avatar
  • 15.4k
0 votes

Tufte-handout table of contents font problem with kpfonts and lualatex

If you want to compile with LuaLaTeX (or XeLaTeX), I suggest you use the Opentype version of the kpfonts: \documentclass{tufte-handout} \usepackage{kpfonts-otf} \usepackage{lipsum} \begin{document} \...
user avatar
0 votes

TikZ: Sample document with several fonts having different usage?

I finally succeeded in creating the kind of sample document I had in mind. Here it is. I don't really understand what I'm doing for now (for example : The T1, the B1, the differences between the fonts....
user avatar
1 vote

Load Black Chancery on Overleaf

An alternative is to set Black Chancery as your \mathcal font, with unicode-math. You seem to want to use STIX Two for all other math. (Warning: untested, but it should work in either XeLaTeX or ...
user avatar
  • 37.4k
3 votes
Accepted

Load Black Chancery on Overleaf

You're using a command \BLKCHCRY which you never defined, because you only set it as your main font. You shouldn't set it as your main font if you only want to use it in math mode. You especially ...
user avatar
  • 35.7k
5 votes
Accepted

Arevmath and letter a

Legacy fonts, with only 128 or 256 slots, required much coding gymnastics and many font support files. For arevmath package, for a, the tt and tt bold ones might be what you're after. Otherwise, the &...
user avatar
  • 7,066
0 votes
Accepted

How to change the main font for the wiley-article class

Unfortunately, you can't just load the stix2 package, because you'll get a "too many symbols fonts declared error". It looks like a previous version of that document class had a "serif&...
user avatar
  • 35.7k
14 votes
Accepted

How to typeset the Glagolitic script in LaTeX? (ⰳⰾⰰⰳⱁⰾⰹⱌⰰ, глаголица)

If you're willing to use XeLaTeX or LuaLaTeX, you just need to find an OpenType or TrueType font that supports Glagolitic. On my machine I have two of them. The Noto fonts can be downloaded for free, ...
user avatar
  • 984k
0 votes

How to get Charter digits in both modes; old style in text mode?

If you don't want to use unicode-math, you have to redefine the operators font to use XCharter with lining figures. \documentclass[12pt,a4paper]{article} \usepackage{amsmath} \usepackage{fontspec} \...
user avatar
  • 984k
1 vote
Accepted

How to get Charter digits in both modes; old style in text mode?

Since you are using LuaLaTeX, you can load unicode-math instead of newtxmath, which has compatibility problems. Use the XCharter-Math font for math. EDIT: In the comments, you requested the numeral 1 ...
user avatar
  • 37.4k
0 votes
Accepted

package commercial fonts into custom latex package

I finally found a solution. Right now, this is specific to texlive, but hopefully someone else interested will add a part about MikTeX. Solution The solution relies on adding a auxtree to the texlive ...
user avatar
  • 187
1 vote

Font issue in Asymptote 3D Texlive 2022

I downloaded TeXLive 2022. /usr/local/texlive/2022/bin/x86_64-linux/asy -f pdf works fine, where test.asy contains the lines import three; unitsize(1cm); draw('en 3D : $B$ et B',(0,0,0)--(10,0,0)); ...
user avatar
0 votes

Declaring a Specific Math Symbol in a TTF Font (LuaLaTeX)

Math alphabets and operators form a set, so doing mix-and-match will usually require low-level adjustments of different kinds. Having said that, there are various ways and methods to import a symbol. ...
user avatar
  • 7,066
1 vote
Accepted

Change font type in Clean Thesis version v0.4.1 2020/06/17

In cleanthesis.sty we find % own font definitions \newcommand{\helv}{\fontfamily{phv}\fontsize{9}{11}\selectfont} \newcommand{\book}{\fontfamily{pbk}\fontseries{m}\fontsize{11}{13}\selectfont} \...
user avatar
  • 984k
0 votes
Accepted

How to use mlmodern fonts with Plain TeX or OpTeX?

For plain TeX you have to essentially repeat all the “fonts” part in plain.tex. \font\tenrm=rm-mlmr10 % roman text \font\preloaded=rm-mlmr9 \font\preloaded=rm-mlmr8 \font\sevenrm=rm-mlmr7 \font\...
user avatar
  • 984k
0 votes

How to use mlmodern fonts with Plain TeX or OpTeX?

For plain TeX. Copy commands \font (lines 400--467) from plain.tex, remove all commands \font\preloaded... and replace names cm* to corresponding existing names of files from the directory fonts/tfm/...
user avatar
  • 52k
2 votes
Accepted

--- warning --- Couldn't find font `mlmsy8.htf' (char codes: 0--173) how to correct? TL 2022

This error message means that the character mapping table for that font is missing, so the default table will be used instead. As the default table is based on Computer Modern, you shouldn't ...
user avatar
  • 44.8k
2 votes

--- warning --- Couldn't find font `mlmsy8.htf' (char codes: 0--173) how to correct? TL 2022

Thanks to hint by David in comment. I was using mlmodern since I like the font, darker and thicker and using it in Lualatex causes no problem I could see. (I like it more than newcomputermodern). But ...
user avatar
  • 18k
0 votes

bm cause bold font undefined problems

My solution is to not use \bm and directly replace it from \mathbf \usepackage[no-math]{fontspec} \setmainfont{TeX Gyre Pagella} \usepackage[scr=rsfso,frak=euler,bb=ams]{mathalpha} \usepackage[bold-...
user avatar
0 votes

How to install Arial for XeLaTeX on Debian 10?

It's probably not the best solution. But at least it works. Copying the arial*.ttf files from the Ubuntu 20.4 machine in /usr/share/fonts/windowsfonts to the same location on the Debian machine allows ...
user avatar
  • 103
2 votes
Accepted

newpx font does not use palatino numbers&mathrm but CM numbers&mathrm

newtxtext shoots itself in the foot by loading fontspec in the package after its own definition of \rmdefault which means that it overwrites \rmdefault again and then delaying the fontsetup to the end ...
user avatar
1 vote

bm cause bold font undefined problems

As the message says the font you are using does not have a bold font. \symbf does not change fonts it selects the bold math alphabet range from the same font. More generally bm is mostly incompatible ...
user avatar
0 votes

How to set `newpxmath` to use the `pxfonts` integral

Addition of new slanted and upright integrals, replacing those in versions prior to 1.5 This is what README of newtxmath said. So I think it is impossible to use the old integral sign.
user avatar
6 votes
Accepted

Redefining IPA glyphs without tipa

You might use LinguisticsPro, at least of the “strange” glyphs and make the ligatures by hand. \documentclass{article} \usepackage{mathpazo} \usepackage{tipa} \usepackage{newunicodechar} \...
user avatar
  • 984k
2 votes
Accepted

angstrom not working for sfmath

I'm not sure what the problem is, because not redefining \AA works flawlessly. \documentclass{article} \usepackage[british]{babel} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[cm]{sfmath}...
user avatar
  • 984k
2 votes
Accepted

How to make text boldness match math when using lualatex with mlmodern package?

One option, with LuaLaTeX or XeLaTeX, is \usepackage[default]{fontsetup} To load New Computer Modern Book for both text and math. \usepackage{newcomputermodern} should also work.
user avatar
  • 37.4k
2 votes

Is a "real" Baskerville font available for LaTeX?

The Baskerville from František Štorm (Štorm Type Foundry in Prague, STF) as mentioned in the question. His fonts always have very high quality. About 15 years ago, Štorm cooperated with TeX community ...
user avatar
  • 52k
4 votes
Accepted

Use Computer Modern Font in LuaLaTeX

By default, LuaLaTeX uses a clone of Computer Modern, by the name of Latin Modern Roman. Either your document class or some package you are using changes the font, but you do not give us enough ...
user avatar
  • 37.4k
2 votes
Accepted

Lucida font installation

If you want to use fonts with LuaLaTeX, it's sufficient to follow INSTALL-TeX.txt which will also make the LaTeX support package available. If you also want to use the fonts with non-TeX programs it's ...
user avatar
2 votes

How can I resize a table and put them side by side?

As one table with three groups separated by double vertical lines, for table is used tabularray package and columns are S type (defined in the siunitx package): \documentclass[a4paper, 11pt]{article} ...
user avatar
  • 250k
1 vote

How can I resize a table and put them side by side?

If you really want to put three tables side by side you can use this: \documentclass[a4paper, 11pt]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{float} \usepackage{graphicx} \...
user avatar
  • 131
5 votes
Accepted

How can I resize a table and put them side by side?

A simple solution, if you are allowed (it seems to be part of some lab report, there might be restrictions), is to join columns of your tables, since all of them share frequency f and angular speed \...
user avatar
  • 2,877
6 votes
Accepted

Is there a way to add italic correction at the end of inline math?

If one adds \mathitalicsmode=1, the italic correction \/ will have an effect inside math mode. Also note that if one uses a command, like \(\overline{f}\), then \/ has to be added inside the braces, ...
2 votes

Two different calligraphic font styles in math mode

To more clearly distinguish most calligraphic letters from the normal ones, you can replace \pazocal by pzccal: However, "L" seems fine to me also in \pazocal. You might also wish to ...
user avatar
  • 212
1 vote

How to increase the size of the mathscr font

The .fd file for rsfs has only fixed sizes, as was normal in olden times: \DeclareFontFamily{U}{rsfs}{\skewchar\font127 } \DeclareFontShape{U}{rsfs}{m}{n}{% <5> <6> rsfs5 <7> ...
user avatar
  • 984k
37 votes
Accepted

How are fonts "stored" on LaTeX?

You may be even more shocked to learn that LaTeX knows very little about the fonts it uses for typesetting documents. In order to typeset a document, TeX only needs to have information about the ...
user avatar
  • 984k
1 vote

How to increase the size of the mathscr font

If you use Unicode fonts, you can use the Scale= option (here, 40, arbitrarily). It would more practical to set it as an ornament letter, though, rather than as part of an actual equation. MWE \...
user avatar
  • 7,066
2 votes
Accepted

How do I get italic correction in LuaLaTex with unicode-math and \left \right?

From this answer I got the solution to add \mathitalicsmode=1 to the preamble. If I understand correctly, this enables italic correction in math mode. To obtain the desired result, one also has to ...
user avatar
2 votes
Accepted

How to increase the size of the mathscr font

It would have saved time if you would have provided an MWE (I had to reverse-engineer that you probably use the mathrsfs package). \documentclass{article} \usepackage{graphicx} \usepackage{showframe} ...
user avatar

Top 50 recent answers are included