Questions tagged [mathastext]

This tag should be used, if you use the mathastext package to set maths in the same font as the text. If you use mathspec or unicode-math to accomplish that and your question deals with those packages, please use the appropriate tags instead.

Filter by
Sorted by
Tagged with
1
vote
0answers
39 views

Mathastext, have math font be italic or bold according to text

I recently tried \usepackage{mathastext} and I really like the effect, which is that the math is in the same font as the text, instead of popping-out of it. However, this effect is lost as soon as the ...
3
votes
0answers
55 views

Make siunitx use (locally) a font selected via mathastext

I want to change locally a font also for math text I can use the mathastext package. However siunitx doesn't seem to respect this as showed in the following example (with the augie font). So how can I ...
2
votes
1answer
104 views

Font doesn't change in math mode with mathasfont

I'm trying to change math font to sans serif font (the same I use in the rest of the document) with mathastext package. Letters change but numbers doesn't do it and I don't know why. This is my ...
0
votes
1answer
46 views

How to use otftotfm with LGR encoding

I have an OTF font with 4 variants (regular, italic, bold, and bold italic). The font includes upper and lower case Greek symbols in all of the appropriate slots. I'd like to use this font with ...
2
votes
2answers
113 views

Loading a custom `mathastext` font causes minus symbols to disappear

I use mathastext to customize my math font and its symbols. However, when using it, the minus sign no longer appears. One answer is to use \ang command for the angle. This works only if we put use a ...
1
vote
1answer
48 views

Matrix brackets not appearing when typeset in the typewriter style

I need to display all the math in the typewriter style, so I used mathastext to do it, but now matrix brackets are not being displayed. Everything else works fine as far as I can tell. Here's my code:...
3
votes
1answer
251 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 ...
5
votes
2answers
267 views

Mathastext: Wrong digits in math-mode

I'm using fourier and erewhon as my main (serif) text and math fonts. I want to use TeX Gyre Heros as sans font. Because this font has no math support, I use mathastext to fake it only for the sans ...
1
vote
2answers
314 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 ...
2
votes
1answer
67 views

Disabling mathastext in middle of the document

Is it possible to disable and enable mathastext in the middle of the document for a line or paragraph?
1
vote
1answer
325 views

mathastext font shapes rendered in wrong encoding

I am trying to use the mathastext package to replace alphabet letters in math with the default fonts in the document, and gfsdidot (udidot) for greek. I can either get everything relevant except greek ...
3
votes
1answer
526 views

Use smart greek letters recognizing \mathrm with mathastext-package

This is another follow-up question to this one with @wipet's great answer on how to create "smart greek letters" which in math mode are normally italic, but recognize the \mathrm command to become ...
2
votes
2answers
1k views

How do I get upright greek letters with the mathastext package?

I am using mathastext and bm packages. I want a bold upright phi. \bm{\phi} gives me italicized one and if I change it to a capital \Phi, it works. ... \usepackage[upgreek]{mathastext} ... What ...
1
vote
1answer
225 views

Unicode-math, Mathastext and Siunitx's \ohm

The ohm unit of Siunitx does not appear if I use unicode-math and compile with LuaLatex. It works again if I comment out either the \usepackage[]{mathastext} or the \usepackage{unicode-math} (with ...
3
votes
3answers
2k views

Math font Helvetica non-italic

I am using Helvetica font, but I don't want my math formulas to be in italic. I tried using \usepackage{mathastext} but it changes the font. Is there a way in which I can have Helvetica non-italic ...
6
votes
1answer
1k views

Using `mathastext` or `newtxmath`

Is it more appropriate to use tgtermes with mathastext and option italic or to use newtxtext and newtxmath? I do not know if one of them is missing some functionality for math mode. I would like to ...
1
vote
1answer
107 views

Clash between MnSymbol and mathastext

I can't seem to make these two packages play well. Is there a fix or should I just give up on it? Here is a MWE. \documentclass[oneside]{amsart} \usepackage{MnSymbol} \usepackage[frenchmath]{...
2
votes
2answers
433 views

Taking math operators from Unicode font, but chars from text

since I've found a nice font (oldstandard), I'm doing my very first steps using XeLaTeX. This font has enough math operators for me, but unfortunately covers no mathmematical alphanumeric signs. So ...
3
votes
3answers
320 views

accents misaligned in MATHASTEXT

I am trying the package MATHASTEXT with libertine font. With the "italic" option. The output seems fine, with an exception: the accents -- I use \tilde and \bar -- are misaligned horizontally (too ...
4
votes
1answer
1k views

mathastext package: \ell undefined control sequence

I'm using the mathastext package in order to get a sans math font throughout the document. Unfortunately then the \ell command is undefined. Is there any way, to get this back, e.g. with unicode ...
4
votes
2answers
1k views

Simple partial derivative problem

I have a simple problem with partial derivative symbol, it doesn't work if I try any of these commands: \partial \pdiff \pder I use sharelatex, and in other projects I could use the \partial symbol. ...
2
votes
1answer
245 views

Oldstylefigure issue with lualatex and mathastext

I'm trying to figure out what causes OSF to be selected in mathematics. Following is the MWE. % arara: lualatex \documentclass[9pt,fleqn]{extarticle} \usepackage[T1]{fontenc} \usepackage[utf8]{...
1
vote
1answer
126 views

Using mathastext with listing

In the following example code, I would like to use mathastext so as to use the same font than the one used by listings. In the code above, the output of the listing do not use a courier-like font, ...