{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
0answers
46 views

Equations not showing

\documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} f(x) = x^2 \end{equation*} \end{document} When I type this in MikTex I always get an error and cannot see the ...
4
votes
0answers
29 views

Why does \mitsans#1 command (unicode-math) still produce upright sans serif in math mode

I never thought that sans serif letters are subset of the glyphs in unicode OpenType fonts, until I see this in texdoc unimath-symbols: However, I cannot get the italic shape of sans serif letters ...
0
votes
0answers
17 views

Mathtype Latex Output - Removing $$ or \[

Is there a way to remove the $$ or \[ \] from the latex copy and paste settings on mathtype. The reason that I need this is I use a series of uncover lines in my beamer presentation within an align ...
16
votes
4answers
336 views

Set math mode as default for each item in list

\documentclass{article} \begin{document} \begin{enumerate} \item $x + y = z$ \item $e^{i\pi} + 1 = 0$ \end{enumerate} \end{document} I have a long list in which 95% of the entries are to be ...
1
vote
1answer
58 views

How do I input phi(t) approaches 1 in latex?

How do I input φ(t) approaches 1 in LaTeX? I have tried $\phi(t)\to\1$ but I keep getting an error message.
6
votes
3answers
191 views

How to do the linear program in format

How to get this format? I want to get this strictly. Thanks for the answer in advance. Here it is my code \begin{alignat*}{9} \hspace{30 mm}\text{maximize } & \sum_{i=1}^N d_i U_i ...
5
votes
1answer
84 views

Automatically add \texorpdfstring for math-mode in section titles

I'm receiving a ton of warnings á la "token not allowed in a pdf string", since most of my section titles contain math (see this post here: Hyperref - Token not allowed or here: Hyperref warning - ...
0
votes
1answer
67 views

How can I format this formula?

I am new to LaTeX. How to write this formula in a proper format as an algorithm? I cannot write this formula in proper format: if (some condition) P=P+(W$i$*((W-P)/W$i$)) end
2
votes
4answers
77 views

How to make equation array look more neat and compact

I'm writing a document that has a long list of two equation arrays. As it stands, the arrays seem very tedious and clustered, and I'm unsure of what'd be the best way to make it look more neat without ...
3
votes
0answers
61 views

need italic dollar sign

I want to have not only italic numbers but also italic dollar sign in Latex math mode. I found that some people get this with the \pounds symbol, however I do not achieve to do it and anyways this ...
5
votes
2answers
63 views

Using any symbol for “\limits”

I want to use different symbols instead of Sigma for \sum and the like. I tried \mathop{\Lambda}\limits^n_{i=1} But the symbol is small compared to \sum Then I tried the relsize package ...
2
votes
1answer
43 views

writing matrix with hat in mathmode

I want to know the difference between: $\hat{\mathbf{M}}$ % hat is not bold and $\mathbf{\hat{M}}$ % hat is bold What is correct way (bold/normal). If both what are cases when I should use bold ...
4
votes
3answers
109 views

Line breaking in multiple cases mathematical expression

How can I align this part of my paper: \subsection{Decision variables} \noindent$y_{pij}^{mk}=\left\{\begin{array}{ll} 1, & \;\;\; \hbox{ If the robot loads or uloades a part to/from machine $m$ ...
1
vote
1answer
50 views

Writing sub-and superscript in mathmode

i want to Write sub-and superscript in math mode but not italic. \documentclass[a4paper,11pt]{article} \usepackage{amsmath} \begin{document} % using mathmode sub- and ...
10
votes
1answer
357 views

How to bend a mathematical formula around an arc or circle

i would like to bend a math formula around a circle. While it is working with text, LaTeX would not bend a formula in a math environment around a circle, at least, i hadn´t had success. The following ...
0
votes
0answers
32 views

Add mathematical symbols to flowchart

I want to add mathematical symbols to a flowchart similar to the one in the link below http://i.stack.imgur.com/r7GSK.jpg The code for my system is listed below. I want to have mathsymbols like Y_k ...
0
votes
0answers
30 views

Insert portion of code before every line break in gather environment

This is a follow-up question to Redefine equation environment: auto labeling. I want to have something like \AtEndEnvironment{gather}{\label{equ:\theequation}}(at the end) plus ...
5
votes
3answers
156 views

Drawing the rules for the bracket polynomial

I am trying to re-create the three rules for the bracket polynomial: This is what I have tried so far: \documentclass[executivepaper]{article} \usepackage{mathtools} \everymath{\displaystyle} ...
2
votes
2answers
52 views

\frac fails in tabular environment

Surprisingly the following code shown below fails if there's a \frac, if not it works fine i.e. x/y(z) etc \begin{tabular}{cc} \frac{1}{2} &\frac{3}{4} \end{tabular} any ideas ?
1
vote
0answers
36 views

Sans serif upright lower-case Greek letters for beamer class

I use the beamer class with the cmbright package which provides sans serif Greek and Latin letters for the math mode and also sans serif-ish versions of math symbols such as \partial. Unfortunately, ...
1
vote
0answers
32 views

Horizontal placement of superscripts (Math mode, LaTeX)

Is there any way to adjust the horizontal placement of a superscripted character? In particular, whenever I have a character that also has a subscript, the superscript ends up directly above the ...
5
votes
1answer
187 views

\frac not working

I'm new here so bear with me if I don't catch on to something immediately. I'm trying to write some script for some copyediting I'm doing and it automatically converts the code into the format once ...
1
vote
1answer
29 views

Font Awesome macros not displaying correct symbols in math mode

Just wondering if anyone knows why the symbols from the fontawesome package do not show up correctly here (in the underbrace). For example the Twitter logo works fine when not in the align part, but ...
3
votes
1answer
59 views

Using math mode?

A MWE: \documentclass[12pt]{book} \usepackage{imakeidx} \usepackage{xcolor} \usepackage{setspace} \usepackage{lipsum} \usepackage[margin=.5in]{geometry} \usepackage{parskip} \usepackage{bookmark} ...
2
votes
2answers
40 views

How to typeset math inline

I would like to have the following inline: We have these two points \textbf{a_1} and \textbf{a_2} etc Once I select typeset I get a flag that I am missing $ So I tried this next: We have these ...
2
votes
1answer
55 views

Write mathematics in a caption

Sometimes I want to write mathematics (like \in - is an element of). While the element-sign is shown, LaTeX shows errors when compiling saying: Missing $ inserted. Extra }, or forgotten $. ...
1
vote
1answer
32 views

Cases inside an algorithm environment

I need to write an algorithm where multiple cases are handled. I have succeeded but the output shows a lot of vertical space below and above the cases statement. Anyone help me to fix this. I am using ...
6
votes
1answer
127 views

“$a, b$” vs. “$a$, $b$”

I have two questions. Would you use Let $x, y$ and $z$ be real numbers. or Let $x$, $y$ and $z$ be real numbers. ? Which one is better? Would you use For $x, y\in\mathbb R$ we have ... or For $x$, ...
2
votes
1answer
27 views

Breaking long formula at specific characters

I have some rather long formulas that are not equations, and I would like LaTeX to break them automatically whenever necessary, preferably at the \vee symbol. I currently use the breqn package and the ...
0
votes
0answers
35 views

Difference between $…$ and \(…\) [duplicate]

I have seen many recommendations to use \[...\] instead of $$...$$ for display math, like at: What are the differences between $$, \[, align, equation and displaymath? I believe this is because the ...
1
vote
0answers
15 views

Math mode for all numbers or not [duplicate]

Is there any reason to use/not use math mode for all numbers? For example: "The first few decimals of $\pi$ are $1$, $4$, $1$, $5$, $9$"? "If you count in base $36$ every english word is a ...
2
votes
1answer
33 views

Make cramped style ignore non-sub- and superscripts

The mathtools package provides the wonderful \cramped command to force a cramped style for sub- and superscripts. Maybe it's a bad habit, but I tend to wrap entire inline formulas in that command when ...
1
vote
0answers
18 views

texmaker commenting in math mode colors

Can you set the color of comments in math mode to be grey like normal comments? For instance \begin{array}{cl} \min & \tr XBX^T \\ \text{s.t.} & |Xe-2e|^2=0, \\ & ...
1
vote
2answers
72 views

How to change the font for math

For my thesis I use the fourier font because I like it as my main font but I have one problem with it: I do not like the font that fourier uses for math. How can I change/override this? I just want ...
7
votes
2answers
77 views

Fixing overfull \hbox with mdframed containing an equation

When creating a boxed environment with mdframed, I ran into an issue with a line with an equation, that also happens to be the first line of a definition. Is there a way to fix the problem ...
1
vote
1answer
42 views

How can I make the entire code appear?

There is no compile error but the following code isn't being displayed in the PDF. There is just a blank space in the PDF. \begin{aligned} a_i + a_{i+1} + a_{i+2} + \dots + a_{i + 99} &= 100\\ \\ ...
5
votes
2answers
43 views

Put math at the end of display

I'm trying to emulate the following behaviour i.e. the $(r \in \mathcal N)$ at the end of the line. I'd like to know how to do this in \[ \], equation and align environments. I'm using amsart. ...
4
votes
1answer
60 views

How to align columns of two separate matrices?

I have two equations involving matrices in an align environment. One of the matrices is wider than the other. How do I align them so that they are equally wide? A minimum working example: ...
1
vote
1answer
29 views

Prevent formulas from execution

When I need to correct the formula in the middle, I click on the middle of the formula, and the formula always changes it's mode from something like an "executed" mode to something like a "working" ...
0
votes
1answer
17 views

Break conditions in different line

I have a code to generate a equation in Latex. My problem is that How can I break line between a and b condition in the equation. With below code, the 0<=a<=10 and 0<=b<=10 are located in ...
2
votes
2answers
39 views

Multline equation along with aligned equations

How can I write the following? I have currently written it with an align environment and a multline, but I don't really know what is the correct approach to combine those (if that is the correct way ...
0
votes
0answers
27 views

Too many math alphabets when using mathdesign, bm and siunitx [duplicate]

Here is the MWE \documentclass{article} \usepackage{amsmath} \usepackage[utopia,greekfamily=didot,greekuppercase=italicized]{mathdesign} \usepackage{bm} \usepackage{siunitx} ...
2
votes
1answer
38 views

Fraction Equation problem

I am a new user of LaTeX. I am using amsmath package but keep getting errors with the following: \begin{align} \frac{\partial P}{\partial t} = \mu(N,I)P - mP - \nu \frac{\partial P}{\partial z} + ...
2
votes
2answers
81 views

Scaling absolute values

How I make in Latex the modulus, or absolute value, match the size of the expression within? I want to know what are the sizes available. Example: $$\mid\frac{\partial I}{\partial M}\mid = ...
2
votes
2answers
49 views

How to replace \varnothing by \phi

I have written \varnothing in place of \phi everywhere in my thesis. Now, I want to change it by \phi. So, does there any technique so that I change at only one place and it changes everywhere ?
3
votes
1answer
52 views

Why does lualatex allow for tt mathmode symbols while pdflatex does not?

Consider this simple example: \documentclass[preview]{standalone} \usepackage[utf8]{inputenc} \begin{document} $\texttt{\lambda}$ \end{document} Running with lualatex works fine, but pdflatex ...
5
votes
2answers
59 views

superscripting a dot which is enclosed in square brackets

This question is about how to extend the nice answer here by @egreg http://tex.stackexchange.com/a/304078/103130 to the following case (which is close to what I need except that the brackets should ...
1
vote
1answer
53 views

narrow mode math environment in tikz nodes

I'm looking for a way to enforce a 'narrow' math mode in the following sense: Instead of writing every where the brackets {+} to reduce the spacing like here \documentclass[10pt,a4paper]{article} ...
2
votes
2answers
270 views

How can I do matrix with 1 column?

I want to make a matrix with elements like in the image: How can I do this? Thank you!
4
votes
2answers
124 views

putting square brackets around the underline of a letter (in math mode)

I would be very grateful for some help. \documentclass{article} \begin{document} $ a,\underline{b},\underline{c},d $ \end{document} I need to enclose the underline under the letter $b$ in small ...