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

8
votes
2answers
11k views

Setting math fonts in Beamer

Is it possible to only change the math font in Beamer with XeLaTeX? The only partial solution I've been about to find is to create a new command: \renewcommand\mathfamilydefault{\rmdefault} The ...
13
votes
2answers
6k views

How to typeset some text including math content in sans serif

I have a blurb of text in an external macro \SomeText, which I want to typeset in sans serif. However, \sffamily\SomeText does not change the math font and \sffamily\mathsf{\SomeText} does not work, ...
5
votes
2answers
686 views

Writing vector * matrix * vector

I am using $\vec{s}^\intercal \vec{A} \vec{s}$ to represent s^T * s * S where s is a column vector and A is a square matrix. The problem with this representation is that there is little too much space ...
4
votes
1answer
2k views

How to write this math equation in LaTeX

I want insert this math equation into my paper: However, the part in the brackets make me confused. I google math equation in LaTeX but find no relavent information. This is what I alreadly have ...
22
votes
4answers
6k views

Automatically typeset math in section headings in bold-face

This question is motivated by a question asked me by a friend who is working on his thesis in mathematics. His section headings occasionally contain math, which: he would like to be in boldface to ...
15
votes
4answers
2k 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} baseline$\mathbf{l}$baseline$\...
5
votes
1answer
1k views

negated double turnstile

I'm new to the turnstile package, and I'm trying to figure out how to get a negated double turnstile sign, like the one with the regular \nvDash, but that allows me to have arguments above and below ...
3
votes
2answers
629 views

Changing colors of MATH functions and DRAWING lines

My problem is that I want my math functions and drawing illustrations to be in different colors. I want my colors to be defined at the beginning so they will automatically change the color of math and ...
6
votes
2answers
2k 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 ...
8
votes
1answer
2k views

Tikz - Drawing in the unit circle

I am working on learning how to use tikz for mathematical drawings and I am currently trying to make... well... if you read or typeset the code you will get the idea. If you look at the results the ...
5
votes
2answers
267 views

Check if mathversion (font) is defined

