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

3
votes
2answers
66 views

Symbols for > and < inside text

Code Area $> 50 \, \si{\mu m}$. which does not look nice according to my assist with > being too big: Command $\g$ does not exist. There many ways to fix this problem. I heard some ...
2
votes
1answer
43 views

How can I improve alignment of the numerator and denominator when vector norm bars along with subscripts throw things off?

Here's the really bad case: With a red bar to show what is bothering me in particular: Here's a simpler case where the issue is a non-issue, but perhaps one can get a hint of why it starts to ...
3
votes
2answers
34 views

Equation inside Intertext{{} under falign{} environment

Can i use $ Equation $ inside and outside \intertext{} under flalign environment. Because of these two lines my all equations got justified to left. Please help in this regard. Before adding it is ...
4
votes
2answers
82 views

an \underhat and \underwidehat

So $\hat x$ and $\widehat x$ give upper hats of different length, however, unlike \overbrace{} had an \underbrace{}, one sometimes needs an \uhat and \uwidehat. What is the best (cleanest, fewest ...
2
votes
1answer
58 views

Excess space before \[ at start of paragraph

When I have a displayed math equation (\[...\] or equivalently the displaymath environment) at the start of a paragraph right after a heading, there is too much space before it. This short code ...
3
votes
2answers
46 views

Aligning multiple lines in long equations and arranging the line breaks in `\align` environment

I have the following code sample: \begin{align} \pi^{(1)}_{i j} \enspace & = \enspace -\frac{1}{4}\eta^{\lambda \sigma} \left( \eta^{\mu \alpha}\eta^{\nu \beta} + \eta^{\mu \beta}\eta^{\nu ...
6
votes
3answers
53 views

Bigcup, bigwedge etc. inside brackets gets space above

I want to have the following formula: \[\Phi=\{\phi\}\cup\left\{\exists \mathsf{x_0}\ldots\exists \mathsf{x_{n-1}}\left[\bigwedge_{0\leq i<j\leq n-1} \mathsf{x_i}\neq\mathsf{x_j}\right]\right\}\] ...
1
vote
1answer
67 views

Integral domain on two lines [duplicate]

Consider the following integral: $$\int_{\text{One line \\ Second line}} \text{Loss}\left(\text{Foo, Bar} \vert \alpha\right)$$ which renders: How can I have One line and Second line on two ...
4
votes
2answers
63 views

Augmented matrix with fractions

I need to typeset some augmented matrices, but some of them contain fractions. I also need to do that with gmatrix, as I need its features. The following code is used to create the line in between ...
4
votes
2answers
82 views

How can I set the \boldmath font with unicode-math?

I am trying to typeset a document in Linux Libertine, and I want to use the font for alphanumeric characters in math mode as well. I am using unicode-math, not mathspec, because I need to specify ...
2
votes
1answer
91 views

A math symbol in quotation marks

As to quoting math symbols, we already find nice answers in How to write quotation marks in math environment? But I have a question to a problem that doesn't show up in the examples in the above ...
0
votes
1answer
37 views

Letter with circle above — not a dot — in math mode [duplicate]

I need to typeset letter with a circle above it in math. \dot A does a very close result, but I need something that looks like \circ, not like \cdot. Edit: there is awesome answer here, but Detexify ...
0
votes
0answers
24 views

Sign chart for the derivative [writing math] [duplicate]

I want to make a sign chart for the derivative, something like this: I don’t need the last conclusion, with the curve, as I believe that would be another difficult LaTeX part in addition to the ...
0
votes
1answer
42 views

Write two equations with their individual equation numbers in consecutive lines

I have to write two equations in two consecutive lines and each equation should get its equation number as well. When I write using the following method, both the equation appears in the same line ...
12
votes
3answers
162 views

Nonstandard analysis: Typesetting `^*` depending on context

In nonstandard analysis, the nonstandard extension operator * is used frequently. Typesetting it is not straightforward, though, because the placement of * depends on the symbol to follow. E.g., the ...
6
votes
3answers
117 views

How to align multiple eqnarrays?

I tried to created 2 eqnarrays but the equations in those 2 eqnarrays don't line up together. Here is the code: \documentclass{article} \usepackage[fleqn]{amsmath} \usepackage{txfonts} ...
8
votes
4answers
620 views

How to write cases with LaTeX?

The code i used to write is this one $$ X(m,n)= \begin{cases} x(n),\\ x(n-1)\\ x(n-1) \end{cases} $$ But I don't know how to write this one I appreciate any help. Edited: I'm sorry to add ...
1
vote
4answers
56 views

Dividing line in a matrix

How can I Tex this equation? I try to have exactly the same result but for the moment I only succeeded in having intersecting lines... Thanks!
0
votes
1answer
91 views

What is the LaTeX code to put a multiplication symbol into a matplotlib title?

Apologies for a very basic question, but this is something that I always forget, and it's a pain to find with google and the like, so I'm putting it here for everyone's future reference. As far as I ...
1
vote
2answers
86 views

Resize Greek letter in an equation

Is there a way to resize Greek letters if they are in an equation? This is the code of the equation (for example): \begin{equation} ...
0
votes
2answers
51 views

Centered vertical rule in a displaymath

How would I place a centered vertical rule that separates two regions of text in a displaymath environoment? The effect I want is described below. Thanks! \[ 3x + 2 = 6 | x + 5 = 7 -2 = ...
2
votes
0answers
19 views

Put parentheses by default when referencing an equation [duplicate]

I have this equation: \begin{equation} \label{eq:helicsol} x = y \end{equation} and then I have: As we can observe, the solution of \ref{eq:helicsol} and I get: As we can observe, the ...
3
votes
1answer
33 views

Setting limits over and under the integrals in an entire group

Is there a command to print the integration limits over and under the integral symbols in an entire group / the entire document without writing \int\limits every time? That is, i'd like to be able to ...
0
votes
1answer
40 views

Multiple equations in square bracket matrix [duplicate]

When solving many equations you usually stuff them in matrices and solve them using Gauss-Jordan elimination. Where I come from, we write it like this and this is what should appear in my document: ...
5
votes
1answer
85 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 ...
2
votes
1answer
63 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
1answer
54 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
60 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? ...
3
votes
1answer
72 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} ...
3
votes
5answers
114 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 ...
12
votes
4answers
1k views

Can I get $$…$$ to behave like \[…\]?

Is it possible to modify LaTeX so that good old $$...$$ behaves like \[...\] (and by this I mean that it should be synonymous to it). If yes: Dear LaTeX3 developer, please integrate this into LaTeX3! ...
2
votes
1answer
49 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
45 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 ...
7
votes
2answers
144 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
458 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
40 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
54 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
131 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
818 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
66 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
101 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
130 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
107 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
65 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
27 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
61 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? ...
6
votes
1answer
147 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
26 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 ...
1
vote
2answers
198 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
123 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.