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

9
votes
1answer
105 views

Why does amsmath define \mspace? \mskip seems fine and simple enough

amsmath.sty defines \mspace as follows: \newcommand{\mspace}[1]{\mskip#1\relax} What is the purpose of this definition? amsmath.pdf says that \mspace is the "equivalent of \hspace for math mode ...
2
votes
1answer
100 views

“greater than” and “less than” not showing up in compiled document

I try to write a inline formula including a greater than sign: $A < B$ If I use the above formula in an empty document it works fine, but in my full document it will just not show up. But I can ...
1
vote
1answer
91 views

Why is $ required around \oplus in a math environment?

I wrote the following: \begin{equation*} \begin{tabular}{c|c|c} P & Q & P \oplus Q \\ \hline \text{T} & \text{T} & \text{F} \\ \text{T} & \text{F} & \text{T} \\ \text{F} & ...
6
votes
4answers
319 views

How can I type formula cosine of two vectors nice?

I want to find cosine of two vectors, I define the command \cross for cross product of two vectors. I tried \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} ...
5
votes
3answers
92 views

Greek capital letters with Latin Modern and TeX

Copying the plain TeX format, my formatting file contains the lines \font\tenrm="[lmroman10-regular.otf]:mapping=tex-text" \textfont0=\tenrm \def\rm{\fam0 \tenrm} to load a unicode font. However, ...
1
vote
0answers
31 views

What is best convention for writing induction proofs in latex? [duplicate]

I'm writing some induction proofs for my homework. What is considered to be best convention for writing these kind of proofs?
4
votes
2answers
66 views

Underfull \hbox severe issues

I relaize this has been posted before but I just can't understand the nature of the problem, I hope some of you can help me with this. This is my code from line 99-174. Compiler errors are below the ...
8
votes
4answers
535 views

why are math fonts (traditionally) italic/slant? and Greek non-italic?

