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 [math-mode]

{math-mode} is about typesetting mathematical content, e.g. tweaking the appearance of spacing and symbols in a formula, or producing specific mathematical constructs. For questions about "wrapper" environments like equation or align, consider the tag {equations}.

6
votes
0answers
275 views

Replace an upright Greek math alphabet in mtpro2

I need to replace the gamma and upright uppercase Gamma alphabets in mtpro2 with their counterparts from newtxmath in both normal and bold styles. I asked a related question, viz., How to replace ...
4
votes
0answers
192 views

Is there any package distinguishing \le and \leq?

Continuing https://tex.stackexchange.com/a/49453/165772 as well as doubtlessly many similar answers: in pure (La)TeX, \le and \leq mean exactly the same. Is there any CTAN package X that intentionally ...
4
votes
0answers
132 views

Subformula numbering

I can't get cases subformula to work properly. My MWE, inspired from the wiki and the My Way "Using \startalign and friends" by Aditya Mahajan, is : \starttext \placeformula \startformula \...
4
votes
0answers
295 views

Is there “screen reader” software or a built in method that supports LaTeX equations?

I was asked a question during a LaTeX how-to session which I did not have a good answer for. The person asking is interested in accessibility software which is able to read LaTeX formatted equations ...
4
votes
0answers
115 views

mathspec or mathastext equivalents for ConTeXt

I have just started out with ConTeXt, and am wondering if there is a way to use fonts that do not have an OpenType math table or a specifically designed math font in the way that mathspec or ...
4
votes
0answers
8k views

Making bold numbers in math mode using bm package

I am having some troubles producing numbers in math mode in bold. \mathbf{} command worked with the mathptmx package, producing bold numbers that looked like numbers in math mode, but bold. Then I ...
4
votes
0answers
587 views

How do I improve the quality of png images when converting to html using htlatex?

I have tried to convert my LaTeX document into xhtml running the following commands (found here): htlatex source.tex tidy -asxhtml -output seconddraft.xhtml firstdraft.html Everything displays ...
4
votes
0answers
175 views

PGF pretty number printing equivalent in LaTeX

For TikZ and pgfplots I use : \tikzset{/pgf/number format/.cd,use comma,1000 sep={\,}} And all numbers are typeset accordingly, with no other command. Is there a way to have the same convenience ...
3
votes
0answers
58 views

Change main font without affecting the math environment

