Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [math-mode]

{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}.

0
votes
2answers
9 views

Missing bracket [duplicate]

I'm having a hard time to figure out what is wrong with the follwoing MWE \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} \langle n,l',l_s',m',m_s'\vert H_{\rm SO}\vert n,...
2
votes
0answers
14 views

Russian characters in equations without \textup in XeLaTeX [duplicate]

I want to change LaTeX engine from PdfLaTeX to XeLaTeX. There are a lot of formulas and equations with Russian text inside. And it used without any commands. MWE for pdflatex: \documentclass{...
0
votes
0answers
18 views

How to write “conditional one” in Latex [duplicate]

I want to write a "conditional one" in Latex but I don't know the precise name. It is a one with a double vertical dash that is equal to 1 if a condition is satisfied and 0 otherwise (a kind of ...
5
votes
4answers
250 views

Non-italic (roman) subscripts in math mode

Is there a way to set indices (subscripts) to non-italic globally? I'm aware of the case by case X_{\text{text goes here}} But I'm having to change that across a whole document is becoming a pain.
0
votes
0answers
48 views

Automatically convert math written in .tex into a canonical form that retains all the math information

I believe what I'm going to describe can be done accurately. However I'm not sure about how hard this will be. Basically my motivation is to standardize the math part in most existing math papers so ...
5
votes
1answer
64 views

Wrong position of the vcentered minus sign in subscript using stix2

Is there any way to place minus sign at the same height as the horizontal bar of the plus without using raisebox? \documentclass{article} \usepackage{stix2} \begin{document} \( I_{a\vcenter{\hbox{$...
3
votes
1answer
81 views

Make the equation in the center

I'm facing difficulties in compilation \documentclass[12pt,a4paper]{report} \usepackage{amssymb,amsmath,amsthm,mathrsfs} \usepackage{mathtools, nccmath} \begin{document} Let $\...
4
votes
2answers
126 views

Adjusting the spaces to look better?

The following output looks so dense. Could you make it more loose in both vertical and horizontal? MWE \documentclass[preview,border=12pt,12pt]{standalone} \usepackage{amsmath,xcolor} \let\temp\...
7
votes
1answer
105 views

What tips and tricks should I know when using the Georgia font in LaTeX?

Georgia is one of the most popular screen fonts around. What are some best practices for using the Georgia font, with LaTeX, in any TeX engine, in either text or math mode?
5
votes
2answers
27 views

Quotations in math mode using \enquote command from csquotes package

I'm using the \enquote command from the csquotes package for setting quotes. When I invoke quotations inside math mode, either by hand ``<some math>'' or by enquote \enquote{<some math>...
2
votes
2answers
62 views

How do I make my nicefrac fraction line larger?

I am trying to replicate this formula with LaTeX: However, I am struggling to make the fraction look the same. This is my attempt: \begin{equation} \label{eq:alphaK} \alpha(k) = \frac{1}{(N-k)} \...
2
votes
1answer
91 views

Beamer Class : Missing $ inserted, bad math environment, math mode should end wit $$

Hello guys first question and beginner in LaTeX, the following code presents part of my thesis presentation. I have no idea what i did wrong. Checked for brackets and $-signs twice. Maybe i did ...
2
votes
3answers
35 views

Retain inter-word spacing in math mode

Is there a shorthand/ instruction for math mode to simply retain words and not collapse the whitespace? I.e. rather than manually inserting spacing after each word with \, and friends. Here is the ...
0
votes
1answer
32 views

Problem in typing a symbol

I want to type this character as a symbol for energy: But when I type capital u, it is shown as: Please help me find the solution. Thanks
1
vote
2answers
27 views

Latex label right and left side of augmented matrix

How do I label both the right and left side of a augmented matrix ? begin{document} \[ \left[ \begin{array}{ccc|c} a & b & c & d\\ a & b & c & d\\ a & b & c &...
0
votes
1answer
37 views

How to put a dot on a \mathbf letter in LaTeX? [on hold]

I am trying to put a dot on a \mathbf letter, \dot{\mathbf{\tilde{x}}}(t) but I get error.
5
votes
2answers
534 views

Why am I getting Unidcode Error for some equations after updating Microsoft Windows from 7 to 10?

I have upgraded Windows from 7 to 10. When I am compiling some latex files, which were already built in Windows 7 and used to work fine - now in Windows 10 I am getting this error message for some ...
0
votes
1answer
21 views

How to add a short text in math-mode keeping spaces between words

I am writing the following: $$p(Z_{n+m}=i for some m> 0|Z_{n}=i)=1$$ Compiling, the spaces between the words "i for some m" are removed giving as a result "iforsomem" How can I prevent this? ...
0
votes
0answers
29 views

conversion problem [closed]

please guys i need this to be translated in text for me,i have tried my best and it's not working out 7VV4 III V VIII IV 9 IV 7 II V XII5 9 I IV V XIII XV V XI 31 IV IV V X 453V45 X89IX ...
0
votes
0answers
30 views

Align subset between equations [closed]

I am writting a report and I have multiple systems of equations. I want to avoid have too big numbers (Equation 4.200 for example). I am trying to get: 4.10.a 4.10.b 4.10.c For the system. After ...
1
vote
1answer
34 views

Making Inequalities Neat

How do I make my inequalities neat? I find the horizontal spacing between all my < symbols horrendous. And I feel the same way about the vertical distorition caused by \cfrac. Suppose $\delta &...
5
votes
3answers
127 views

Aligning formula problem

\documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} y ={}& \frac{1}{n!} \left\lbrace \int + f(a) \right. \\ &\left. \vphantom{\int} + [h(u)+\phi(x)] + C \right\...
4
votes
2answers
87 views

Symmetrization and antisymmetrization of tensor products

How do I achieve something like or in LaTeX? The curved lines indicate symmetrization with respect to the indices they join, and the straight lines indicate antisymmetrization.
6
votes
1answer
188 views

No spacing after \Sigma?

There seems to be barely any spacing (if at all) after \Sigma, making it hard to read. Is this normal? Is there any way around it? $ \Sigma_{v \in V} \alpha $ Output: Desired output:
0
votes
0answers
21 views

hide text from displaying but retain it selectable and searchable

Continuing https://tex.stackexchange.com/a/463516, is there a way to create an invisible PDF text associated with a drawn symbol? Assume that we have some command (say, \sqp) which draws some symbol ...
0
votes
0answers
25 views

typeset some unfamiliar math symbols [duplicate]

Can anyone here please help me to typeset the following math equation in LaTEX? TBH, my problem is I just do not know the name of the symbols in the math equation, except "\rho" symbol. As such, I ...
5
votes
2answers
76 views

Customize overrightarrow

I would like to typeset an arrow over a pair of letters, in the way that overright does: i.e., as \overright{PP'}. However, I would like the arrow to be a different style: specifically, I would like ...
0
votes
0answers
24 views

How to keep the paren style of math-font mtpro2?

\documentclass{article} \usepackage{amsmath, amsfonts, amssymb}% \usepackage[lite]{mtpro2} \let\notsimeq\relax \usepackage{unicode-math} \setmainfont{XITS} \setmathfont{XITS Math} \begin{document} \[...
0
votes
0answers
40 views

vertical space between two equations

1. What is the default vertical space between these two equations? \[x+1=0\] \[x+2=0\] 2.What is the default vertical space if I leave between them a blank line? I want to know this value so I can ...
6
votes
2answers
208 views

Command for vector dot with some power

So what I am trying to type is the square of the derivative of vector x. I tried \dot{vec{x}}^{\,2} as well as \dot{\vec{x}^2}, but the outputs came out to be very offset. Is there a correct way to do ...
1
vote
1answer
27 views

Problem of writing mod in congruence with brackets and fractions

I want to write this: a\pmod{\frac{a}{b}} - But the size of the brackets don't fits the fraction: What can I do to fix it? I see the answer here Fraction in \pmod bracket but I'm using LyX so I ...
3
votes
1answer
198 views

What's wrong with this Latex equation? Missing $? and undefinded control sequence

\documentclass[10pt]{article} \usepackage[usenames]{color} % Farbunterstützung \usepackage{amssymb} % Mathe \usepackage{amsmath} % Mathe \usepackage[utf8]{inputenc} % Direkte Eingabe von Umlauten ...
1
vote
1answer
53 views

Write conversion factors in LaTeX

I would like to write the following conversion factor in LaTeX, I've been looking in different manuals and I can't find anything. I hope you can help me. I have come to the following, but the problem ...
2
votes
1answer
35 views

Braces and alignment

\begin{align} \begin{cases} 2x + y &= 5 \\ 2x - 3y &= 1 \end{cases} \\ \hline 0x + 4y &= 4 \end{align} Is there any way to keep all equal signs aligned both inside and outside the cases?
4
votes
1answer
279 views

Why do only certain font switches work in math mode?

If my codes have a statement like ${\bfseries{\emph{something}}$, it will return an error: \bfseries invalid in math code. But if I change the order of the control sequences, like this ${\emph{\...
2
votes
1answer
50 views

sans-serif math wide П or Π in OTF font for xelatex?

I need a sans-serif math capital letter looking similar to the Greek Π or Cyrillic П but with a little bit more horizontal space between the vertical bars (assuming the same height) to fit the small ...
0
votes
2answers
43 views

What is the correct way of writing the support of a function in math mode? [duplicate]

So far i have been using $\text{supp} u$ but that is very cumbersome and probably wrong, do we have an equivalent of \lim for $\lim$?
1
vote
1answer
33 views

Implementing subscript text within regular text (math equation) [duplicate]

How do you add subscript text within a text string e.g. I would like my the output to have the max as subscript \text{AC generator emf_max}
5
votes
1answer
419 views

How remove the space in matrix?

Why the space? how remove the space? \begin{gather} W = \begin{bmatrix} {1^W}^T\\ {2^W}^T \\ . &\\ . &\\ {s^W}^T \end{bmatrix} \end{gather}
3
votes
2answers
74 views

“Different” looking question mark

I'm in a situation where I have a concept in my document that is traditionally represented using the question mark ?. However, for visual clarity, I would like to differentiate between the ordinary ...
0
votes
1answer
31 views

How do specify double subscript [duplicate]

For example I need to specify a term x subscript a subscript b. For a x subscript a, I can write it as x_{a}. However, x_{a}_{b} is not supported. How do I do that?
1
vote
1answer
28 views

Aligning multiple equations split

I want to replicate this: However I got this: Can anyone help me please? My MWE is this: \immediate\write18{makeindex \jobname.nlo -s nomencl.ist -o \jobname.nls} \documentclass[a4paper,11pt,...
0
votes
1answer
29 views

How to have subscript below max in cases environment

Whit the following code the max subscript is displayed on the right of max, while I want it to be below. Removing the cases fixes the issue, but still I need it. How can I fix that ? \begin{...
9
votes
1answer
179 views

Customize cases environment

I usually use the cases environment in the amsmath package - it is very good: \documentclass{article} \usepackage{amsmath} \begin{document} \[\begin{cases} x+y=2 \\ 2x+3y=4 \end{cases}\] \end{...
5
votes
3answers
253 views

\tiny etc. in mathmode

I read everywhere that \tiny, etc. does not work in mathmode. When I use it in my code, I also get a warning Command \tiny invalid in math mode. But in the output it nevertheless works. At least in ...
5
votes
3answers
2k views

What is the LaTeX code for this mathematical expression?

What is the LaTeX code for this image? Please help!
2
votes
1answer
54 views

How to align an equation with equations inside of a begin{case}

I have the following code \documentclass{article} \usepackage{amsmath} \usepackage{mathtools} \begin{document} \begin{align*} \Omega &= \begin{cases} X &= Y\\ W &= X \...
3
votes
2answers
489 views

Is there a symbol for “less than, equal to, or greater than”?

I am trying to find a symbol for "less than, equal to, or greater than" similar to this: I have not been able to find one. If anyone knows of such a command, please let me know. Thank you
2
votes
1answer
52 views

Combine code and math mode

So i want to insert some line of codes in a formula like in the picture below. What is the best way to do this properly?
25
votes
3answers
490 views

Why \underbrace has _{…} instead of an optional parameter?

Why is \underbrace (and similar commands) in the form \underbrace{my formula}_{some text under my formula} ? Shouldn't a standard macro be in the form \underbrace[some text under my formula]{my ...