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

39
votes
8answers
1k views

Is there a way to automatically transpose a matrix written in Latex?

As writing matrices in LaTeX is an extremely time-consuming activity, I was wondering if a software or a site exists that automatically gave the transposed form of a matrix, that is to say, given a ...
6
votes
1answer
47 views

Hiding an equation tag but still using it for referencing

I use the semantic package for displaying natural deduction-style inference rules in equations. The \inference command has an optional argument which can be used to tag rules: \inference[Rule1]{A}{B} ...
8
votes
1answer
44 views

How to define ReDeclareLargeMathOperator

I want alter an existing math operator by applying a macro to it. In the MWE the \ReDeclareLargeMathOperator applies the \ProcessSymbol macro which in this example changes the color of the symbol as ...
2
votes
1answer
60 views

Why \ell produce a character like grave in PDF?

\`{}$\ell$ \bye produces a PDF, then I search ` in it, finding two, why?
4
votes
3answers
285 views

How to get big curly braces for an equation with 3 parts?

I am very new to LaTeX. I want to display this: How should I go about doing this?
1
vote
1answer
42 views

Avoid splitting of math expressions in text [duplicate]

I am writing a math expression, $P = \omega \tau$, in the middle of my text, and LaTeX splits it such that "P =" is on one line and "\omega \tau" is on the next line. I would like the whole expression ...
2
votes
2answers
218 views

Error when trying to change imaginary unit's style

I want to have a special symbol for the imaginary unit i, but I also need the usual character for the letter i in the same context. So, I tried to change the style of the imaginary unit by setting ...
1
vote
1answer
23 views

Setting a question font / style that will apply to text and inline math environment?

