{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
55 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 ...
7
votes
4answers
218 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.
2
votes
2answers
59 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? ...
0
votes
4answers
166 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 ...
5
votes
2answers
93 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} ...
4
votes
4answers
116 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.
12
votes
5answers
361 views

Integration Symbol with Limits

How can I write the integration symbol in latex as shown in the picture?
2
votes
1answer
75 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
130 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
83 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
139 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
132 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
68 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 ...
2
votes
1answer
39 views

Flashcards with textfraction

\documentclass[12pt]{article} \special{papersize=3in,5in} \usepackage{amssymb,amsmath} \usepackage{fontspec} \usepackage{lmodern} \usepackage[ngerman]{babel} \pagestyle{empty} ...
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} ) - ...
7
votes
2answers
111 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} ...
3
votes
1answer
71 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
110 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
42 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
3answers
87 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
74 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: ...
9
votes
2answers
274 views

How can I use mathematical symbols and other special characters in URLs in footnotes?

I want to footnote a URL which contains mathematical signs such as = and LaTeX asks me for a $ sign to take it to mathematical space (and therefore changing the font which is not suitable). How should ...
2
votes
2answers
141 views

undefined control sequence in latex

I snippet of my code is presented here.I do not understand why I'm getting the error undefined control sequence.I have also included the package amsmath. \subsection{Logistic Regression} \noindent ...
0
votes
2answers
95 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
2
votes
0answers
31 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
38 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
275 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
48 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)$. ...
2
votes
1answer
62 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 ...
1
vote
1answer
157 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, ...
13
votes
2answers
408 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 ...
1
vote
1answer
80 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 ...
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
141 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 ...
1
vote
1answer
71 views

Integral with cross line [duplicate]

Kindly send the latex code for this integral symbol
0
votes
0answers
22 views

Math equation problem help [duplicate]

I got the following message based on the code below, any one tell me how to debug it: ! Missing $ inserted. $ My code is: \documentclass[11pt]{article} \usepackage{amsmath} \usepackage{amssymb} ...
0
votes
0answers
44 views

Math equation bug [duplicate]

I have the following formula, the problem is that once I add \begin{equation} ...\end{equation} I receive an error message, but If I add the same formula between two $..$ it is work properly. any one ...
2
votes
0answers
35 views

Widecheck over two \hat [duplicate]

I need to write a formula with a \widecheck over two \hat. The equation is the following: \documentclass[a4paper,11pt]{article} \usepackage{amsmath} \usepackage{amsfonts,amssymb,mathabx} ...
4
votes
5answers
218 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} ...
2
votes
2answers
91 views

Summation as exponent

x^{\displaystyle\sum_{k=1}^n {n \choose k}p^k + 1} How can I make the exponent look smaller?
6
votes
2answers
189 views

Why are minus signs not working in this equation?

In the below equation I'm writing, 2 minus signs are not visible, why is that? $\phi (s, \lambda) = C \frac{ 1 + \beta^2 − 2 \beta cos( \frac{2 \pi s}{\lambda} ) }{ \lambda^5 \exp( \frac{ h c }{ ...
1
vote
1answer
66 views

LaTeX code for text above the $\rightarrow$

Hi I am wondering what code is used to get text above the $\rightarrow$ have tried $ \xrightarrow{P}$ but not running on my LaTeX as I do not know which package to install or how to install it. ...
1
vote
1answer
34 views

Sequential \frac that aren't nested [duplicate]

I'm new to Latex and am having trouble troubleshooting an equation that I can't get to display correctly. The equation I am trying to create in Latex is: ...but I keep getting nested fractions ...
3
votes
1answer
62 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 ...
5
votes
1answer
171 views

How to use comicsans only for the text but not for the math?

Considerations: Most of us might know the Latin alphabet well. Some of us might not be familiar with Greek alphabet. As a result, comic sans for text contents does not seem to be an issue but it ...
8
votes
2answers
147 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 ...
3
votes
1answer
55 views

htlatex does not seems to like $\mathit{}$ in subscripts

When I compilethis MWE: \documentclass[a4paper,12pt]{article} \begin{document} Test $x_\mathit{in}$ \end{document} ...it works perfectly with latex and pdflatex. If I try to use htlatex on it, it ...
1
vote
0answers
118 views

How to convert Latex code to generate equations in Powerpoint? [duplicate]

I have exported my maple mathematical matrices to latex and now I want to show those equations in Powerpoint presentation. I have installed MathType in MS Powerpoint that converts basic latex codes or ...