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

82
votes
2answers
95k 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 ...
21
votes
3answers
43k views

making a big summation sign

how can I make a big summation sign ? ‎\begin{align}‎ ‎\cos x‎ ‎=‎ ‎‎\sum\limits‎_‎{n=0}^{‎\‎‎infty‎} ‎\frac{(ix)^2n‎}{(2n)!}‎‎ \end{align}‎ this is the code which I'm using for summation
16
votes
2answers
49k views

How to write letters in bold in the math mode?

In mathematics, a letter, say, g, can stand for a scalar, while a letter in bold, e.g., g stands for a vector. Here is my question: How can one turn the letter into bold in the math mode? For ...
20
votes
3answers
18k views

What is the name of the default font in math mode?

I draw figures in Inkscape. When I label elements within the figures with variable names that I have used in the underlying TeX document, I would like them to look exactly the same as in the document. ...
47
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: ...
6
votes
1answer
213 views

Uneven subscripts. [duplicate]

Possible Duplicate: Supremum of the infimum Is there a way to make the subscripts appear evenly in the following code: \sup_{a\in A}\inf_{b\in B}? That is, so that a\in A doesn't appear ...
29
votes
1answer
25k 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?
6
votes
3answers
772 views

Palatino, roman \chi and the math mode

I am using Palatino for the content and I have a problem displaying \chi in math mode. The problem happens when I have a roman formatting in math, e.g., vector x, X, and χ; the χ turns to some ...
28
votes
4answers
18k views

How to typeset function restrictions

I wonder how to typeset the restriction of a function to some subdomain, a la $f|_A$ or $f\restriction_A$ , but with the vertical bar being as big as possible.
2
votes
1answer
121 views

How to continue a piece of text so it is aligned with the last line of an inline multiline box?

Is there a way to have the continuation of a piece of text aligned with the last line of a multiline environment, such as array? For example, I would like to define the command ...
3
votes
1answer
1k views

triple \approx and triple \approx with a straight middle line

I'm trying to create a symbol \diffeo for "diffeomorphic" and \isomet for "isometric". I'd like it to look exactly like \approx $\approx$, but with three lines for the first one; and three lines with ...
3
votes
3answers
930 views

mathaccent skewchar with XeTeX

