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
4 votes
2 answers
111 views

Problem with parentheses and mathastext

I'll motivate my problem quickly: I make flashcards on my computer using latex, and am in need of certain formatting for this. I've wanted a. computer-readable unified look, which uses non-slanted ...
studying mathematics 's user avatar
2 votes
1 answer
83 views

How do I use a sans serif italic font for the greek letters in math mode?

I'm using helvetica for math mode, but when I add a greek letter it apears in the default CMU font. How do I make it use helvetica for the greek letter too? \documentclass[a4paper,11pt]{article} \...
Tigas's user avatar
  • 519
1 vote
2 answers
133 views

Strange issue with `\url`

I have a problem with \url. When I use it, LaTeX (i.e., pdflatex with TeXstudio) won't end compiling. I have a main document with several included .tex files, each of them containing a different ...
Vicent's user avatar
  • 1,960
1 vote
1 answer
69 views

Symbol for decimal separator overwriten by `mathastext`

I found out that mathastext is interfering with spanish options for babel package. More precisely, when mathastext is loaded, the default decimal separator in Spanish, which is a comma, is replaced ...
Vicent's user avatar
  • 1,960
2 votes
1 answer
287 views

Use text digits in math mode

I am trying to typeset an old math paper that uses the text digits instead of the math digits in equations. E.g. However, mathastext loads the math digits font from the baskervillef package in math ...
FR09's user avatar
  • 147
5 votes
1 answer
393 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} \...
cufcuf's user avatar
  • 594
0 votes
2 answers
718 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 ...
lebedov's user avatar
  • 111
2 votes
2 answers
917 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 ...
Jinwen's user avatar
  • 8,226
0 votes
0 answers
76 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 ...
MadyYuvi's user avatar
  • 13.6k
3 votes
0 answers
71 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]{...
Sebastiano's user avatar
  • 53.6k
0 votes
1 answer
537 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\...
Rick Smith's user avatar
4 votes
2 answers
410 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 ...
agryson's user avatar
  • 190
4 votes
1 answer
259 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 ...
Steven B. Segletes's user avatar
0 votes
0 answers
197 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 ...
chemist's user avatar
5 votes
2 answers
461 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 ...
Sebastiano's user avatar
  • 53.6k
0 votes
1 answer
310 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, ...
S. Venkataraman's user avatar
1 vote
0 answers
301 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 ...
Arnaud's user avatar
  • 219
3 votes
0 answers
159 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 ...
student's user avatar
  • 29k
2 votes
1 answer
985 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 ...
Priscila Velázquez's user avatar
0 votes
1 answer
161 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 ...
user2501235's user avatar
2 votes
2 answers
251 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 ...
Al-Motasem Aldaoudeyeh's user avatar
1 vote
1 answer
403 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:...
Milos's user avatar
  • 391
3 votes
1 answer
500 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 ...
Luna Razzaghipour's user avatar
6 votes
2 answers
1k 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 ...
Anedas's user avatar
  • 83
1 vote
2 answers
515 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 ...
Al-Motasem Aldaoudeyeh's user avatar
2 votes
1 answer
230 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?
Ricardo Cristian Ramirez's user avatar
1 vote
1 answer
634 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 ...
gnucchi's user avatar
  • 946
3 votes
1 answer
1k 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 ...
Robert Seifert's user avatar
3 votes
2 answers
6k 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 ...
nac001's user avatar
  • 317
1 vote
1 answer
527 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 ...
Leonardo Castro's user avatar
4 votes
4 answers
6k 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 ...
Laura Mugica's user avatar
7 votes
1 answer
6k 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 ...
user111's user avatar
  • 411
1 vote
1 answer
184 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]{...
pro's user avatar
  • 113
2 votes
2 answers
554 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 ...
Bubaya's user avatar
  • 2,247
3 votes
4 answers
973 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 ...
Amnon Yekutieli's user avatar
4 votes
1 answer
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 ...
Rafael Wörner's user avatar
4 votes
2 answers
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. ...
Hajnalka's user avatar
2 votes
1 answer
382 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]{...
s__C's user avatar
  • 3,166
1 vote
1 answer
222 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, ...
projetmbc's user avatar
  • 13.8k