I have defined two commands for the font/style of questions and key concepts in my notes as follows: \newcommand{\key}[1]{{\bfseries\sffamily#1}} \newcommand{\qtxt}[1]{\textbf{#1}} Where the ...
2
votes
1answer
77 views

Correct way to write words with - in formula

I am wondering if there is a generally preferred way to write words with - in formula. For example: $k-distance$ or $k \textit{-} distance$ of maybe something better?
1
vote
1answer
46 views

Spacing around variables in math-mode

I'm using mtpro2 for math. In the original math-alphabet (the font mtpro2 uses), the letters seem to have greater spacing around them than what I would like. For example: $ GM = tc^3 $ produces ...
1
vote
0answers
52 views

Big double integral sign

I'm trying to make a double integral, but, somewhy, the sign appears small compared to regular integral signs, does anybody knows why? And how do I solve this? I am using the 'equation' environment
2
votes
2answers
69 views

Why does Latex add arbitrary spacing between equations when using multicolumn?

After using multicolumn to divide up the page into three columns, some of my equations massive space in between the texts For example: The left most column, we see that there are spaces between the ...
4
votes
5answers
95 views

How do I center a \Large equation in display mode?

I have an equation in display mode and would like to make it bigger using \Large, but the equation runs off the right side of the page while there is much room on the left side of the page. The ...
2
votes
1answer
60 views

ceiling and floor functions used as min and max: ever seen? [closed]

I remember seeing somewhere people using symbols for ceiling and floor operators together with super/subscripts as substitutes for min and max. Example: \lceil x \rceil ^k to mean \min(x,k). Has ...
1
vote
2answers
37 views

Aligning inside a table across a column

I have a table in which a column looks like this: I want to align the $\ge$ signs one below the other. How do I achieve this? I was also hoping that the solution would be generalizable, in the ...
10
votes
1answer
169 views

Why does \big\setminus not work?

The two macros \setminus and \backslash both produce a backslash in mathmode that is customarily used to denote, well, set differences: $A\setminus B$, $A\backslash B$. For \backslash there are also ...
3
votes
2answers
86 views

Is there an environment similar to alignat, but embedded in a single equation?

As explained in this answer, the difference between align and alignat lies chiefly in the presence of some spacing between even and odd columns. I would like to get the same result as with alignat ...
4
votes
1answer
126 views

Using PDFLaTeX inside C# .Net code does not load some math symbols

On my Windows 8.1 with MikTeK installed, the following C# code successfully generates a PDF file with Math expressions except for some Unicode codes such as plusminus sign: ProcessStartInfo startInfo ...
2
votes
0answers
30 views

Spacing in displayed equations with a piece of text in the middle

In order to avoid an excess of symbolism, I like to typeset displayed equations with some text replacing some connective, as in (\forall x\in \mathbb{N}: \{1,\dots,x-1\} \subseteq B) ...
5
votes
1answer
152 views

Usage of \newcommand

I'm not sure why this command isn't working out for me. \newcommand{\sprod}[2]{\left|\left< {#1} \right| \! \left. \! {#2} \right>\right|} When I have $\sprod{\psi,\phi}$ in the body, my ...
0
votes
0answers
15 views

Weird beamer and xelatex math interaction [duplicate]

I'm trying to use xelatex with beamer (I know, bad idea!) so that I can use a particular style file that I like. I'm running into some weird math display problems. Here's my MWE: ...
5
votes
2answers
799 views

Error: Please use \mathaccent for accents in math mode for the following code

$$ = \sum_{e \in A} w(e) = \sum_{e \in A} w(e)+ \sum_{e \in \{(r,v)| v \in V(G)\}} w(e) = w( \~{A} ) $$ I'm not sure what's wrong with it. I'm in the math mode by using $$ $$, isn't it?
3
votes
1answer
53 views

colored underline with vertical spacing

How can I add a vertical spacing between the underline and other items by adjusting the \colorunderline command? \documentclass[12pt,b5paper]{article} \usepackage{amsmath} \usepackage{color} ...
1
vote
1answer
55 views

how to box formulas inside eqnarray* [duplicate]

How to box formulas such as \begin{eqnarray*} &&P(X_{n+1} = i_{n+1}\mid X_{0}=i_{0}, X_{1}=i_{1},\ldots,X_{n-1}=i_{n-1},X_{n}=i_{n}) \\ &&=P(X_{n+1}=i_{n+1}\mid X_{n}=i_{n}). ...
5
votes
2answers
99 views

Special Mathematics Arrow for 1-1 and onto Functions

I would really like to have an arrow which is a combination of $\hookrightarrow$ and $\twoheadrightarrow$. That is, and arrow with two heads and a hook. If anyone could help me out, it would be ...
5
votes
3answers
108 views

\sbox in math mode

I want to extract the width of an equation, but it gives me an error. ! Missing $ inserted. <inserted text> $ I do not understand what is missing. \documentclass{article} ...
1
vote
1answer
30 views

Insert hebrew at math-mode (LyX)

I'd like to insert some Hebrew words at math-mode at LyX, like can I inset \text or something like that... There is a way to do this? Even not at \text and by adding special characters (or things ...
21
votes
1answer
159 views

Why is the fraction off the math axis in XeTeX?

The fraction in textstyle is off the math axis in XeTeX when I use a Unicode math font. In LuaTeX, though, it aligns nicely with the math axis. The follwing MWE should illustrate this. Also, in ...
2
votes
0answers
48 views

How should I label the differentials (arrows) in sseq for a spectral sequence?

I'm trying to typeset a spectral sequence using the sseq package, which provides a way to place objects on a grid and draw arrows between them. I'd like to put labels on the arrows, as one can do with ...
1
vote
0answers
43 views

math equation tags below empheq box?

I have the following macro: \newcommand{\egan}[1] {\begin{empheq}[box=\mybox]{gather} #1 \end{empheq} } Which make a box around an gather environment. If the box is big (fills the whole ...
5
votes
2answers
725 views

What's wrong with the code of the equation?

I tried this code below but it does not execute and I couldn't find out what is wrong in the equation. What did I do wrong? $MDAC(t_{i,j}) = max_{ti}\epsilon pred(t_{j})(C_{i,j)$
1
vote
1answer
26 views

Clash between MnSymbol and mathastext

I can't seem to make these two packages play well. Is there a fix or should I just give up on it? Here is a MWE. \documentclass[oneside]{amsart} \usepackage{MnSymbol} ...
5
votes
2answers
110 views

Overset and mathbb collision

I have ran into really funny trouble trying to use \overset and \mathbb the same time. I need to do something like this: but with the T as mathbb, i.e. \mathbb{\overset{m}T}_{ij}. When I try it, ...
1
vote
1answer
150 views

Error Missing $ inserted, Help!

Buen día tengo un trabajo y quiero poner algunas cosas, soy nuevo en esto asi que me surgieron muchas dudas, este es mi codigo: \documentclass{beamer} \usepackage[spanish]{babel} \usetheme{Madrid} ...
2
votes
1answer
24 views

Cross reference of an inline equation

Consider the equation \begin{align*} \dot{x}_i(t)=f_i\left(x_1(t),\ldots,x_N(t)\right) \\ + g_i(x_1(t),\ldots&,x_N(t))u_i(t),\tag{$\Sigma_i(u_i)$}\label{eq:subsystem} \end{align*} ...
1
vote
1answer
61 views

Is there a way to put two labelled equations into one \begin{equation} and align both of them at the beginning?

I can't believe how difficult it is to work with \begin{equation}. I put one extra blank row under the equation and multiple errors popped up. Anyways, I have two equations which are labelled ...
2
votes
3answers
119 views

How can I align similar equations with different variables?

For example: \begin{align} \begin{cases} & x = X/Z = 1\\ & y = Y/Z = 1\\ \end{cases} \end{align} Any way to have the spacing for the X and Y be the same so that the ...
1
vote
1answer
35 views

Using 'kmath' in XeLatex

I'm using the Kerkis font family in XeLatex, but math-mode uses the default font. I have installed the OTF font files and it works fine for text when I am specifying it as the main font like this: ...
0
votes
1answer
41 views

Notating more than three prime marks for related variables [closed]

I'm using prime marks to distinguish several related variables, as I progress through a series of altered definitions: $$\eqalign{ x' &= \dots \cr x'' &= \dots \cr x''' &= \dots }$$ ...
6
votes
2answers
367 views

How to write two subscripts on top of each other in math mode?

I want to write something like Q_{a\in A,b\in B} but with $b\in B$ being below $a \in A$. What is the way to do so?
3
votes
1answer
41 views

Baseline of aligned equation

How can I fix the alignment of this equation? \[\aligned A = \aligned \Bigg( &a \\ &b \\ &c \Bigg) \endaligned dt \endaligned \] Current output: Desired output: I know I can ...
1
vote
0answers
23 views

Newcommand within display math mode

I am trying to define a new command in a .sty-file called physics that inserts the definition of a physical quantity in the text. The command looks like this: \newcommand{\defin}[1]{% ...
3
votes
1answer
50 views

Inline Boxed Equation

I'm having trouble producing a boxed equation in the same line as some other formulae. For example: $$ \frac{2}{4} =\[\boxed{ \frac{1}{2} }\] $$ I'd like to be able to show some calculations, ...
3
votes
1answer
36 views

Using \textstyle with \pmod

If I'm in a displayed equation but I want the \sum symbol to appear as it does in inline formulas, I can just put \textstyle in my equation. I thought that writing \textstyle would also force \pmod to ...
1
vote
2answers
56 views

tikzmark shadow around box

I have drawn a rounded box around my equations using this code : \usepackage[customcolors]{hf-tikz} \usepackage[framemethod=tikz]{mdframed} \hfsetbordercolor{green} \begin{equation} ...
5
votes
1answer
89 views

Simpler way to add color to equations in math mode?

I was looking for a simpler way to add color to math mode. Specifically, I wanted different parts of an equation to have different colors in order to better correlate with colors in a figure. The ...
4
votes
2answers
120 views

Text is smaller in fractions in multiline equations?

The text size shrinks in a multiline equation when I use fractions. How can I keep it the same as the non-multiline equation size? \begin{equation} \begin{cases} p = ...
3
votes
1answer
143 views

How to get j where the dot in the j becomes a tilde?

How do I get a j in math mode, where the dot in the j becomes a tilde? Attached is a picture. Thanks!
0
votes
0answers
30 views

XeLaTeX, sans serif math in beamer

I use the package cmbright with beamer when I typeset a document with pdflatex. Is there a sans-serif math font to compile a beamer presentation with XeLaTeX?
4
votes
1answer
71 views

Help with further TeXing

I wanted to recreate a diagram in LaTeX, so I did my best and created something with matrices. I am really content, but I still don't have the arrows with 'reële nulpunten' and 'complexe nulpunten' ...