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

19
votes
4answers
4k views

What's the best way make an “augmented” coefficient matrix?

When studying systems of linear equations, it's nice to remind people that the last column of the coefficient matrix holds the constants. This is often done in books by putting a vertical line ...
3
votes
1answer
33 views

Change \newcommand behaviour based on the environment

I'd like to define a command \Lm, such that if used in a maths environment it is replaced with \mathcal{L}, but when used outside of the maths environment it would be replaced with $\mathcal{L}$. This ...
3
votes
3answers
47 views

How do I get Libertine + Libertine in math mode + historical ligatures + french-style?

I would like to write a document using: Libertine; Libertine in a correct math mode; Historical ligatures; French style of mathematics (upright greek letters and capital letters). I know I should ...
1
vote
2answers
51 views

newcommand for $\frac{\mathrm{d}^4q}{\left(2\pi\right)^4}$

Can you give any hints on how to define a new command that writes $\frac{\mathrm{d}^4q}{\left(2\pi\right)^4}$ with the options that one can write $p$ instead of $q$ (say) and also if one could ...
6
votes
2answers
65 views

Vectorization operator

How can I represent the vectorization of a matrix A (i.e, vec(A))? I am talking about this simple operator:
6
votes
1answer
42 views

Ignoring specific ampersand formatting on a specific line of an align block

I want to typeset a number of equations with some alignment constraints, but I want to partially ignore them on certain lines. An example formatted text might look like the following when it's ...
4
votes
1answer
114 views

Bad math font quality in PDF

I have a problem with bad font quality that only affects "math" environments. I am writing a document with lyx 2.0.2 (OS: Ubuntu). The chosen class is "report". Since the normally used fonts were ...
8
votes
1answer
322 views

siunitx: Bold single numeric cells

I'm struggling to make a single numeric cell in an siunitx table bold. (A similar question for making a whole column bold is available here.) I want to define a simple macro which I can set for the ...
9
votes
3answers
146 views

Set bullet instead of dot using \dot

I would like to place a bullet in the same way that $\dot{x}$ places a dot above x. Does anyone have a clue?
0
votes
0answers
44 views

Write above the symbol math “subset”

Like the symbols "bigcup or bigcap" in LateX, I'd like to write above the symbol subset. I have try to use the displaystyle command, but it doesn't work ! Here this is a snipset of my try : ...
4
votes
5answers
82 views

Right superscript dot

