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

4
votes
2answers
194 views

LaTeX symbol for “divides precisely”

I sometimes need to write that a certain prime p^k precisely divides a number n, meaning that p^k | m but it is not the case that p^{k+1} | m. It is often written as: p^k || m, where the symbol in the ...
0
votes
0answers
23 views

inequality sign vertically rotated [duplicate]

I am trying to do a similar thing as in vertical equal sign but with an inequality sign instead. I tried replacing = with \ineq in the line \newcommand{\verteq}{\rotatebox{90}{$\,=$}} but could ...
5
votes
4answers
199 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? ...
18
votes
3answers
13k views

Differences between \stackrel and \stackbin

What are the differences between \stackrel and \stackbin? In what situations is it better to use one or the other?
5
votes
2answers
833 views

Math italics with unicode-math.

I'm using Tex Live 2010. Here's the example I want to discuss. \documentclass{article} \RequirePackage{amsmath} \RequirePackage{unicode-math} \setmainfont{Linux Libertine O} ...
2
votes
1answer
48 views

changing the general theme of math fonts

I'm using latex templates which is producing a particular kind of math font, shown below. How can I change it to produce something like following? I'm particularly interested in changing the math ...
2
votes
2answers
56 views

How to break line of subscript under min?

$$ \min_{c^{(1)}, c^{(2)}, \cdots, c^{(m)}; \\ \mu_1, \mu_2, \cdots, \mu_K} \frac{1}{m} \sum_{i=1}^m \left\lVert \vec{x}^{(i)} - \mu_{c^{(i)}} \right\rVert $$ The \\ does not seem to do the trick? ...
7
votes
4answers
206 views

auto-detect conditional probabilities in macro

Is it possible to write a macro that detects whether there is a | character in its arguments, and expands that to something else? In concrete terms, I want to be able to use the following definitions ...
3
votes
2answers
57 views

Is there a better (more condensed) way of formatting a subscript \perp (or \bot)?

I'm writing a lot of these types of formulas: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \mathrm{e}^{-\mathrm{i} \boldsymbol k_\bot \cdot \boldsymbol r_\bot} ...
1
vote
1answer
78 views

How to write $\~{B}$

How to write $\~{B}$ in latex. During writing it shows that ! Please use \mathaccent for accents in math mode. Please suggest me.
4
votes
4answers
97 views

! Missing $ inserted (normal text in Bmatrix)

\begin{Bmatrix}\text{Of what nacion.}\\text{Of what countrée.}\\text{Of what auncetours.}\\text{Of what parentes.}\end{Bmatrix} Apparently, I'm supposed to insert $ but I don't know where.
5
votes
2answers
85 views

How to color equations in TeXify

