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
0
votes
0answers
36 views

How to redefine the \usepackage argument?

I'm new to Latex and I want to know if it's possible to redefine \usepackage arguments. For example, if I had \usepackage[LGRgreek]{mathastext} // the LGRgreek argument is used here and I wanted to ...
5
votes
1answer
361 views

A problem typing (') in LaTeX

What is this? I'm just trying to write ' Entry: Output: My code: \documentclass[a4paper]{article} \usepackage[margin=1.5cm]{geometry} \usepackage{helvet} \renewcommand\familydefault{\sfdefault} \...
0
votes
2answers
179 views

Using Verdana as math font with pandoc+beamer

I'm trying to use Verdana as the math font in beamer slides written in Markdown and rendered with pandoc using XeLaTeX as the PDF engine. As specifying Verdana with pandoc's mathfont option directly ...
1
vote
2answers
143 views

Changing the font of greek letters of mathastext

I'm using the mathastext package to make math contents consist with the text. The package offers a \MTgreekfont command to change the font of greek letters. Current I use the lmtt font but its size ...
0
votes
0answers
30 views

\Longrightarrow does not work properly in mathastext.sty

My codes are follows: \documentclass{book} \usepackage[T1]{fontenc}% \usepackage{times} \usepackage[defaultmathsizes,italic]{mathastext}% \usepackage{mathtools} \begin{document} \begin{align*} x \in ...
3
votes
0answers
45 views

Spacing in mathastext package

I have this MWE, using mathastext package. \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage{mathtools} \usepackage{newtxtext} \usepackage[italic,defaultmathsizes,symbolgreek]{...
0
votes
1answer
170 views

How might one treat hyphens as hyphens (not minus) in in-line math?

How might one treat hyphens as hyphens (not minus) in in-line math? \documentclass{article} \usepackage[T1]{fontenc} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{parskip} \renewcommand\...
4
votes
2answers
180 views

Using body font in formulae

In Short: I can change the math font, but it is not working for numbers. My document has a few formulae but only basic alphanumeric characters with very limited symbols (square root being the only ...
4
votes
1answer
108 views

Epigrafica font and mathastext incompatible for minus sign

I like the looks of the Optima font for my figure notations, which often include mathematical notations. I also prefer pdflatex. So I have found the Epigrafica font to be a nice Optima clone, which ...
0
votes
0answers
70 views

How do I get some greek letters italic while using \usepackage[symbolgreek, italic]{mathastext}

I'm using \usepackage[symbolgreek, italic]{mathastext} because its the only solution I found to get the desired fonts for my Greek letters. Now I need some of these letters italic. I tried the italic ...
5
votes
2answers
281 views

Ugly roots using newtxmath: alternatives

In this period I am writing several notes of Mathematical Analysis and Physics for my students during this bad period for the pandemic, also attaching videolessons for distance learning or distance ...
0
votes
1answer
117 views

Problem in using amsmath and mathastext packages

I am trying to use Arial fonts and fira-math fonts and compiling with lualatex. I am also using mathastext. However there is a problem. The \begin{bmatrix}\end{bmatrix} doesn't work. Here is a MWE, ...
1
vote
0answers
154 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
96 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
435 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
92 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
183 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
112 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
379 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
661 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
409 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
143 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
469 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
875 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 ...
3
votes
2answers
3k 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
380 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 ...
4
votes
4answers
3k 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
3k 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
137 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
494 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
4answers
641 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
2k 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
2k 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
327 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
176 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, ...