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

13
votes
4answers
7k views

Evaluation of Differentiation and Integration

I was having some thought about what would be the syntax to make the end point evaluation of derivatives or integrals. Such as making the | with the two end points of evaluation on the top an bottom ...
9
votes
3answers
2k views

Arrow between parts of equation in LaTeX

I want to make an arrow under an equation pointing from one part of the equation to another. A bit like an underbrace, but with an arrow. How can I do this?
8
votes
3answers
20k views

How to make math symbols bigger?

Is there a way to make math symbols bigger? Reason: I've used \sfrac{q}{m}, and those symbols appear far to small, so I would like to make them a bit bigger. edit: I just thought that \sfrac{q}{m} ...
7
votes
1answer
250 views

Looking for a smarter \left … \right

I'm looking for an automatic fence-resizing macro like the traditional \left and \right, but I need some more features (not to mention \left and \right are quite "buggy" and poorly spaced as the ...
26
votes
6answers
15k views

Typesetting of negative versus minus?

I've occasionally seen a negative (when a number is simply negative, not a subtraction), typeset as negative sign that's slightly skinnier and above the centre line of text. Is this proper notation ...
7
votes
1answer
2k views

Punctuation in equations

My document will contain a lot of equations, and as usual in that case I would like to use "punctuation" in the equations, like commas, colons, periods/full stops, semicolons, etc. Is there a special ...
16
votes
3answers
3k views

\DeclareMathOperator won't take arguments

I'd like to define a family of math operators that have the same superscript, but different subscripts. My first attempt was: \DeclareMathOperator{\Upd}[1]{U^M_{#1}} But the log tells me that: l.3 ...
14
votes
3answers
2k views

Can I insert an image into an equation?

I would like to use a small image in an equation, where a symbol like \alpha might otherwise be. Is there a nice way to do this?
13
votes
4answers
2k views

Draw a line through one column of a matrix

I'd like to "cancel" (draw a line through) a column of a matrix (using \begin{pmatrix}..\end{pmatrix}). How can I do this?
13
votes
1answer
4k views

How To Change Math Font Only?

I'd like to keep my text in Helvetica as usual but would like to have my equations and formulas in Roman or MT Extra. So far, I've tried using different packages but that changes both the text and the ...
11
votes
2answers
5k views

Is there an “underscript” command?

Is there a way to do underscripts? By "underscript" I mean a small font underneath the text object like limits or sums have. I don't want it to behave like a math operator though, where it is typeset ...
10
votes
3answers
2k views

How can I manually choose the size of a wide accent? (math mode)

I would like to replace the usual \hat in maths with a larger one, but I do not want it to stretch. The size I want is "the smallest \widehat" (as in $\widehat{.}$). Is there a way to put that one ...
9
votes
2answers
648 views

Defining scalable “white curly brackets” {| and |} (⦃ and ⦄)

I would like to construct what Unicode calls "white curly brackets" that are in addition scalable. They look like ⦃ (≈{|) and ⦄ (≈|}) and have Unicode codepoints U+2983 and U+2984. unicode-math has ...
9
votes
1answer
423 views

Can I change all math output to use monospaced text?

Is there any way of modifying the preamble, so instead of typing $\mathtt{x}$ ... \begin{eqnarray} \mathtt{y} & \mathtt{=} & \mathtt{z^\pi} \end{eqnarray} I can omit the \mathtt{...} ...
8
votes
3answers
665 views

Align \sqrt with baseline of other mathematical input

The following mathmatical expression is not being displayed the way I expect it to be. \documentclass{article} \usepackage{amsmath,amssymb} \begin{document} $3x\sqrt{y}-4-2\sqrt{y}+6x$ \end{document} ...
7
votes
1answer
176 views

How to automatically add \! in subscripts?

This code \documentclass{article} \usepackage{fouriernc} \begin{document} $a_1$ $a_{\!1}$ \end{document} produces this output: I like the spacing on the lower one much more. Is there a way to ...
6
votes
1answer
716 views

Using \leftroot{}, \uproot{} with closed square root symbol

