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

0
votes
2answers
57 views

Display inline sums

I am writing my thesis and I have some sums which are inline, and others which are part of equations. My questions is: is there a convention, an unwritten rule about how inline equations should be ...
5
votes
1answer
84 views

Renew command on mbox makes it freeze - Fix subscript size

I'm trying to change the font style of \mbox, but all my tries have failed. All commands I try either have no effect or make pdflatex recursively keep working and never finish and freeze. This makes ...
3
votes
2answers
37 views

Combine boldsymbol and widebar

I would like to have boldsymbol and widebar inside an equation combined as something like $\widebar{\boldsymbol\mu}$ However, while this compiles in my code, I only have a mu with a bar over it. ...
1
vote
1answer
83 views

Using `$$…$$` vs`\[…\]` [duplicate]

In order to center stuff in math mode, we can use either $$...$$ or \[...\]. Is there an OBJECTIVE reason as to why one is better than the other?
0
votes
1answer
32 views

`\center` and size of `\frac` in my code

\documentclass[a4paper,12pt]{article} \usepackage{amsmath} \usepackage{fullpage} \usepackage{secdot} \usepackage{setspace} \setlength\parindent{0pt} \title{\vspace{-3em} Quantum Mechanics} ...
5
votes
2answers
168 views

Square root in fraction space problem

I'm having some troubles with the square root symbol within a fraction. This code \documentclass{book} \begin{document} \begin{equation} h_4 = \frac{\sqrt{1.5 \gamma_4 -3.5}-1}{18} \end{equation} ...
4
votes
1answer
75 views

Brackets around multiple lines

