Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
34 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
59 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 ...
3
votes
1answer
57 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 ...
0
votes
0answers
14 views

Redefining math symbols in `mathspec`

I'm using the Skolar font for a work and I'm experimenting with mathspec just to match the fonts in regular and math text. There's a latin character called "f with hook" (unicode 0192; ALT+131 on ...
2
votes
1answer
61 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={...
2
votes
2answers
89 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
46 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 ...
4
votes
1answer
68 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
133 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
58 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
205 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
82 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
44 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
143 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
147 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, ...
2
votes
1answer
1k 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
32 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
85 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
231 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
134 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 ...
5
votes
1answer
310 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
207 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
259 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
110 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
1answer
991 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
82 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
0answers
557 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
330 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 ...
0
votes
1answer
332 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 ...
6
votes
1answer
725 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
525 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
691 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 ...
0
votes
0answers
537 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
320 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
316 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
210 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
567 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 ...
2
votes
1answer
142 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 ...
2
votes
1answer
346 views

\mathbb and MnSymbol

I am experimenting a little with fonts and I'd like to use the following MWE to write some math: \documentclass[% paper=a4,% fontsize=12bp,% parskip=half-,% notitlepage,% oneside,% reqno,% numbers=...
5
votes
0answers
480 views

mathspec and \RequirePackage{amsmath} error [duplicate]

In my package, I request amsmath with \RequirePackage{amsmath}, resulting in this basic setup: \documentclass{minimal} \usepackage{amsmath} \usepackage{mathspec} \RequirePackage{amsmath} % part of ...
1
vote
1answer
573 views

Temporarily changing the math font in certain environments

A follow-up question to my earlier post here. In my document, I want to typeset the tables in a different font from the main text. I've managed to make that work for regular input. However, I ...
2
votes
1answer
222 views

Scaling Line Integral Symbols

I need to use special integral symbols but with Cambria Math they are too small. Is there any way to scale these automatically? \documentclass{article} \usepackage{mathspec} \usepackage{unicode-math} ...
7
votes
2answers
867 views

How do I modify the placement of the prime symbol?

Some colleagues and I are writing a series of math notes and the house style (not up to us) is to use the Gotham Book family of fonts. So our math italic font is Gotham Book Italic. We're noticing ...
1
vote
0answers
204 views

mathspec and unicode-math characters not displayed

I have using mathspec and unicode-math for the purpose of two different math symbols in my documents. I have used as per this how do set table body math parts in different font. But when using $...$ ...
6
votes
2answers
1k views

Symbols in XeLaTeX

From the mathspec documentation 4.2 Symbols There is currently no way to set the font for general mathematical symbols such as: =, ×, ↦, ∂, ∅, ∈, ∫, ⊂ I'm using XeLaTeX for better ...
5
votes
1answer
197 views

Setting glyph spacing with mathspec

I am using xelatex and the mathspec package to use the Calibri font found on recent Windows machines. The font metrics used to typeset italic characters are fine for text but not for math; glyphs ...
4
votes
1answer
1k views

Getting bold digits with XeLaTeX and mathspec

I'm trying to achieve something that I assumed was quite simple but it made me waste an insane amount of time so far. I'm using XeLaTeX for a document and I'm setting “Arno Pro” as my font. I'm using ...
3
votes
1answer
411 views

xelatex mathspec with polyglossia

How to use mathspec package and polyglossia for the russian language? MWE \documentclass[14pt]{extreport} \usepackage{mathtools} \usepackage{amsfonts} \usepackage{amsmath} \usepackage{commath} % \...
3
votes
1answer
5k views

Changing font and using amsmath [duplicate]

I've read several threads about this, but none solves my problem. When I try to change font, it won't compile. Is there an other way to change font, that will still allow me to write stuff like: $\mu$ ...
4
votes
1answer
3k views

XeLaTeX/beamer/fontspec/unicode-math: Change font of all math digits

Please consider the following MWE: \documentclass{beamer} \usepackage{unicode-math} \usepackage{fontspec} \setsansfont{some-font.otf} \usefonttheme[onlymath]{serif} \begin{document} \begin{frame}...