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

3
votes
1answer
132 views

How to adjust self defined multiple product signs

The latex code below produces multiple product signs: \documentclass{article} \usepackage{amssymb,amsmath,graphicx,color} \newcommand{\invcircledast}{% \mathbin{\vphantom{\circledast}\text{% ...
1
vote
1answer
46 views

Bounded modulo a constant [duplicate]

How do I put a tilde directly underneath an inequality (i.e. directly beneath < or >)?
13
votes
1answer
296 views

Opposite product signs in the sense that black and white are interchanged

In a special algebra I use with amssymb the products \newcommand{\bDiamond}{\mathbin{\Diamond}} \newcommand{\bLozenge}{\mathbin{\blacklozenge}} \newcommand{\bCircledast}{\mathbin{\circledast}} ...
2
votes
1answer
65 views

Subformula numbering problem in ConTeXt

The second formula has no number. Is it a bug? \starttext \startsubformulas[eq:equation] \placeformula[eq:first] \startformula c^2 = a^2 + b^2 \stopformula \placeformula[eq:second] ...
11
votes
4answers
372 views

Filled \Diamond-product sign

I use the multiple \Diamond-product sign (\bDiamond) as described in sign for multiple $\Diamond$-product. Now, in addition, I would like to have a filled \Diamond-product sign, i.e. filled with ...
4
votes
2answers
117 views

Hyphens in mathmode

Whenever I write a hyphenated word inside \mathit or \mathbf or whatever ... \mathit{long-variable-name} ... I always intend for the hyphens to be hyphens, not minus signs. There is a webpage ...
5
votes
1answer
48 views

Avoid brackets with a command having an optional argument as subscript

I have the following code: \documentclass{article} \newcommand{\quot}[3][c]{\frac{#2}{#3#1}} \begin{document} \LARGE $A_\frac{a}{bc}$ $A_{\quot{a}{b}}$ $A_{\quot[d]{a}{b}}$ \end{document} If I ...
4
votes
1answer
156 views

command \o is invalid in mathmode

I am using textlive2014 (and I had the same error in 2013 and before though). Only now I decided to do anything about it. Whenever I type a formula containing $\o$ I get the warning Command \o is ...
5
votes
1answer
52 views

Problem in using \everymath{\sansmath}

I would like to use \everymath{\sansmath} and change the typeset of all the equations in my document as a replacement for using \sansmath{$equation$}. However, I am not what I am missing that ...
3
votes
2answers
98 views

returning maths values in a new command

So I'm trying to construct a command which calls another command to make typing easier, but for some reason I'm not able to get the commands to return things properly. Here is what I have ...
4
votes
1answer
147 views

Using a math font matching San Serif Font

How can I match the font of an equation to a Sans Serif font? I am using the following code. \documentclass{article} ...
1
vote
0answers
61 views

Spacing of fractions in TeX Gyre Pagella Math

Using TeX Gyre Pagella Math with xelatex, some objects like \frac12 just seem way too large compared to the rest of the equations. Have a look: In the first line, the numerator looks like it's ...
4
votes
1answer
90 views

Replace several letters in math font

I need to typeset a whole document sans serif with sourcesanspro, including formulas. I know that there are a lot of arguments against doing this, but in this particular case it makes sense. My ...
1
vote
1answer
67 views

How to do Three column Addition?

I want to write a primary school sheet of exercices (additions in columns) with big digits in LaTeX. When i want to do two columns, it is easy with xlop, but i can't to do three columns! How to do ...
0
votes
0answers
19 views

Summing a list and specifying number of elements on list

How would I create something like either of the following on LaTeX?
4
votes
4answers
113 views

Dividing Long Equation using Split

I have a long equation as below, As the equation is too long, I am working to split it. Unfortunately it was not successful. Confused where could be the mistake. Could you assist to point it. MWE: ...
2
votes
2answers
199 views

Should I use \mathsmaller with superscripts and subscripts in \frac?

I am stuck with how to best format this equation and would love if you stylish tex-heads could help me out. It looks like this: I am happy with it except for the: I think the 2 and 0 are too ...
6
votes
1answer
104 views

How to deal with different commas in text and math mode?

I'm writing a thesis and decided to use Charter (\usepackage{XCharter}) for text and Palatino (\usepackage{mathpazo}) for math. Unfortunately the commas in Charter and Palatino look very different, so ...
4
votes
3answers
64 views

Alignment using an alignat{2} environment

In the following code, I have the appropriate alignment. All the equal signs are aligned. There is one expression that is written on two lines; I wanted the first plus signs aligned. I used an ...
1
vote
0answers
159 views

Problems with ipython notebook Tex [closed]

I'm using ipython notebook with the following Tex code %%latex We begin with the formulation of Maxwell's Laws. \newline Once \begin{aligned} \nabla \times \vec{\mathbf{B}} -\, \frac1c\, ...
1
vote
0answers
53 views

Missing font shapes

I have a problem with missing font shapes. I'm working on lecture notes and made some corrections to a very large latex document, so I did not set up everything by myself. Now I encoutered the problem ...
1
vote
1answer
58 views

How to write mathematics in cover letter? [closed]

I can't write $\ell_1$ and other mathematics symbol in this cover letter: what packages are needed? \documentclass[a4paper,parskip=full,]{scrlttr2} \usepackage[urw-garamond]{mathdesign} ...
2
votes
1answer
39 views

aligning equations with a tag

\documentclass{article} \usepackage[a4paper, total={6in, 8in}]{geometry} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fourier} \usepackage{mathtools} \usepackage{amsmath} ...
9
votes
3answers
243 views

Is it possible to give colors to big (automatic) parenthesis in math mode?

In the following code I can't make the right parenthesis to have arbitrary colors. \documentclass{article} \usepackage{amsmath} \usepackage{xcolor} \begin{document} \begin{equation} ...
6
votes
1answer
201 views

Typesetting mathematical constants

Is there any command for typesetting constants in mathematical formulas? I would imagine something similar to \operatorname or \DeclareMathOperator, but for constants. I want the constant to be ...
4
votes
1answer
94 views

How to show latex commands in text mode

Sorry for the basic question. What I want to do is to show the latex command and, right after that, the output. But how can I show latex formulas without obtaining errors for not using the math mode ...
5
votes
1answer
110 views

Define certain letter in math-mode to be always non-italic

Imagine I have a 500 page book about complex numbers. But I always wrote just j in math-mode as the imaginary unit. But I should have written \mathrm{j}. Is there a command I could write into my ...
1
vote
0answers
92 views

sqrt upright style

I need to change the style of sqrt and should make it a little bit narrower than the standard. second picture shows what I would like to have. any help is appreciated.
0
votes
1answer
68 views

Formula with numerator and denominator of a fraction in display mode [duplicate]

I have the following formula and I want the nominator and the denominator to appear in display style. I use \everymath{\displaystyle} so I don't understand why they are not in display mode. How can I ...
11
votes
2answers
296 views

big formula with description

It is possible to make the following thing, helping you Latex...?
4
votes
2answers
87 views

Conflict between animate package and math delimiters?

I've encountered an unusual problem with the animate package and the use of math delimiters, like \left\{. When compiling the MWE, I get the error Missing delimiter (. inserted). on the math line. ...
6
votes
2answers
100 views

Using \mathpalette with macros that take more arguments

As I understand it, \mathpalette takes two arguments; the first must be a macro A that itself takes two arguments. A will be passed as #1 commands to reproduce the math enviroment at the location ...
1
vote
1answer
74 views

Center-justifying first part of multline

Consider the following MWE. With my document setup, the equation has to be broken into two lines. Luckily I can get the entire matrix on one line, so I can break the equation after the equals sign. By ...
3
votes
2answers
118 views

Typesetting ST-traces in LaTeX

An ST-trace is a string with additional back-reference arc or arrows which may cross. An example may be seen at page 13 of http://kilby.stanford.edu/~rvg/pub/STbisimulation.pdf So, basically, this ...
3
votes
1answer
75 views

Math w/italics in normal context, roman when in italic context (ie, caption)

I have not found this question asked previously. I am fine with math using italics for variables when the math appears in a normal context. But our figure captions are in italics, and when math is ...
3
votes
4answers
80 views

How can I change the font of all equations?

I'd like to change my default font style in all equations of one document, not just single equation. I guess I am using \usepackage[utf8]{inputenc} and \usepackage{amsmath}, which may be related to ...
1
vote
1answer
40 views

Upright text in math mode for chemical elements [duplicate]

I have a line as follows: \documentclass[a4paper]{article} \usepackage{siunitx} \begin{document} {$d_{(O_{1}-Zn/Mg)}(\SI{}{\angstrom})$ \end{document} showing: I don't want the letters to be ...
3
votes
1answer
59 views

How to typeset times in regular text

How should I enter in a time of day in latex in order to have it typeset properly, if I am using the amsmath package? I am using pdflatex. say I want to write "12:00". In math mode, this gives a ...
10
votes
4answers
378 views

Changing the behavior of $$ but not of $

I am trying to set things up so that occurrences of $$ are replaced by \] if in math mode, \[ otherwise. My strategy is to make $ active and have it behave differently depending on whether the ...
0
votes
0answers
41 views

Font-independent convention for multi-letter variables in math mode

For several years now, I have always used \mathit to display variables that have more than one letter, to ensure proper kerning: \fbox{$foo = f(jazz)$} vs. \fbox{$\mathit{foo} = f(\mathit{jazz})$} ...
1
vote
1answer
82 views

\texorpdfstring for a full book

I am currently writing a thesis which is full of math equations and I always get the warning Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): I have read that the ...
1
vote
1answer
44 views

Resize characters in figure caption

I frequently use \scalebox from the graphics package in math-environment as $x^{ \scalebox{0.55}{(n)} }_{i}$ which works fine. However, I am not able to use the same sequence in a figure caption: ...
11
votes
2answers
207 views

How do I get filled black < and \leq?

I want to define an order relation where I to distinguish want to fill in with black so that I have a black lying triangle in the first case and a black lying triangle with the suitable line below as ...
1
vote
1answer
46 views

How can I align horizontally matrices of different dimensions?

I'm wondering how can I align two different matrices horizontally. They are: [-1 0 +1] And: [-1 0 +1].T This is my code: \begin{equation} \begin{bmatrix} -1 & 0 & -1 \end{bmatrix} ...
6
votes
4answers
178 views

Line breaks in part of the equation in math mode - how to?

Does anybody know how to do this: Thank you!
5
votes
5answers
166 views

add (a little bit long) comment on the equal sign?

There are posts here explained how to Add a comment on top of "equal" and "approximate" symbols , the idea is to use \stackrel{text}{=}, however, if the text is a bit long, for ...
1
vote
1answer
76 views

no new lines in lyx output from the latex code insertion

\begin{widetext} \begin{displaymath} a+b=c;\\ d+e = f;\\ e+m = n;\\ \end{displaymath} \end{widetext} I am using the above code as an inserted Tex Code in Lyx ...
4
votes
3answers
248 views

How to write two equations as part of one equation?

\begin{equation} \begin{align} \mathbf{x_{t}=f_{t}(x_{t-1},u_{t})}\\ \mathbf{y_{t}=g_{t}(x_{t},v_{t})} \label{eq:state-space&obs-equ} \end{align} \end{equation} I want that y(t) equation should ...
2
votes
0answers
39 views

\max with two arguments below eachother [duplicate]

I am trying to use \max with two arguments like so: \max_{0 \leq k \leq n, 0 \leq l \leq n} But I want to have the 0 \leq l \leq n below the 0 \leq k \leq n not next to it. How do I do this?
6
votes
2answers
63 views

Two vertical lines with expressions spanning a few rows between them (math)

I'm pretty new to Latex, learning it while doing. I mainly use doc and latex wiki, but there are occasions when I can't find something. I am doing some math. I need to have some math formulas followed ...