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

9
votes
3answers
340 views

Inline math or \textit for author defined math constants?

Wondering if people here have a thought on what the best practice is here (if it matters). I used to use baskerville (well, the baskervald package) as my main font and charter as my math font (since ...
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
370 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
811 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
779 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
3k 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 ...
5
votes
2answers
1k views

Change math font for figures only (including TikZ environments within figures)

In my document, I want the main text to be in the times font, and the math to be in the txfonts font. This I can do with the help of the txfonts package. However, I want everything that shows up in my ...
4
votes
3answers
1k 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 ...
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} ...
11
votes
1answer
281 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} ...
10
votes
2answers
651 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 ...
8
votes
3answers
494 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}), ...
6
votes
2answers
290 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 ...
6
votes
1answer
225 views

Automatic reduplication of equal sign in the beginning of broken formula

Suppose we have the following code \documentclass{article} \begin{document} $a=b=c=d=e=f=g=h=i=j=k=l=m=n=o=p=q=r=s=t=u=v=w=x=y=z$ \end{document} which produces the following result I want to have ...
5
votes
2answers
1k 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
113 views

Why aren't the braces showing

I have this tex: \(\mu_{A}\left(x\right)\in \[0,1 \right\]\) The issue here is that [ and ] are not showing around 0,1, why is that? Thanks.
4
votes
2answers
740 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
654 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
5k 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$ ...
43
votes
2answers
9k views

Using \colon or : in formulas?

I noticed that in many documents you encounter $f: X \to Y$ instead of $f \colon X \to Y$. Another example are quantified expressions: $\forall x: P (x)$ versus $\forall x \colon P(x)$. I find the ...
32
votes
4answers
1k views

Is it ever bad to use \left and \right? [duplicate]

For mathematics, is it ever disadvantageous to use \left( and \right) in equations? I can't see any way that doing this would hinder the typesetting, so why isn't () just converted into \left( ...
25
votes
5answers
5k views

Is there a wider equal sign?

I have defined the equal by definition sign: with this code: \newcommand{\eqdef}{\overset{def}{=}}. However, "def" extends over the edges of the equal sign. Is there a wider equal sign to use?
61
votes
5answers
2k views

{(x+y)}^2 or (x+y)^2?

This expression is just an example, of course. My question is: should one always specify the quantity being exponentiated by surrounding it with braces, or is it acceptable to drop those braces? ...
27
votes
4answers
2k views

When to use math mode?

In my document, the numbers inside math mode appear differently than those numbers out. Sometimes, I have numbers like "10 squared" within a paragraph, so it seems useful to use $10^2$. However, maybe ...
16
votes
2answers
24k views

How do you get \mathbb{1} to work (characteristic function of a set)?

I am trying to get the digit one printed the \mathbb{} font in math mode, however the command \mathbb{1} outputs some rubbish. I certainly saw the character I am after in some pdf's generated from ...
20
votes
1answer
475 views

How would one design a math font?

There are (some very nice) text fonts which do not have math support. Though there are ways to 'remedy' this, such as the mathastext package and some others, these are hardly satisfactory. All accents ...
9
votes
3answers
3k views

Commutative diagram with rounded arrows

I want to draw a diagram which has some arrows between to points A and B. First arrow goes straight from A to B and above it should be a $\Psi$. Second arrow goes in a round way from A to B and above ...
21
votes
3answers
12k views

Dot Derivative Discrepancy

I am trying to typeset some higher-order time derivatives using the dot notation, and I've noticed something strange. The expressions $\dot y + y = \cos(\dot y)$ $\ddot y + y = \cos(\dot y)$ give ...
19
votes
2answers
332 views

How to prevent superscripts from moving under \sqrt?

When I put an expression with superscripts under a \sqrt, the superscripts (here "vis") move down a bit. How can I prevent that, so that it looks consistent no matter whether it's under a root or not? ...
16
votes
3answers
2k views

Color box with rounded corners around a fragment of a formula

Is there any way in TeX to highlight some part of a formula with a box having colored background and rounded corners? At present, I need to export such formulas into an image, add those highlight ...
11
votes
4answers
17k views

Write fraction out of equation

I want to write as a math fraction 1/4 " ( a quarter of inch). I want to write this fraction out of an equation because is a characteristic of an element.
9
votes
2answers
796 views

Fixing a code to highlight formulas and text on several lines

In this post I've found the following amazing code to highlight text on several lines. The problem is that code dosen't work well with formulas : for example, fraction using the mode display are ...
8
votes
1answer
1k views

Using \DeclareMathVersion

It is my understanding that \DeclareMathVersion can be used to switch between math font variants. I am wondering how this can be used in a document that leverages two fonts: Times Roman for body text ...
25
votes
4answers
2k views

How to get a good “divisible by” symbol?

In addition to the "divides" relation, denoted b | a, there is also a "divisible by" relation expressing the converse (a is divisible by b), often designated with three vertical dots. Up until now, ...
20
votes
2answers
30k 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?
20
votes
2answers
5k views

Is there a difference between the `displaymath` and `equation*` environments?

The amsmath documentation says Basic LaTeX doesn’t provide an equation* environment, but rather a functionally equivalent environment named displaymath. Are they really the same or is there a ...
18
votes
3answers
3k views

Is \mathrm really preferable to \text? [duplicate]

It seems to be the de facto standard to use \mathrm for upright letter notation in math mode as opposed to \text. Would it not be better to use \text in general? One particular problem I am thinking ...
18
votes
3answers
13k views

Differences between \stackrel and \stackbin

What are the differences between \stackrel and \stackbin? In what situations is it better to use one or the other?
16
votes
2answers
3k views

Period after math-mode equation

If I write If $x \rightarrow y$, then $y \rightarrow z$. it looks fine. But if the sentence is more involved and formulas longer, I tend to change $...$ to \[...\]. In many cases I think the result ...
15
votes
1answer
622 views

How to fix the math-spacing when a lot of \phantom, \mathrlap, etc. are used?

This question led to a new package: underoverlap Introduction Based on this question and then this question, I'm trying to perfect the \overunderbrace macro. Right now, I'm trying to get the ...
15
votes
2answers
2k views

Common baseline in TikZ and Mathmode [duplicate]

Possible Duplicate: How to align a series of TikZ pictures at the baseline I want to mix my formulas with some TikZ graphics. For example: \documentclass{article} \usepackage{tikz} ...
12
votes
2answers
8k views

How to get less spacing in math mode

LaTeX commands like this: Here again, four different simulations are run on networks of size $C^{G} = 25 \times\ 25 = 625$, $C^{G} = 50 \times\ 50 = 2500$, $C^{G} = 250 \times\ 250 = 62500$, and ...
10
votes
4answers
5k views

Is there a Copy-and-Paste List of Popular Math Formulas?

I prepare lessons for my students in printed form as well as on a Wordpress blog. All my prep is done in a simple text editor in Markdown, and I have generally avoided putting in math formulas and ...
10
votes
3answers
6k views

How to provide a definition for symbols in a LaTeX math equation?

Say I have an equation: x = R + E What's the best way to provide a definition for R and E? Is there a way to include a line under the equation saying what the variables mean (i.e. a "where" ...
10
votes
2answers
662 views

Is there a command for large middle delimiters consistent with \bigl and \bigr?

After browsing through related threads, I am now of the understanding (please correct me if I am wrong) that the rule of thumb is to use the \bigl,\bigr pair with brackets, parentheses, etc. for ...
9
votes
5answers
8k views

Is there an equation editor for Windows?

Is there anything like LaTeXit, a Mac-only program, that converts math equations into LaTeX code, for windows?