I changed my document font from the default one to Akkurat with setmainfont from fontspec: \usepackage[no-math]{fontspec} % ... \setmainfont{}[ Path = fonts/AkkuratPro/, UprightFont = ...
3
votes
0answers
50 views

Large tilde over math symbol with automatic horizontal positioning

I find that $\tilde{x} produces a tilde that is much too small for legibility at the screen resolution I normally use for reading. On my screen it looks like a tiny bar above the symbol. This question ...
3
votes
0answers
69 views

An Error in Math mode

What is the meaning of \mathcal allowed only in math mode What sign should I use to fix this error?**
3
votes
0answers
114 views

polynom.sty: How can show only the task and the result of a Polynomial long division?

How can I automatically show only the task and the result of a Polynomial long division, like (without the 'gap', too late seen above) I know, there are possibilities to bunch that together (see MWE)...
3
votes
0answers
88 views

Modal math font commands in modern LaTeX? (i.e. modal version of \mathrm etc.)

Is there a modern modal version of the math font commands? In modern LaTeX, the use of old font-commands like \rm is quite strongly discouraged, with the commands being removed from the Kernel, and ...
3
votes
0answers
219 views

Proper ERT LaTeX Code in LyX Math-mode

The problem I am having is I cannot have full "monospaced font" ERT code in LyX math-mode. In the picture below, you can see that in math-mode there is no red box and the argument in the curly ...
3
votes
0answers
135 views

Where does not TeX make correct spacing and formatting in math formulas automatically?

I am writing book with a lot of math formulas. I am interested to print them correctly according to typography rules, Knuth's recommendations or AMS-society's recommendations. I saw in this question ...
3
votes
0answers
252 views

Can the optidef package accommodate breaking a long constraint?

The optidef package accommodates breaking a long objective function using the \breakObjective command (documentation section 9.9). I have a constraint that is too long. The workaround below uses \...
3
votes
0answers
2k views

latin modern math italic font

I'm trying to use exactly the same fonts for other software as when using the lmodern package in latex. All seems to work fine after having downloaded the latin modern fonts, as well as the latin ...
3
votes
0answers
1k views

Vertical Spacing in \frac

So I am using \frac and it looks like the content in my denominator is touching the line, is there any way I can use a simple \vspace to correct the issue? Is there an easy fix or do I have to mess ...
3
votes
0answers
61 views

Why does \mitsans#1 command (unicode-math) still produce upright sans serif in math mode

I never thought that sans serif letters are subset of the glyphs in unicode OpenType fonts, until I see this in texdoc unimath-symbols: However, I cannot get the italic shape of sans serif letters in ...
3
votes
0answers
742 views

More space between the lines in cases

I'm using the cases environment in one of my formulas. Each case is a fraction so I'm using \displaystyle to let them appear bigger. However, the result looks quite ugly because there is no space ...
3
votes
0answers
311 views

dot2texi: Use latex labels (texlbl) with clusters

I'm using the dot2texi package to include dot graphs in my tex files. With nodes, I can use texlbl="$n_1$" to create a label n1. I want to have tex labels also on clusters: \documentclass{beamer} \...
3
votes
0answers
452 views

Font-independent convention for multi-letter variables in math mode

For several years now, I have always used \mathit to display variables that have more than one letter, to ensure proper kerning: \fbox{$foo = f(jazz)$} vs. \fbox{$\mathit{foo} = f(\mathit{jazz})$} I ...
3
votes
0answers
833 views

French math style with default font

Edit: Okay, I found it, just needed more focus on the related entry. The package mathastext called with the frenchmath option does the job. The time for my first question to stackexchange could have ...
3
votes
0answers
211 views

How to use a lualatex FeatureFile to adjust sidebearings in math mode?

I am trying to use Linux Libertine as a letter font (and a bit more) in math with unicode-math and luaLaTeX. It should be good to adjust some details, and I hoped to be able to do it with a .fea ...
2
votes
0answers
46 views

Spaces between numbers or letters within math mode in Beamer

I have been looking in the and Latex companion, and I did not find what I want to make. I write transparencies in beamer for my lectures, and I have observe that the space between numbers or letters ...
2
votes
0answers
97 views

slender \lgroup and \rgroup

The default \lgroup symbol in the most of math-mode fonts is thicker as compared to the text- and math-mode alphabets and numbers. A few fonts provide slender \lgroup symbols like newtxmath, mathabx, ...
2
votes
0answers
68 views

Automatically convert math written in .tex into a canonical form that retains all the math information

I believe what I'm going to describe can be done accurately. However I'm not sure about how hard this will be. Basically my motivation is to standardize the math part in most existing math papers so ...
2
votes
0answers
190 views

Using fira-math with pdflatex

Can I use the fira-math font with pdflatex? With the sfmath package I can activate a sans serif font for the math but would like to use the matching font fira-math (https://github.com/firamath/...
2
votes
0answers
90 views

Generate an iterable list

I need to return an iterable list (that will be used in another steps) from an previous list that includes expandable content (variables and math operations). \def \scale {1} \pgfmathparse{\scale * ...
2
votes
0answers
41 views

Error when using breqn and nowidow?

I've been using the nowidow package with the option all loaded like so \usepackage[all]{nowidow} From the package documentation it says "The all option sets the widow and orphan penalties for the ...
2
votes
0answers
100 views

Behaviour of \sqrt

I compile the following code \documentclass{article} \usepackage{mathtools} \usepackage{unicode-math} \begin{document} \[ K^\times \quad \lvert K^\times \rvert \quad \sqrt{\lvert K^...
2
votes
0answers
163 views

Conflict between packages breqn and siunitx?

I'd like to use siunitx package to write an equation like this: However, when I try to use \SI in math mode I get a very strange result: After some tries, I think I managed to find what is causing ...
2
votes
0answers
97 views

Is there a way to write all digits on documents in math mode?

Is there a way to write all digits on documents consist of page number, fotnote number, enumerate number, etc. in math mode $[number]$? because of in fonts of my language, the shape of math mode and ...
2
votes
0answers
142 views

A problem with using fancytooltips package

I'm trying to use fancytooltips package to create comments/tips that include mathematical formulas (I use MikTeX 2.9). I acted according to the directions of this guide Mouseover events in beamer: ...
2
votes
0answers
72 views

Importing mathematical calculations processed by an external file

I usually work with software called Wolfram Mathematica. With this software I perform mathematical calculations and get their results. I usually do the following: Button Right Click -> Copy As -&...
2
votes
0answers
220 views

breqn dmath change of layout

The dmath environment of the breqn has a property called layout, which determines the shape an equation is formatted. How can I change the layout option of this environment? consider the following ...
2
votes
0answers
165 views

Change subscript position in any font size

I'm using the \fontdimen16\textfont2=5pt to lower the position of a subscript. It works when the size of the font is normal, but nothing changes when I use one of the \tiny, \small...\Huge commands to ...
2
votes
0answers
221 views

OpenType features for a math font in CONTEXT

Using CONTEXT MkIV, is it possible to add custom/virtual OTF features to a font used in math mode? Here is a simplified version of what I want to do. I want to change all occurrences of 1.2 in math ...
2
votes
0answers
229 views

lacheck doesn't like factorials?

I have the following code. \documentclass{standalone} \begin{document} $n!$ \end{document} Running lacheck on it results "test.tex", line 3: punctuation mark "!" should be placed after end of math ...
2
votes
0answers
513 views

Knitr and numbers

I return to a question, which is few months old and then maybe not yet the best practice around. I use the siunitx package in my documents along with knitr to compile my R chunks. As far as I ...
2
votes
0answers
266 views

AUCTeX folding and square brackets in math mode

I want to use the folding functionality of AUCTeX, mainly to replace math macros with the corresponding symbols. But at the same time I want to continue to use square or curly brackets additionally to ...
2
votes
0answers
152 views

Math application/library that uses LaTeX?

I don't want to re-invent the wheel here, and I know that there are a lot of good math libraries out there for all sorts of things; what I'm wondering is if there's one that generates its answers in ...
2
votes
0answers
190 views

Using oldstyle numbers in XeLaTeX math mode for ONLY inline math

Is there any way to use OldStyle numbers for text and inline math only, while using Lining in the align and equation environments? Ideally via mathspec, but I'm open to other solutions.
1
vote
0answers
12 views

Math symbols insertion in AUCTeX

I've been facing some trouble with math symbol insertion in AUCTeX and I'm probably missing something from the available structure and options. But as I'm struggling for a while, I might as well ask. ...
1
vote
0answers
73 views

How can I add intertext to multilines of formulas?

In LaTeX, I know how to do it, just writing \intertext{This is a text.} between the parantheses of the align*,I wrote below. But in LyX, it does not read the command \intertext. I am temporarily using ...
1
vote
0answers
45 views

cmintegrals options for newtxmath not working

So I was recently looking for free alternatives to mtpro2 and newtx caught my attention. I decided to run newtxmath package with the Computer Modern integrals via the option cmintegrals, but ...
1
vote
0answers
82 views

Math Functions both TeX and Infix Notation

I am trying to automate plotting graphs of mathematical functions. For that I need infix (or RPN) notation. I also want to annotate the output automatically with the correct mathmode of TeX. For ...
1
vote
0answers
80 views

How to declare math delimiter pair without wasting math font?

The command \DeclareMathDelimiter allows to define a delimiter which scales nicely with \left, \big etc. Now the problem I have is that I want to use a particular such delimiter from a different font, ...
1
vote
0answers
43 views

How to obtain the opposite behaviour of vphantom to lift and align subscripts in LaTex

I have the following issue on the alignment of subscripts in LaTex. The line of code producing this, being \documentclass[a4paper, 12pt, twoside]{book} \usepackage[utf8]{inputenc} \begin{document} ...
1
vote
0answers
250 views

How to change font/design of equations?

I know there are different mathematical fonts, as listed in this answer What are all the font styles I can use in math mode? . However, this is not what I'm looking for. Is there a way to actually ...