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

5
votes
2answers
1k views

sans serif math in tables and siunitx

I want to know the easiest way to ensure that the content inside a tabular, including siunitx columns is set using a/the sans serif math font. The normal document is set in serif font. This approach ...
7
votes
1answer
210 views

How to space '|'?

I write a lot |, for instance, even numbers = \{ z | z \in Z, z mod 2 = 0 \}. But the space around | does not look enough... I tried \mathbin{|} and \quad | \quad, they do not look great either... ...
7
votes
1answer
297 views

How to output math environment code alongside typeset math?

I have a preamble which defines lots of symbols and a LaTeX document for testing them. In particular, I have source like this: \[\wlength{abc} = 3\] \[\lang{A} = \lang{\varphi}\] \[\kplus{L} \defeq ...
1
vote
0answers
169 views

How do you place text under the union, \bigcup? [duplicate]

Possible Duplicate: Show inline math as if it were display math In a similar manner to how you would write summation notation, I wish to have a union operator iterate over a set. I have ...
11
votes
1answer
23k views

How to represent the trace of a matrix [duplicate]

Possible Duplicate: Define additional math operators to be typeset in roman The trace of a matrix is often written as "Tr [matrix] ", but there does not seem to be a naive LaTeX symbol for ...
22
votes
2answers
3k views

The mysteries of \mathpalette

I would like to make a macro, \vfrac, which output would look like: $$\displaylines{ \displaystyle\raise.25ex\hbox{$\displaystyle1$}\!/\!\lower.5ex\hbox{$\displaystyle2$} \cr ...
12
votes
3answers
3k 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?
9
votes
2answers
4k views

How can I put a matrix in a figure caption?

I would like to put a matrix in a figure caption. The following example demonstrates the idea: \documentclass{amsart} \usepackage{graphics, epsfig, psfrag} \begin{document} \begin{figure} ...
66
votes
2answers
28k views

How to get Beamer Math to look like Article Math

In a LaTeX article, the math characters are more "curvy" than the text characters: \documentclass[12pt]{article} \begin{document} $x^2 + y^2 = z^2$ \end{document} In a beamer presentation, the ...
1
vote
0answers
138 views

How to type a double limit? [duplicate]

Possible Duplicate: Separate long math text under sum symbol into different lines? I'm interested in typesetting the following double-limit:
4
votes
5answers
771 views

How do I disregard automatic spacing between characters in math mode?

I realize this is a bit of an odd request. I'd like to typeset some characters in math mode (such as 1 \land \lnot 2 \lor 3), and have them appear equally spaced, rather than with automatic spacing. ...
5
votes
2answers
3k views

Vertical spacing in tables with math

How can I force LaTeX to vertically center math in a table taking into account subscripts, superscripts, etc? It appears from the output below that LaTeX vertically centered the $JV$ and added the ...
9
votes
1answer
397 views

Why does fontspec change the maths accents (and only with lualatex)?

In the minimal example that follows luatex doesn't place the accent correctly (it's too far left): \documentclass{minimal} \usepackage{fontspec} \setromanfont{Linux Libertine O} \begin{document} ...
5
votes
2answers
247 views

Applying breqn in bulk to typeset a math book for my kindle?

I'm trying to typeset this book for my Kindle: http://linear.ups.edu/ Unfortunately some of the equations result in overfull hboxes, and I can't read them. Though I've managed to manually convert ...
2
votes
1answer
3k views

Format intersection of groups with index below intersection symbol

I'm writing in LyX and would like to format the intersection of groups such that the index appears directly below a large U. Currently I do the following which produces a relatively small U with the ...
20
votes
2answers
2k views

Make mathfont respect the surrounding family

How can one make the math mode change its font according to the surrounding text? I have to use (pdf)latex. xelatex, luatex etc. are not possible alternatives in this case. \documentclass{scrartcl} ...
2
votes
1answer
419 views

sfmath: bug or feature? Tildes are wrongly displayed

If I compile the following code (TeXLive 2011; Mac OS X 10.7.2, latexmk 4.26), I get wrongly placed tildes (in the middle of the letters instead of on top of them). Is this a bug? ...
39
votes
5answers
7k views

Should subscripts in math mode be upright?

In one-letter subscripts, like $x_i$, the subscript is usually typeset italic. Is this the typographically right thing to do? Consider this case: The Boltzmann constant is often written as $k_B$, ...
10
votes
3answers
314 views

Which math environment use to make a table layout?

I'd like to typeset math in table layout, which is stretched to page width e.g.: \begin{flalign*} a)\, \lim_{n\to\infty} \frac{1000n}{n^2+1} && b)\, \lim_{n\to\infty} \left( ...
5
votes
1answer
181 views

How to draw a T-frame?

How can I re-produce the following figure using LaTeX? (Drawn in excel, using borders).
11
votes
1answer
783 views

Strange difference in usage of \pgfmathprintnumber

I encountered a strange spacing difference in the following example: \documentclass{article} \usepackage{tikz} \begin{document} number printer inside of fbox with -5e-5: ...
5
votes
1answer
2k views

Typeset a solidus operator (free variable substitution)

I would like to typeset an operator like the one used to specify substitutions of variables with values in computer science. This is a sketch, just keep in mind that all this should span about on a ...
17
votes
2answers
507 views

How do you create .+?

I would like to display a = b .+ 1 But it is displayed as a = b. + 1 (moves . next to b).
8
votes
4answers
316 views

Subscript sizing of text in math formulas

I am using Plain TeX, not LaTeX. Right now, I have \def\text#1{\hbox{#1}} This works for things like $$A + \text{foo bar}$$. However, not for things like: $$\Sum_{ \text{foo} = a}$$. How do ...
2
votes
1answer
4k views

\cal gives “Undefined control sequence” error

I've used \cal throughout my document and now when I go to switch the document class the \cal is giving me a "Undefined control sequence." error. Any thoughts on why the document class would make a ...
13
votes
3answers
2k views

Correct spacing when using \sim as negation

When using \sim as a symbol for negation it gives incorrect spacing and this is clear if the spacing is compared to the spacing of \lnot: How can the spacing be corrected? \documentclass{article} ...
22
votes
2answers
7k 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 ...
78
votes
4answers
66k views

Show inline math as if it were display math

I'm very familiar with how symbols display differently in inline mode (with $) vs. how display math shows them (with \[ or $$). Two examples would be with limits $\lim_{n\righarrow \infty}f(x)$ ...
3
votes
2answers
2k 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 ...
15
votes
5answers
3k views

Double superscript error involving tilde

When I write {{\tilde{C}}^{0}_{har}}^{\Gamma} (or the same with fewer curly brackets) in Tex I obtain a double superscript error and I can't solve it. Does someone know how to fix this?
6
votes
2answers
3k views

Does the intlimits option work in amsmath package?

AMSMath manual states that (1) "sumlimits (default) Place the subscripts and superscripts of summation symbols above and below, in displayed equations." (2) "intlimits Like sumlimits, ...
17
votes
5answers
2k views

Underbrace under sqrt content

I am trying to use underbrace to clarify the arguments to a sqrt. However this causes the square root sign to reach all the way down to the bottom of the text under the brace(s), which is not what I ...
5
votes
1answer
532 views

Large Objects Within Stackrel

Is there a possible way to create large objects inside of stackrel? This is how I tried to do it, but it gave many errors. \( \stackrel{\large Paragraph}{1} \) With a LARGE 1 as well.
27
votes
4answers
3k 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, ...
2
votes
1answer
464 views

Is there a better method of double negating than nesting an \overline within another \overline?

I am creating a flash card for Double Complement Law. My code gets me the desired effect. I am still curious to know if this is the most efficient method of accomplishing this. [$](\overline ...
1
vote
1answer
264 views

How can I correct spacing issues?

When using the following code I get unsightly spaces (following the opening parentheses, after the = and between the x' and y'): [$](\quad \overline{x+y})=\quad \overline{x}\quad \overline{y}[/$] ...
4
votes
2answers
807 views

Italic/slanted math font and kerning

I'd like to write a macro for typesetting slanted letters in bold for highlighting vectors. I've used this implemenation: \newcommand\vect[1]{\text{\bfseries\sffamily\slshape#1\/}} But I've run ...
27
votes
2answers
3k views

Is there an easy way to add hover text to all incidents of math mode where the hover text would contain the LaTeX code?

Adding hover text (I believe the technical term is a tooltip) to any part of any LaTeX document can be accomplished using cooltooltips.sty, as I have recently learned. I would like to do something ...
5
votes
2answers
5k views

Must be equal and other stacked math symbols

Several times already I wanted to express something like ! A = B or n->0 X ------> oo in a math environment. How do I achieve this? On a related note: What is the correct term for ...
11
votes
4answers
2k views

How can I typeset non-inline math in tables?

I have to typeset mathematics in table and want to avoid it being scaled down because I have to use inline math (\( \)). However, using \[ \] for example does not work. What is the best way to typeset ...
24
votes
3answers
27k views

Double superscript error

I'm a relative beginner with Lyx. When I type in this code I'm hoping for T' to be followed by superscripts and subscripts. Instead I get a "double superscript" error when I try to view the pdf \[ ...
10
votes
2answers
988 views

Turn off locally one package

In the following code, I would like to show two different formatting styles: one using the package nath output, and another showing the default output. How can I do that? % Source : ...
35
votes
3answers
97k views

How to write a function (piecewise) with bracket outside?

How to write this Piecewise function using LaTeX? I tried $ \begin{array}{cc} \{ & \begin{array}{cc} 0 & x\leq 0 \\ \frac{100-x}{100} & 0\leq x\leq 100 \\ 0 ...
5
votes
1answer
5k views

How can I use an align environment flush right?

Is there an option analogous within the align environment to the left align for right align, i.e. fralign. MWE: \documentclass{article} \usepackage[fleqn]{amsmath} % Instead have [freqn]. ...
2
votes
1answer
996 views

Using exscale package

How to use exscale package for mathematical expressions to enlarge? \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{exscale} \begin{document} I need the big font \[ ...
6
votes
2answers
1k views

How to write larger \natural symbol?

If we want to write big \sum symbol, we can write $\sum\limits_{i=1}^n x_i$. I want to do similar thing for \natural symbol which will be used to denote the boundary connected sum. How can I do ...
5
votes
3answers
3k views

Is there any way to make lowercase \chi bigger?

I was just wondering if it's possible to make lower case \chi bigger. Basically I want the equation \chi^2_0 = \frac{1}{2} to have more space between the 2 and 0 like all the textbooks have but the ...
16
votes
2answers
9k views

Dynamically size arrow \mapsto in function definition

I have the following diagram: However, this looks a bit ugly, I would like a version that looks a little bit better. For example, size the last arrow such that the T_\phi is moved to the right. ...
38
votes
3answers
2k views

Beyond Bringhurst: mathematical typesetting

I've been reading The Elements of Typographic Style and I was wondering whether there was a similar resource for specifically mathematical typesetting. Is there a book or other document that sets ...
4
votes
4answers
1k views

Tagging equations with three \ast

I want to tag some equations with \ast, for \ast and \ast \ast it's good, but for the third I would like to have the three \ast placed like in a triangle, so two \ast at the bottom and the third in ...