why is it usually the case that mathfont = italic/slant? [in my post, I am not distinguishing between slant and italic. I believe the two can be different, but let's not distract from my real ...
10
votes
4answers
298 views

How to break this long radical into multiple lines?

I've got a very long radical in a display-math environment, so long that the equation spills in the right margin. How can I break that equation over multiple lines, so that it doesn't go into the ...
2
votes
4answers
132 views

How to modify eqnarray?

I'm currently writing a maths undergrad dissertation using Texmaker, and when I use eqnarray. It keeps justifying all of the equations to the right but still in the center? How do I change this so ...
9
votes
4answers
234 views

How can I get curly arrow underneath a state in a state transition diagram

I have a simple state transition diagram that I'd like to render in latex ideally using regular mathmode markup. The arrows show the probability of going between states. ...
4
votes
2answers
54 views

How to denote adjacent vertices?

Background I'm trying to write a rapport that relies on some rudimentary graph theory and as such I'd like to write a section explaining the basics of it. Trying to do I've run into a bit of a snag ...
1
vote
0answers
61 views

Render text upright in math mode

I am looking for a way to have LaTeX render strings of more than one letter as upright (in math mode). For example, I want it to render $Hom$ as $\mathrm{Hom}$, $apple$ as $\mathrm{apple}$, $apple ...
3
votes
2answers
84 views

XeLaTeX Double closed path integral? [duplicate]

How can I write a double closed path integral? I have searched and I have found only single closed loop integral.
6
votes
2answers
65 views

Tabbing/horizontal placement with labeled equations

I have a string of equations, each with a label that I would like to format nicely. I want the equation labels to be at the same horizontal position and the start of the equation to be at the same ...
3
votes
2answers
146 views

Getting less space in “$V$,”

If I think there's too much space between the $V$ and the , in $V$,, what's the best way to reduce it? It seems safe to use \kern and not safe to use \hspace, since if you use \hspace the line might ...
2
votes
1answer
220 views

I get the warning “Undefined control sequence” with \mathbb

I am doing my first LaTeX work using TeXstudios and I'm having trouble with an Undefined control sequence. When I've checked solutions on google it appears as this is caused by typos in the ...
1
vote
0answers
51 views

How to type multiple integral sign in TeXmacs? [closed]

I don't know if there are a lot of people using TeXmacs. Now I use it to make some mathematics notes, but what gives me a surprise is that it haven't supported multiple integral sign! I don't know why ...
4
votes
1answer
73 views

Adding Non-breaking space after single character in text mode

Is it possible in LaTeX (2e) to create macro or other processing command that will add non-breaking space after single character in text mode? Example: A new example here will add a "tilde", after ...
8
votes
3answers
214 views

Inline math or \textit for author defined math constants?

Wondering if people here have a thought on what the best practice is here (if it matters). I used to use baskerville (well, the baskervald package) as my main font and charter as my math font (since ...
8
votes
2answers
108 views

Defining the minimal amount of space around an operator

How do I define the minimal (and possibly maximal) amount of horizontal space around an operator? Something similar to wrapping the operator with \,s. Here's a picture: And a minimal example ...
5
votes
1answer
48 views

align* and wrapping command

For school we have to deliver all math with double lines under the result. I have made a command that makes this easy. It looks like this: \newcommand*{\uul}[1]{ \underline{\underline{#1}} } It ...
4
votes
2answers
122 views

New to TeX; issue with compiling

I keep getting the compiling error >file ended while scanning use of \frac. I can't see any missing {}, so I'm not sure what to do. \documentclass[]{scrreprt} \usepackage{geometry} ...
4
votes
1answer
61 views

Double slashes close together with resizing

I basically want this symbol, but I want it to resize properly: While X/\mkern-6mu/H looks good, when I try to resize using \biggl, then the horizontal space between the two slashes becomes very ...
3
votes
4answers
82 views

How to resize font of displayed formulas to automatically fit column width? [duplicate]

Is there a way, in LaTeX, to automatically resize font of displayed equations to fit column width (241 pt, here)? Any ideas would be appreciated. You can see my equation below; note that I use ...
1
vote
1answer
56 views

missing inserted endgroup

I'm typing this equation: \eta=\frac{82\cdot4\cdot1.44 \textrm{MeV}\cdot10$^-15$\textrm{m}}{2\cdot6.582\cdot 10$^-10$ \textrm{MeV}\cdot\textrm{s}\cdot0.0774\cdot2.998\cdot10$^8$\textrm{ms$^-1$}} ...
0
votes
0answers
44 views

How to draw a Pascal's triangle? [duplicate]

How to draw a Pascal's triangle, similar to what follows?
8
votes
2answers
71 views

How do I vary the height of braces without varying the width?

I am trying to highlight pieces of a formula with some text on the side, but one of those pieces is multiple lines. The solution that I came up with was to use braces in an array to highlight the ...
1
vote
3answers
173 views

Aligning Equations in LaTeX

I was trying to align the following equations but alas. Could someone guide? \begin{flalign} x \in A \cap (B \cup C) & \Rightarrow (x \in A) \lambda \Big( (x \in B)\vee(x \in C) \Big) & \\ ...
6
votes
3answers
113 views

How can I typeset long integral borders?

I currently would like to typeset an integral with long integral borders. But either I get too much space after the integral sign and before the function I integrate, or I get a wrong alignment of the ...
5
votes
4answers
169 views

How to link two terms in math mode

I am trying to get something like this: which is different from \underbrace or \underbracket. It says that a.c=3. Is there already a command for that? I have not found it. Or should one define it? ...
8
votes
2answers
95 views

Quotation marks around operator in math mode

I want to create formulae where the \rightarrow is enclosed in double quotation marks and appears like any other word in a formula. What I'm getting instead, are formulae where these quotation marks ...
7
votes
3answers
242 views

Designing a new tuple of Algebra Operators

It's neccessary to have at least two extra tuples of Albera Operators. A minimal tuple is a triple (to_be_subset_eq, meet_operator, join_operator). There are some ideas how to make 2 extra tupes. ...
1
vote
2answers
95 views

Is there a painless way to get self-loop decorations on mathematical symbols?

In mathematics, we often write X \rightarrow Y to mean a function from X to Y. Now I'd like to denote a function from X to X via a looping-arrow decoration on the top right-hand corner of X. Is ...
4
votes
4answers
247 views

Breaking and aligning equations

I have the following MWE \documentclass[10pt, a4paper]{article} \usepackage{amsfonts, amsmath, amssymb, amsfonts} \begin{document} \begin{align} \sum_i{ c_i} &= \cos \sin\cos \sin\cos ...
3
votes
1answer
94 views

Error when typing Matrix and Binomial coefficients

New guy here, I am just trying to study LaTeX from the very beginning. I am using TexShop on a Mac, and now I am reading George Grätzer's Short Course. Here's my question, when I type Binomial ...
2
votes
1answer
59 views

Equations with justifications in angle brackets in Latex

How would I do something like this : f(x) = < Justification > x + y + a = < according to ... > abc Which math environment should I use get this kind of equations? ...
6
votes
2answers
97 views

Formatting linear programs

When stating LP problems I usually use something along the following \begin{tabular}{ l c p{1pt} c } max & \multicolumn{3}{l}{$300x + 100y$} \\ s.t. & $6x + 3y$ & $\leq$ & ...
8
votes
1answer
94 views

Subscript spacing in newtxmath (comma issue)

I've found a strange behavior of newtxmath package. Using my code with documentclass[12pt]all commas are glued to the next letter, which can be hard to read: When I changedocumentclass[11pt] ...
2
votes
1answer
101 views

troubleshoot needed for LaTeX Error: Command \item invalid in math mode [closed]

Can someone please troubleshoot this? It gives me an \item invalid in math mode although I use a very similar casing on a previous frame. \documentclass[mathserif]{beamer} ...
29
votes
2answers
474 views

When is it safe to type less and drop curly braces in math mode

I'm using tex a lot more now, and I'd like to get more efficient by typing less. I've partly been inspired by editing mathjax posts and seeing people write things like \frac12. However I've also had ...
2
votes
1answer
149 views

Latex template for American Mathematical Monthly

I want to submit an article to American Mathematical Monthly and I am following the "Instructions for authors" . It says that i should download their template.And i did. But when i click "Typeset" I ...
8
votes
2answers
278 views

How can one refer to a part of an equation?

When having multiple equations inside one displaymath environment, it is sometimes desirable to refer to just one of them without having to break the environment up into smaller pieces. Take for ...
21
votes
2answers
724 views

Percent sign in a box

Is it possible to make a symbol which is a % inside a square box? I would like to use it to represent the function f(n,m) = n-(n % m). As in n symbol m. Or... is there a better idea for this ...
3
votes
1answer
59 views

Why is this statement not compiling correctly?

For some reason, the following excerpt from my code is not compiling correctly and I can't figure out why. \begin{equation} \begin{split} \frac{100}{-6} &= -16(-6) + 4\\ &\implies z^100 ...
2
votes
0answers
60 views

I cannot understand the error msgs in my Latex file, and can't run it

Here is my first LaTeX attempt. I understand the warnings, but I don't understand the errors. I can't find anything on these questions in the guides: missing characters from the LaTeX script listed ...
1
vote
0answers
50 views

Comprehensive list of mathmode dots with explanations

I have read on several occasions that there are differences between the multitude of dots commands that TeX and amsmath offer. However, I am not sure up to this day when to use which, and how critical ...
1
vote
1answer
32 views

Is there any way to get something like pmatrix with customizable grid lines between cells? [duplicate]

In the document I have to describe a series of transformations, made with a matrix. Each transformation works only on 2x2 or 1x1 block, so I want to visually select this block in the matrix like this: ...
9
votes
2answers
329 views

Is there a convention for making text as an index in math

Taking an example from category theory, given a category "C", the opposite category is usually denoted "C^op". Where "op" is an abbreviation for opposite. Now there are three ways to put this in ...
9
votes
2answers
568 views

Writing equation in LaTeX: some part are mysterious to me :)

I would like to write in LaTeX two equations: and I do not know how to do that...Particularly, how to write stuff underneath the max function. And also how to have this line over Wi or Wj. PS: ...