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

4
votes
2answers
179 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
153 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 ...
0
votes
0answers
31 views

Increasing vertical space after equation in paragraph with short previous line?

The problem I'm aware that LaTeX the spacing around equations in a paragraph differs depending on how long the line of the paragraph immediately preceding the equation is. When the preceding line is ...
5
votes
3answers
679 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 ...
2
votes
1answer
58 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 ...
0
votes
1answer
40 views

How to write inline formula involving tilde sign [duplicate]

How to write following inline formula in LaTeX: r~[0,1]
0
votes
0answers
28 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?
3
votes
1answer
71 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 ...
7
votes
3answers
426 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
51 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 ...
6
votes
5answers
179 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

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 ...
4
votes
1answer
68 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
36 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
1answer
56 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 ...
3
votes
2answers
44 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 ...
4
votes
1answer
31 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 ...
18
votes
6answers
805 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 ...
2
votes
1answer
47 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 ...
1
vote
2answers
53 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 ...
0
votes
1answer
131 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 ...
3
votes
1answer
53 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 ...
3
votes
2answers
38 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}}$ ...
3
votes
1answer
75 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 ...
1
vote
1answer
60 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\^ ...
5
votes
1answer
133 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 ...
3
votes
1answer
124 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{% ...
1
vote
1answer
37 views

Bounded modulo a constant [duplicate]

How do I put a tilde directly underneath an inequality (i.e. directly beneath < or >)?
13
votes
1answer
289 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}} ...
2
votes
0answers
37 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] ...
11
votes
4answers
356 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 ...
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
1answer
44 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
129 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
38 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 ...
3
votes
2answers
88 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 ...
4
votes
1answer
124 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} ...
1
vote
0answers
39 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 ...
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 ...
0
votes
0answers
19 views

Summing a list and specifying number of elements on list

How would I create something like either of the following on LaTeX?
4
votes
4answers
105 views

Dividing Long Equation using Split

I have a long equation as below, As the equation is too long, I am working to split it. Unfortunately it was not successful. Confused where could be the mistake. Could you assist to point it. MWE: ...
2
votes
2answers
166 views

Should I use \mathsmaller with superscripts and subscripts in \frac?

I am stuck with how to best format this equation and would love if you stylish tex-heads could help me out. It looks like this: I am happy with it except for the: I think the 2 and 0 are too ...
6
votes
1answer
83 views

How to deal with different commas in text and math mode?

I'm writing a thesis and decided to use Charter (\usepackage{XCharter}) for text and Palatino (\usepackage{mathpazo}) for math. Unfortunately the commas in Charter and Palatino look very different, so ...
4
votes
3answers
51 views

Alignment using an alignat{2} environment

In the following code, I have the appropriate alignment. All the equal signs are aligned. There is one expression that is written on two lines; I wanted the first plus signs aligned. I used an ...
1
vote
0answers
48 views

Problems with ipython notebook Tex [on hold]

I'm using ipython notebook with the following Tex code %%latex We begin with the formulation of Maxwell's Laws. \newline Once \begin{aligned} \nabla \times \vec{\mathbf{B}} -\, \frac1c\, ...
1
vote
0answers
42 views

Missing font shapes

I have a problem with missing font shapes. I'm working on lecture notes and made some corrections to a very large latex document, so I did not set up everything by myself. Now I encoutered the problem ...
1
vote
1answer
51 views

How to write mathematics in cover letter? [closed]

I can't write $\ell_1$ and other mathematics symbol in this cover letter: what packages are needed? \documentclass[a4paper,parskip=full,]{scrlttr2} \usepackage[urw-garamond]{mathdesign} ...