{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
1answer
104 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
477 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
150 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
279 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
725 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
61 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
580 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: ...
1
vote
0answers
80 views

French math style with default font

Edit: Okay, I found it, just needed more focus on the related entry. The package mathastext called with the frenchmath option does the job. The time for my first question to stackexchange could have ...
5
votes
1answer
40 views

Inline math overflow does not happen with minipages, but everywhere else

When writing in a minipage environment, unsplittable math formulas never spill into the right margin. Instead, spacing is introduced in the current line and the formula is moved to the next line. ...
0
votes
0answers
31 views

How do I de-italicise text in maths mode? [duplicate]

$\widetilde{V}$ gives me an italicised V. Is there some way that I can de-italicise this V?
9
votes
5answers
263 views

Left align in math environment with every element over each other

I would like the elements in my math environment to be left aligned, so that each element stands over each other, like in the given example below. I have managed it using \hspace and \qquad, but ...
3
votes
1answer
283 views

Schrodinger's equation [duplicate]

Trying to get Schrodinger's equation to format better. The first term is -\dfrac{\hslash^2}{2m} \, \dfrac{\mathrm{d}^2 \psi}{\mathrm{d} x^2} However, because of the exponent in the denominator, ...
5
votes
1answer
69 views

User command shortcut for limits

I'm a grey headed guy taking a calculus class. I'm trying to figure out how to make a user command with two arguments to generate limit statement with right arrow. I keep having to type \lim_{x ...
0
votes
1answer
45 views

Section titles in caps give problems with math mode in it

I use the style file mn2e that makes section titles appear in boldface and in all caps. Which is fine, but not for the formula within such a title. Example: \section{The derivative $dI/dR$} gives ...
9
votes
3answers
366 views

Command to get N equally spaced dots in mathmode

In mathmode, we have \cdots, \vdots, etc., to indicate repetitive patterns or ellipsis. These commands print three equally spaced dots. Is there a command that achieves the same, only for an ...
1
vote
1answer
49 views

Changing the spacing inside equation with underbrace [duplicate]

I am aware of questions/answers that address the question of space around the equal-sign (e.g. this one or this other question). However, my question is related to a situation where I make use of ...
8
votes
5answers
240 views

What is an elegant way of indicating repeating elements in a vector?

Consider a vector that is made up of N times the same element, stacked next to each other. I am having a hard time coming up with an elegant mathematical notation for indicating the repetitiveness of ...
2
votes
0answers
68 views

Automatic line and page breaking - how to turn it off?

I am using MiKTeX 2.9 , I want to turn off automatic line and page breaking , I was trying to use {verbatim} , {alltt} and \verb+...+ , it works , but doesn't keep original font (I am using ...
1
vote
1answer
73 views

Beamer: Highlight text in bold (math mode)

I want to highlight a certain part of a formula from one slide to the next. I'm looking for something similar to Non bold on slide 1 \textbf<2>{this is bold on slide 2} just in math mode.
2
votes
1answer
88 views

how do I get a hyphen in \mathrm

A simple question I think, but if I write $\omega{\mathrm{anti-Stokes}}$, the hyphen looks an awful lot like a minus sign. If I naively try $\omega{\mathrm{anti\hyp{}Stokes}}$ (I think \hyp{} requires ...
1
vote
4answers
161 views

Is there a way to make math mode subscripts automatically non-italic?

I'm currently working on a report where the majority of subscripts will be non-italic. The way I know how to do this currently is via \mathrm{}, which is an absolute horror when you have to do it many ...
5
votes
4answers
168 views

How to draw backslash in a certain way

I know there are fair number of questions that have been asked before on how to typeset a backslash; but I am looking for a specific placement of \ as shown below: I tried \diagdownbut I am not able ...
0
votes
1answer
41 views

amsmath bullet has everything in italics following bullet

LaTeX noob question: I would like to type a bullet b = 55. For this I am doing a\bullet{b} = 55. However, everything after bullet is in italics. Not sure if I wrote the correct syntax.
0
votes
0answers
62 views

How to make two line apex

I'd like to split the apex in two lines. I'm commenting a part of an equation with \overbrace and I need to split the comment in two line because it is too long. $$ x = \overbrace{y}^{very big ...
11
votes
4answers
251 views

Making variations of \boxed

I have to typeset certain formulas, and the notation involves stretchable boxes, pretty much like \boxed{X} makes, but occasionally I need to add a hat below and/or above, as the picture shows: ...
1
vote
1answer
77 views

I can't find/fix the errors in order to be able to compile it

\documentclass{article} \usepackage{amsmath} \begin{document} $These are two truth tables for the following: $\neg (p \vee q)$ is logically equivalent to $(\neg p) \wedge (\neg q)$ ...
-1
votes
1answer
179 views

How do I write this mathematical equation?

I want to write the shown mathematical equation in LaTeX but I am getting an error. Here this is not eta but it is n. The code which I am writing is \begin{equation} \Delta {E} + \frac{\omega^2 ...
1
vote
0answers
93 views

\Omega not working in math mode [Workaround] [closed]

I have a problem typing in math mode. Every symbol seems to work without any flaws, yet the command \Omega in math mode results in a . instead of a symbol. Every other symbol works without problems. ...
11
votes
2answers
248 views

(Total and Surjective) Relation - arrows

I am looking for following symbols: Total Relation: <<-> Surjective Relation: <->> Total surjective Relation: <<->> This is the sort of thing I’m looking for (source): Can ...
4
votes
2answers
77 views

Matrix or Table with uneven number of columns

I want to achieve something like following: Is there a way to achieve this in latex? Thanks for your help.
13
votes
2answers
706 views

Typesetting famous 54.43 proof (1+1=2) in Principia Mathematica

Here's my best attempt at typesetting the proof that 1+1=2 in Principia Mathematica: \documentclass[10pt]{article} \usepackage{amssymb} \usepackage{amsmath} \pagestyle{empty} \begin{document} ...
6
votes
1answer
90 views

Libertine + newtxmath gaps in big brackets

I have a problem when combining Libertine with newtxmath. When using large brackets in equations the brackets have strange gaps. \documentclass[fontsize=12pt,DIV=12,oneside,a4paper]{scrreprt} ...
3
votes
1answer
134 views

Rules for typesetting mathematical constants upright [closed]

It has been proposed that mathematical constants should be set upright to distinguish them from variables.1 This rule can also be stated as:2 There's a little-known rule, best stated as ...
9
votes
1answer
118 views

How and whether to fine-tune the vertical placement of a fraction line

This is a question about the aesthetics of mathematical typesetting, as well as a technical question about LaTeX. I'm writing a lot of expressions like this: (\log\frac{p_{i\to j}}{p_{j\to i}} in ...
2
votes
1answer
74 views

Problem with mathastext package

The following very simple code does not work here: \documentclass{article} \usepackage{fontspec} \setmainfont{Droid Sans} \usepackage[italic]{mathastext} \begin{document} \section{test} ...
2
votes
1answer
95 views

What is this math font and how do I access it?

I'm reading a paper that uses a font that looks like this for equations: It looks a bit like Times New Roman. In my file, I use \usepackage{newtxtext,newtxmath} and get the following really ugly ...
0
votes
1answer
90 views

How to use \lll properly

I need the symbol <<< (left rotation). Now from TexStudio help, I found it as \lll. But when I use it, I get an error Undefined control sequence ... \lll. How to fix it?
1
vote
1answer
80 views

Typeset index upright automatically

As discussed for example here: Should subscripts in math mode be upright? subscripts should usually be typeset upright. Is there a possibility to this automatically e.g. inserting something to the ...
4
votes
2answers
94 views

Left align definition for symbols in a LaTeX math equation?

I have an equation and want to have a 'where' block beneath it explaining the variables used. I would like to use something similar to the last example in this answer, but I would like the 'where' ...
2
votes
1answer
60 views

tex4ht: how to make only non-inline math bigger?

I'm converting a document to html (or possibly xhtml) using htlatex. I find that the output is ok, but the equations are too small. I have tried making them bigger by adding the following to my ...
2
votes
2answers
114 views

Why can't I renew the \label command in math mode?

When I'm writing a paper and want to refer to a section, figure or equation in a different part of the document, I end up spending a lot of time scrolling through my source code so that I can see what ...
5
votes
2answers
260 views

Beamer: Using sans serif numbers in math mode together with LuaLaTeX and the fontspec package

This is a follow up on my last question. I want to produce a beamer presentation using the font Helvetica Neue. I am using this MWE: \documentclass[]{beamer} \usepackage{fontspec} \setsansfont[ ...
6
votes
1answer
71 views

Why doesn't “\vphantom” work in section titles?

For reasons of my own (so please don't advise me to simply not do that, I considered that already) I want to have this expression in the title of a section \section{$\left< a \vphantom{L} \right| ...
3
votes
1answer
120 views

New to LaTeX, getting bunch of errors and not sure how to fix them

I started learning LaTeX just today. I'm trying to write some of my notes in TeX form, but when I try to build this I'm getting a bunch of errors. Can you take a look at it and see what's wrong? ...
3
votes
1answer
76 views

Does not imply arrow in \xymatrix?

I am wondering how to make a does not imply arrow when using \xymatrix. I have a square diagram with two implications (arrows) on three edges only and one arrow on the fourth edge. One of the arrows ...
2
votes
1answer
41 views

consistently increased line spacing when subscripts occur in paragraph

The question is about consistent vertical spacing in a paragraph of text that includes some math using subscripts. Concretely, in the example I feel that there is not enough vertical space between ...