{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)

5
votes
2answers
514 views

LATEX: How to represent root(2)^root(2)

In latex, how would one represent \math{sqrt{2} ^ sqrt{2}} (or root(2)^root(2)? I tried to respresent it as I did above, but there is an error "! Missing { inserted."
3
votes
1answer
34 views

CJK inside a math environment

I'm trying to display CJK characters as part of math formulae in XeLaTeX, and it's not working well. I've tried a number of options, and all have failed: Defining a \jp font command via fontspec and ...
11
votes
1answer
355 views

ebgaramond interface for newtxmath

Remarks The newtxmath-package comes with support for various fonts, including libertine, minion or garamondx. Personally I like the Garamond very much, but garamondx is not part of the default ...
5
votes
2answers
98 views

Are math operator names like \gcd available in other languages?

I'm writing a text in Dutch in which I want to use the greatest common divisor. In English, I could use something like $\gcd(123,321)$. However, in Dutch, we call the function grootste gemene deler, ...
1
vote
1answer
68 views

Turn \mathbb characters bold in math mode

I've seen various topics here adressing how to turn math symbols bold, but none of them gives a suitable option for \mathbb characters, as in \mathbb{ABC}. I have tested some options to see which ...
5
votes
1answer
198 views

Printing a cross across another symbol

Is there any command or macro for printing a character with a cross over it?
4
votes
2answers
204 views

Double tagged equations?

In the following example the inequality (2.26) is obtained in the environment equation, but the equations (2.27) and (2.28) by dirty tricks, destroying the structure of the document. This is because ...
4
votes
3answers
164 views

Double \prec as a single symbol?

We have < and \ll. What about double \prec, i.e. something like \prec\prec but with spacing as in \ll? Remark. I could not find an answer in http://detexify.kirelabs.org/classify.html or ...
5
votes
3answers
704 views

How to make a boat symbol in latex?

I would like to make a motorboat/boat/raft/ship symbol in LaTex but cannot find a command for one. I know there is \Plane in bbding dingbats which gives the symbol for plane. But I dont see anything ...
13
votes
4answers
4k views

Calculator style base 10 notation in LaTeX

What is the best way to write something like 6.22E-21 in LaTeX, given that I don't want the numerals to be \tt, I do want the E to be small, and I may want the exponent to be negative (without the ...
2
votes
1answer
60 views

Is there an easy way to raise or lower the hat operator in math mode

Using the hat operator in math mode in beamer, the hats are smashing into the characters. I can use \skew{n} to move them n points to the right, but I need to raise them a point or two. Is there an ...
3
votes
1answer
62 views

Math w/italics in normal context, roman when in italic context (ie, caption)

I have not found this question asked previously. I am fine with math using italics for variables when the math appears in a normal context. But our figure captions are in italics, and when math is ...
10
votes
3answers
673 views

Which fonts can be used with *unicode-math* package?

What can i put into \setmathfont{<...>.otf} for the unicode-math package to make it all work (with XeLaTeX or LuaLaTeX)? There are several suggestions on the GitHub page of unicode-math, but ...
3
votes
1answer
86 views

Set math and text fonts independently in Beamer (using PDFLaTeX)

I am working on a Beamer presentation, and I would like to use sans serif font (CMBright) for text, and a serif font (Computer Modern) for maths. Sans serif maths looks pretty ugly to me. Beamer ...
9
votes
3answers
3k views

A short hyphen in a math formula

In a LyX math formula, I want to write something like "r-number". However, the usual dash looks too long (like a minus sign). I am looking for a short, possibly upper hyphen. I couldn't find it in the ...
0
votes
1answer
42 views

How to write inline formula involving tilde sign [duplicate]

How to write following inline formula in LaTeX: r~[0,1]
0
votes
0answers
30 views

Typesetting the definition of a piecewise function [duplicate]

How to write this in LaTeX: y = {1 if a >b 0 if a <b How to make the big bracket that contains both and defines the function y?
7
votes
3answers
461 views

Symbol for “defined to be logically equivalent” (:⇔)

Is there a way to typeset the symbol ":⇔" correctly in LaTeX (i.e. with the right alignment and spacing)? I know that using :\Leftrightarrow or :\Longleftrightarrow gets me the symbol I'm looking for ...
0
votes
1answer
65 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 ...
7
votes
1answer
209 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
68 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 ...
6
votes
5answers
184 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
55 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 ...
17
votes
6answers
822 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
70 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
38 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
48 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
30 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
134 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
63 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
36 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
49 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
128 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
329 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}} \]
17
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
77 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
689 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
78 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
45 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
64 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
144 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
76 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
39 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
291 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
362 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 ...