Stack Exchange Network

Stack Exchange network consists of 175 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
1answer
23 views

Putting equations under a symbol [duplicate]

My LaTeX code is here \documentclass{article} \begin{equation} \nabla_{\theta} \bm{J}(\theta) = \mathbb{E}_{s \sim T^{\bm{\pi}}, a \sim \bm{\pi}_{\theta}} [\nabla_{\theta} \log \bm{\pi}(a | s ) \...
0
votes
1answer
38 views

How to start \beginequation at (1) for each proof?

Here is a visual representation of what I am talking about: How do I make it so that at each proof, the counter resets to (1)? Thank you for your answer.
4
votes
4answers
275 views

How to typeset a small black square as a binary operator?

This is my first post on this SE so I apologize if my formatting is bad. Essentially I am trying to reproduce the small black symbol from the following definition in Allen Hatcher's Algebraic ...
9
votes
2answers
368 views

Euler and minus sign

I'm trying to define a macro to typeset Eulers complex e-power with or without a minus sign in its argument. I would like the macro to automatically detect if its argument starts with a -. I have the ...
4
votes
3answers
232 views

Aligning Systems of Equations

I'm trying to line up the variables of systems of equations. The following code: $$\left\\{ \begin{aligned} &\alpha + 2&\beta + &\gamma & = 0 \\\\ 3&\alpha + 7&\beta + 5&\...
3
votes
1answer
35 views

Altering the order of the variables in an equation system?

I'm wondering if it's possible to alter the order LaTeX outputs the equation. The following code \documentclass{article} \usepackage{systeme} \begin{document} \[ \systeme{3+2t+s=x,s+2=y,1+t+2s=z} \] ...
1
vote
1answer
22 views

Maximise space with 6 pts in math mode multicols

On the first page last column of this Document, the vertical spaces between each line is wider than the rest and I can't add anymore text to that column, else it will just spill over to the next page, ...
2
votes
1answer
37 views

How to type summation notation with a vertical line in Latex?

I need to type the following summation symbol in Latex. Could anyone help me? Literally, there needs to be a vertical line in a summation symbol, and $\hat{\beta}_2$ is just a subscript. Thanks in ...
1
vote
0answers
22 views

Math mode in Tabular environment [duplicate]

With tabular or tabularx environment, when dealing with numbers , percentages and other math symbols per se, do we need to use the math mode ( $$ for instance ) with every number/symbol. Is there an ...
1
vote
1answer
28 views

Display math mode and the tooltip macro

I am using the tooltip macro defined here I realize that the following code works: \tooltip****{foo}{\(x=4\)} while \tooltip****{foo}{\[x=4\]} does not and it fails with Bad math environment ...
0
votes
0answers
27 views

newcommand/mathsurround if there are more then 2 simple text spaces

I want to use \mathsurround with more space then 0pt, but with the condition, that there are more then 2 simple text spaces between 2 math mode environments. The reason is, when I have an ...
0
votes
0answers
46 views

Math Functions both TeX and Infix Notation

I am trying to automate plotting graphs of mathematical functions. For that I need infix (or RPN) notation. I also want to annotate the output automatically with the correct mathmode of TeX. For ...
0
votes
0answers
31 views

Exporting Lyx Math Equation to PNG

I wish to create some maths formula for use with mind mapping application iThoughts. If I define the equation in Lyx then export I can choose HTML and one the files is a nice PNG of the equation, but ...
2
votes
2answers
124 views

How to preserve spacing between array elements?

I have this code \[ [-0.5 0 -1.5] \] but I get this result: I want to respect the spaces, how do I fix it?
6
votes
4answers
1k views

How to write pow math?

I want to write math: {i^{w}}^{anterior} but this is the result: I want this :
6
votes
1answer
126 views

Difference between `$…$` and `\m`

In ConTeXt wiki: Math, it is said that \m, \math, \mathematics are the same as $...$. My guess is that \m wraps $...$ in ConTeXt the same way as \(\) wraps $...$, is that so? Are there any advantage ...
2
votes
1answer
158 views

Align sign with numerator

I have an equation for which I would like the sign to be aligned with the numerator without being a part of it. As a rough example, \[ - \frac{\sqrt{3q\times r^2}}{y \times z} \] produces but I ...
0
votes
0answers
18 views

Citation right next to an inline equation

I have a problem related to placing a citation right after an inline equation. If you look at the second line of text in the following image, the problem should become apparent. The claim is that ...
1
vote
0answers
36 views

How to make words in an align/equation environment not look weird

If I have an align/equation environment (Or any environment which is maths based) like so: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} y_{vertical} = k \sin{x} \...
0
votes
3answers
45 views

