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

3
votes
1answer
58 views

Changing math font in Classicthesis

I'm using the popular Classicthesis template for my thesis. I like almost everything of this template apart from the math font (it should be the one loaded with Mathpazo) and since I have to write ...
1
vote
2answers
82 views

Piecewise-defined functions

I'm trying to write these four piecewise-defined functions. I wrote this code: \begin{equation} \theta = \begin{cases} \theta r + Se \left( \theta s - \theta r \right) & Hp < 0 \\ ...
35
votes
2answers
19k views

Vertical Spacing within align environment accounting for fractions

The default vertical spacing within an align environment seems very tight when there are fractions in the lines. I am aware of three manual tweaks that can be applied: Adjust the value \jot. ...
3
votes
3answers
213 views

How to put a character inside a square

In a math formula, is there a way to put a number inside a square, as a decoration? I.e., instead of $\bar{1}$ or $\widehat{1}$ I would like to write something like $\insquare{1}$ and have the “1” ...
1
vote
1answer
264 views

How do I get rid of italicized letters when using $$?

Let's say I want to type: Hi, my name is {Mika} When I use $$ on both sides: $$ Hi, my name is {Mika} $$ It would be italicize and the brackets {} would go away. How can I prevent that?
9
votes
1answer
350 views

Incompatibilities with and alternatives to nath

I just discovered the existence of nath to auto-size mathematical expressions. But I also read that it has many incompatibilities and it also doesn't seem to be maintained anymore (last update was ...
1
vote
1answer
34 views

Scaling the mtpro2 fonts to work with Baskerville

I'm using the MathTime Professional II (mtpro2) fonts with the Monotype Baskerville family. The font used for math letters in mtpro2 is Times New Roman Italic, and this can look quite good when ...
4
votes
1answer
107 views

Alphabet w and little omega: A better way to distinguish?

I am working on a paper where I use lowercase "w" and the lower case Greek letter omega a lot. The rendering of both of these alphabets is very similar, and causes much confusion to the reader. Is ...
1
vote
1answer
30 views

\text{} error in mathmode

When I compile the following code: \subsection{Force} A force accelerates that standard body by exactly $ 1 \text{ m/s^2 } $ is defined to have a magnitude of $ 1 \text(N) $ The direction of a ...
0
votes
0answers
25 views

Modify/Remove italic correction in math [duplicate]

Is there any way to modify or remove the italic correction in all math environments globally? I don't like the uneven spacing it causes when there are multiple variables multiplied together or ...
28
votes
6answers
7k views

Faster way of writing \mathbf

Is there a quicker way of doing boldface in math mode instead of typing out \mathbf{} each time? (It gets cumbersome when you denote simple vectors with boldface...)
3
votes
1answer
47 views

Latex \binom with other types of brackets

