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
0answers
23 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
74 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
23 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
42 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: \...
0
votes
1answer
33 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
52 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
331 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
34 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
31 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
43 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
74 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
26 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
296 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
132 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
458 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
508 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
127 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
537 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
150 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
159 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
293 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
122 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
347 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
130 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
80 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
220 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
536 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, ...
6
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
54 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
185 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
365 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 ...
0
votes
1answer
200 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
400 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
272 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
332 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
131 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
1k 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
116 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
826 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
390 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
407 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 ...
3
votes
1answer
774 views

OldStyle numbers, the Fira Sans font and the siunitx package: incorrect % symbol

I am working on a document where I regularly use percentages. For that I'd like to use the siunitx package so that I can write \SI{56}{\%}. I also prefer to use OldStyle (or Lining) numbers. Currently ...
1
vote
0answers
970 views

\setmathsfont can be used only in preamble

Possibly related to What is the difference between unicode-math and mathspec? Change math font only in some parts of a document? Roughly speaking, I would like to know if it is possible to change ...
1
vote
0answers
651 views

No superscript or subscript greek letters with EB Garamond and mathspec

When using the EB Garamond font (v. 0.016) with XeLaTeX and mathspec, superscript and subscript greek letters in math mode do not appear in the pdf, though it compiles without error. \documentclass{...
2
votes
1answer
398 views

Setting math fonts with mathspec changes monotype fonts of urls in bibliography

I'm working on a document with Xelatex so I use \fontspec. I have set the monotype fonts with \setmonofont to use Inconsolata, for example, in the urls of the bibliography. This minimal example shows ...
2
votes
0answers
509 views

Changing the Font of Variables in an Equation Using XeLaTeX

I am trying to digitalize a book(130pages) by retyping it all(copy is in a really bad shape to be scanned). I am attempting to use Helvetica Neue as the main font for all numbers and variables on all ...
3
votes
1answer
243 views

Wrong superscript positioning with xelatex and alternative font

Trying to change the math font with xelatex, I used the following commands: \usepackage[cm]{sfmath} \usepackage{mathspec} %\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} \setmainfont{...
3
votes
0answers
669 views

How to use Mathematical Pi font properly? [closed]

I was asking the other day how to find certain fonts of a document. Well at last it was easy. I came to the Mathematical Pi LT Std font and ITC New Baskerville Std results and for that part, I was ...
3
votes
1answer
204 views

\mathellipsis in XeLaTeX with mathspec

Following the solutions Punctuation marks in math mode in xetex/mathspec and XeTeX/mathspec punctuation issue, I am making adjustments to mathspec to force XeTeX to use punctuation marks of the ...