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

learn more… | top users | synonyms (2)

6
votes
1answer
171 views

Typeset an upright ell

The $\ell$ character in math-mode is clearly slanted to match the usual slant of math-mode characters. Is there a way to typeset an upright version, that won't look slanted amid other ...
3
votes
1answer
43 views

Getting bold digits with XeLaTeX and mathspec

I'm trying to achieve something that I assumed was quite simple but it made me waste an insane amount of time so far. I'm using XeLaTeX for a document and I'm setting “Arno Pro” as my font. I'm using ...
0
votes
1answer
30 views

Align equations left-right

I was trying to use flalign to align my equations from left to right, but it doesn't work. Any way it compiles the text to pdf, but it is exactly like align environment from right to left. Could you ...
5
votes
5answers
89 views

Two rows of upper indices

How do we do this in LaTeX? The main problem is having two rows of values as upper indices.
0
votes
1answer
37 views

How to insert a column vector using transpose of row vector in LaTeX

I want to write A=[Xtk Ytk .Xtk .Ytk]^T in LaTeX. ^T means that I want the transpose symbol "T" to come as superscript of the matrix. Xtk should appear as the variable X with subscript t and ...
18
votes
6answers
782 views

Rounding a number to its hundred

Does anybody know how I could have LaTeX round a number like 2,386 so that I finally get only written 2,300? I tried with siunitx and its option [round-mode=places,round-precision=-2] but it didn't ...
4
votes
1answer
57 views

Should one always use exscale when using lmodern?

At the moment I only use summation signs with symbols which have a normal high and also no summation signs in subscripts. Due to this post is it correct that I should always use the exscale package ...
2
votes
1answer
32 views

Boldface for undescore in math mode

I need to insert an equation which contains the term x_y (y is subscript). The term must also be boldfaced. How do I achieve this in LaTeX?
3
votes
2answers
43 views

spacing between symbols in math mode

The following code will \begingroup \everymath{\displaystyle} \scriptsize $XXXXXXX(XXXX(A,B,C),XXXX(D,E,F)) \leftarrow XXXXXX(A,B,C) \wedge XXXXXX(D,E,F) \wedge XXXXX(XX(A,B),XX(D,E)) \wedge ...
0
votes
0answers
29 views

Math display help [duplicate]

I need help for what command I should do. I have a sentence, and in the middle of the sentence I use a math stuff then, more words. The part with math is smaller and smushed up. I do not want to begin ...
7
votes
2answers
8k views

Command for text in math mode that does not become italicized inside theorem statements

This has probably been answered somewhere, but I can't find it from some searching. I sometimes want to write something like Leb for lebesgue measure, and I would like it to be non-italicized, so I ...
0
votes
1answer
130 views

How can I typeset those three mathematical symbols? [duplicate]

I need to typeset (in one of my post on Mathematics.SX) the following three mathematical symbols but I don't know how: the symbol for the Heaviside function, the symbol for "not equal", as in "x ...
1
vote
2answers
50 views

How to combine another sans-serif math font with helvet for text?

The existing question Typeset WHOLE document in sans-serif, Including Math Mode uses the sansmath package to use helvet glyphs also in math-mode. But being not designed for use in math mode, the ...
4
votes
1answer
28 views

math subarray/substack environment not working

I am trying to get stacked indices using subarray/substack using the following snippet, but I am not seeing stacking beneath the sum symbol. This is the type of output I am expecting, but this is ...
2
votes
1answer
46 views

mathpazo package and changing font within \begin{equation} … \end{equation}

I really like the mathapazo package but it changes all the text - NOT only the math environment. How I can edit the \usepackage{mathpazo} so that it effect only the math environment?! Does anyone has ...
12
votes
2answers
5k views

My prime symbol is not superscript

I'm learning math mode and having an issue here with the prime symbol. $y\in[0,1]^{d\prime}$ In this inline math formula, the prime symbol is supposed to be superscript, but it shows up at the ...
3
votes
1answer
119 views

How to adjust self defined multiple product signs