I want to write (in math mode) \binom{a}{b} with square brackets [ I know that {a\brack b} exists for this, but somehow it doesn't work with me. Is there another way to generate what I want?
2
votes
1answer
40 views

Strange characters appearing with alpha and beta [closed]

I used a python regex file to edit a section of LaTex that contained alpha and beta. Here it is: Jacobi & $\JacobiP{\alpha}{\beta}{n}@{x}$ \MarkDefn[P z 3 - ...
1
vote
1answer
55 views

Derivatives are sized differently with commath

I'm writing a derivation in an upper level physics class and I use derivatives extensively. I'm using the commath package \od{}{} command and they are being sized differently in different places. ...
29
votes
6answers
23k views

Typesetting of negative versus minus?

I've occasionally seen a negative (when a number is simply negative, not a subtraction), typeset as negative sign that's slightly skinnier and above the centre line of text. Is this proper notation ...
1
vote
0answers
20 views

\floatfoot and equations

I am using \floatfoot to creates notes for a figure in a paper. I would like to include an equation in the notes for this figure. Specifically, I am trying to use the following code: ...
1
vote
0answers
40 views

How to centre underaccent under letter?

Here's the M(not)WE: \documentclass{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{accents} \renewcommand{\vec}[1]{\ensuremath{\mathbf{#1}}} ...
3
votes
2answers
37 views

Flush Text to the Left in an Unaligned Centered Equation

I am looking for a way to write several centered equations with a left-aligned text on each line. In other words, I would like to mix the functionality of flalign with gather (so the first column ...
8
votes
1answer
70 views

Automate correct spacing after ! in math mode

$(2n)!/\bigl(n!\,(n+1)!\bigr)$ $${52!\over13!\,13!\,26!} + 33!! - y$$ $(2n)!/\bigl(n!(n+1)!\bigr)$ $${52!\over13!13!26!} + 33!! - y$$\bye How could we automate the spacing after !? As explained in ...
0
votes
0answers
41 views

How to typeset a math proof in beamer that displays line by line

I'd like to display a step-by-step proof of a mathematics result. I want to have steps following other steps inside amsmath's align environment, except I want to \pause the slide after each line in ...
6
votes
1answer
84 views

Positioning of \dot

When adding a \dot above a symbol defined using glossaries, the dot is misplaced. Presumably, the italic correction is not working as expected. How can I fix this? % arara: pdflatex % arara: ...
1
vote
1answer
58 views

mathclap: undefined control sequence

In my preamble I have loaded the amsmath and geometry package and many others that I read are useful when using \mathclap. This is my preamble \documentclass[a4paper,oneside,abstracton]{scrartcl} ...
0
votes
0answers
46 views

How to type the derivative f' in Latex? [duplicate]

I'm trying to use \f' but it doesn't work. Anybody please help?
3
votes
0answers
28 views

dot2texi: Use latex labels (texlbl) with clusters

I'm using the dot2texi package to include dot graphs in my tex files. With nodes, I can use texlbl="$n_1$" to create a label n1. I want to have tex labels also on clusters: \documentclass{beamer} ...
8
votes
2answers
249 views

Put a text into Brackets (no math mode)

I want to make something like this. Put a text into Brackets (can be (). {}, [] ..., whatever type is the easiest). I am looking for an easy way. There are a lot of similar question on this site, ...
0
votes
2answers
126 views

How many LaTeX characters have Unicode equivalents, and which characters and mathematical character combinations cannot be represented by Unicode?

I would like to know how many LaTeX characters, including all the special math symbols, can be represented by Unicode. Would I be right to say, that nowadyas, LaTeX's strangths over Unicode are mainly ...
7
votes
2answers
96 views

How do I modify the placement of the prime symbol?

Some colleagues and I are writing a series of math notes and the house style (not up to us) is to use the Gotham Book family of fonts. So our math italic font is Gotham Book Italic. We're noticing ...
2
votes
0answers
47 views

How should I typeset the complex conjugate of a subscripted variable?

I have a variable $z_{2n+1}$ and I want to write the complex conjugate of it. I am not sure which of the following should be preferred: \bar{z}_{2n+1}: The bar is not so large and may be hard to ...
0
votes
1answer
38 views

XeLaTeX won't use superscript-table of OTF

The following MWE will show you the problem I encountered today. As asked, the problem I see, is that in math-mode the numbers aren't displayed as in the first line. David Carlisle stated, that this ...
21
votes
5answers
25k 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, ...
5
votes
1answer
27 views

Declare non-stretching non-pairing delimiters

How do I define my own delimiters from arbitrary symbols for math which have these properties: They have a fixed size. Unlike the usual delimiters they do not stretch to adapt to the enclosed ...
6
votes
2answers
549 views

A comma decimal separator that is bigger than a dot

\documentclass{mwrep} \usepackage{amsmath} \begin{document} Check:\\ with "," $0,125$\\ with "." $0.125$ with commas: \begin{equation} P= \begin{bmatrix} 0,1 & 0,3 & 0,0 & 0,6 \\ ...
3
votes
2answers
110 views

How to save space displaying “max x \in [a,b]”?

I just create a summary for usage in my exam and there are a lot of information worth to be on this summary page. k=1,...,n below max is a waste of space (I have more than 10 of these wasted lines ...
7
votes
3answers
211 views

All letters upright in math mode (equivalent to \rm)

I'm using the document class scrartcl and I'm looking for a way to write equations in which all letters are upright like it appears when using \rm. \begin{equation} \rm A_{something} + ...
0
votes
1answer
53 views

LaTex error- !Paragraph ended before \split was complete

I am using amsmath package but keep getting errors with the following: \begin{split} \[ A_R&=\frac{4}{9}+\frac{20}{81}+\frac{100}{729}+\frac{500}{6561}+\dots \\ ...
6
votes
1answer
240 views

French spacing for semicolon in math mode

When writting mathematics in a french document, you should use the semicolon instead of the comma to separate the coordinate of a vector or a point (for example). The problem is that in math mode, ...
0
votes
1answer
59 views

What does it mean for undefined control sequence?

When I use $(LM)^\ast = (LM)^(0) \ucup (LM)^(1)\ucup (LM)^(2) $ I receive an error: --this is a undefined control sequence I need to use (LM)^*= (LM)^0 \ucap (LM)^1 \ucap.. and so on. How ...
5
votes
2answers
4k views

LaTeX vs pdflatex on \neq

Using LaTeX for .dvi output produces unexpected result for \neq, instead of the \neq, it's displaying = though pdflatex provides the correct symbol. Am I doing something wrong? I'm using ...
4
votes
2answers
137 views

For Hom and H*(X,Z) — which fonts? [closed]

This is a question about style, I am debating whether the math operator \Hom should be just \DeclareMathOperator{\Hom}{Hom} or if it should be some variant like ...
0
votes
1answer
67 views

How to insert at symbol ( @ ) in equation? [closed]

I need to insert an at symbol, @ , which I know how to do in text, but can't figure out how to do in mathmode. Detexify gives me only text mode symbol for LaTeX.
2
votes
1answer
38 views

Regression Functions and Variable Names

I would like to present a regression function in my LaTeX Document that includes actual variable names from my (Stata) code as its covariates. This screenshot gives an example of what I want it to ...
10
votes
4answers
363 views

How to write \slashed, \mathcal and \mathring at the same time?

I need to write something like \slashed{\mathcal{\mathring{S}}}. I tried to write it in several orders, but none of them gave me the wanted result. I found out that I have to write ...
5
votes
2answers
112 views

Format a variable in math mode dependent on its case

I have a special kind of variable in my equations which I want to be formatted dependent on its case (lower or upper). I already tried using the package stringstrings, but there seem to be problems ...
7
votes
1answer
3k views

indexed letters inside circles

I'm currently using this code \raisebox{.5pt}{\textcircled{\raisebox{-.9pt} {f}}} to get I'm trying to index the function f inside the box, with say $f_{n}$ but \textcircled doesn't seem to ...
8
votes
2answers
259 views

Centering a slash (not) over a (mathematical) glyph?

My aim is to construct a relational symbol which is graphically equivalent the standard infinity sign (coded by \infty) crossed exactly in the middle of it. Yet I am not able to overcome something. To ...
4
votes
1answer
134 views

Missing { and } inserted

pdflatex keeps complaining about braces but they are balanced. I read that some environments start math mode automatically, but I don't think I'm using them. Here is the code: ...
0
votes
2answers
158 views

What does double backslash in LaTeX mean?

What does double backslash in LaTeX mean ? (please see example below) label 2-1 & label 2-2 & label 3-3 & label 4-4 & label 5-5 \\ \verb= http:\\www.chinatex.org=\\ some line have ...
-1
votes
1answer
70 views

How can LaTeX insert math formula in text paragraph?

If I want to insert a math formula, usually just a math symbol, in text paragraph, LaTeX put the formula to the next line and put it in the middle of the line? How can I just insert between text?
6
votes
4answers
156 views

Unit column in table with square brackets and siunitx

The header might be a bit weird. But I would like to add a specified column type that is reserved to units. For instance, take a look at the following working example: ...
4
votes
1answer
87 views

Contour integrals of different kind

I'm writing a paper on general mathematics and I want to add some contour integrals. The basic command is $\oint$ which produces the known result: an integral with a circle in the middle. How can I ...