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
2
votes
2answers
58 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 ...
1
vote
1answer
41 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 ...
0
votes
1answer
26 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 "...
0
votes
1answer
134 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 ...
3
votes
1answer
92 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 ...
0
votes
1answer
32 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 = *-...
0
votes
2answers
64 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 ...
-1
votes
2answers
260 views

Writing an equation with two domains? [duplicate]

How do I write the following in LaTeX:
1
vote
0answers
73 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. \...
3
votes
1answer
1k 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} \...
0
votes
1answer
33 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 ...
0
votes
1answer
61 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: \...
2
votes
2answers
123 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[...
1
vote
1answer
82 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 ...
7
votes
2answers
371 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{...
0
votes
1answer
39 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 ...
0
votes
0answers
34 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 ...
2
votes
1answer
48 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 ...
0
votes
1answer
79 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 ...
2
votes
1answer
29 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} ...
8
votes
1answer
343 views

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

What package of these two is better for changing math-mode fonts (to .ttf fonts)?
0
votes
1answer
238 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{...
5
votes
1answer
781 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 ...
4
votes
2answers
915 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 ...
2
votes
1answer
199 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={...
3
votes
2answers
1k 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 ...
1
vote
1answer
184 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 ...
5
votes
1answer
208 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 ...
3
votes
1answer
344 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 ...
1
vote
1answer
146 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 ...
1
vote
2answers
379 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 ...
0
votes
1answer
148 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-...
1
vote
0answers
87 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{...
4
votes
1answer
255 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 ...
1
vote
1answer
826 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, ...
8
votes
1answer
3k 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 ...
0
votes
0answers
63 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-...
1
vote
1answer
247 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'...
3
votes
2answers
405 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 ...
1
vote
1answer
243 views

Template to use mathspec for old-fashion text. Step 1: _Ho do I use `mathspec` and `fontspec`?_

(Edited after some comments) I think this is y most difficult question, so I apologize in advance if I do not explain myself well or is a very strange question. I would like to get an old-fashion ...
6
votes
1answer
447 views

XeLaTeX Minion Pro subscript vertical alignment

I am attempting to use Minion Pro with the fontspec package in XeLaTeX, but am encountering problems with the vertical alignment of subscripts when used with certain Greek characters: \documentclass[...
1
vote
1answer
305 views

*mark up editor mode*

How do i find the command to view lyx in the mark up editor mode, where on can add command to insert new packages layouts, margin spaces, centering etc, and the document class such as . For example ...
1
vote
2answers
343 views

How can I enumerate an expression within $$ … $$?

Can someone help me, I want to enumerate my mathematical expressions that I wrote inside $$ ... $$. $$y=f( \sum_{i=1}^{N} w_ix_i+w_0)$$ I used \align but it doesn't work, I even used \begin{equation}...
1
vote
1answer
137 views

Serif numbers in monospaced environments in `mathspec` but not `fontspec`

I would like to use a serif font for both the body of my text and maths environments as well as a separate monospaced font for things like URLs. When I compile this using fontspec: \documentclass[...
0
votes
2answers
2k views

fontspec mathspec clash

I have just updated to fontspec 2017/02/12 v2.6. Now when I compile my code I get a clash with mathspec. C:\Program Files\MiKTeX 2.9\tex\xelatex\mathspec\mathspec.sty:65: LaTeX Error: Option clash ...
3
votes
1answer
134 views

Globally raising the math axis

Is there a way to raise the position of binary relations and operators by a set amount, so that =,+,-, etc. is raised a little bit without explicit markup? For instance, in the following example, ...
1
vote
1answer
976 views

How to select monospaced numerals for tables only when using mathspec?

For one of my documents I used OldStyle numerals in regular text. For math I use Lining numbers. For tabular material I would like to use monospaced lining numbers if these numbers are math-related (I ...
2
votes
0answers
427 views

mathspec with XeLaTeX produces Greek character `already defined' error

As per the Title. I am trying to use \mathspec so that I can override the default math font. When I typeset, I am told that the various Greek letters (Gamma, Delta, etc.) have already been defined. I ...
1
vote
1answer
455 views

AlegreyaSans with mathspec in Beamer

Somehow I cannot get the AlegreyaSans font to work in Beamer with mathspec. The standard fontenc call for AlegreyaSans works for PDFLaTeX, but I need to use auto-pst-pdf for a table, thus the use of ...
7
votes
1answer
1k views

LuaLaTeX and mathspec

It seems that, if I want to use the letters and digits from a system font that is not especially designed for mathematics in math mode as well, I need mathspec and XeLaTeX; and cannot replace XeLaTeX ...