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

2
votes
1answer
47 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} ...
14
votes
4answers
2k views

Splitting root symbol

How can the \sqrt command be modified to split root symbol into two or more lines automatically? Example: \documentclass{standalone} \begin{document} \begin{minipage}[t]{0.8\textwidth} ...
4
votes
2answers
75 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
83 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?
3
votes
1answer
47 views

How to prevent inline math from entering the margins on the right?

I'm writing a document (double columned, if it matters), and it seems that while normal text wraps just fine to fit the structure, when I use inline math, it tends to violate the page margins. For ...
5
votes
1answer
125 views

The restriction of 16 math fonts of TeX

I need to use multiple math fonts to do typesetting . I understand that, with the current version of TeX, we can only have 16 math fonts for each mathversion and there is no way to change this ...
2
votes
2answers
73 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
0answers
58 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
25 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 ...
47
votes
5answers
11k views

Should I \mathrm the d in my integrals?

When writing an integral, it seems like something should be done to separate the "d", as in \int f(x) dx, so as not to confuse it with a variable. I've seen it left as-is, bolded, and straightened. ...
7
votes
2answers
158 views

Allow [ characters in tables without entering math-mode (from R)

I have R code that produces latex code like: \begin{tabular}{D{.}{.}{7}D{.}{.}{7}} \toprule \multicolumn{1}{c}{x} & \multicolumn{1}{c}{y} \\ \midrule [1, 5) & 1 \\ [1, 5) & 2 \\ [5, 8) ...
9
votes
4answers
13k views

Making a shorter minus

I am doing some display typography with an equation in it using the mathpazo package. At one point I have this fraction: $\sqrt{-\frac{1}{9}}$ To me, the minus looks too long. I would like to make ...
2
votes
2answers
33 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
99 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. ...
9
votes
2answers
15k views

Really wide hat symbol

Is there any way to get a hat wider than widehat? Why doesn't \widehat{abcdefghijklmnopqrstuvwxyz} really go over all of it?
2
votes
1answer
20 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 ...
3
votes
2answers
114 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 ...
13
votes
3answers
1k views

Semicolon in set-builder notation

What is the best way to type ";" in the set-builder notation? I think \{\, x \in X \mid P(x) \,\} is a common way to type the set-builder notation. Someone use ":" instead of "|". Anyway, these ...
5
votes
4answers
306 views

How to elongate down arrow?

\downarrow command is available in directory but it has fixed length. How can I elongate its length?
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 ...
2
votes
1answer
49 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
217 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 ...
1
vote
1answer
83 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 ...
0
votes
1answer
47 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
53 views

add frame to matrix [duplicate]

I want to enclose my matrix by a box. I have followed the instructions in this link but couldnt get the borders correct. Here is how the frame looks like and the code. \begin{frame} ...
3
votes
1answer
38 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, ...
3
votes
1answer
2k views

Capital Sigma in bold mathrm

I want to write capital \Sigma in bold mathrm. I tried \boldsymbol{\mathrm{\Sigma}} but seems like this does not work. Any help in this regard will be highly appreciated. Thanks
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? ...
29
votes
1answer
81k views

How to write N x N (with a multiplication symbol, for matrix dimensions)?

I need to write something like NxN in LaTeX but I do not get how... How to do such thing?
2
votes
1answer
37 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
956 views

A symbol above a comma

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

Auto spacing in math mode

I have a long line of math expression, which is as follows: $verylongword verylongword verylongword verylongword verylongword verylongword verylongword verylongword verylongword verylongword ...
60
votes
4answers
10k 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 ...
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 ...
1
vote
2answers
30 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 ...
2
votes
1answer
70 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 ...
3
votes
2answers
163 views

Editing theorem environments

I have two questions about editing theorem environments on Tex. I did not see concrete answers among answered questions, so I ask here mines, hoping that there are not frequently asked. First, I ...
0
votes
0answers
41 views

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

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. ...
9
votes
2answers
283 views

Centering a slash (not) over a (mathematical) glyph?

My aim is to construct a relational symbol which is graphically equivalent the standard infinity sign (coded by\infty) crossed exactly in the middle of it. Yet I am not able to overcome something. To ...
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 ...
10
votes
2answers
166 views

How to globally put subscripts in math-mode in upright font using amsmath?

I'm often apply the subscript environment in math-mode to assign e.g. materials to material properties, $\eta_{oil}$, $\lambda_{air}$, etc. Not very mathematical but hey, I'm an engineer ;-) I'm ...
6
votes
2answers
41 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
46 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 ...
76
votes
4answers
50k views

\mid, | (vertical bar), \vert, \lvert, \rvert, \divides

What's the difference between the different vertical bars? $S = \{\, x \mid x \not= 17 \,\}$ $a \vert b$ implies $a \leq b$ when $b \ne 0$ $a|b$ implies $a \leq b$ when $b \ne 0$ $\lvert x \rvert$ is ...
0
votes
0answers
34 views

Use $$…$$ or \[…\] to enter math mode in LaTeX? [duplicate]

I read on some sites that [ ... ] (with backslashes before the brackets) should be used, rather that $$...$$ what is the difference between both? If you compare the output, the result is the same.
5
votes
2answers
130 views

Matrix inside matrix

How I can make a matrix inside a matrix as shown in this picture? Indeed, I want to treat every block as a separate matrix. For example, I want to add braces over and under the second matrix by ...