Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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}.

208 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
295 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
81 views

Logic quantifiers displayed wrong when using newpxmath

When using the package newpxmath, the quantifiers \foralland \exists are displayed as \hslash and \hbar, respectively. See the following MWE: \documentclass{article} \usepackage[T1]{fontenc} \...
4
votes
0answers
170 views

How to visualize (polynomial) long division with infinite fractions only for the first n fractions

I have the following fraction (1+2z^{-1})\(1+2z^{-1}+4z^{-3}) which I want to calculate and visualize with the polynom-package. However, if I execute the following code: \documentclass{article} \...
4
votes
0answers
215 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
144 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
123 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
9k 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
616 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
176 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
43 views

Not usual vertical alignment between \partial symbol and command \frac

Starting from this MWE: \documentclass[a4paper,12pt]{article} \usepackage{mathtools,amssymb} \usepackage{newtxtext} \usepackage[lite]{mtpro2} %%%%%%%%%%%%%%%%%%%%%% New \partial \DeclareFontFamily{U}{...
3
votes
0answers
107 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
126 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
180 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: ...
3
votes
0answers
94 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
291 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
147 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
307 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
67 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
773 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
335 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
467 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
217 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
49 views

Converting MathML to LaTeX: Issue on limits positions on Summation symbol

When using David Carlisle's stylesheet to convert MathML to LaTeX, in most cases, the upper and lower limits on Summation symbol are correctly placed on above and below the summation symbol. But when ...
2
votes
0answers
46 views

Why do lmodern and textcomp inhibit display style?

MWE 1 The following MWE is doing what I want: \documentclass[b4paper,14pt,english,twoside]{memoir} \usepackage[english]{babel} \usepackage[utf8x]{inputenc} % For French accents \usepackage[T1]{...
2
votes
0answers
53 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
178 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
71 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
270 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
96 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
201 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
191 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
109 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
1k views

Square root symbol looking ugly

Recently I noticed that my square root symbol is looking really ugly: The square root per se is not correctly connected to the overbar. The picture above is with a small zoom factor. When I zoom in ...
2
votes
0answers
76 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
233 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
182 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
227 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
520 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
273 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
157 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
195 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
33 views

How to add white space to variables?

I use variables in math mode with subscripts before and after the variable name itself, like {}_{B}\vec{a}_{GP}^{} In case I have equations where these are multiplied, one cannot tell which ...
1
vote
0answers
27 views

Inconsistent horizontal spacing when using a new font in math mode

I am trying to work out a way of using the Optima font in both math mode and the main body of my text. The code I came up with is given below. It is by no means elegant, and if there is a better way, ...
1
vote
0answers
39 views

How can I made \dots command smarter?

I have used in my document \dots instead of almost all other dots such as \cdots, \ldots. though it is smart in choosing base line depend on the formula, but in some cases it is not as (at least my) ...
1
vote
0answers
73 views

Fix vertical space for all display equations for all possibilities

I'm having a much difficult requirement which I explained below in details (refer the screen shots) and the tags are as follows: \documentclass[10pt]{book} \usepackage{mathtools}%to load amsmath \...
1
vote
0answers
53 views

SIunitx doesn't show numbers with math font

I've installed the siunitx package, but the numbers don't appear with the math font I was using the siunits package before and this didn't happen. But that doesn't have all the features that I need.
1
vote
0answers
73 views

How to produce wide grave and wide acute accents?

Consider the input \RequirePackage{ifthen} \RequirePackage{ifxetex,ifluatex} \newif\ifxetexorluatex \ifxetex \xetexorluatextrue \else \ifluatex \xetexorluatextrue \else \...
1
vote
1answer
42 views

Construct math super/sub-script from reference (`\ref`) with hyperref and cleveref being loaded

First, I would like to apologize for the insanely long MWE below. However, I wanted to keep it complete. At the bottom line I want to achieve a construction like $H^{\ref*{my-label}}_{\ref*{another-...