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

1
vote
1answer
26 views

Change the behavior of subscript \frac in inline math

I am writing a document which contains a lot of half-integer indices. In display mode, x_{i + \frac {1} {2}} looks fine. However, in inline mode, having several x_{i + \frac {1} {2}} messes up the ...
2
votes
1answer
55 views

Comparing the path from \int or ∫ in the .tex file to ∫ in the .pdf file with type1 and OpenType math fonts in luatex

I'm trying to understand better how math fonts are handled and, in particular, how an OpenType math font can do the same job as a type1 font with far less files. My reference engine is luatex (version ...
3
votes
1answer
16 views

Using \textipa{x} inside tikzcd (maths) environment

I'd like to use tipa IPA characters inside a tikzcd environment. The code compiles but the characters don't render correctly. Strangely, there is no related warning. \documentclass[12pt]{report} \...
0
votes
0answers
24 views

Context sensitive set formation operator

In my works I normally use \{x\mid\varphi(x)\} as a set forming operator. Its disadvantage, from my point of view, is that the vertical stroke is always the same, irrespective of the context. Is ...
1
vote
2answers
64 views

Undefined control sequence \eq

I am just starting using LaTeX and there's a problem I cannot solve. See, I want to make a plan so I use this code : \documentclass[a4paper,12pt,landscape]{slides} \usepackage[latin1]{inputenc} \...
2
votes
1answer
14 views

Combination spacing

I need to show the multiplication of two combinations. Code: $_4\rm C_2\times_7\rm C_2$ Output: As you can see, the spacing is strange and hard to read (the '7' is far to the left). How can I ...
1
vote
1answer
44 views

Union of \cdots and \hdots

Is there a symbol in math mode that look like the union of \vdots and \hdots, i.e., a cross made of five dots? Something like this: . ... . Detexify offers no solutions.
3
votes
2answers
82 views

Document font instead of math font in chemical formula (mhchem package)

I would like to write all chemical formulas in my document using the mhchem package which facilitates the use of the document font. It works quite nicely so far, but it fails for the letter "x". This ...
3
votes
1answer
100 views

Boundary ligatures in math mode

I know that the TeXbook says : "boundary ligatures are automatically disabled in math mode". But I'd like to know if this behaviour can be bypassed. I am creating an environment in order to copy my (...
6
votes
2answers
366 views

How to define an inner product argument in LaTeX

I would like to make an inner-product symbol for my math paper. I would like it to work along the lines of \frac{arg1}{arg2}. Specifically, I would like to make a function, so that I could say \...
6
votes
1answer
107 views

How to type rectangle norm symbol in math?

How can I write the rectangular norm symbol in math-mode where the text in between is centered, as seen hereinafter?
1
vote
1answer
37 views

missing \right and Underfull \hbox (badness 10000) in paragraph at lines 14--38

I am trying to do put three vectors in a set for my math homework, but when i run it it shows me some errors and i have no idea how to work with it. Please help! Here is the code and its error \...
2
votes
1answer
25 views

Error With Inequality [duplicate]

I typed the following and get an error. Help would be appreciated it. $x^{2}\lneq x$ It states undefined control sequence.
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?
3
votes
2answers
68 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 = &...
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?
3
votes
1answer
64 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"?...
6
votes
3answers
503 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 ...
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
47 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
22 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
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 ...
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.
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
94 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
82 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
72 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{...
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$ ...
1
vote
1answer
60 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
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 ...
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
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
165 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
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, ...
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 ...
5
votes
1answer
190 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
31 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
60 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
41 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
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
1answer
35 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
29 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
36 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 ...