2022 Developer Survey is open! Take survey.

Questions tagged [mathspec]

This tag should be used for questions concerning the mathspec package for XeLaTeX. If your question is about the underlying fontspec package, use the {fontspec} tag instead.

Filter by
Sorted by
Tagged with
0 votes
1 answer
42 views

How to draw a linear graph in LaTeX using tikzpicture for the equation (22-x)/2?

This is what I have so far: \begin{tikzpicture} \begin{axis}[xmin = 0, ymin=0, xlabel={$\omega_{m}$},ylabel={T}] \addplot[red, ultra thick](x, (22-x)/2); \end{axis} \end{...
user avatar
  • 21
1 vote
2 answers
41 views

Superfluous vertical spacing

When a new section starts, I am facing extra spacing. \documentclass[10pt]{report} \usepackage{mathptmx,amsmath,amssymb,bm} \begin{document} \begin{align*} & \kappa(ru+m(1-r)v)\leq\,r\kappa(u)+m(1-...
user avatar
0 votes
0 answers
32 views

Spacing of prime in mathspec

I'm using mathspec to typeset math in a non-Computer Modern OpenType font in XeLaTeX. I have a permanent problem with the spacing of the prime symbol (the glyph of which is taken from the good old ...
user avatar
  • 1,750
1 vote
1 answer
49 views

How to use .otf font file as math font in XeLaTeX?

I'm using mathspec to use an .otf font in Overleaf via the command: setromanfont{myfont}[Path=./fonts/myfont, Extension = .otf, Uprightfont=*-regular] myfont-regular.otf being the font file placed in ...
user avatar
  • 11
0 votes
0 answers
50 views

\setmathfont no longer working in TeXShop in macOS Monterey

I got a new computer that came with Monterey, and I restored everything from a backup of my previous computer, which had Catalina (10.5.7), so every font and every setting should have remained intact. ...
user avatar
  • 182
2 votes
1 answer
40 views

Replacing a single letter from another font in mathspec

I want to replace the letter "f" from a certain font family with "f" from another font family. My current attempt at doing so is the following. \documentclass{minimal} \usepackage{...
user avatar
  • 757
0 votes
0 answers
21 views

Mathspec fakebold not working on operators or special symbols

Another question that sounds similar to this is: Fakebold not working on mathbb fonts but the issue here is different. Here is a MWE. \documentclass[11pt, leqno, a4paper]{amsart} \usepackage{...
user avatar
  • 757
1 vote
2 answers
154 views

All document in single font (I need math operator in Times New Roman)

The task arose to create a template in which the text and mathematical formulas are written in the Times New Roman font, since it is the standard in Russian universities. It turned out almost ...
user avatar
2 votes
1 answer
142 views

XeTeX + STIX2 Errors: 'Too many symbol fonts declared.'; 'Symbol font Digits:m:n is not defined.'

I've recently been experimenting with typesetting and I stumbled upon an issue, where the following preamble: \documentclass[12pt,a4paper]{memoir} \usepackage{stix2} \usepackage{mathspec} \...
user avatar
0 votes
2 answers
127 views

The typewriter font for digits in the \mathtt command with the mathspec package

First an MWE is as follows: \documentclass[12pt]{article} \usepackage{mathspec}%after amsmath \setallmainfonts(Digits,Latin){Times}% \title{An Example} \date{} \begin{document} \maketitle In ...
user avatar
  • 2,791
0 votes
0 answers
37 views

Where I can find a list of available fonts with mathspec package? [duplicate]

I want to change the math fonts from the standard latex fonts to a font that matches more closely to my text font (as I am using a custom font for the text). However, I do not want to use the text ...
user avatar
  • 241
2 votes
2 answers
112 views

How to write numerals of equations by the digits of a non-Latin-based language?

I am typesetting a document in Persian using polyglossia. Thanks to fontspec under XeLaTeX, I can copy/paste Persian digits in the text, but when I do the same for equations, compilation render ...
user avatar
  • 3,419
1 vote
1 answer
103 views

Math bold italic symbols with mathspec

In mathspec the command \mathbitis not defined, I followed advice from Ulrike here in order to define it, but it desperately remains in Computer Modern: \documentclass{article} \DeclareMathAlphabet ...
user avatar
  • 1,750
0 votes
1 answer
49 views

Strange things happened when using \boldsymbol after loading mathspec package

Basic info: OS version: Windows 10 TeX version: TeX Live 2019 Editor: TeXstudio 2.12.14 Detailed issue: Hi all. In order to use the font "Times New Roman", I load the package "...
user avatar
0 votes
1 answer
392 views

Changing font of mathematical functions (ln, exp, etc.)

SOLVED: see edits #1 and #2 below. I'm trying to set up a XeLaTeX document that uses a sans-serif math font (Myriad Pro) with a serif text font (Arno Pro). Because Myriad Pro does not have full math ...
user avatar
3 votes
1 answer
116 views

Adding space in math superscript in XeLaTeX

I had the same question as asked here. The solution is to add this piece of code in the preamble \let\sp^ \catcode`\^=\active \gdef^#1{\sp{\hspace{0.06em} #1}} The solution seems to work. However, I ...
user avatar
0 votes
1 answer
66 views

Setting Scala Sans font as the `mathrm` font

I am trying to set mathrm font to be Scala Sans. What I have done is the following, \usepackage[quiet]{mathspec} \newfontfamily{\scala}{ScalaSans}[Path =scalasans/, Extension = .otf, UprightFont = *-...
user avatar
0 votes
2 answers
90 views

How to change "'" and "\prime" into the symbols in the setting font and how to add spacing to the both side of italic "f" in math mode only?

First, a minimal working example is as following: \documentclass{article} \usepackage{amsmath,amsfonts,amssymb,mathrsfs} \usepackage{mathspec} \setallmainfonts(Digits,Latin){Times}%a replacement of ...
user avatar
  • 2,791
0 votes
2 answers
991 views

Writing an equation with two domains? [duplicate]

How do I write the following in LaTeX:
user avatar
  • 2,423
1 vote
0 answers
153 views

package mathspec error

I am trying to use the mathspec package and I cannot get it to load due to a fontspec error from something in the configuration file. I don't know how it can be more simple The MWE is below. \...
user avatar
  • 157
6 votes
1 answer
4k views

LaTeX command is already defined error

This is the part of my LaTeX file where I load all the packages: %!TEX TS-program = xelatex %!TEX encoding = UTF-8 Unicode %\usepackage[UTF8]{ctex} \documentclass[preview]{standalone} \...
user avatar
  • 173
0 votes
1 answer
54 views

Package hyperref Warning: Token not allowed in a PDF. (using \frac{}{} in Section title}

I am having warning issue as below: I know is because of hyperref. I tried: \section{text \texorpdfstring{{$J = \frac{1}{2}$}}} Original is: \section{text {$J = \frac{1}{2}$}} But is not ...
user avatar
  • 2,423
0 votes
1 answer
129 views

Can I put maths symbol for example: $\boldsymbol{e}$ in Chapter title?

I wish to put maths symbol in my Chapter title, but when I run Overleaf, it give warning, but not error. It said Package hyperref Warning: Token not allowed in a PDF string My WME: \...
user avatar
  • 2,423
2 votes
2 answers
288 views

mathspec option clash with fontspec

I am trying to use mathspec firamath-otf package. I am getting an option clash error with fontspec. \documentclass{article} \usepackage{firamath-otf} %\usepackage[no-math]{mathspec} %\usepackage[...
user avatar
1 vote
1 answer
159 views

mathspec percent sign

I am using mathspec with XeTeX (Version 3.14159265-2.6-0.999991 (TeX Live 2019)), and the percent sign \% shows up in Computer Modern (or a similar font) in math mode, rather than the font set using ...
user avatar
7 votes
2 answers
417 views

Has a recent update broken mathbf when using mathspec?

The following MWE illustrates code that was working until sometime over the last couple weeks. \documentclass{article} \usepackage{mathspec} \setallmainfonts{Times New Roman} \begin{document} \begin{...
user avatar
  • 327
0 votes
1 answer
55 views

Incompatibility between mathspec and url packages

I use xelatex and mathspec's \setmathfont(Digits,Latin,Greek) which works just fine and the url package with the Computer Modern Unicode Typewriter fonts. What happens is that all digits in my URLs ...
user avatar
  • 1,750
0 votes
0 answers
44 views

Decimal separator font using mathspec [duplicate]

I'm trying to use the Noto font for my entire document. Using mathspec this works fine for text and math fonts. However, using a comma in math mode produces a serif font-like comma instead of the one ...
user avatar
  • 153
2 votes
1 answer
61 views

How to conveniently use textmode brackets in a mathmode \ce command (XeLaTeX)?

I'm preparing a thesis for publication, and the publisher requires the use of a font with old style numerals in textmode. This results in old style numerals being used when I use the \ce command. No ...
user avatar
0 votes
1 answer
89 views

Why fallback option from combotest package isn't working here?

Following a comment here I'm playing with combofont package currently. But I have some questions about it. The first thing I would like to know is why the fallback option isn't working in my code. I ...
user avatar
  • 932
2 votes
1 answer
32 views

Error to write a more-lines formula with equation

I am using latex (with TEXMAKER editor) in order to create this formula I use this code, but i get an error message that I can't understand where I wrong \begin{center} \begin{equation} ...
user avatar
8 votes
1 answer
410 views

Are `mathfont` and `mathspec` intended for same purpose?

What package of these two is better for changing math-mode fonts (to .ttf fonts)?
user avatar
  • 3,616
0 votes
1 answer
330 views

\bm not working for Latin or Digits letters when using mathspec to customize these

This is my MWE: % !TEX program = xelatex \documentclass{article} \usepackage{amsmath,bm} \usepackage{mathspec} \setmainfont{Times New Roman} \setmathfont(Digits,Latin,Greek){Minion Pro} \setmathrm{...
user avatar
6 votes
1 answer
1k views

How to use MathJax Optentype fonts with XeLaTeX?

I want to use MathJax opentype text and math fonts in my document. All the following fonts can be downloaded from the MathJax GitHub page. MathJax_AMS-Regular.otf MathJax_SansSerif-Bold.otf ...
user avatar
  • 44.7k
4 votes
2 answers
1k views

How to set a font everywhere (including math mode) in XeLaTeX?

My requirements are: Use Calibri as the main font. This is easy with XeLaTeX. Use Calibri as the math font. Also quite easy using e.g. mathspec. But this takes care only of letters and numbers. Use ...
user avatar
  • 5,175
2 votes
1 answer
315 views

Fontspec isn't changing digits in math mode

I had been using the following in my preamble: \documentclass{article}[12pt] \usepackage[lite,subscriptcorrection,zswash,slantedGreek,nofontinfo]{mtpro2} \usepackage{fontspec} \setmainfont[Ligatures={...
user avatar
3 votes
2 answers
2k views

Angle (degree) symbol with siunitx under XeLaTeX and mathspec

Consider the following example: \documentclass{article} \usepackage{mathspec} \usepackage{siunitx} \begin{document} \ang{30}, \SI{20}{\celsius} \end{document} Compiling with XeLaTex, I get: The ...
user avatar
1 vote
1 answer
242 views

Different font for numbers in URLs [duplicate]

I am using mathspec to make the fonts in math mode match the roman fonts used in my text body. The “digits” environment in mathspec takes effect for all digits in the document. This means that digits ...
user avatar
  • 13
5 votes
1 answer
303 views

Mathspec and Dollar Symbols in Math Mode

I'm using mathspec with XeLaTeX to typeset documents in a system font (Fira Sans but I don't think it matters). When I include punctuation and certain other symbols in math mode, they come out in ...
user avatar
3 votes
1 answer
415 views

Math typesetting with a given OpenType font in LuaLaTeX

Hi! I am trying to typeset math with Arno Pro in LuaLaTeX. However, I have not found a suitable solution yet. As Arno Pro does not have all the symbols required for proper math typesetting, some kind ...
user avatar
1 vote
1 answer
188 views

Under mathspec, use text font punctuation symbols in math mode

I am managing a XeLaTeX template for editing my own books, which, under mathspec, allows me to pick some font families in my catalog and use them in the document. Unfortunately, since frequently the ...
user avatar
1 vote
2 answers
425 views

How can I set a font from PSNFSS distribution families as the main math font?

The declaration \DeclareMathAlphabet{cmd}{encoding}{family}{series}{shape} works to create a new command whose argument would be a font as specified in the declaration. PSNFSS distribution families ...
user avatar
0 votes
1 answer
172 views

Normal math alphabet letters not appearing as italic

I am having a problem with the normal math fonts which is not appearing as italic. abc&&\mathit{abc} \\% problem here: non-mathit (abc) not italic!!!! I want to use \RequirePackage[math-...
user avatar
  • 4,197
1 vote
0 answers
103 views

Micro symbol from siunitx disappearing after changing from fontspec to mathspec (XeLaTeX) [duplicate]

Like what the title says, if I use \documentclass{article} \usepackage{fontspec} \usepackage{siunitx} \begin{document} \SI{5}{\um} \end{document} I would end up with 5µm. But changing \usepackage{...
user avatar
  • 11
4 votes
1 answer
288 views

Same font in math mode decimal comma? [duplicate]

I want to use comma (,) as decimal separator. The problem is that it is typeset with wrong font (Computer Modern, I suppose), not with the normal font defined using mathspec package. I have tried ...
user avatar
  • 75
1 vote
1 answer
1k views

Use sans serif math operators with Roboto

Thanks to @HenriMenke, I know how to use Roboto font in math for letters (including Greek) and digits. Now, I'd like to use a sans serif font for math operators as well (say \int or \sum). AFAIK, ...
user avatar
  • 9,468
8 votes
1 answer
4k views

XeLaTeX: Some font shapes were not available, defaults substituted

When I compile the following code \documentclass{article} \usepackage{mathspec} \setmathsfont(Latin){Neo Euler} \begin{document} \( A \) \end{document} using XeLaTeX I obtain the following ...
user avatar
0 votes
0 answers
77 views

mathspec with lowercase greek italic symbol std

I would like to get the greek symbols are in symbol std italic font. My MWE is: \documentclass{article} \usepackage{mathspec} \setmainfont[Mapping=tex-text]{Times LT Std} \setmathsfont{Symbol Std-...
user avatar
  • 2,046
1 vote
1 answer
327 views

Two different fonts for math and text

I tried to prepare slides in Linux Biolinum O, but I do not like the maths fonts, and I wanted to use TeX Gyre Pagella, for the maths environments. I tried the following source, which obviously doesn'...
user avatar
  • 389
3 votes
2 answers
463 views

How to tell XeLaTeX to use one font for italic math and another font for bold math?

I'm striving to get XeLaTeX give me bold Greek symbols in mathematical mode, but I can't figure out how to properly specify things in the preamble. I've been spending hours googling and browsing this ...
user avatar
  • 31