{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
1answer
60 views

How to get LaTeX to ignore a specific warning?

I use \over even though it is a bad practice (yes, yes, I know I shouldn't). Whenever I compile a LaTeX file using it, I get the message: Foreign command \over; \frac or \genfrac should be used ...
1
vote
1answer
35 views

How to get a large division symbol?

I'm using: \documentclass[journal,transmag]{IEEEtran} \usepackage{amsmath} \usepackage{amssymb} \usepackage{breqn} \begin{document} \begin{align} something&\left(\sum_{n}\right.\nonumber\\ ...
1
vote
0answers
21 views

Even vertical spacing in multline and gather environments

Using fractions or expressions with sub- and superscripts may lead to uneven vertical spacing in math environments spanning several lines (i.e., align, gather, multline,...). A fix for align was ...
3
votes
3answers
47 views

Gathering underbraces

this is my first question in this website. I have to say that it is being very useful for me to visit this site to learn how LaTeX works, so congratulations. So, the question is, how can I do this? ...
0
votes
0answers
50 views

Use german umlauts with a font where its not defined

I need to use special font. There are no german umlauts defined. So everytime I get an error if I try to use them with my font (BentonSans): \documentclass[a4paper,10pt]{article} ...
3
votes
1answer
48 views

How to type bold parentheses in math mode?

How can I write bold/very bold parentheses? I'm using: \documentclass[journal]{IEEEtran} \usepackage{amsmath} \usepackage{amssymb} \usepackage{breqn} \newtheorem{lemma}{Lemma} \begin{document} ...
2
votes
3answers
64 views

Like displaymath, but without math-mode

I often find myself doing things like \[ \begin{tabular}{cc} foo & bar \\ baz & qux \end{tabular} \] or \[ \begin{verbatim} code snippet \end{verbatim} \] to put a table or code snippet ...
1
vote
1answer
35 views

horizontal spacing in equations

I am trying to replicate the same exact output as plain math mode would give for a simple polynomial formula but using \matrix because I want to right-align the terms in the polynomial or leave some ...
2
votes
1answer
31 views

Full stop missing in MnSymbol - replacement renders brackets with cdots - Why? [duplicate]

I'm close to give up my fight for MnSymbol in unicode-math. I realized I already replaced so many missing and faulty characters, that there is barely something left of MnSymol. So probably I will just ...
5
votes
2answers
93 views

Define certain letter in math-mode to be always non-italic - using unicode-math in lualatex

I once had this question a while ago, asking about how to set the letter j always to be non-italic j in math mode without using \mathrm. The provided solution was: ...
7
votes
2answers
422 views

How can I write a macro which enters math mode when called in text mode but when called in mathmode doesn't break?

I'm using the package braket for my physics notes, and this speeds things up a great deal but I'm constantly writing \ket{\psi} or \bra{\psi}, and because this specific pair of bra and ket appears so ...
1
vote
1answer
35 views

Spacing on a specific formula

Latex is formatting this formula all squished together. How do I format it properly? $\varphi' \gets \left\{ C_n \setminus C_i \middle| C_n \textrm{does not interfere with} C_i\right\}$ EDIT: ...
3
votes
1answer
46 views

\begin{align} not working as expected

In this small snippet of code, I'm doing quick derivation to arrive at an equation to be used later in the analysis: $ |\vec{F}|=q|\vec{v}||\vec{B}|sin(\theta)\\ m\frac{v^2}{r}=qvB\\ ...
2
votes
1answer
57 views

What is the difference between `split`, `multline`, `align`, `breqn` for breaking an equation into multiple lines?

Sorry if this question sounds a bit amateurish but I haven't been able to find a good summary about the differences between these four environments for multi-lining an equation. Where do they differ ...
12
votes
4answers
747 views

Showing how to solve an equation in LaTeX

Is there a package that would allow me to draw a horizontal line in math mode, like what is suggested below? \begin{align*} x + 2 &= 3\\ % First equation -2 &= -2\\ % Second equation %% ...
2
votes
1answer
44 views

Why are \colon and \mathpunct{:} not equivalent? [duplicate]

According to this answer, \colon is of type \mathpunct. But in the MWE below, the outputs of the two lines are not identical. Why not? \documentclass{article} \usepackage{amsmath} \begin{document} ...
6
votes
1answer
78 views

CM fonts kerning in math superscripts

Using CM fonts with either a traditional engine or XeTeX, an expression such as $D^rf$ produces too much space between the r and the f in the output. It's easy to fix manually by inserting a \!. ...
4
votes
2answers
74 views

Unicode macros for square root and integral

Is it possible to define math-mode macros √ and ∫ which would expand in the following way: √a ≡ \sqrt{a} √{a + b} ≡ \sqrt{a + b} ∫ ≡ \int ∫_a ≡ \int\limits_a ∫^a ≡ \int\limits^a ∫_a^b ...
3
votes
1answer
82 views

Trigonometric function script? [duplicate]

Is there a script for the sinc function analogous to \sin for sinus? If not, what method should I use to insert it in a equation?
1
vote
0answers
56 views

Right way for text inside math

I'd like to know (if there is) the better way to punctuate text inside math mode. I mean, when we use , or ;, they are punctuation for the text, not for the math and so I think that they should be ...
2
votes
1answer
24 views

What are the rules for placing & while using the split environment?

I have the following equation: \begin{equation} \left\{\left(a,b\right) \mid \right.\left. a \in A, b \in B\right\} \end{equation} And I want to force specific line breaking and alignment using the ...
2
votes
2answers
32 views

How to underline in math mode with ampersand anchor?

When I use the ampersand & in align for positioning I loose the underline function. Is there a (simple) way of underlining the last math line completely? ...
5
votes
1answer
98 views

How can I make it easier to write LaTeX documents with elaborate mathematics?

I'm a severely visually handicapped student of mathematics. I wonder how I can speed up my latex document creation. I'm pasting below solution to a problem in a functional analysis book by Kreyszig. ...
2
votes
1answer
19 views

How to left align sub-equations in which some sub-equations are split across multiple lines (with their own alignment)

I have a set of four sub-equations, which I each want numbered and left-aligned. The second and third of these sub-equations are too long for one line so I am using the split environment to manually ...
0
votes
2answers
159 views

Writing good looking solutions in math

I write a lot of solutions to math problems and have recently started out with LaTeX. I have some requirements, I want everything to be left aligned and I want to be able to comment inside the ...
3
votes
2answers
113 views

How to make things symmetric around an arrow

Can someone tell me what commando is needed to make expressions like in the text below. I mean like it is symmetric around the arrow.
0
votes
1answer
49 views

Setting a long sequence on a single line

How to put an long exact sequence in a straight line. I wrote a code for the exact sequence but it displays in 2 lines. Also I want to name the terms of the exact sequence as A, B, C, D below the ...
4
votes
1answer
23 views

Making certain equation environments larger

I'm writing a lab report in LaTeX that involves a lot of equations. I wish for some equations to be larger than normal, owing to the fact that there are a lot of terms that are in the exponential, and ...
9
votes
1answer
132 views

General guide on how to set up Minion Pro for math in lualatex

Minion Pro is one of the most beautiful fonts and comes with many Adobe products. A complementary set of symbols is provided by the MnSymbol fonts and package, which is not fully compatible to ...
2
votes
1answer
47 views

Improper formatting in Math mode in IEEEtran double column format [duplicate]

I am authoring a document in IEEE transaction double column format. Inline Math equations are being rendered improperly, mostly there are unwanted spaces between symbols (as I have highlighted below). ...
6
votes
2answers
216 views

Nested Summation

Using below code i am getting result shown in below image but its not properly displayed for ex space on either side of =. First summation sign is small. Brackets ( ) are small. All items are not ...
0
votes
1answer
45 views

Lower bound placement in summation sigma sign [duplicate]

I have this equation and I would like to have lower bound (v \in N_i(u)) exactly under the summation symbol and not to the right side of it. How to accomplish it? This is my LaTex notation:
1
vote
1answer
80 views

Epsilon and log functions

I m trying this T(n) \epsilon \left(\Theta(n^\log_22$\right) = $\Theta(n^\log_22 )$ = $\Theta(n)$ but i want below result. Is E sign is epsilon only . And also log bracket not coming properly and ...
4
votes
2answers
54 views

How to adjust inparaenum-list (in particular line spacing)?

I really like the idea of working with inparaenum. It creates nice lists of numerated and tabbed math exercises. But how do I add line pitch option to this special paralist? I want to create more ...
3
votes
1answer
37 views

Missing number treated as zero error

I have read several posts with a similar error, but cannot find where mine is. I have the following code to put in comments next to sequential inequalities in an alignat* environment. Unfortunately, ...
2
votes
1answer
34 views

Conflicting multi-line underbrace labels

Sometimes a \makebox gives nice underbrace, sometimes multiline version with \parbox works. But how to combine two multiline-underbrace-equation-labels side by side and make them look good? ...
2
votes
1answer
36 views

Fixing the vertical position of subscripts

When I write $\chi_V$ the subscript outputs too high for my taste. Is there a way I can set the vertical position of subscripts for the whole document? Many thanks
11
votes
3answers
954 views

A symbol above a comma

How can I put a symbol above a comma? For example in
1
vote
1answer
43 views

equation* environment or \[ \]? [duplicate]

So, I'm writing a mathematics paper, and let's say I have the following: \begin{equation*} 2+2=4 \end{equation*} Is this the proper way to do an unnumbered equation, or is it preferred to do the ...
2
votes
2answers
71 views

Unable to typeset LaTeX maths characters in pgfplotstable table header

I am typsetting a simple table with pgfplotstable and attempting to include units in the headers. I've noticed that certain math macros e.g. \circ or \gamma (2 random test cases) fail to typeset. When ...
1
vote
2answers
28 views

Section-level equation numbers follow previous section numbering

I am using \numberwithin{equation}{subsection} to number my equations uniquely for each subsection in my article. For example: Section 1 Title 1.1 Subsection 1.1 Title a=b (1.1.1) a+2=b+2 ...
0
votes
0answers
41 views

Arithmetic overflow. …2-l^2_3}{2 l_2 l_3} \right) \end{flalign}? [on hold]

I'm getting this error, when using {flalign} command: Arithmetic overflow. ...2-l^2_3}{2 l_2 l_3} \right) \end{flalign} I don't know what was the mistake, though the Process exited(with error(s)) ...
4
votes
1answer
40 views

How to auto linebreak before/after parenthesis in inline math

I read this answer "Allowing line break at ',' in inline math mode" breaks citations I want to change ('s catcode automatically to avoid breaking some packages. ...
2
votes
1answer
69 views

General guide on how to set up font families for luaLatex

In A Survey of Free Math Fonts for TEX and LATEX are great examples of harmonizing fonts in Latex. For example consider the text fragment for CM Bright: With pdfLatex it was sufficient to just ...
1
vote
0answers
34 views

How to draw change-of-coordinates notation in LaTeX? [duplicate]

For a homework assignment, I'd like to include something like the following image in my document as a single term in an equation: I know I could simply use another variable name, but my professor ...
3
votes
2answers
47 views

Adjust custom made upright greek letters when used in subscripts

I really like how Steven is generating upright greek letters in his answer: \documentclass[a4paper]{article} \newsavebox{\foobox} \newcommand{\slantbox}[2][0]{\mbox{% \sbox{\foobox}{#2}% ...
6
votes
2answers
40 views

Expand arrows within an array

Any ideia of how I can expand the \xrightarrow so that they all have the same size? (for aesthetics) \documentclass{article} \usepackage{amsmath} % \text nas equacoes \usepackage{mathrsfs} ...
5
votes
3answers
159 views

How to make large binomial coefficient?

I have a potentially-repeated question, but I was unable to find anything about this. So, I need to create a giant binomial coefficient in LaTeX (something around 1000pt). When I compile the below, ...
1
vote
0answers
35 views

Why use \[ … \] and not $$ … $$ for displayed math mode? [duplicate]

For displayed math mode, one can use either one of : \[ ... \], or $$ ... $$, or even \begin{displaymath} ... \end{displaymath} But I see many people here saying: never use $$ ... $$ for ...
2
votes
2answers
44 views

\endgroup error when using \makebox and gather

I'm getting this error when I try to use \makebox to center several equations that run longer than the textwidth. If I use $$ .. $$, I don't seem to have the issue. Why? Code that throws ! Missing ...