One can define a new mathversion using \DeclareMathVersion{sans}. I wonder if I can test the existence of such a font definition, for example with \IfMathVersionDefined{sansmath} {math font is ...
6
votes
2answers
530 views

kpfonts, siunitx and math alphabets

This is a follow up question to this rather vague one. The problem is trying to work out where my 16 math alphabets are going. In using egreg's answer to the previous question I have diagnosed ...
6
votes
2answers
5k views

Equation: Using \left brackets inserts unwanted space [duplicate]

Possible Duplicate: Spacing around \left and \right I'm having some problems with writing down an equation in LaTeX. It's only a minor issue regarding appearance, but I'm kind of a ...
10
votes
1answer
576 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 ...
21
votes
1answer
2k views

Symbol for cube

I've searched the Internet, but got nothing. In LaTeX, we can use \square for square, but how can we get a cube, I want to use it in an equation. Here is the picture:
3
votes
2answers
282 views

How to adjust the font in a \newcommand math expression to the environment

I'm writing my thesis about the gas NO2. The correct way to write this is $NO_2$. Currently, I have a macro defined to make typing easier: \newcommand{\notwo}[0]{\chem{NO_2}\xspace} \chem is a macro ...
89
votes
4answers
24k views

What are the differences between $$, \[, align, equation and displaymath?

I once learnt, that it is uncool to use $$, but why is that? Why does \[ not act as a abbreviation to \begin{align}? I noticed, that there is a difference, since one cannot use & and \\ inside a ...
8
votes
1answer
3k views

How to prevent upper case in page header?

I just came across this small problem which I can't seem to fix. I have a section which looks like this: \section{Properties of $C_q$} The problem is that the header of the page uses upper case and ...
19
votes
2answers
1k views

Placement of subscripts using unicode-math. Is it XeTeX bug?

I don't like placement of subsripts when using unicode math fonts under XeLaTeX. In contrast to CM fonts the subscripts are placed at different vertical positions obviously depending on the depth of ...
10
votes
2answers
10k views

overset text over equal sign in in an Align environment

Look at the following example \begin{align} & x \\ \overset{\text{some long explanation}}= & foo \\ & = bar \end{align} what is the best way to get the equal signs ...
9
votes
2answers
9k views

Writing an equation in a new line

I wish to write an inline equation using $%math...$, but the current line is too long, so the equation is broken into two parts, first one in the original line, and the other in a new line. I don't ...
5
votes
1answer
12k views

“Missing $ inserted” error; can't figure out what is causing it

Here is the code, getting an error involving a missing $ but I'm certain it's all correct. My guess is I am missing some subtle thing. Here is the specific error message: Missing $ inserted. <...
4
votes
1answer
1k views

How to typeset elementary combinatorics?

How would one typeset basic combinatorics, like variation and combination? For example, when using \(V'_n^k\) for variation with repetition, n and k are not vertically aligned. Something like \(V'\...
58
votes
4answers
103k views

Math symbol question: Vertical bar for ''evaluated at …''

How do I insert the line "|" after the equation in LaTeX (see image below)? I'm using LyX so if you can point me to the symbol of that line is also OK. I don't know if this line has a proper name ...
52
votes
9answers
18k views

Highlight elements in the matrix

I have a matrix and need to highlight some elements in the matrix. I have found how to highlight a single element (I want to put the cell in the square): $$ A = \begin{bmatrix} \fbox{0} & \fbox{0}...
4
votes
1answer
560 views

Aligning caption of subfigure with math environmenth to the bottom

I was trying to align the subcaption letter of a subfigure that contains a math environment using temporal boxes, to align it vertically to the biggest one. However, when I do it the subcaption letter ...
4
votes
1answer
203 views

How can I draw a straight vertical accent (like textvbaraccent) over a symbol in math mode? [duplicate]

Possible Duplicate: How can I draw a dot under a symbol in math mode? I'm looking for the equivalent of the \textvbaraccent command for the math mode.
7
votes
2answers
944 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.
9
votes
2answers
6k views

Math font to match Helvetica

Is there any package to change the math font (amsmath Computer Modern) to match the Helvetica font I am using as default in my document (helvet or tgheros package)? (In the same way as mathpazo for ...
3
votes
0answers
127 views

sansmath and boldmath--mutually exclusive? [duplicate]

Possible Duplicate: Make mathfont respect the surrounding family This question is similar to the Bold, italic math (\bm) and sansmath question, but with a few more requirements. I am making a ...
10
votes
2answers
568 views

Identifying a symbol

I'm looking for the symbols or font which produced these symbols (in math mode): S and K I have no idea which program produced the document in which I found these symbols, so I'm pretty clueless ...
11
votes
3answers
2k views

How do I get the concrete font for math only?

Is there a package that loads the concrete font, but only for the math, not for the normal text?
18
votes
4answers
52k 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.
6
votes
3answers
4k views

How do I get a equals sign under letters?

To show that a letter is a matrix my math book puts a equals sign under the letter. How do I do this?
7
votes
2answers
6k views

How to get non-italic acute accent in math mode?

$\acute{e}$ makes an italic e with accent in math mode, how can I get the acute accent with a regular letter? I should mention that this is for annotating a plot with matplotlib, so common tricks in ...
37
votes
5answers
91k views

Is there a way to set math mode font non-italic?

I read many things about people wanting math mode in sans-serif font and doing crazy things with packages and options to get that, but I did not find anything that would simply make my math mode font ...
3
votes
1answer
658 views

Formatting for dimensional analysis

I'd like to typeset a problem solution highlighting dimensional analysis in LaTeX. What is the best way to format the following in LaTeX? 1.345 g | 0.5 L | 1000 cm^3 ---------|-------|-----------...
3
votes
1answer
1k views

sans math version of Latin Modern

I am trying to get a sans math version of the lmodern family using \DeclareMathVersion but my approach does not work and I do not see why. But I have to admit that I am not sure whether I use the ...
7
votes
3answers
3k views

Implication symbol

I'm looking for a good implication symbol. I understood I was supposed to use \to, but it's longer than \land and \lor and it kinda bugs me. Is it possible to type an arrow of the exact same length?
7
votes
1answer
1k views

\textbf inside a lemma

I have defined lemma and use it as follows: \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} ... \begin{lemma} abc_\textbf{indice} \end{lemma} It turns out that the indice ...
32
votes
3answers
32k 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?
17
votes
2answers
2k views

Improving typesetting of sums with long limits

This piece of code \documentclass{article} \usepackage{mathtools} \begin{document} \[\smashoperator[r]{\sum_{s=n-t+1}^{j-1}}s-(n-t)=\sum_{s=1}^{j-1-(n-t)}s=\frac{\bigl(j-1-(n-t)\bigr)\bigl(j-(n-t)\...
39
votes
2answers
50k views

Big integral sign

Is there a possibility to draw large integral signs? I have found the package bigints but I have the feeling it is not very professional... Any better idea?
16
votes
3answers
5k views

Typesetting a Row Vector

In the question typesetting a column vector, a very nice solution was given for typesetting a column vector with an arbitrary number of rows. I am attempting to modify the code to produce row vectors ...
56
votes
2answers
13k views

What is the difference between \mathbin vs. \mathrel?

These seem to be very similar as they both separate two operands. When would one be used over the other? Is there any difference in the math spacing surrounding them? How would the spacing in these ...
7
votes
2answers
1k views

inverted breve accent in math mode

Is there a math mode accent giving an inverted breve? I have tried \stackrel{frown}{x}, but the alignment and spacing are all wrong when compared to \breve{x}.
75
votes
3answers
278k views

Big Parenthesis in an Equation

I have an equation contained inside \[...\], which automatically makes a \sum with sub- and superscripts turn big--so that the summation sign looks awkward inside parenthesis. Any idea how to make ...
17
votes
4answers
21k views

Diagonal dots spanning multiple lines/columns of a matrix

I'm filling in large sparse matrices, for example \begin{bmatrix} 0 & -2 & 1 & & -1 & 2 \\ 2 & \ddots & \ddots & \ddots & & -1 \\ ...
5
votes
2answers
3k views

Interior product (contraction) symbol

In differential topology and linear algebra, there's an operator called the interior product, denoted $\iota_X(\omega)$ or alternatively with some other "half box" like operator $X_|\omega$. Does ...
34
votes
4answers
9k views

Numbers outside Math environment

Should numbers inside the text be placed inside a math environment? For example, if I am writing ...indent code by 4 spaces..., should I write it this way or ...indent code by $4$ spaces...? ...