How can I get the dots in the correct position: \font\test="XITS Math:script=math;mapping=italic" \skewchar\test=127 \XeTeXmathchardef\beta="0"1`β \def\ddot{\XeTeXmathaccent"7"1"0308} ...
27
votes
4answers
3k views

Can I have a flexible partial derivative macro?

I was thinking about writing a partial derivative macro that has a similar syntax to the Mathematica D function. (example) The syntax could be like this: \D{f}{x} expands to \frac{\partial ...
1
vote
1answer
635 views

floating a tabular in a tabular using minipage

I am able to build the tex just fine, and using the minipage allowed the content on the right to float correctly over the given "blank space" that I was trying to take advantage of by doing this but ...
4
votes
1answer
3k views

How to center text under math symbols

I was looking for a way to center text underneath math symbols such as constraints or regions. More specifically, from vector calculus, if we were to have a double integral bounded by some region D, ...
1
vote
2answers
1k views

Linebreak in equations

I have a very simple LaTeX problem with the following LaTeX fragment: The function computes: \[ e \leftarrow (((x||a) + (y||b)) \oplus y,\\ r \leftarrow x + y \] The result should then be in ...
2
votes
2answers
570 views

Changing column separation in smallmatrix environment

How can I change the width of the space between columns in a smallmatrix environment? I can't find any decent documentation on smallmatrix anywhere. The array environment has the setcolsep{..} ...
22
votes
3answers
15k views

Footnote in math mode

How can I insert a footnote into math mode? I tried this (with required packages) \usepackage{amsmath} \usepackage{hyperref} \usepackage{ccaption} And i.e if I try \begin{eqnarray} foo && ...
4
votes
2answers
440 views

How to expand summation notation on both sides of equal sign

I think you get what I am trying to do, but I dont know how to align the equal signs the entire way down and still have the vertical ellipses. Assume $\displaystyle \sum_{i=1}^{n}\alpha ...
1
vote
1answer
2k views

Using `mathbb` fonts from other packages

I am currently using a combination of mathpazo and mathspec for my maths typesetting. To be specific, my preamble contains the following: \usepackage{amssymb} \usepackage{mathrsfs} ...
6
votes
1answer
3k views

Greek character in Beamer document title

I need to include the Greek letter sigma in the title of my Beamer presentation. When I use $\sigma$ to obtain the symbol (which works fine in other LaTeX document titles), I receive the warning ...
48
votes
2answers
57k views

How to color math symbols?

One can use the command such as \textcolor[rgb]{1.00,0.00,0.00}{boundary} to color the word "boundary" in a document. Here is my question: How to color the math symbols in $$? For example, can one ...
5
votes
2answers
245 views

Vertically stretch “/” operator when second (but not first) operand is tall

I have code similar to this: \[ x / \sqrt{\frac{a}{b}} \] I.e. the first part (x) is normal height while the second part is tall. How do I get the / to be stretched vertically to match the second ...
7
votes
1answer
1k 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 ...
46
votes
4answers
23k views

How to make \left, \right pairs of delimiter work over multiple lines?

I have a very long equation that must be separated into two lines, and it has several pairs of nesting \left \right delimiters. Unfortunately, it seems that they need to be on the same line in order ...
8
votes
2answers
8k views

Polynomial Long Division over GF(p)

Is there a package like polynom for typesetting polynomial long division but over a finite field such as GF(2). If not, how to manually typeset long division in general? Thanks. Addendum: I ...
5
votes
2answers
1k views

How can I tell lstlisting to use sans-serif when escaping to math mode?

Title says it all, an example follows: \lstset{ mathescape=true, basicstyle = \sffamily } \begin{lstlisting} func($x_0$) \end{lstlisting} Where and how can I set the math font used ...
17
votes
2answers
710 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 ...
1
vote
1answer
839 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'} ...
4
votes
2answers
521 views

Text containing math above and below equilibrium sign won't compile (using mhchem)

Why won't this compile? I suspect the math inside the []s are preventing compilation. If so how do I make this work? Thanks. \documentclass[12pt]{article} \usepackage[version=3]{mhchem} ...
3
votes
1answer
909 views

vertical subseteq symbol in label of subfloat

Math symbols (\subseteq and \supseteq) are rotated and rendered successfully in text mode with the aid of \rotatebox{}{}. In the commented section below, there is a problem with getting these symbols ...
8
votes
1answer
1k views

How to draw a hypergraph (forest)?

How can I draw a hypergraph structure (a.k.a. forest) like this: (Note: This is not a duplicate of this question, of course, since that drawing is very different.)
6
votes
3answers
6k views

Resize integral evaluation limits

When I want to show evaluation of limits of an integral, I would type \int_1^2 x\; dx=\frac{x^2}{2}|_1^2=4-\frac{1}{2}=\frac{7}{2} How do I get the vertical bar showing the limits big enough? I ...
7
votes
3answers
6k views

XOR and II (concatenation) summation symbols

In Latex, in math mode, if I want to express summation over a range I can use the following expression \sum_{from}^{to}. I can do the same for the product. What is the name of the symbol that does ...
2
votes
1answer
743 views

Spaces within a set of tuples

I want to have a set of tuples spaced with ":". I tried the following: $\{1:1, 1:0, 0:1, 2:1, 1:2, 2:2\}$ but in the output, there is a space between the number and the colon. How can I get rid of ...
22
votes
2answers
2k views

Typesetting Right-to-Left math

UPDATE: I've managed to produce something that is aesthetically correct, however with a lot of "hardcoding" and trial and error to manually measure my spaces. Not to mention that I have to write my ...
9
votes
3answers
14k views

Strikeout in math mode

How can I strikeout words in math mode (similar to \sout with \usepackage{ulem} in text mode)? I've tried \usepackage{cancel} and \(\cancel{1+1=2}\) but that draws a diagonal line.
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 ...
10
votes
3answers
4k views

Legendre symbol in theory of numbers

How can I get a Legendre symbol , which just used the dashed line instead of the fractional rule?
14
votes
2answers
517 views

How to detect whether a command enters math mode behind the scene?

Commenting out the %\usepackage{hyperref} in the following code snippet will produce some warnings. Using \usepackage{hyperref} and \section{} to detect whether a command enters math mode may not be ...
6
votes
2answers
5k views

Proper way to use \ensuremath to define a macro useable in and out of math mode

Based on this solution related to defining a macro I came up with this macro to help me define a macro that I can use either in or outside of math mode. The example as is functions as I want. ...
8
votes
2answers
3k views

Is there any way other than \pmb to produce bold greek letters when mathptmx is used?

I know that mathptmx does not contain bold symbols for greek letters in math mode, and the result of \pmb is too ugly. Is there a way to specify LaTeX to use CM fonts for bold greek letters when ...
3
votes
2answers
3k views

How to write Rudin's symbol for absolute continuity of measures?

In Rudin's Real and Complex Analysis, there is a symbol for stating measure $\lambda$ is absolutely continuous with respect to measure $\mu$. The symbol is like $\lambda\ll\mu$, but not exactly.
7
votes
2answers
27k views

How to make e in e^x written upright and why \me^x does not work?

I'd like to write e^x in LaTeX math mode where the e is written upright, rather than slanted, to indicate that it is not a variable. Kopka and Daly (4ed) pg. 285 do this with \me^x. When I try this I ...
21
votes
3answers
7k views

Why use the control sequences \bigl, \biggl, \bigr or \biggr, as I can always use \big or \bigg?

If my manuscript file has $$\biggl({\partial^2\over \partial x^2}+ {\partial^2 \over \partial y^2}\biggr)\bigl|\varphi(x+iy)\bigr|^2 = 0$$ or $$\bigg({\partial^2\over \partial x^2}+ ...
32
votes
4answers
7k views

Using display style fraction in a matrix environment

I'd like use the \dfrac command in a bmatrix environment as follows: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{bmatrix} \dfrac{\partial f}{\partial x} \\ ...
5
votes
5answers
23k 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
vote
1answer
418 views

Using \jot crashes \intertext’s spacing

As mentioned in Intertext vertical spacing, there seems to be some inconsistencies in spacing around AMS’ macro \intertext, even without changing the length of \jot. But if I’m using a longer \jot to ...
9
votes
1answer
2k 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 ...
11
votes
2answers
2k views

Which one should be used in limit, \rightarrow or \to?

Which one should be used in limit, \rightarrow or \to?