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

7
votes
1answer
107 views

Change font for math functions (sin, log, etc.) in ConTeXt MkIV?

When I’m using the Euler font for math, I notice that since Euler is upright, the font for math functions like sin, cos, and log is identical to variables. Is there a way to change the font for math ...
4
votes
1answer
71 views

Introducing new version of a math symbol from another font

I'm trying to use a "hack" to get around the fact that \mathsf doesn't apply to lower-case Greek letters in math mode, by using the CM Bright font instead. What I'd like to have is a command, for ...
2
votes
1answer
50 views

How do I reduce the space between operators in math mode? [duplicate]

I have these operators +=, -= etc. in Math mode. LaTeX introduces space around single character operators. So I get + = and - = instead. However, in my case I want no space between the + and the =, ...
2
votes
1answer
43 views

newtxmath and breqn problem: Viewing capital Greek math incorrectly

I am writing a document with too many long equations and I adopted the use of breqn package for its simplicity in writing such long equations when alignment is not a big restriction. The problem is ...
4
votes
1answer
97 views

Symbols for left and right limits

I am using lualatex, are there symbols for left and right limits, like small "-" and "+" to put above the numbers? For now I use \documentclass[a4paper,12pt]{book} \usepackage{fontspec} ...
3
votes
2answers
99 views

Dagger symbol in math mode in ConTeXt with Euler font?

I followed this answer to use the Neo Euler font in math mode. I found that the dagger symbol (†) is missing in Euler. Is there a way to use the dagger symbol from the text mode font in math mode? ...
5
votes
2answers
137 views

Using macro with optional argument inside macro with optional argument

I am trying to define a macro that has an optional argument that can take a macro with an optional argument as an argument. A minimal example to explain the problem more clearly: ...
3
votes
1answer
100 views

How to restrict TexStudio macro script to work only in text/normal mode?

I understand that you can write (?highlighted-as:numbers,math-delimiter,math-keyword) before your trigger and TexStudio will execute the macro only in Math mode. I already tested that in "scripts ...
1
vote
1answer
115 views

How to read \vartheta and vocally distinguish it from \theta? [closed]

I am going to vocally report my paper. I have used both $\vartheta$ and $\theta$ in the equations. How should I read $\vartheta$ and vocally distinguish it from $\theta$.
3
votes
1answer
112 views

Problem $\lrcorner$ appears much too low

Although I've been using Latex for many years, I just understand the minimum to survive and don't have clue of where the problem can come from. So here are the loaded packages. ...
3
votes
2answers
68 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
45 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
37 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
88 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
48 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
59 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
68 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
64 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
90 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
93 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
42 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
44 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
118 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
652 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
64 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
99 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
93 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
53 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
21 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
37 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
46 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
90 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
77 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
59 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
79 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
46 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
159 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
464 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
55 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
149 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
834 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
69 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} ...