The latex code below produces multiple product signs: \documentclass{article} \usepackage{amssymb,amsmath,graphicx,color} \newcommand{\invcircledast}{% \mathbin{\vphantom{\circledast}\text{% ...
13
votes
3answers
272 views

Overline thickness

Is there a way in latex to change the vertical thickness (height) of the line generated by the \overline command? \[ \overline{\overline{A \vee B}} = \overline{\overline{A} \wedge \overline{B}} \]
15
votes
2answers
7k views

\xRightarrow (text)

I know it's possible to have \xrightarrow (text), but if I try to do \xRightarrow (text) I get an error each time. Does anybody know if it's a syntax error or if there is a other way to produce the ...
3
votes
1answer
40 views

Upright, boldface, lowercase, greek math symbols with cbgreek glyphs

The standard math fonts in LaTeX do not include upright and upright boldface glyphs for lowercase greek symbols. Unfortunately, I need them in my document, so in some way I'll have to import the ...
5
votes
2answers
667 views

How to highlight math environments with colored background?

How to highlight maths environments (in-line mode excluded) with a coloured rectangular background e.g. grey? A \textwidth rectangular behind the {equation} environment.
3
votes
1answer
72 views

Why is it recommended to put \relax before \ifmmode?

I've several times seen the recommendation to put a \relax before \ifmmode in a macro. I've tried searching for an explanation of this several times on this site, but hadn't been able to find one. An ...
3
votes
2answers
36 views

How does one modify \xoverline for subscripts/superscripts?

The \xoverline command (see the-bar-and-overline-commands) works beautifully except that it assumes normalsize. So it blows up the size of subscripts as in $A_{\xoverline{K}}$ vs $A_{\overline{K}}$ ...
4
votes
1answer
78 views

LaTeX Extensible Delimiters Definitions

I'm writing a new font (in Metafont) and am working on the OMX-encoded math font. I've properly defined the parts of the extensible parentheses and included the fairly straightforward ligature ...
1
vote
1answer
58 views

Redefining \^ and \~ in math mode?

\^ and \~ apply accents in text mode, but each gives an error when used in math mode. So I consider redefining them for my own use, perhaps like this: \let\old@hat\^ ...
8
votes
1answer
4k views

Double-bar notation for second-order tensors

I want to use the double-bar notation for second-order tensors, which is common in continuum mechanics (e.g. for the strain and stress tensors). I've searched the Comprehensive LATEX Symbol List but ...
5
votes
1answer
131 views

Displaying multiple equations

I want to display multiple lines of centered equations. Each equation has multiple equalities and inequalities, so aligning is not called for. All I want is display them one line at a time, centered, ...
4
votes
1answer
69 views

latex - bold not bold enough in math

I tried to get characters in math-environment bold such that they look like this (picture taken from a book - pdf-sample: link): However, neither \mathbf{xyz} nor \boldsymbol{\mathrm{xyz}} work in ...
1
vote
1answer
36 views

Bounded modulo a constant [duplicate]

How do I put a tilde directly underneath an inequality (i.e. directly beneath < or >)?
16
votes
6answers
4k views

Align two inequalities

I am trying to align two inequlities vertically. The \le signs should have the same horizontal positions and the term in the should be centered. My first attempt: \begin{align*} \sum a &\le \sum ...
13
votes
1answer
286 views

Opposite product signs in the sense that black and white are interchanged

In a special algebra I use with amssymb the products \newcommand{\bDiamond}{\mathbin{\Diamond}} \newcommand{\bLozenge}{\mathbin{\blacklozenge}} \newcommand{\bCircledast}{\mathbin{\circledast}} ...
11
votes
4answers
349 views

Filled \Diamond-product sign

I use the multiple \Diamond-product sign (\bDiamond) as described in sign for multiple $\Diamond$-product. Now, in addition, I would like to have a filled \Diamond-product sign, i.e. filled with ...
2
votes
3answers
151 views

Space after comma in units package

I have a problem with using the units package. In my thesis I used it sometimes in math environment, sometimes not. Now I realized that there is an addition space after the comma in math mode. I think ...
2
votes
0answers
35 views

Subformula numbering problem in ConTeXt

The second formula has no number. Is it a bug? \starttext \startsubformulas[eq:equation] \placeformula[eq:first] \startformula c^2 = a^2 + b^2 \stopformula \placeformula[eq:second] ...
39
votes
4answers
3k views

What is the Necessity of $…$ Around Numbers?

I typed up an assignment with a lot of numbers in LaTeX and turned it in to my adviser. When he returned it to me with some corrections, one of which was a lot of $ around my numbers. I understand ...
44
votes
4answers
6k views

What are the differences between $$, \[, align, equation and displaymath?

I once learnt, that it is uncool to use $$, but why is that? Why does \[ not act as a abbreviation to \begin{align}? I noticed, that there is a difference, since one cannot use & and \\ inside a ...
5
votes
2answers
97 views

How can I DeclareMathOperator* with spacing after it, preserving the alignment?

In the context of optimization problems, I'm using \usepackage{amsmath} \DeclareMathOperator*{\minimize}{\text{minimize}} \DeclareMathOperator*{\subjto}{\text{subject to}} to declare some operators ...
4
votes
2answers
112 views

Hyphens in mathmode

Whenever I write a hyphenated word inside \mathit or \mathbf or whatever ... \mathit{long-variable-name} ... I always intend for the hyphens to be hyphens, not minus signs. There is a webpage ...
5
votes
5answers
157 views

add (a little bit long) comment on the equal sign?

There are posts here explained how to Add a comment on top of "equal" and "approximate" symbols , the idea is to use \stackrel{text}{=}, however, if the text is a bit long, for ...
4
votes
1answer
118 views

Using a math font matching San Serif Font

How can I match the font of an equation to a Sans Serif font? I am using the following code. \documentclass{article} ...
5
votes
1answer
43 views

Avoid brackets with a command having an optional argument as subscript

I have the following code: \documentclass{article} \newcommand{\quot}[3][c]{\frac{#2}{#3#1}} \begin{document} \LARGE $A_\frac{a}{bc}$ $A_{\quot{a}{b}}$ $A_{\quot[d]{a}{b}}$ \end{document} If I ...
4
votes
1answer
126 views

command \o is invalid in mathmode

I am using textlive2014 (and I had the same error in 2013 and before though). Only now I decided to do anything about it. Whenever I type a formula containing $\o$ I get the warning Command \o is ...
5
votes
1answer
37 views

Problem in using \everymath{\sansmath}

I would like to use \everymath{\sansmath} and change the typeset of all the equations in my document as a replacement for using \sansmath{$equation$}. However, I am not what I am missing that ...
1
vote
1answer
73 views

\texorpdfstring for a full book

I am currently writing a thesis which is full of math equations and I always get the warning Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): I have read that the ...
3
votes
2answers
87 views

returning maths values in a new command

So I'm trying to construct a command which calls another command to make typing easier, but for some reason I'm not able to get the commands to return things properly. Here is what I have ...
1
vote
0answers
37 views

Spacing of fractions in TeX Gyre Pagella Math

Using TeX Gyre Pagella Math with xelatex, some objects like \frac12 just seem way too large compared to the rest of the equations. Have a look: In the first line, the numerator looks like it's ...
5
votes
2answers
535 views

New TX math font symbol: skew underbrace with package newtxmath

I found that the New TX math font newtxmath could not displace underbrace, see: latest Texlive 2012 The correct underbrace with default CM font: It's weird that it works well when I test it ...
4
votes
1answer
67 views

Replace several letters in math font

I need to typeset a whole document sans serif with sourcesanspro, including formulas. I know that there are a lot of arguments against doing this, but in this particular case it makes sense. My ...
1
vote
1answer
53 views

How to do Three column Addition?

I want to write a primary school sheet of exercices (additions in columns) with big digits in LaTeX. When i want to do two columns, it is easy with xlop, but i can't to do three columns! How to do ...
2
votes
2answers
138 views

Display a breve over several letters

I'm writting with a very dumb question, buy I haven't been able to find anything regarding this topic, nor think of a more general topic to look into. I'm trying to have a \breve which scales ...