I am using texify.com to generate images of equations, so that I can put them in emails. I am trying to insert a colored equation, using the following code: {\color{green} dy} = {\color{red} ...
0
votes
4answers
145 views

Why does \leq show up as \le?

My only two packages are amsmath and amsfonts. When I type \leq, it shows up as if I had typed \le. How do I do the actual less-than-equals (>=) sign? Edit: I typed \leq and the output symbol was ...
6
votes
2answers
92 views

replacing eqnarray when several alignment tabs are present

I have three mathematical equations which I would like to have typeset in one block such that they are aligned at the equality sign = and the following comment. Up until now, I've been using eqnarray ...
12
votes
5answers
349 views

Integration Symbol with Limits

How can I write the integration symbol in latex as shown in the picture?
2
votes
1answer
58 views

Notation for multivariate normal

I would like to find a good notation and LaTeX way to depict a multivariate normal with a specific covariance matrix (ie. not a generic sigma). Here is my attempt, which compiles but does not look ...
2
votes
2answers
129 views

Equation setting

I have a problem with this equation compilation at the end{split} please fix it. \begin{equation} \begin{split} \frac{\partial }{\partial X_{j}}(\rho \bar u_i \bar u_j) = -\frac{\partial \bar ...
4
votes
1answer
71 views

Change font size of math sans serif font only?

I'm using the Arev font for math sans serif. However, the font produces slightly larger letters compared to my roman math font: \documentclass[a4paper, 10pt]{scrartcl} \usepackage[T1]{fontenc} ...
2
votes
3answers
135 views

\middle too big

I'm trying to typeset an equation that contains a "|": \begin{align*} \lambda_{l} = \lim_{q \to 0^{+}}P\left(X_{2} \leq F_{2}^{(-1)}(q) \middle| X_{1} \leq F_{1}^{(-1)}(q) \right) \end{align*} ...
7
votes
1answer
936 views

indexed letters inside circles

I'm currently using this code \raisebox{.5pt}{\textcircled{\raisebox{-.9pt} {f}}} to get I'm trying to index the function f inside the box, with say $f_{n}$ but \textcircled doesn't seem to ...
7
votes
1answer
115 views

Systeme package

I am using the systeme package to create an equation system. I am also using the mtpro2 package for mathematical notation. When I want to create a 2x2 system with a curly bracket it works just fine ...
3
votes
2answers
65 views

Lining numbers in mathnormal

Is there a simple way to have lining numbers (instead of old style ones) using \mathnormal{} ? I want $\mathnormal{abc123}$ to look like $abc123$. My problem is that I have an operator ...
7
votes
2answers
106 views

Bad rendering of parentheses of binomial coefficient in Beamer

I am working with documentclass Beamer version 3.10 and I have a problem with the rendering of the parentheses of the binomial coefficient. Here the code: \documentclass[aspectratio=169, 8pt]{beamer} ...
5
votes
4answers
78 views

Increase the spacing of rows in equations

I have a formula and I want to increase the space between the rows to make the reading easier. \begin{equation} \begin{flalign*} \epsilon \bm{\Xi}_n & = M_\epsilon(\bm{x}_{\epsilon,n-1} ) - ...
2
votes
1answer
36 views

Flashcards with textfraction

\documentclass[12pt]{article} \special{papersize=3in,5in} \usepackage{amssymb,amsmath} \usepackage{fontspec} \usepackage{lmodern} \usepackage[ngerman]{babel} \pagestyle{empty} ...
3
votes
1answer
64 views

Nested matrices with aligned columns and rows

I'm trying to represent "matrices" with more than two dimensions, like the Riemann curvature tensor or Christoffel symbols, using nested matrices. I still don't know if this can help working with ...
4
votes
2answers
104 views

color block of text without repeatedly using /textcolor

I want to color the answers into blue however my current solution is not really viable as each line needs to be colored blue individually due to my use of \par\bigskip messes up \textcolor if its in ...
0
votes
1answer
40 views

How to remove space in math mode inside a tabular environment

I'm using some semantics formula that contains both math symbols and text inside a p{} column in a tabular environment. The formula is too long to fit in the column, then LaTeX has to create new lines ...
2
votes
1answer
343 views

Text both above and below double arrows

I would like to use a command like \xleftrightarrows[#1]{#2} namely extendable arrows for double arrows with an optional superscript and subscript Mathtools package provides ...
8
votes
2answers
135 views

vertical equality in

How does one get inline or at least formula space typography of the following sort in an easy to parse (for the editor) way when writing formulas, for instance: Yes, I know, the equalities ... can ...
9
votes
2answers
10k views

Extra space between number and variable in math mode

I find that if I typeset $3 q$, I find the 3 and the q a bit too close to each other. I know that I can manually add a thin space by typing: $3 \, q$. However, I was wondering if there was a way to ...
2
votes
3answers
83 views

I think fractional expressions in my text is small and not normal?

\documentclass[12pt]{book} \usepackage{amsmath,amsthm,amssymb,amsfonts} \usepackage{xepersian} \begin{document} \begin{persian} \lr{$-\frac{1}{3}$} \hspace{1cm} $-\frac{1}{3}$ ...
2
votes
1answer
72 views

Equation + explanation below

I have to write an explanation to my equation, and I would like to do it, below the equation. But, I do not know how to do that. It should look like this: My preamble look like this: ...
6
votes
2answers
159 views

Word wrap in \text{} in math mode

I'm trying to type formula, which requires some textual comments. I perform this using \text{} command in math mode. However, word wrap doesn't work. What should I do? Code sample: ...
0
votes
2answers
92 views

How to create this simple model with arrow and text on the top?

How to create this simple model with arrow and text on the top ? Regards
11
votes
2answers
342 views

How to create a list of symbols where symbols can be used in math mode?

I describe complex protocols with lots of variables in different files. The problem is that I might change the variable names later. My idea was to define variable names as Latex commands like ...
2
votes
0answers
30 views

Matrix with line and matrix operations [duplicate]

I want to produce this matrix: For the vertical line I can use \begin{array}{cc|c} and for the matrix operation I use environment gmatrix from the gauss package. But I can't use these options at ...
0
votes
0answers
35 views

How to display numbers in the math mode in the same font as in the text? [duplicate]

I have set my default font family for the text as sans serif with \renewcommand*{\familydefault}{\sfdefault} and now I want for the math mode to display the numbers in the same way as they appear ...
3
votes
3answers
226 views

Problem in writing the system of equation in LaTeX

Here's the code I have and here's the system of equation it creates which is not working as desired. Do you know how I can fix it? \item For what value of $b$ would the following system fo equations ...
1
vote
1answer
43 views

How to show a wide bar over a letter?

I want to have a wide bar over XY but it just shows a small bar. Any idea? \item In the standard $(x,y)$ coordinate plane, point $X$ has coordinates $(-4,0)$ and point $Y$ has coordinates $(0,-8)$. ...
13
votes
2answers
392 views

Why does \textbackslash render as “n” in math mode?

I've just rendered the following: \documentclass[varwidth=true, border=2pt]{standalone} \begin{document}$\textbackslash$ \end{document} which seems to give the same as $n$. Do you know why? As ...
2
votes
1answer
49 views

AucTeX - Turning inline mode into displaymath and vice versa

Usually, when redacting math stuff, I deal many times with the following situation : I have written some formula in a displaymath environment and, when compiling, realize it should look better inline ...
3
votes
1answer
60 views

cmex bold font missing

I am not able to find the bold variant of cmex10 font in Type 1 format. Really it is missing in all common TeX distributions? I know that this variant was not included in Knuth's Computer Modern ...
1
vote
1answer
106 views

How to write conditional equations with one-sided curly bracket in TeXmacs [closed]

Here is the photo. How to write conditional equations with one-sided curly bracket in TeXmacs? I tried inserting Equation and Equations. I didn't manage to insert the curly bracket. In LaTeX, ...
1
vote
1answer
117 views

Adding equation with text

I am trying to add an equation in the line and it changes the formatting of text written after that like this. It makes quadratic equation which is ax^2 \pm bx \pm c .\\ then by eliminating the ...
1
vote
1answer
70 views

Make font size of numerator the same as denominator?

I have a simple question, I would like to make the font-size of the numerator the same as that of my denominator. For example, something like this: e^{-j \frac{2 \pi n k}{K_F}} gives me an ugly ...
4
votes
5answers
216 views

What is the most elegant way to get a diagram showing elimination method to solve simultaneous equations?

First of all, I show you my effort as follows. It seems to be too complicated in coding with unsatisfied output. \documentclass[border=12pt,12pt,varwidth]{standalone} \usepackage{mathtools} ...
40
votes
4answers
6k views

What are the differences between $$, \[, align, equation and displaymath?

I once learnt, that it is uncool to use $$, but why is that? Why does \[ not act as a abbreviation to \begin{align}? I noticed, that there is a difference, since one cannot use & and \\ inside a ...
5
votes
2answers
155 views

How can I cancel the effect of {} in untouchable macros?

Assuming that we cannot change the implementation of \blackbox that is \def\blackbox#1{{}#1} What should we pass to \blackbox such that $\blackbox{<something we need to pass>}$ produces the ...
12
votes
1answer
132 views

Fixing mathit spacing with unicode-math

I am using lhs2TeX to convert code into LaTeX. It typesets code into math mode. As I am also writing math formulas in the same document, I use unicode-math to switch between different math mode fonts ...