Skip to main content

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
1 vote
1 answer
208 views

Unknown option '\eu@zf@math' for package fontspec

First a minimal working sample is as follows. \documentclass{ctexbook} \usepackage{mathspec} \begin{document} Some words. \end{document} Compiling the tex file as above by XeLaTeX on MacTeX 2024 (...
M. Logic's user avatar
  • 4,333
0 votes
1 answer
84 views

Setting separate non-open TTF/OTF fonts for regular and italic in maths and xelatex

I'm writing an Overleaf document in which I would like to use Adobe Garamond Pro as my maths typeface. The problem is I have separate files for the Regular TTF and the Italic TTF (also available as ...
Samuel Estenlund's user avatar
0 votes
0 answers
65 views

How to change blackboard bold fonts using mathspec?

I’m using unicode-math to change my blackboard bold font to TeX Gyre Schola Math, but it interferes with mathalpha (I use this to change my cal, scr, and frak fonts) and causes the positions of ...
Brendan Sean's user avatar
-1 votes
1 answer
67 views

How can I write this type of "V" in latex in the image below [closed]

How can I write this type of "V" in latex
Memristor's user avatar
  • 119
4 votes
1 answer
102 views

System Font for TikZ axis values

I need to have my graphs using a specific font - the labels are OK - fixed with \usepackage{mathspec}, but this doesn't seem to change the font for the values on the axes. How can I get the whole ...
Cam Lumsden's user avatar
3 votes
2 answers
351 views

Is there a Mathspec equivalent for LuaLaTeX?

Wondering what are the use cases of unicode-math and mathspec packages, I stumbled upon this excellent question and better answers, that helped me clarify the situation. If I understand correctly, the ...
Orestes Mas's user avatar
1 vote
0 answers
145 views

Change bold math font with mathspec

I want to change the math font by mathspec. My code is \documentclass{article} \usepackage{mathspec} \setmathsfont(Latin,Greek){Eu-bx.ttf} \setmathsfont(Digits){EU-bz.ttf} \usepackage{fontspec} \...
youthdoo's user avatar
  • 881
-1 votes
1 answer
241 views

Newton's Third Law in Latex

Sorry for my naive question, but I'm trying to write Newton's third law this way and I don't understand why it doesn't look right. There is perhaps a problem with the subscripts. This is what a I want:...
Jasso's user avatar
  • 9
0 votes
1 answer
98 views

Specifying size of italics, math subscripts, and more in SizeFeatures

Combining the suggestions of David Carlisle and egreg to refer to the Libre Baskerville font without knowing its name here, I ran into a new problem when I increased the font size to 12 points with ...
Ben Kovitz's user avatar
2 votes
2 answers
789 views

mathspec error "Missing number, treated as zero" after TeX Live Update 2022-07-31

After updating Tex Live infrastructure and thereafter the new package versions I get the following error message: mathspec.sty:92: Missing number, treated as zero. <to be read again> ...
Franklin's user avatar
  • 205
0 votes
0 answers
69 views

creating random questions for a worksheet

This might be too much to ask but I would like to create a worksheet like the one below, \documentclass{article} %AdditionCode % \usepackage{amsmath} \usepackage{mathtools} \usepackage{enumitem} \...
Paul A's user avatar
  • 1,117
2 votes
1 answer
2k views

Line Spacing Between Aligned Equations

I've been typing this equations but these equations does not get enough line spacing spacing. I get space sufficient if I did type them separately but I want them aligned too. following is the code: \...
Gaurav Tambe's user avatar
0 votes
1 answer
598 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{...
Adam's user avatar
  • 21
1 vote
2 answers
57 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-...
user402875's user avatar
0 votes
0 answers
61 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 ...
yannis's user avatar
  • 2,023
1 vote
1 answer
388 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 ...
HanLar's user avatar
  • 11
0 votes
0 answers
134 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. ...
Rain's user avatar
  • 194
2 votes
1 answer
140 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{...
Masum's user avatar
  • 1,029
0 votes
0 answers
38 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{...
Masum's user avatar
  • 1,029
1 vote
2 answers
279 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 ...
Сергей Корягин's user avatar
2 votes
1 answer
593 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} \...
J0K3R_12QQ's user avatar
0 votes
2 answers
273 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 ...
M. Logic's user avatar
  • 4,333
0 votes
0 answers
44 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 ...
Ralff's user avatar
  • 283
2 votes
2 answers
373 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
1 vote
1 answer
357 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 ...
yannis's user avatar
  • 2,023
0 votes
1 answer
105 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 "...
latex_lover's user avatar
1 vote
1 answer
893 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 ...
ARGratrex's user avatar
3 votes
1 answer
159 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 ...
Faber Bosch's user avatar
0 votes
1 answer
146 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 = *-...
fogof mylife's user avatar
0 votes
2 answers
178 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 ...
M. Logic's user avatar
  • 4,333
0 votes
2 answers
3k views

Writing an equation with two domains? [duplicate]

How do I write the following in LaTeX:
aan's user avatar
  • 2,693
1 vote
0 answers
448 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. \...
user39714's user avatar
  • 167
9 votes
1 answer
12k 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} \...
Real Noob's user avatar
  • 213
0 votes
1 answer
549 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 ...
aan's user avatar
  • 2,693
0 votes
1 answer
345 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: \...
aan's user avatar
  • 2,693
2 votes
2 answers
774 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[...
S. Venkataraman's user avatar
1 vote
1 answer
392 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 ...
dnadlinger's user avatar
7 votes
2 answers
466 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{...
mrclary's user avatar
  • 327
0 votes
1 answer
91 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 ...
yannis's user avatar
  • 2,023
0 votes
0 answers
47 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 ...
frixhax's user avatar
  • 153
2 votes
1 answer
85 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 ...
Noteless Scholar's user avatar
0 votes
1 answer
100 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 ...
Dog_69's user avatar
  • 1,023
2 votes
1 answer
40 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} ...
Gianni Spear's user avatar
8 votes
1 answer
616 views

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

What package of these two is better for changing math-mode fonts (to .ttf fonts)?
bp2017's user avatar
  • 3,796
0 votes
1 answer
561 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{...
Jerry John's user avatar
7 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 ...
AboAmmar's user avatar
  • 46.7k
6 votes
2 answers
2k 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 ...
Augustin's user avatar
  • 5,745
2 votes
1 answer
608 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={...
occamsrazor's user avatar
3 votes
2 answers
3k 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 ...
Massimo Ortolano's user avatar
1 vote
1 answer
319 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 ...
weean's user avatar
  • 13