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

12
votes
4answers
17k views

Strikeout in math mode

How can I strikeout words in math mode (similar to \sout with \usepackage{ulem} in text mode)? I've tried \usepackage{cancel} and \(\cancel{1+1=2}\) but that draws a diagonal line.
8
votes
4answers
959 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 ...
32
votes
1answer
89k views

How to write two dot above a letter?

the two dots above a letter represents two derivative of varible t. My method: \documentclass[UTF8]{ctexart} \usepackage{amsmath} \usepackage{amssymb} \usepackage{graphicx} \usepackage{epstopdf} \...
3
votes
1answer
133 views

Longer Cap of \sqrt

I am using ShareLaTeX for assignment. I want to input an equation like: $EOQ=Q^*=\sqrt(\frac{2K\lambda}{h})$ and got output like this: But I really want the square root with longer cap (or roof?...
6
votes
3answers
548 views

How to represent the “Triangle of Power” in LaTeX?

So, I've just seen a video about a method of notation called "Triangle of Power", which simplifies things when it comes down to exponents, logarithms, etc. It was originally introduced in this post on ...
1
vote
0answers
48 views

When a term has letters as subscripts they looked squished. How can I improve the appearance?

When I have a term that has letters as subscripts, the letters look squished and frankly, are hard to read in some cases. Is there some easy tweak I can do that will improve the readability of the ...
2
votes
1answer
51 views

When there are successive terms with subscripts in a formula, the subscript size is smaller in the earlier term

I have a couple of terms in a summation in which both have subscripts. The subscript in the first term is smaller than in the second. How do I ensure that they are the same size? Example equation ...
1
vote
2answers
84 views

Bold upright lowercase greek symbols [closed]

In a physics textbook I met an equation, as in Figure above, with the bold upright greek letter β. How could I edit equations that contain such characters in boldface?
0
votes
1answer
90 views

Can't get theorems in an appendix

I get the error \begin{document} ended by \end{theorem}. \end{theorem} and Environment theorem undefined. \begin{theorem} when trying to compile this latex document. Here is the problematic ...
1
vote
1answer
44 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\\ \\ ...
0
votes
0answers
21 views

Missing $ inserted when trying to put \omega into table [duplicate]

I have to make a table with the \omega (greek letter) inside the table, but when I try to add it i get the following error: Missing $ inserted. $ l.159 ... & Sensor state for \...
0
votes
0answers
37 views

I need some help with the format of a paper on overleaf.com [duplicate]

I have been using a template for homework assignments in overleaf.com. It is working well, but unfortunately, there are some ugly checkboxes in every problem line. How do I make this go away ? Here ...
0
votes
1answer
148 views

Why am I getting an undefined control sequence error in this line? [duplicate]

This line is giving me an error which I have been unable to remove for the last hour. Let $a^i =p\times 10^{n+1} + r$ and $a^j =q\times 10^{n+1} + r$ be two such powers. Let $a^j \gt a^i$.
1
vote
1answer
64 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.
3
votes
2answers
69 views

Writing regression results in latex

I'm trying to write a regression results in Latex as follows: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{align*} y_t = &...
16
votes
4answers
352 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 ...
3
votes
1answer
65 views

How to quickly write “if” in mathmode

Probably asked before but these type of search queries are not very google friendly. In mathmode, you can type \cos to quickly get the cosine, in normal typeset. Can you do something similar for "if"?...
2
votes
1answer
64 views

Change the position of exponent in a formula

I wanted to type "gammadot to the n", but it does not look good to me as the "power n" should be located in higher position respect to "dot". Is there anyway that I can fix this problem?
22
votes
1answer
376 views

Microtype gives wrong letterspacing in math mode

Using the \lsstyle command gives wrong math latterspacing afterwards. I came upon this problem when using the classicthesis and putting math in a section (microtype is used there too). After the ...
56
votes
2answers
3k views

How can I use Dragon NaturallySpeaking to write LaTeX math formulas by voice efficiently?

I write LaTeX documents by voice using Dragon NaturallySpeaking for speech recognition. It allows me to write much faster than if I had to type on a keyboard (~ 100 WPM vs. 50), I find that voice ...
2
votes
2answers
63 views

Problem compiling when I use symbols less than or greater than

I am writing a document with Texmaker and when I write some equation with the less than (<) or greater than (>) symbols, then it doesn't compile (it doesn't end compiling and I don't get error ...
3
votes
0answers
48 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 ...
2
votes
2answers
84 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 = \frac{T^...
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
23 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 ...
80
votes
6answers
36k views

How can I write multiple lines in a subscript?

Is there a way to force a line break inside a math mode text? My example: \[ \underbrace{....}_\text{Some long text that should be multiline} \] Trying \text{Some long text that\\ should be ...
6
votes
3answers
222 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
130 views

Illustrating a matrix assembly within the array environment

I'm having trouble aligning the parentheses of a matrix assembly (parentheses within the same matrix). Essentially, what I want to do is this (excuse the terrible paint-job): Where the submatrix K1 ...
11
votes
2answers
4k views

Lower overbrace in math environment

I would like to achieve the following inside an math environment But I can't get the text below the equation \operatorname{min} \left| \overbrace{\text{Hadamard product}}^{\begin{pmatrix} X \circ X ...
2
votes
1answer
505 views

Creating a box framework for inside the formula environment

For a list of things to be used inside the formula environment, I want to create boxes stacked over each other. I basically want to write $$ A := "Box with lines like 'A is a number', 'A is bigger ...
5
votes
1answer
95 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 - ...
2
votes
4answers
83 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 ...
0
votes
1answer
100 views

Using the # symbol in equations

I want to use the # symbol in Latex equations. I already tried \#, but it is not working: When the # symbol appears in an equation, then the rest becomes a $ sign instead of #. Here is my code: ({...
10
votes
2answers
455 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 ...
3
votes
0answers
73 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
67 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 \mathop{...
0
votes
0answers
20 views

Reduce vertical spacing between Text and math-block [duplicate]

I am trying to reduce the space between an align environment, above and below, and the surrounding text. I tried using vspace. It works above, but below it produces weird results. Is there an elegant ...
10
votes
1answer
367 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 ...
2
votes
1answer
46 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
116 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$ ...
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 ...
1
vote
2answers
165 views

Problem with right $ and {} placed in math formula

I read a lot about math text formating in LaTeX but now I'm just confused about what is wrong in this formula. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{multline} P(B_{1}) =...
0
votes
0answers
34 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 \label{equ:\...
5
votes
3answers
166 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
259 views

Problem in writing the equation: missing delimiter

I tried a lot but unable to solve this equation. \documentclass{article} \usepackage{booktabs} \usepackage{multirow} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \...
2
votes
2answers
53 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
50 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, ...
5
votes
1answer
192 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 ...
2
votes
1answer
56 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
0answers
36 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 ...