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

2
votes
2answers
46 views

how to print long relation operators like simeq and sim with text above in latex

ENV xelatex --version XeTeX 3.14159265-2.6-0.99991 (TeX Live 2014) bibtex --version BibTeX 0.99d (TeX Live 2014) \mathrel{\simeq\!\simeq} not what I want. \stackrel{\text{mytext}{\simeq}} the ...
0
votes
0answers
31 views

Beginner method to learn LaTeX [duplicate]

I start practice on LaTeX for mathematics text and I want to know what would recommend me some that get it learn easy.
0
votes
1answer
48 views

Cross and almost equal to zero (negligible)

How can i achieve the following mathematical construct with LaTeX?
4
votes
1answer
42 views

Math alphabet ignores fontspec options on LuaLaTeX

I am trying to create a new math alphabet on LuaLaTeX, based on the code of mathspec. I set up a font family with some options via fontspec and declare it as an alphabet. Although it seems to work, ...
1
vote
2answers
143 views

latex equation writing problem

Hi everyone, I would like to write following equations in the Latex. Could you please someone help me?
0
votes
1answer
37 views

symbol for \not is sometimes rendered vertically [closed]

I hope this question is not a duplicate, but after some research I haven't found anything related to the argument. My problem is the following. I've noticed that when I use \not in conjunction with ...
64
votes
4answers
26k views

Allowing line break at ',' in inline math mode?

In the inline math mode ($...$), if the formula is too long, LaTeX will try to break it on operators, e.g. very long text followed by a very long equation like $a+b+c+d+e+f+g+h+i+j+k+l$ etc may be ...
44
votes
7answers
6k views

Automatic left and right commands

Is it possible to automatically "add" \left and \right commands in front of all brackets? The source code should be left intact, but LaTeX should interpret every pair of brackets as if they were ...
3
votes
3answers
91 views

Crossing a symbol like p, similar to one like hbar

I would like to cross a symbol like p, in math mode, similar to what we get for h by using \hbar, i.e. ꝑ (U+A751). Picture in case of font problems:
15
votes
2answers
2k views

Draw Lewis structures like a book

I want to draw a Lewis structure as in the picture. I tried to do with chemfig but does not perform the separation of the points and a minus in the superscript.
1
vote
0answers
37 views

amssymb: mathfrak subscript doesn't scale

I have an elementary question with the package amssymb and the therein contained math script font \mathfrak{}. When I use a math-mode command like $\pi_{\mathfrak{X}}$, i.e. a small Greek pi with an X ...
6
votes
1answer
102 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
0answers
41 views

How to add a text after the name of function?

I want to write a sentence like this: f_{a}(x,y,t) some text here But when I write like this there is no space between words. How can I fix it?
4
votes
1answer
73 views

Why might \sin and \cos be italicized in the output?

Introduction I know that \sin and \cos are supposed to produce non-italicized (operator) output when in math mode. Oddly, these macros are producing italicized output, as if I had typed sin or ...
4
votes
2answers
100 views

Obtaining a properly aligned complex matrix

I'm trying to write a matrix that contains two items with a fraction inside of it. I see that the matrix output is pretty strange because the rows and columns are not spaced with the same scale. ...
6
votes
4answers
331 views

How to stack nearrow and searrow on top of one another?

I want to transcribe this equation: I tried to use both \stackrel and \overset to get the stacked arrows. But the output looks weird, with one arrrow significantly smaller than the other: ...
2
votes
3answers
60 views

unset rowcolor in eqnarray

I have a document with a defined \rowcolors Now in a math environment, a cases element is rendered with this table background overlapping the brace: This can be fixed by adding \rowcolors{1}{}{} ...
2
votes
1answer
52 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 ...
1
vote
1answer
25 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 ...
3
votes
1answer
13 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
22 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 ...
18
votes
5answers
17k views

How to input open intervals

I want to write open and half-open intervals using the following notation: ]a, b[ ]a, b] ]-∞, b] When writing them just like that in the LaTeX source, the spacing doesn't come out right. For ...
3
votes
1answer
78 views

How do I improve the quality of png images when converting to html using htlatex?

I have tried to convert my LaTeX document into xhtml running the following commands (found here): htlatex source.tex tidy -asxhtml -output seconddraft.xhtml firstdraft.html Everything displays ...
1
vote
2answers
59 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
13 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 ...
23
votes
5answers
39k views

How to write cases with LaTeX?

The code i used to write is this one $$ X(m,n)= \begin{cases} x(n),\\ x(n-1)\\ x(n-1) \end{cases} $$ But I don't know how to write this one I appreciate any help. Edited: I'm sorry to add ...
3
votes
1answer
75 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 ...
3
votes
2answers
69 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 ...
1
vote
1answer
38 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.
6
votes
2answers
349 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 ...
1
vote
1answer
35 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.
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
889 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
85k 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
132 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 ...
6
votes
3answers
419 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
46 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
50 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
70 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
88 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
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\\ \\ ...
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
46 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
60 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
61 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
341 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
60 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 ...
2
votes
1answer
61 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?