{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
140 views

Math environment $..$ in tabular works in some cases

I'm new in this, sorry for using noob phrasings (and possibly including too much/little info). I would think I'm covered from usepackages, but can't get all my math environments in tables to work - ...
1
vote
2answers
71 views

Number the equations [closed]

I am a new user of latex, and I have the follow question. How can enumerate the equations that I write in a document ad during the text write the number to a specific equation Currently I can write ...
17
votes
1answer
39k views

Best LaTeX Templates for books and lecture notes

I have written and submitted a lectures series in mathematics in arXiv, arXiv:1211.3404. Its format is book, but I have some difficulties with it. For example for page numbering, indexing, etc. I am ...
6
votes
1answer
61 views

Having regular text within a lemma

I want the following lemma: Given k\"ahler metric $g_{\al \overline{\be}}$ with associated Ricci curvature $ \text{Ric} =R_{\al \overline{\be}}$ the Ricci form defined by \begin{equation*} \p ...
5
votes
1answer
71 views

How can I use \foreach in math environments?

I'm looking for a way to generate in a loop the rows of an align environment, or IEEEeqnarray or some such thing. I can see that \foreach works in math mode (inside \[ \] e.g.), but something like ...
1
vote
1answer
93 views

How do I do a contour integral in complex analysis [duplicate]

I want to do the integral sign over the sign gamma (integrating around a path gamma)
3
votes
2answers
62 views

$v$, $w$ variant with stix package

Is there an easy way to get variants of $v$ and $w$ in using the stix package? I would like more "pointed" versions similar to the classic Times italic font.
1
vote
0answers
43 views

Right-aligning specific text in math-mode

I got a long code to place a text on the extreme left (by defining a new command \beforetext) in all math modes, could someone please provide similar code to place a text on the extreme right? Also I ...
2
votes
1answer
45 views

Monospace font in cases environment

I have this code: \[ text \begin{cases} text, text \rightarrow text\\ text \rightarrow text, text, text, text text \end{cases} \] ... \[ text \begin{cases} text text \rightarrow text, text text, ...
1
vote
2answers
675 views

How to combine another sans-serif math font with helvet for text?

The existing question Typeset WHOLE document in sans-serif, Including Math Mode uses the sansmath package to use helvet glyphs also in math-mode. But being not designed for use in math mode, the ...
11
votes
3answers
566 views

Subscript like math but without the minus sign

There are several questions regarding subscripts on Stack Exchange, but I did not find an answer to my specific problem. I want to write something about P_1 ... P_n and then about R_en-1 ... R_en-q. ...
96
votes
7answers
116k views

Command for argmin or argmax?

How can you get the argmin or argmax in Latex? Two solutions I found are: \underset{x}{\operatorname{argmax}} \DeclareMathOperator*{\argmin}{arg\,min} Any other ideas? [1] ...
3
votes
1answer
141 views

When to use upright letters in math mode

what are the conventions when to use upright letters in math mode? Example: \begin{align} W_{mag} = \frac{1}{2}LI^2 \end{align} should the inductivity and the current be typeset in ...
2
votes
1answer
148 views

Using displayed cases

I only installed LaTeX just over 3 weeks ago and I've written about 20 pages of Maths coursework. I have a bit of an issue with arrays - I am trying to use something like dcases to show a piecewise ...
3
votes
4answers
179 views

“Such that” typesetting for multi-variable equation having two variables after the pipe

What if I have a multi-variable equation and I want to put two 'given that' conditions? For example, say an equation contains two variables 'x' and 'y' and I want to state its values after the pipe, ...
3
votes
2answers
134 views

How to define variables with white space

I'm writing a LaTex document in which I must refer to some variables in some points of the document. In order to ensure that each variable is written in the same way, I defined a LaTex variable for ...
8
votes
3answers
6k views

How to export a equation as a image without background?

For example, if we have a equation on a file like: \documentclass[12pt]{standalone} \usepackage{varwidth} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath, amssymb, ...
2
votes
1answer
43 views

\stackrel{-}{x} of different letters makes overline at different quote

I'm writing my PhD Thesis. I have a stylistic problem with an equation. These are the code and the output (the red lines are mine). Per ovviare a questi due inconvenienti si è ritenuto opportuno ...
4
votes
1answer
313 views

How can I add more than 4 dots to a derivative?

I have 2 questions : What is the maximum limit of dots that I can display above a variable to indicate its derivative ? (I read it somewhere that 4 is the limit. Still not sure) How do I print more ...
3
votes
1answer
42 views

What is “\SelectTips{a}{b}” (and how to increase the head of an arrow's head?)

At is \SelectTips{a}{b} and is the meaning of {a} and {b}? I know that the first one changing the type of the arrow, but what is the second one? The value there can be only 10,11,12.... And if I can ...
6
votes
1answer
73 views

How can I number the different equations in one line?

I want to write the different but similar equations in one line, just like the picture shows, I know maybe the \tag command can work, but I have no idea on how to make the numbering automatic.
2
votes
2answers
78 views

Enable \ifmeasuring@ flag

Apparently the \DHLhksqrt macro in the MWE below measures its content 20 times: Questions: Where exactly can I put the \measuring@true and \measuring@false so that I get the count of 1? If you ...
2
votes
1answer
40 views

Subscripts and superscripts on accented math characters [duplicate]

\documentclass{article} \begin{document} ${x_i}^j$ works as expected but not with an hat as in ${\hat{x}_i}^j$. The way I found to make it work is $\mbox{$\hat{x}_i$}^j$. Is there an nicer ...
0
votes
1answer
74 views

Write two equations with their individual equation numbers in consecutive lines

I have to write two equations in two consecutive lines and each equation should get its equation number as well. When I write using the following method, both the equation appears in the same line ...
3
votes
2answers
39 views

equation align inserts whitespace

I'd like to make equations that align like this: x = y x z = a x b Here's an MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} x &= &y \times ...
0
votes
0answers
26 views

LaTex says it should be math mode, but I don't know why [duplicate]

I'm writing a thesis text and got several error messages telling me always I have to insert $, which if I understood correct starts and end the math modus. However, I want to stay in the text modus. ...
2
votes
1answer
51 views

Missing $ inserted with \left and \right

Hello everybody I am a new Latex user and I try to write a my first presentation starting from a templete. When I try to make a slide with this code \subsection{Main Result} \frame { ...
7
votes
2answers
334 views

Automatic reduplication of equal sign in the beginning of broken formula

Suppose we have the following code \documentclass{article} \begin{document} $a=b=c=d=e=f=g=h=i=j=k=l=m=n=o=p=q=r=s=t=u=v=w=x=y=z$ \end{document} which produces the following result I want to have ...
4
votes
1answer
85 views

How can I improve my partial derivative in latex?

I am writint notes with a lot of partial derivatives. When the function to be differentiated is long the variable am differentiating with respect to (say t), \begin{equation*} \pd[2]{}{t} ...
8
votes
2answers
52 views

Set the font size for a special math symbol by `\mathscr`

I need to manually set the font size of a special math symbol by \mathscr for which the \fontsize{<size>}{<size>}\selectfont does not work. Here my sample is: \documentclass{article} ...
5
votes
1answer
71 views

How to get the straight vertical line next to derivatives?

I am trying to get this to display: My current attempt is : \begin{equation} \begin{align} \frac{\dd{x_c^{*}(t,u)}}{\dd{u}}=\gamma + \alpha \lambda \{[r(t)-x(t,0)]\\ + ...
2
votes
1answer
44 views

Spacing before parenthesis in math mode

Suppose, I have something like \overline{q}_{l m_1}'(i) \overline{q}_{l m_2}'(i) \overline{q}_{l m_3}'(i) Now, this renders to which looks rather unpleasant. How can I reduce the spaces in front ...
3
votes
2answers
153 views

How to display an integral equation in LaTeX?

I want to display something like: My current attempt is : \begin{equation} Z=min E \int_{0}^{\infty} exp(-\rho t)\{ \alpha^2[r(t)-x(t)]^2+[\lambda ^ {-1}\frac{\dd{x(t)}}{\dd{t}}]^2 \} \dd{t} ...
6
votes
1answer
32 views

How to put the asterisk on the end of max function rather than right above it

I am writing my report using TeXnicCenter, and it has been going very well. However, I want to write max* in the equation mode, but all i code get is the asterisk right about the a in max if I ...
4
votes
2answers
42 views

Break line in $ $ mode [duplicate]

I have a long list of vectors written between the signs $ $, the problem is that the list is so long it does not fit the page. I want to make the list break at some point and continue in the following ...
32
votes
4answers
8k views

German language: use of comma in numbers

In German the comma rather than the period is used as a decimal separator and the dot is used as a thousands separator: 12.345,67. The comma creates some unwanted space when used as in $12.345,67$. Is ...
6
votes
1answer
45 views

Hiding an equation tag but still using it for referencing

I use the semantic package for displaying natural deduction-style inference rules in equations. The \inference command has an optional argument which can be used to tag rules: \inference[Rule1]{A}{B} ...
8
votes
1answer
44 views

How to define ReDeclareLargeMathOperator

I want alter an existing math operator by applying a macro to it. In the MWE the \ReDeclareLargeMathOperator applies the \ProcessSymbol macro which in this example changes the color of the symbol as ...
3
votes
1answer
58 views

Why \ell produce a character like grave in PDF?

\`{}$\ell$ \bye produces a PDF, then I search ` in it, finding two, why?
4
votes
3answers
283 views

How to get big curly braces for an equation with 3 parts?

I am very new to LaTeX. I want to display this: How should I go about doing this?
22
votes
6answers
20k views

Typeset mathematical symbols also in sans serif font?

For creating the graphics for my thesis (function graphs, flow charts, line art sketches) I've chosen to use the sans serif font by \renewcommand\familydefault{\sfdefault} However when I use ...
10
votes
3answers
2k views

Writing equation in LaTeX: some part are mysterious to me :)

I would like to write in LaTeX two equations: and I do not know how to do that...Particularly, how to write stuff underneath the max function. And also how to have this line over Wi or Wj. PS: ...
5
votes
1answer
875 views

Math mode in knitr

How do one use a math-mode in knitr? For example as a label for X-Y axis: <<fe, echo=FALSE, sanitize=TRUE, dev="tikz">>= plot(1:10, main="${}^{57}Fe$", xlab="$\\\\lambda$", ...
1
vote
1answer
41 views

Avoid splitting of math expressions in text [duplicate]

I am writing a math expression, $P = \omega \tau$, in the middle of my text, and LaTeX splits it such that "P =" is on one line and "\omega \tau" is on the next line. I would like the whole expression ...
2
votes
2answers
217 views

Error when trying to change imaginary unit's style

I want to have a special symbol for the imaginary unit i, but I also need the usual character for the letter i in the same context. So, I tried to change the style of the imaginary unit by setting ...
14
votes
7answers
16k views

A symbol for the quotient of two objects

One needs often a symbol to denote the quotient of two (algebraic) objects. (e.g. quotient by a subgroup, subring, submodule etc.). In simple cases people use A/B. But when both A,B are complicated to ...
9
votes
4answers
3k views

Umlauts in math mode

I'm trying to use German umlauts in math mode but get the known error: LaTeX Warning: Command \" invalid in math mode on input line ##. So I could think of two possible solutions: Use \text instead ...
1
vote
1answer
23 views

Setting a question font / style that will apply to text and inline math environment?

I have defined two commands for the font/style of questions and key concepts in my notes as follows: \newcommand{\key}[1]{{\bfseries\sffamily#1}} \newcommand{\qtxt}[1]{\textbf{#1}} Where the ...
1
vote
1answer
46 views

Spacing around variables in math-mode

I'm using mtpro2 for math. In the original math-alphabet (the font mtpro2 uses), the letters seem to have greater spacing around them than what I would like. For example: $ GM = tc^3 $ produces ...
2
votes
1answer
77 views

Correct way to write words with - in formula

I am wondering if there is a generally preferred way to write words with - in formula. For example: $k-distance$ or $k \textit{-} distance$ of maybe something better?