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

14
votes
5answers
2k views

How to create my own math operator with limits?

How can i write my own math operator with limits? I want it to look like: \sum\limits_{e=1}^{m} but with a capital A (if possible bigger than the normal text) instead of the sum. Thanks for the ...
3
votes
3answers
94 views

Is there a cleaner way to get the proper spacing in this alignedat?

Here's an excerpt from an equation that I'm typesetting. The output is correct and looks how I want it to look. Here's the MWE that generates this output: \documentclass{article} ...
1
vote
1answer
60 views

Changing middle line to some other symbol. Latex Table

\begin{tabular}{|c|c|} \hline $ \langle R_1.Y \rangle$ & $ \langle \dot{-}R_2.X, \dot{-}R_2.X \rangle$\\ \hline $\langle a \rangle$ & \\ \hline \hline $\langle b ...
7
votes
1answer
81 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 ...
38
votes
3answers
13k views

Can I get a \widebar without using the mathabx package?

One can use \bar to put a bar over a letter in math mode, but often the bar isn't wide enough. An alternative is \overline, but this isn't an accent, so it doesn't take into account the skew of the ...
4
votes
1answer
46 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 ...
3
votes
0answers
49 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
45 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 ...
27
votes
3answers
49k views

Is there a circle symbol?

Is there a circle symbol for the composition of two functions? Or do I have to resort to using other ways to represent that?
2
votes
1answer
42 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 =, ...
4
votes
1answer
64 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} ...
2
votes
1answer
33 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 ...
3
votes
2answers
79 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
126 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: ...
4
votes
2answers
110 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
5answers
110 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
63 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$.
6
votes
1answer
315 views

commath and \ifinner

The commath package use the TeX command \ifinner to select between inline math mode and display math mode. Because of this, it fail to work properly with some display math environments. In the breqn ...
3
votes
1answer
93 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
64 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 ...
12
votes
3answers
159 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 ...
11
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! ...
40
votes
4answers
53k views

Math symbol question: Vertical bar for ''evaluated at …''

How do I insert the line "|" after the equation in LaTeX (see image below)? I'm using LyX so if you can point me to the symbol of that line is also OK. I don't know if this line has a proper name ...
2
votes
1answer
39 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
29 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
72 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 ...
58
votes
2answers
69k views

Nice looking empty set?

I feel like the standard $\emptyset$ is ugly. By hand, my empty set symbol is a lot rounder, then this "slashed-zero"-type symbol. Two questions: Do people really use it (I mean people who have any ...
4
votes
2answers
62 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
49 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
41 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 ...
42
votes
7answers
5k views

\subseteq + \circ as a single symbol (“open subset”)

I'm trying to create symbols \opn for "open subset" and \cls "closed subset". I want them to look like this: My current solution is: ...
3
votes
3answers
256 views

Problem with \frac macro

I am using this code for a mathematics problem. The code works but the lower fraction looks really dull, the parenthesis is doing something it isn't supposed to. What I can do about this? ...
9
votes
3answers
5k views

Braket notation in LaTeX

I am using the braket package to generate bra and ket vectors. However, I could not figure out how to do <0|0> using the package. Is there a command for this?
4
votes
2answers
53 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 ...
6
votes
3answers
46 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
64 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 ...
2
votes
1answer
82 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
32 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 ...
1
vote
2answers
194 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 ...
0
votes
0answers
23 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 ...
13
votes
1answer
5k views

Split expressions with parentheses in align environment

I am writing down a rather long expression, which has to be splitted in a align environment. The thing is that this expression has parentheses which have to be splitted too. I don't want to use ...
0
votes
2answers
644 views

The bearing angle between two vectors?

What is the best way of showing the angle between two vectors defined by start and end points? E.g., Vector 1 points from point A to point B. Vector 2 points from point C to point D. I have tried: ...
0
votes
1answer
37 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 ...
6
votes
3answers
104 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} ...
12
votes
2answers
1k views

Product coproduct sign

I want to have a product sign analogously to $A \amalg B$. I tried $A \Pi B$, but as $\Pi$ isn't a binary operator, this does not look that good. Can you help me?
8
votes
4answers
590 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
46 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
73 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 ...
5
votes
1answer
744 views

Does boldface sans-serif not work?

\documentclass{article} \newcommand{\nptime}{\ensuremath{\sf NP}} \newcommand{\bnptime}{\ensuremath{\sf\bf NP}} \begin{document} \nptime\\ \bnptime \end{document} I'm trying to make a macro to ...
2
votes
1answer
47 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 ...