As mentioned in this answer to Nice-looking p-th roots the amsmath package provides \leftroot{} and \uproot{} which allow you to move the position of the root to the left, and up in small increments. ...
6
votes
2answers
2k views

How to get a vertical bar which is longer than \mid ?

sometimes when writing mathematical expression with partial derivatives, one needs to write a vertical bar afterwards and write the value at the which the partial derivatives are being computed as ...
13
votes
6answers
7k views

Average integral symbol

Is there in LaTeX a symbol or a macro for the average integral with a horizontal slash? I know about \strokedint, but I'd prefer the dash to be horizontal.
12
votes
2answers
3k views

\star vs. \ast in formulas. Which one to use?

When you read a formula aloud you say "r and r-star are related by this formula". If you write this formula down you normally write an r with a six-handed star, which would actually be an asterisk and ...
12
votes
3answers
634 views

Replace the `$$ … $$` macro with the `\[ … \]` macros? - Prefer the way LaTeX lays it out, but `$` are faster to write

Is there a way to replace the $$ ... $$ macro with the \[ ... \] macros? (and replace inline mathmode as well) I realised the only way I can write the \sum_{i=1}^{10} t_i is between the \[ ... \] ...
11
votes
1answer
328 views

Which packages/practices are relevant for writing Structured Derivations? (similar to Dijkstra's calculational style of proofs)

Does anyone know of any packages that support this style of writing proofs? The only things that I've found are: tex-ewd, a bunch of plain TeX macros on CTAN written specifically with Dijkstra in ...
11
votes
3answers
1k views

Define particle names to use upright greek letters in math mode

Currently I have my electron neutrino & beta particle marco defined as \newcommand{\eneutrino}{\ensuremath{\nu_e}} \newcommand{\belectron}{\ensuremath{\beta^{-}}} ...
10
votes
1answer
3k views

A Matrix with labels, dashed lines

I'm trying to TeX the following matrix, from Guillemin and Pollack (1.4 #13) The best I've been able to do is get the dashed lines with \[ \left( \begin{array}{c:c} B & C \\ \hdashline D ...
10
votes
3answers
459 views

The line produced by \not looks bad on wider symbols

When using \not together with wider symbols such as \Leftrightarrow the diagonal line produced by \not is placed too far to the left. How can the line be properly aligned? For example the following ...
10
votes
5answers
864 views

A symbol for the field of formal Laurent series

In my area of math one of the objects that pops up quite often is the field of all formal Laurent series. Now the trouble is that the notation for this field is $\mathbf{C} (( t ))$. Now the two ...
8
votes
2answers
1k views

LaTeX color setting for math mode

I'm wondering if it's possible to do something like this in LaTeX: For all numbers (0, 1, ..., 9) in math mode, color it red. For alphabets (a, b, ..., z, A, B, ..., Z) in math mode, color it green. ...
8
votes
1answer
352 views

Diagnosing the “too many math alphabets” error

I recently hit up against TeX's "too many math alphabets" error. I'm trying to diagnose what is using up my math alphabets, as I can't work out where they are going. Of course, I could just start ...
8
votes
3answers
2k views

Rotation in \ddots

I want to write a math equation that needs power of dots. I tried these code {2^{2^{2^{\ddots^{2}}}}} But the dots needs to be rotated
7
votes
3answers
752 views

The modulo two sum sign in LaTeX

I would like to know how I can obtain the 'modulo two sum' sign (unicode 2A0A i.e., the letter sigma with a circle in its middle). I know I can obtain it by using the unicode-math package. But does ...
7
votes
3answers
737 views

Math letter's italic correction

Are there a way to display PS and TN and CD and so forth (product of two variables) more beautifully? The normal CM font puts a wide space between the left letter and right letter. If use the ...
6
votes
7answers
2k views

frown and mathop/stackrel/overset

I need something like \stackrel{\frown}{MM'} to express the fact that MM' is some path. But I am not really satisfied by the look of the result. The \frown is too high. Would you please have a ...
4
votes
3answers
989 views

Using oldstyle figures of palatino (mathpazo) in math mode

I am using \usepackage[osf]{mathpazo} for oldstyle figures and the dcolumn package to align the contents of tables at their decimal point. The problem is that dcolumn automatically sets the aligned ...
24
votes
3answers
995 views

Why are so many symbols restricted to math mode?

A common beginner's mistake is to forget \(...\)/$...$ around symbols that require math mode. Why doesn't (La)TeX let people use isolated symbols in text mode by default? I am sure there are at ...
19
votes
1answer
12k views

Difference between \textrm{} and \mathrm{}

Can you explain me what is the difference between \textrm{} and \mathrm{} when they are used in math mode. In what context one is preferred over the other?
14
votes
2answers
2k views

Equations, change the font size

How do I change the font size of something like this: I want to increase the font but it always seems to remain the same. \documentclass[30pt]{article} \DeclareMathSizes{20}{20}{20}{20} ...
13
votes
3answers
1k views

mathop shifts the baseline, DeclareMathOperator doesn't

Here is a little example that illustrates this strange behaviour: \documentclass{article} \usepackage{amsmath} \DeclareMathOperator\foo{\mathbf{l}} \begin{document} ...
12
votes
5answers
2k views

Define strange operators

I' looking for a symbol rendering the connected sum of $n$ topological spaces (or other quite strange topological operations) in a "product-like" manner... What For example in writing $$ ...
10
votes
2answers
582 views

Weird relative positioning of superscript and subscript with \dot, \bar

Minimal working example: \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \[ {A^\mu}_\nu \] \[ {\bar{A}^\mu}_\nu \] \end{document} The result is. Why is the placement of ...
9
votes
1answer
263 views

\ifmmode doesn't seem to work correctly inside an array environment

I’m struggling with getting \ifmmode to work correctly when used inside an array environment which is inside a displaymath environment. Here is a minimal example: \documentclass{article} ...
8
votes
3answers
425 views

How to achieve line break in simple $formula$-mode

I want to have inline math text like Figure \ref{figure:example graph} shows an example of a graph $G = (\{v_{1}, \dots, v_{5}\}, \{(v_{1}, v_{2}), (v_{2}, v_{3}), (v_{1}, v_{3}), (v_{2}, v_{5}), ...
8
votes
1answer
816 views

siunitx: Bold single numeric cells

I'm struggling to make a single numeric cell in an siunitx table bold. (A similar question for making a whole column bold is available here.) I want to define a simple macro which I can set for the ...
6
votes
2answers
246 views

Using a negative space \! to differentiate between functions and products

In Physics, I often have functions like f(x), but also multiplications like y(-x). I would like my math to be easy to understand, so I am looking for a way to suggest function calls and ...
5
votes
2answers
940 views

Relation spacing error using =& in aligned equations

The middle equation in the following example seems to have wrong spacing around the = sign. The only difference is that I used =& for aligning around the = sign rather than &=. This worries ...
4
votes
1answer
215 views

Typing Following notation in Latex [duplicate]

I need to generate following notation in LaTeX. It's used in differential geometry to denote vector fields. I can't find documentation and detexify is not helpful either.
4
votes
2answers
697 views

Problem with \mathpalette and \mathchoice

When working on an additional answer to this question of mine, I stumbled across the following problem with \mathpalette. For simplicity I give an example where in practice it is ridiculous to use ...
3
votes
1answer
514 views

Positioning of equations

How would I shift my whole set of equations/calculations at the left, to be aligned with "Example"? \documentclass[11pt,a4paper]{report} ...
3
votes
2answers
1k views

Force aligned equation (all the way) to the left?

How do I force the following aligned output all the way to the upper left (right next to the enumerated list item)? I still want the 2nd and 3rd lines to be aligned with it's above equal sign. ...
3
votes
1answer
4k views

How do I make a blackboard 1? [duplicate]

Possible Duplicate: Blackboard bold characters I want to make a blackboard "1" character to show an indicator variable, but $\mathbb{1}$ doesn't work. How do I do it?
49
votes
9answers
4k views

LaTeX/Math jokes [closed]

Lighten up a bit guys. How about the following \documentclass{article} \usepackage{graphicx} \begin{document} If~~$\displaystyle\lim_{x\rightarrow8}\frac{1}{x{-}8}=\infty$ ...