Inline environment shortcut (like $blah$)

I want to be able to format code with a monospaced font. Right now I'm using \texttt{} but it's kind of a pain to keep typing that everywhere. Is there any way to use a shortcut instead? For example, ...
0
votes
1answer
46 views

How to get equations in align environment to have numbers

If I have the following situation \documentclass{report} \usepackage{amsmath} \begin{document} \begin{align*} y &= 2x+3 y &= 7x+4 \end{align*} \end{document} The equations in the align ...
2
votes
1answer
78 views

How can I make the underbraced bigger?

I have to kind of underbraces: \begin{equation}\label{eq:romberg2} M=N\left(\frac{h}{2}\right)+\underbrace{K_{1}\frac{h}{2}+K_{2}\frac{h^{2}}{4}+K_{3}\frac{h^{3}}{8}+\hdots}_{\text{\normalsize{Error}}...
0
votes
0answers
29 views

Spacing around divide (|) symbol [duplicate]

LaTex by default sets fairly small spaces around "divide" symbol (|). Is there a way to force larger skip (e. g. force LaTex to treat | as binary operator or = symbol)? MWE would be fairly simple: \...
2
votes
1answer
28 views

acronyms in math mode

I write my thesis and I need a little help. I don't write a thesis in English. I'm using acronyms via glossary package as a template requires. \newacronym{EM}{EM}{Electromagnetic} work perfectly, but ...
0
votes
1answer
33 views

How to create braces which span multi-lines in a table?

This is my template code for the table I'd like to create: \begin{table}[] \begin{tabular}{cllll} \multirow{3}{*}{multirow} & & & & \\ & & &...
0
votes
1answer
32 views

Vertical spacing in fraction unbalanced

I have some math structured like the following in a display math environment: \left( \frac{ \left( \frac{a}{b} \right)^{e} }{L} \right) Apparently, the outer fraction is centered vertically in the ...
2
votes
1answer
32 views

Prevent aligned to override my font

I would like to write something like \documentclass{article} \begin{document} $\mathbf{ \begin{aligned} a \\ f \end{aligned} }$ \end{document} and ...
0
votes
0answers
27 views

Edit Incorrect LaTeX expression [duplicate]

I need to edit this incorrect LaTeX expression: 5\square{3x} + 2x**2 – \frac{3x/2
6
votes
2answers
167 views

How to manually adjust symbol positioning in `\underset`?

I have the following: \underset{{}^u}{\sim} which looks like the left; I would like it to look more like the right image. The changes were shrinking the "u", bringing it closer to the tilde, and ...
0
votes
1answer
27 views

How to handle cases environment with long text in condition statement

I have the following code \begin{align*} H_k(\mathbb{RP}^n \times \mathbb{RP}^m) &\cong \left(\bigoplus _{i+j = k}\begin{cases*} \mathbb{Z} & if $\mathcal{P}_1$ \\ \mathbb{Z}/2\mathbb{Z} &...
2
votes
1answer
65 views

How to write composition of epimorphisms

I am trying to write the following composition of epimorphisms, but I don't like the form. The code is: \documentclass[12pt,a4paper]{book} \usepackage[utf8]{inputenc} \usepackage[english,greek]{...
4
votes
2answers
189 views

Is there a way to write slanted non-italic (especially bold/bb lowercase) letters in math mode?

I would like to know whether there is a simple way to have slanted and non-italic lower case letters (especially in bold and/or blackboard bold style) in math mode, while still using some basic/...
8
votes
1answer
68 views

siunitx uses weird font in math mode

When changing the text font to opensans, then siunitx decides to use a third sans serif font in math mode. Is this still the case with the current texlive release? If so, how can I fix this ...
1
vote
0answers
42 views

SourceSansPro: tabular numbers in a beamer presentation

I'm displaying some data with pgfplotstable in a beamer presentation for my history lesson. The main font is SourceSansPro. I'm using it with \usepackage[semibold]{sourcesanspro} with default lining ...
0
votes
0answers
42 views

Produce fuzzy font [on hold]

I'd like to use this ''fuzzy'' font and also all the math symbols with this style. But I don't know how to produce it. Any ideas? Thanks
0
votes
1answer
27 views

How to prevent excess whitespace after line breaks in inline equations using symbols defined in a glossary?

I have several mathematical symbols with definitions in a glossary created using the glossaries package. As an example, \newglossaryentry{real} { sort={r0}, name={\ensuremath{\mathbb{R}}}, ...
2
votes
2answers
46 views

Derivatives specifying dependency of a function on its arguments

I want to write the partial derivative of a function, while making the parameters of that function explicit, like so: \dfrac{\partial f(x, y)}{\partial x} But this leads to an elongated horizontal ...
1
vote
1answer
19 views

Aligning tags at the end of the line

Is there any special reason why using the $$ won't produce the tags, like it does using \[ \] ? \documentclass[12pt]{article} \usepackage{mathtools} \usepackage{amsmath} \begin{document} \[\lim_{\...
1
vote
1answer
32 views

Writing limits with additional conditions

I gave a quick search, but didn't find something similarly, atleast for limits. I am trying to write something like: $\lim_{\binom{x\to 0}{x>0}} f(x)$ My intention is to put the limit with the ...
4
votes
2answers
116 views

why this \newcommand doesn't work in \align environment?

I'm trying to use the 'newcommand' in the environment 'align', for that I created the 'newcommand' \rbel that is an 'arrow' with a 'n' below It. I put all the packages that I'm using. \...
1
vote
2answers
42 views

All letters upright in align mode

I'm using the document class article and I would like to know if there is an easy way to write aligned equations with all letters automatically uprighted. Since my equations contain lot of letters, I ...
11
votes
3answers
145 views

Special square root for complex numbers?

Our professor used a special looking square root for complex number notations, which I can't find. It looked like \sqrt was thrown into \mathbb (with a second diagonal line). Detexify was no help ...
0
votes
1answer
46 views

Maths Equation Formatting - Brackets [duplicate]

Does anyone know how you would type this in latex? Thank you!
1
vote
1answer
87 views

Need help correcting (deliberately faulty) equation code

For a test, I need to edit and correct the following equation, which I understand to contain several syntax errors. 5\square{3X}+2X**2-\frac{3X/2}* Unfortunately, I'm unfamiliar with LaTeX syntax.
2
votes
0answers
41 views

Change main font without affecting the math environment

I changed my document font from the default one to Akkurat with setmainfont from fontspec: \usepackage[no-math]{fontspec} % ... \setmainfont{}[ Path = fonts/AkkuratPro/, UprightFont = ...
-1
votes
1answer
66 views

Which command to make multiplication like this? [duplicate]

Which command to make multiplication like this?
4
votes
1answer
56 views

Align vector symbol with upright math letter

So basically I need to put a vector symbol (\vec) on an upright letter for which I use \mathrm in math mode. For example: \vec{\mathrm{E}} While Katex seems to get the alignment right on all the ...
6
votes
1answer
205 views

Writing over fractions

I am trying to achieve this look: \documentclass{article} \usepackage{amsmath} \begin{document} $\dfrac{2x+7}{x-4}-\dfrac{x+4}{x-2}$ \end{document} \documentclass{article} \usepackage{amsmath}...
2
votes
1answer
38 views

Math mode in document title with R Markdown

I was trying to put $\LaTeX$ in the document title but can't find a way to do so. I suppose that this is because I can't use latex packages with the document title. Does anyone know how to solve this? ...
1
vote
1answer
23 views

Strange error defining a macro with arguments for math mode

When I delete the second \item, it compiles fine. However, with the second \item, I get ERROR: Missing $ inserted and the math renders incorrectly: \documentclass[12pt]{article} \newcommand \frob[2] ...