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

17
votes
1answer
396 views

Why \( and \) were not defined as robust commands in the first place?

I am aware of the difference between using \(...\) and $...$ (in moving arguments, for example), and yes, I've read the answers to this question: Are \( and \) preferable to $?). I also know the ...
13
votes
1answer
96 views

\( \) don't work with TOC?

If i write this line of code \subsection{Ranger \( n \) boules distinguables dans \( M \) boîtes} I obtain an error over the second \) (./Probabilité.toc ./Probabilité.toc:8: LaTeX Error: Bad ...
11
votes
2answers
480 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 ...
10
votes
3answers
2k views

Unicode degree symbol ° in math formulas: \textdegree invalid in math mode

I'd like to be able to simply input a degree symbol as ° in my source code. German keyboards have a key for this, and it makes the source so much more readable. I'm using pdflatex from TeXLive 2012, ...
10
votes
4answers
329 views

Typesetting coordinates

I'm trying to typeset coordinates like: (0 0 0) or (0, 0, 0) I'm not sure if LaTeX offers a package which can make the notation a bit more professional than just manually inserting spaces between ...
10
votes
1answer
797 views

How can I position equation numbers always to the left side?

Equations and amsmath environments put equation numbers to the right side by default, the output of \begin{multline} some equation \end{multline} is: equation (number) How can I change it this ...
8
votes
1answer
197 views

How do I insert a backslash inside a mathematical statement?

I'm trying to write a set subtraction operation in an AMS formatted template. In the end, what I want should look like A\B. But I'm doing this in math-mode $A\B$ and this gives me errors. I've also ...
7
votes
1answer
177 views

Can I make siunitx commands use serif fonts like the rest of the math in beamer?

In a beamer presentation I can use \usefonttheme[onlymath]{serif} to typeset the math in a serif font while the rest of the presentation is in a sans-serif font. But the \SI command from siunitx ...
7
votes
1answer
229 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 ...
7
votes
3answers
281 views

Making mathmode obey spaces

I know this is kind of blasphemic thing to ask, but is there a way to make mathmode obey spaces? Preferably in Plain with XeTeX.
7
votes
4answers
421 views

is it possible to change the depth of subscripts?

I have the following formula: $ F_{\!\bm{H}} F_{\overline{\!\!\bm{H}\!}} $ In this case both subscripts end at different depths (but start at the same height). I'd like them to end at the same ...
6
votes
2answers
148 views

LaTex Error Help- Math Related

I'm trying to make an equation array \begin{eqnarray*} f^{(a)} (0) &=& \frac{a!}{2 \pi i} \oint_{ |z| = \frac{\varepsilon}{r}} \frac{f(z)}{(z)^{a+1}} dz &=& &=& ...
6
votes
4answers
3k views

\overline outside of math mode

If I want to draw an overline over some text, not an equation, how can I do it? \overline seems to only work in math mode, and when used outside of math mode, it automatically says "Missing $ ...
5
votes
1answer
55 views

(Nonfatal but Symptomatic) Conflict of amsmath and mathstyle Packages

This was brought to my attention by our colleague, Lover of Structure, but since it affects my scalerel package (which began using the mathstyle package to detect the current math style, as of version ...
5
votes
1answer
1k views

Make every element of an array displaystyle?

Is there a way to make every element of an array be \displaystyle? I don't want to do something like \everymath={\displaystyle} (or whatever it should be) because I want this for a particular array ...
5
votes
2answers
246 views

Aligned, hanging indents in non-monospaced code

I want to typeset a piece of code containing line breaks. New lines should indent to a specified point in the previous line. Here is a monospaced example to illustrate what I mean. Notice how ...
5
votes
2answers
207 views

How can I draw a dot under a symbol in math mode?

I'm trying to find the equivalent to \d (or \textsubdot) for the math mode.
4
votes
2answers
289 views

How I can typeset this equation with LaTeX?

I would like to typeset the enclosed equation but placing the last a_{i, j} in the same column as the above a_{i, j}+1 and a_{i, j}-1, and the b_i in the same column as the above b_i's and not as it ...
4
votes
1answer
3k views

typesetting modulus operator, as in remainder

Is there a standard way to typeset the modulus operator (as in arithmetic remainder)? The percent sign (%) is often used by programming languages and mathematicians tend to use mod, but because of the ...
3
votes
1answer
756 views

Is there a command for inverse secant (arcsec)? [duplicate]

Possible Duplicate: Define additional math operators to be typeset in roman \arccos, \arcsin, and \arctan seem to work, but not \arcsec, \arccot, \arccsc. I'm using the following math ...
3
votes
3answers
3k views

How to put a big bracket under different parts of a equation so that I could write e.g. a text specific to that part in the equation?

How to put a big bracket under different parts of a equation so that I could write e.g. a text specific to that part in the equation? For example : f = x^3 + 2 |___| |__| | | ...
2
votes
2answers
117 views

Stealth arrow in math?

Is there an easy way to produce stealth style arrows in normal math mode? By "stealth" I'm thinking of TikZ stealth arrowhead. Something like \rightarrowstealth? The question originates from a limit ...
2
votes
2answers
410 views

Length parameter for vertical skip space in a math environment?

I learned here that I can use \\[<len>] to explicitly set the vertical skip space between lines, e.g., <len> set to 3ex. I'd like to set <len> to, say, 2-times the normal length in ...
2
votes
1answer
279 views

Standard math environment for equally-spaced columns of expressions?

I often need a display environment which would let me easily present equally-spaced expressions in the same line, with content on successive lines appearing centred at the same x-coordinate as content ...
1
vote
1answer
383 views

How can I write tilde ~ in math mode? [duplicate]

Possible Duplicate: How to look up a symbol? How does one insert a backslash or a tilde into LaTeX? ~ makes symbols after them 'phantoms'. I want just to write '~' in math mode and \~ ...
1
vote
1answer
329 views

Using \frac within a table

Does \frac not work from within a table? I need to reproduce the formulae for various methods on this page - here. I for example use Normalized Square Difference & \frac{\sum_{x',y'} ...
31
votes
7answers
17k views

What is the best symbol for vector/matrix transpose?

What is the best or most popular symbol for vector/matrix transpose? I have used simply ^T, for example $c^T x$. I think it is ugly, mainly because it is a little too big compared with vector ...
18
votes
1answer
175 views

Sloppy \left and \right?

The \left and \right commands often produce improvidently large delimiters. It almost always looks better to use delimiters that are just slightly too small than delimiters that are too large. With ...
12
votes
3answers
637 views

How do I know if a math font fits well with the text font

In terms of fonts, I have the following: \usepackage{charter} \usepackage[scaled=0.92]{helvet} \renewcommand{\ttdefault}{cmtt} \renewcommand{\familydefault}{\rmdefault} ...
50
votes
4answers
1k 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? ...
31
votes
2answers
4k views

Two letter variable names

In math mode, TeX assumes "hidden multiplication" (so that two variable names put nearby have invisible multiplication between), so that, AFAICT, expressions like $ABC$ are rendered with small ...
21
votes
3answers
8k views

Why is LaTeX used as the defacto standard for math equations?

In almost every application I've ever seen that uses math equations, it always supports LaTeX. If LaTeX does so much more than just math equations, why is it the defacto standard for math equations? ...
21
votes
4answers
12k views

Typesetting the “define equals” symbol

I'd like to typeset two compound symbols for making definitions. The following \newcommand{\defeq}{\mathrel{\mathop:}=} \newcommand{\eqdef}{\mathrel{\mathop=}:} are suggested by the CTAN symbol ...
15
votes
3answers
7k views

Bold math: Automatic choice between \mathbf and \boldsymbol for Latin and Greek symbols?

This is a follow-up to this question. Suppose you want to denote vectors by upright bold letters; then \mathbf{u} works fine, except that if it's a Greek letter you have to use \boldsymbol{\omega} ...
37
votes
5answers
45k views

How to add a matrix to a LaTeX document

How do we add a matrix to a LaTeX document?
17
votes
2answers
619 views

Display math deadly sin in l2tabu

As a follow-up to Why is \[ ... \] preferable to $$?, what really is wrong with the vertical spacing as stated in l2tabu introduced by using $$...$$ instead of \[...\]? As there does not seem to be ...
17
votes
4answers
4k views

Prevent line breaking in inline math, but allow flexible spacing

How can I easily tell Latex to prevent line-breaks inside a part of an inline formula, without affecting inter-word spacing? Writing something like $ab(c+d)$ in Latex is bad: Latex might put a line ...
11
votes
2answers
1k views

Selecting main math font in LuaTeX?

I’d to set some fairly simple maths in Minion Pro (and potentially other system fonts), using LuaTeX.  I’d hoped that something like the following should work: \documentclass{minimal} ...
11
votes
4answers
759 views

What is the best way to typeset spectral sequences?

While writing articles about algebraic topology, I have had to typeset spectral sequences. These are tools for calculating homology and cohomology. Examples appear on page 10 of this book by Hatcher. ...
16
votes
2answers
8k views

\bm package versus \boldsymbol

I'm typing a bold vector small x with a tilde sign above it. Now when I want to write its derivative, I'm putting a dot on top of everything. This is giving me problems and I found one solution: ...
15
votes
2answers
273 views

How to align nested cases?

Please consider the code bellow: \begin{align*} function = \begin{cases} case1 &\mbox{if } n = 0 \\ \begin{cases} case2 &\mbox{if } n = 1 \\ ...
15
votes
2answers
6k views

Custom equations' names

Do you know ho can i call a reference to an equation using \ref or \eqref and obtain (name of the equation) instead of the standard counter? Thanks!
14
votes
5answers
1k views

Upright Lowercase $\pi$

On pg. 144 of Kopka and Daily's A Guide to LaTeX, they mention that the symbols $e$, $i$, $d$, and $\pi$ should be displayed upright in math mode (for their usual uses). This is easy to do for $e$, ...
14
votes
2answers
6k views

Math inside tables and formatting

I'm trying to make a little summary of mathematic analysis, useful for my university, in LaTeX. I'm stuck in the problem of creating nice table, with alternate colouring containing equations with ...
13
votes
2answers
408 views

In what circumstances should one wrap numbers in dollars?

Here is an example to consider: A $3.1415$ approximation for $\pi$ was known on 314 BC? Or maybe A 3.1415 approximation for $\pi$ was known on 314 BC? And here is another: We run 32 ...
12
votes
3answers
755 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 ...
12
votes
4answers
4k views

Removing spaces between “words” in math mode

I'd like to set $1024 \times 768$ without any space between the three items. Is this possible? If so, how? E.g., what I get is: 1024 x 768 and what I want is: 1024x768
8
votes
2answers
2k views

What parsers for (La)TeX mathematics exist outside of the TeX engines?

Inspired by the author's motivation for asking Is there a BNF grammar of tex language. Are there any well done libraries that can parse some subset of TeX mathematics independently of the TeX engine? ...
6
votes
1answer
563 views

Math mode accents and spacing

I'm using accents to produce a variant of the \in operator but when I place an accent on it, as in \tilde{\in}, I get spacing that is different from \in, see the example and the image below. My ...
2
votes
5answers
6k views

how to write a limit and how to use large absolute value?

How can I denote a limit in LaTeX, such as $f(n) \rightarrow_{n \rightarrow \infty} 0$ ? And when I have a fraction and so on and I want to use an absolute value $| \frac{x}{y}|$, how can I make the ...

1 3 4 5 6 7 10