I am trying to put big rounded brackets around some text that contains math formulas: Jede Teilfolge hat entweder unendliche viele Elemente von $\left( g_{2n}\right)$ oder $\left( ...
4
votes
1answer
36 views

Is it possible to make odd-numbered columns have implicitly a prefix {}?

Prefix {} is implicitly inserted for even-numbered columns of alignedat (and alignat). As a result, + (or -, etc) becomes a binary operator. The section "Left aligned" below \begin{alignedat}[t]{3} ...
14
votes
2answers
710 views

Does italic math originate from TeX?

When I look in old mathematical textbooks from the seventies and before, mathematics is always upright. Their use of italic letters in other contexts, however, shows that this is not because of ...
3
votes
2answers
94 views

Number a linear program on the left-hand side

I want to write a linear program which is numbered on the right-hand side, like it normally is, but which also has a number on the left-hand side. It will be more of a label instead of a number ...
0
votes
0answers
46 views

! Undefined control sequence \backsim [duplicate]

My latex file does not accept the command \backsim. This is what I wrote in the file: $ \backsim 2.5 \mu$ What is wrong?
2
votes
0answers
64 views

Writing mathematical notation in LaTeXDraw

I have drawn a graph in LaTeXDraw. I need to name the vertices of the graph as v_n (where n is subscript of v). In latex document it was easy, just $v_n$ was doing the work. But how can I do it in a ...
3
votes
2answers
52 views

How to get large parentheses with \tanh-function?

I want to show a function which includes the tanh of a fraction, i.e. \tanh(\frac{x - g}{h}) but which gives me the normal small parentheses. I already tried \tanh\(\frac{x - g}{h}\) but this just ...
9
votes
2answers
501 views

Root within square root symbol

how can I avoid that the following expression \documentclass[a4paper,fontsize=14pt]{scrbook} \usepackage{mathtools} \usepackage{lmodern} \begin{document} \begin{align} a = ...
7
votes
3answers
379 views

What is the correct way to typeset higher order time derivatives in LaTeX?

I am typing a series that involves higher order time derivatives, and I have two main problems. First, the subscript of the derived variable seems to move further away from it with the more ...
6
votes
4answers
189 views

How to color only a “tilde” accent on a letter? [duplicate]

I would like to color only a "tilde" on my letters. I read how to do this with Umlauts or other accent, but for my expression it seems different I think. Here is my expression : \widetilde{E}^w So, ...
1
vote
1answer
33 views

How to remove image boundary while using LaTeX in wordpress [closed]

I'm using LaTeX in my blog in wordpress but the formulas are coming inside a rectangular box. Please refer here. How can I remove them?
4
votes
1answer
95 views

Proper Mathematical Typesetting for a point?

I'm working on a document in LaTeX, and I was wondering what the proper typsetting for a point is? If my understanding is correct, bold capital letters are matrices, vectors have the \vec{} symbol ...
6
votes
1answer
125 views

sign for multiple $\Diamond$-product

I use $\Diamond$ as a product sign and want to have something like $\bigDiamond_{i=1}^{n}$ to note multiple $\Diamond$-products. Similar to $\wedge$ and $\bigwedge$ or $\vee$ and $\bigvee$. Is there a ...
5
votes
1answer
123 views

Is there a better and compact way to represent the expansion of products of polynomials?

Objective: to show the expansion process as readable as possible so we don't run the risk of misreading the coefficients of the corresponding terms of the expanded, long expressions. ...
3
votes
1answer
67 views

A centering problem in \begin{equation} … \end{equation} with svmono.cls

If you build the following code the first equation is not centered, unless you remove at least the last letter (x), while the second equation (longer) is centered. Note: the first equation begins with ...
0
votes
0answers
63 views

Locally change font style from sfmath to amsmath

I am using the package sfmath. It is rather hard to explain why, but the reason should not matter for my question. If it is required I can try to explain why I need sfmath. Nevertheless, the main ...
1
vote
1answer
55 views

pxfont upgreek… Why can't i use?

I'm trying to use pxfont upright greek letters in math as the way below but it doesn't work. When i write \alpha I would like to see \upalpha from px. My main font is libertine. ...
7
votes
1answer
280 views

pgfplots: Using Sans Serif Fonts for Numbers and Text (not Variables) in Figures and Diagrams

I want to use a sans serif font in figures and diagrams. This also applies to tables (related question). The normal text should remain roman (with serif). Here is the normal way one would try to ...
4
votes
1answer
101 views

How to add braces automatically after \hat (or \tilde, \bar) in emacs auctex math mode

When typing operators in quantum mechanics, there is a lot of stuff like "\hat{...}" going on. But in math mode, typing apostrophe+^ only gives \hat inside math environment. How can I modify the ...
2
votes
2answers
122 views

Difficulty with \flalign

Consider the following example. \begin{flalign} &Max Z=a+b\\ &Min P=c-d\\ &\mbox{subject to}\\ &a \leq 10\\ &c \geq 5 \end{flalign} When I run it I get the desired output, but ...
0
votes
0answers
19 views

Renew math operator [duplicate]

There is an already defined math operator inside TeX that I want to change it by another letter. I am just wondering what is the best practice. Below I give an example for the \Pr -> "Pr" command ...
1
vote
1answer
57 views

What is the correct way to properly align a split equation with continued parts prefixed with a binary operator?

Consider the following result with 2 methods. Don't hesitate to propose better ones if any. The question is: What is the correct way to properly align a split equation in which binary operator ...
6
votes
2answers
117 views

Creating a custom character that automatically adjusts size in math mode? [duplicate]

After a lot of searching, I finally found the .pdf's for the elusive Griffiths script r character used in his ubiquitous undergraduate electrodynamics book. I made a simple package that allows me to ...
4
votes
2answers
45 views

Left-align a split equation

I am trying to left-justify a split equation. I would like to have the first line left-justified, and have a hanging indent on the second line. I used flalign successfully for other equations that ...
6
votes
1answer
151 views

What's up with the spacing between letters inside $…$?

When I write $VSS$ in my LaTeX studio, it behaves it as if there is a space between V and S (i.e. V SS). Is there a way to fix this? I tried \scalebox{.85}[1.0]{$VSS$}, but it did not work well. ...
2
votes
3answers
97 views

Aligning a set of equations with one equation number

The following set of equations cannot be aligned from left to right. Since, I need to index them just with one number, I had to use split equations: \begin{equation} \begin{split} X={}^ 2 \bar{x} + ...
39
votes
4answers
3k views

What is the Necessity of $…$ Around Numbers?

I typed up an assignment with a lot of numbers in LaTeX and turned it in to my adviser. When he returned it to me with some corrections, one of which was a lot of $ around my numbers. I understand ...
3
votes
1answer
269 views

How to squeeze a formula inside a text in latex?

I type some formula in latex inside my text, but When I make it pdf I see it is not squeezed. How I can make it squeeze? See the attached, which shows the problem!
4
votes
2answers
105 views

Setting over- and underbraces outside an matrix formula

I want to typeset a matrix which consists of several submatrices. As they consist of some longer formulae I'd like to assign each a name. I tried to use \underbace and \overbrace. However now the ...
9
votes
1answer
331 views

Angle notation for complex numbers in polar form

I am looking for suggestions on how to typeset complex numbers in the modulo-argument form, sometimes called phasor notation. Have already checked Conventions for typesetting complex vectors and ...
6
votes
2answers
176 views

How to get a $^*$ aligned to the right

I use the term ^*\mathbb{R} in my thesis, and this works fine. However if i have something like x\in^*\mathbb{R}, the asterisk moves to the left, like it belongs to the \in sign. How do I prevent this ...
2
votes
2answers
185 views

Align a linear program

I want to write my linear program so that it looks like in this picture: meaning I want to have the following: text aligned to the left all the x_{j} variables to be one another the i= and j= ...
4
votes
1answer
54 views

Missing } Inserted?