I would like to achieve the following: a dot right of an expression with this minimal example \documentclass{article} \usepackage{amsmath} \usepackage{accents} \newcommand{\dotr}[1]{% ...
1
vote
1answer
92 views

Solutions in exam class

I'm trying to write up solutions to some exercises, using the exam class. In order to align equations correctly, I'm also using the aligned environment from amsmath. To avoid too much repetitious ...
2
votes
3answers
74 views

how to arrange the place before a pair of parentheses indicating a note in math mode?

I need write some formula. I don't know how to choose the |space| as below: $a_1=S_1$, $a_n=S_{n} - S_{n-1}$ |space| ($n > 1$) (Maybe $a_1=S_1$, $a_n=S_{n} - S_{n-1} |space| (n > 1)$ is ...
4
votes
1answer
51 views

Math-mode kerning/spacing of letters

Take the following two equations: \begin{equation} o^{AR}_{i,t} = w^{AR}_i x_t + o^{AR}_{i+1,t-1} \end{equation} \begin{equation} o^{MA}_{i,t} = w^{MA}_i x_t + o^{MA}_{i+1,t-1} ...
2
votes
2answers
51 views

How to adjust the blank space between the top of the left curly brace and the contents?

I want to type a system of equations delimited by the left curly brace. And I tried using the \left{ with aligned, and cases, and array, and numcases. But there are some difference between the results ...
1
vote
1answer
35 views

split doesn't want to split \left and \right [duplicate]

In short, I have : \begin{equation} \begin{split} a = & \left | \dfrac{b}{c} \\ & + \dfrac{d}{e} \right | \end{split} \end{equation} and it complains that I want to split \left and ...
10
votes
4answers
166 views

Using commas in mathematical formulas

I need write some formula, but I don't know how to arrange the comma's place. $p,\ q\in N$, blabla $0<a,\ b<1$ blabla $i,\ j=1,\ 2,\ \dots,\ n$ or $p,\;q\in N$, blabla $0<a,\;b<1$ ...
5
votes
3answers
106 views

How to deal with the size of the exponential type function's argument?

I have the following function in a report of global size 12 : $Q= \rho V c_{p} \left( T -T_{\infty} \right) [ 1-e^{\frac {h A_s}{\rho V c_{p}}t}]$ As one would expect, the exponential function's ...
8
votes
1answer
95 views

Change the size of only a part/subset of a single equation

For example, I'd like to do: $Q^{r<1}$ but with the r<1 having a much smaller font size than the Q. Of course r<1 will naturally have a smaller size since it is a superscript, but I want ...
3
votes
1answer
61 views

Underlining fractions

I need to be able to underline equations involving fractions, which are aligned using the alignedat environment from amsmath. To be able to underline at all, I'm using the solution from this question ...
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
2answers
47 views

\setbox containing maths interferes with surrounding math mode in XeTeX

I encountered what might be a bug in XeTeX (but I would be glad to be proven wrong) while chasing a strange interaction between bytefield, unicode-math, and mathtools. In general, I do not expect a ...
0
votes
0answers
27 views

Identify a math script font [duplicate]

Today I saw an amsart article with the following script "I" in it: But I can't identify which font it is. All math script fonts I know are \mathcal, \mathscr, and \mathfrak, but none of these ...
1
vote
0answers
39 views

Latex packages / templates for maths exercises

I'm enrolled in a mathematics course where we are supposed to return our solutions to weekly exercises as PDF files. There seems not to be any general official guidelines other than "it's legible", ...
4
votes
1answer
133 views

Size Math font – Define different sizes for Display and Text Equations globally

I have a rather long document with plenty of maths and equations. As the equations are quite long I have chosen to use 8pt for equations in the display mode instead of the 10pt normal size. ...
4
votes
3answers
2k views

Large braces to specify condition in a set

How do I define this in LaTeX - I am writing a description of a set, and I need huge braces because I have lot of clauses to fit in, and it will take more than 1 line. For example: A = \{ (x,y,z) : ...
10
votes
2answers
74 views

How can I use \lVert and \rVert norm symbols (‖x‖) with the Iwona math font?

I want to use \lVert and \rVert to denote the vector norm. With Computer Modern this works quite fine. But when trying to use Iwona as a math font, I run into trouble: \documentclass{standalone} ...
6
votes
1answer
92 views

Wrong spacing in math-mode

Consider the following example. (The code is not my own.) Code \documentclass{article} \usepackage{mathtools} \usepackage{siunitx} % Subscript text directly in math mode. \makeatletter ...
2
votes
1answer
28 views

dot2tex and math mode

I have successfully installed dot2texi but I'm facing an issue with the math mode. The sign (_) in math mode works fine however other symbols do not work. For example it ignores the bar over b in the ...
19
votes
2answers
815 views

Proper use of \mathchoice

I am trying to learn how to use \mathchoice. Before the solution was posted for Non-invasive replacement for \fbox?, I attempted to use mathchoice to adjust the size of the parameter before ...
6
votes
1answer
95 views

Decimal comma: extract one feature from babel-spanish

\usepackage[spanish]{babel} makes $12.34$ to print "12,34", not "12.34". It doesn't change dot to comma if one says for example $x.y$. Can I use only that feature from babel package, and still use ...
8
votes
1answer
97 views

LaTeX math textbook conversion to ebook/Kindle

I'm looking to buy a very math-heavy textbook (LeSage's Spatial Econometrics). The Kindle version is about $20 cheaper. Normally, I would be happy with the Kindle version, but I'm nervous about how ...
18
votes
3answers
330 views

How to capture the current math style?

\mathchoice helps to distinguish between math styles: \mathchoice {<something in \displaystyle>} {<something in \textstyle>} {<something in \scriptstyle>} {<something in ...
4
votes
3answers
48 views

Character with wedges over and under

How can I have this character, I need f and U ?
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 ...
4
votes
1answer
56 views

Setting a column of an align environment at a fixed distance from the margin

I'd like to set proofs in the style shown in this answer but with the right column at a constant distance from the left margin, so that the explanations show up consistently located in the many proofs ...
5
votes
3answers
118 views

lining figures in tables and math, old style figures in text

I’m using TeXLive 2012, up to date on Ubuntu 12.10. When I use the libertine package with the option osf and newtxmath for math fonts!, I get oldstyle nombers everywhere, but I only want to use them ...
0
votes
2answers
59 views

How change math font size in power?

How can I change the font for power such a way that the power symbol is rendered much smaller than the number 3 in the following formula? I need to sum (necessarily with \displaystyle) was much ...
4
votes
1answer
53 views

Smaller font for < sign

I have a table where i report times. Some elements are very small and I would like to write $<1\mathrm{ms}$. However, if I do so, the < 1ms will occupy even more space than a three digit number ...
9
votes
2answers
100 views

Mixing math character classes (e.g. \mathord to the left and \mathrel to the right)

It is possible to have a symbol or group behave to the left as if it had one particular math character class and to the right as if it had another? One typical case where this comes up is when one ...
5
votes
5answers
129 views

Special character “dot over dash” [duplicate]

I need the symbol "dot over dash" or "dot over minus", but I am unable to find it in a list of LaTeX symbols. When composing it via \dot{-}, the dot is so hight, that it looks weired. It should look ...
6
votes
2answers
99 views

Missing final brackets (in one equation { and in other - ]) in the equations

This is my first question on tex.stackexchange, so the formatting will be terrible. I've got a problem with three lengthy equations - the closing brackets, in all three formulas, are not displayed. ...
4
votes
1answer
58 views

Increase the space between operator in subscript/superscript

I need to increase the space globally between operators in subscripts/superscripts. Example: \sum_{x=4} I need a little more space before and after the = symbol in the subscript. It is required ...
5
votes
2answers
125 views

How to make a traditional division

How to make the traditional division? Like that: a |b_ r c
6
votes
2answers
81 views

Less aggressive automatic paren stretching with \left

\left and \right are convenient but sometimes they're a bit overeager in stretching the parentheses. In that case we can manually use \bigl, \Bigl, etc. I have defined a new command like this ...
1
vote
1answer
47 views

Two columns of equations, aligned and just one number per column

I'm writing a two-column document, and I want to display two sets of large equations floating at the top. Each equation set should be aligned within the same column, and only the two top equations ...
4
votes
2answers
149 views

Is there a package for doing this in LaTeX?

I'd like to do something like this What would be the code? does it use a package for doing the $$f\mapsto f\circ \pi$$ part?
11
votes
4answers
3k views

Evaluation of Differentiation and Integration

I was having some thought about what would be the syntax to make the end point evaluation of derivatives or integrals. Such as making the | with the two end points of evaluation on the top an bottom ...
12
votes
3answers
277 views

Repeated division - Converting from base 10 to another base

I am teaching how to convert from one base to another base, however, I can't find a way to do something like this: I know little about Tikz, the only thing I have been able to produce is a simple ...
3
votes
2answers
223 views

“Missing $ inserted” although I have $

I have problem with this $ \text{bredden = x \Leftrightarrow längden = 3 \cdot bredden = 3x} $ I get a Missing $ inserted error, although I have $.

1 2 3 4 5 36