I wrote \begin{align} $\lim_{x \to 2} f(x)$ &= $\lim_{x \to 2}\dfrac{2x^2-5x+2}{5x^2-7x-6}$\\ &= $\lim_{x \to 2}\dfrac{(x-2)(2x-1)}{(x-2)(5x+3)}$\\ ...
9
votes
2answers
126 views

Numbering equation using eqnarray*

I am using eqnarray to write long equations. However when I use it instead of equation environment the equations are not numbered. Can anyone help me to solve this. This is the syntax that I am ...
4
votes
2answers
122 views

Different style of permille sign

Hi all, I have found a publication using this permille sign with Times New Roman font. I have tried the textcomp \textperthousand and wasysym \permil commands but it does not yield this symbol. This ...
2
votes
0answers
53 views

Display math and tabular

I'm pretty new to latex and having some trouble. I have multiple math formulas which I'd like to organize on the page. i used: \begin{tabular}{p{6cm}p{6cm}} \[...\] & \[...\]\\ \end{tabular} ...
0
votes
1answer
40 views

Bad math environment delimiter in standalone class [duplicate]

Given a file master.tex: \documentclass{article} \usepackage{standalone} \begin{document} \input{sub} \end{document} and a file sub.tex: \documentclass{standalone} \begin{document} \[ 0 ...
9
votes
2answers
159 views

Is there a faster way to type sequences?

When I'm using sequences in an article, I always type things like (x_n)_n and (x_n^k)_n. However, that doesn't display the subscript after the brackets very nicely. I know that I can fix this by using ...
0
votes
2answers
45 views

Letters and numbers have a different dimension in subscripts

I am writing in math mode symbols with long lists of subscripts, that can either be letters or numbers. For example, I write something like \begin{equation} p_{51y_4y_3} \end{equation} to obtain ...
8
votes
3answers
95 views

Spacing for subscripts in mathmode with \textcolor

It is possible to use \textcolor in math-mode; however, it changes the spacing of subscripts. \documentclass{article} \usepackage[usenames]{xcolor} \begin{document} $Y_i$ vs $\textcolor{red}{Y}_i$ vs ...
4
votes
1answer
89 views

multiple equations with same number

I can't seem to make this work. I want the matrix and the second equation with the same equation number. \begin{equation} \begin{aligned} [{\bf Z}] &=\begin{bmatrix} R_1+j\omega L_1 & ...
2
votes
1answer
49 views

Sum within a fraction

I'm trying to get a sum to display "properly" within a fraction. My input is: \begin{equation} E = 1 - \dfrac{\sum_{i=1}^{n}(O_{i}-P_{i})^{2}}{\sum_{i=1}^{n}(O_{i}-\bar{O})^{2}} \end{equation} ...
3
votes
2answers
107 views

New \left \right delimiters

Can I introduce new delimiter symbols to use with \left and \right? For example I would like to do \begin{equation} \left\harpoonleft something \right\harpoonright \end{equation} I would then like ...
3
votes
0answers
31 views

Compilation fails with eqnarray after reinstalling Miktex [duplicate]

I have a script that extracts math formulae from a tex file, produces a small standalone file for each formula and compiles it with pdflatex. The standalone pdf files are then used to produce png ...