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

Filter by
Sorted by
Tagged with
0 votes
0 answers
77 views

Math Mode Brackets

Has anyone noticed that in math mode, the brackets do not scale? As in, they all remain the same size and looks somewhat unprofessional and cluttered. I cannot use the \[ \] method because I need the ...
Zach Czajkowski's user avatar
0 votes
0 answers
54 views

Plus sign is missing in equation [closed]

I am writing below equation in beamer (overleaf).Minus and plus signs are not appearing between two expressions. using \usepackage{amsmath} in code. (a *b+1/n)-(b/k -1) +(a* b/c)
sara lee's user avatar
0 votes
3 answers
84 views

Is it possible to get a new line in \{text bla bla text\}?

Is it possible to get a new line inside of {text bla bla text} in LaTeX, specifically in mathmode? I want to be able to write something like this:
Ben123's user avatar
  • 223
0 votes
0 answers
89 views

Create new LaTeX environment

I'm writing a text using the document-class tufte-book and I want to create some new environments in order to do example and insights. Until now I used the package mdframed, but I noticed that with ...
Daniele Di Prima's user avatar
3 votes
2 answers
225 views

Extra space in fractions

What is the civilized way to modify \frac so that there is a little horizontal padding — using CSS terms — so as to avoid things like which looks like it is going to tip over? One can (use a command ...
Mariano Suárez-Álvarez's user avatar
0 votes
2 answers
58 views

How to have local alignment groups within the same 'align' environment?

For the following, I need to find a cleaner way of having one alignat environment and aligning the first two lines with each other while aligning the last two lines with each other so that the ...
Diaa's user avatar
  • 9,353
0 votes
1 answer
52 views

How to define probabilities with underneath text? [closed]

I want to use probability where I can write some text underneath it. I have the following: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{...
pixel's user avatar
  • 1,315
1 vote
0 answers
35 views

How to to break a braced equation in the middle [duplicate]

I'm thinking about how to break the following equation: As you can see, there is a big brace wrapping up one of the factors in the product integrand. Now I'm trying to change it into the layout in ...
Boar's user avatar
  • 187
3 votes
2 answers
108 views

add subscript when expression already has a subscript

A subscript to a subscript can be accomplished by a_{b_c} in a way that the c is really subscript to b, and both together subscript to a. However, {a_b}_c behaves differently (either b and c appear at ...
Ralf's user avatar
  • 185
0 votes
2 answers
65 views

ccfonts + standard math mode

I would like to know if it is possible to use the Concrete font together with the standard LaTeX mathematical font. If it is possible, could someone please tell me how to do this? My thanks in advance!...
palpiteirodainternet's user avatar
1 vote
0 answers
57 views

l3regex: skipping math formulas when matching and replacing

Is it possible to somehow skip math formulas when doing regex matching and replacing? For example, in the following code, a command \ProcessText is defined to convert text surrounding by * to markups, ...
Jinwen's user avatar
  • 8,092
0 votes
0 answers
58 views

\bar allowed only in math mode [closed]

When I run \begin{definition} ~L'espace de H\"older $$C^{k,\gamma }(\bar{\Omega}})$$ \end{definition} I get the following error: ! Package amsmath Error: \bar allowed only in math mode. Edit:...
Ahmed's user avatar
  • 1
4 votes
2 answers
149 views

How to get a \widetilde with FiraMath?

It seems that widetilde is not available with FiraMath. \documentclass{standalone} \usepackage[math-style=TeX]{unicode-math} \usepackage{firamath-otf} \begin{document} $\widetilde{G_{+, 0}}$ \end{...
cjorssen's user avatar
  • 9,890
2 votes
1 answer
87 views

How to tune the multiline equation with the self-defined indentation?

I followed this QA link to left-align the equation and this to prefer using \hspace instead of \hskip: \documentclass[12pt,a4paper]{article} \usepackage{amsmath,mathtools} \usepackage[algosection, ...
zg c's user avatar
  • 61
0 votes
1 answer
42 views

Hyperlink in math mode with correct spacing for flexible use with subscripts and superscripts

I want to use hyperlinks in math mode without changing the spacing or kerning. I.e., I want to define a command \mathhyperref similar to Correct kerning of hyperlinks in math mode but more flexible (I ...
Jakob's user avatar
  • 919
0 votes
0 answers
29 views

\rlap in subscript leads to larger subscript [duplicate]

MWE: \documentclass{article} \usepackage{xcolor} \begin{document} $M_{\theta}$ % correct size theta $M_{\rlap{\ensuremath{\theta}}}$ % too large theta \end{document} Why does this happen? How can I ...
Jakob's user avatar
  • 919
1 vote
2 answers
116 views

How to define a command that can be used as a superscript without {} and that can have a subscript

I have used \theta hundreds of times in my document. Now I decided that I would like all thetas to be in red color. So I would like to redefine the command \theta to create a red theta. MWE: \...
Jakob's user avatar
  • 919
1 vote
1 answer
26 views

Can't use \! when using the tipa package [duplicate]

When using the tipa package, I am not able to use \! as usual. I get a warning and the error Missing } inserted $!$. Too many }'s $!$ in the minimal working example \documentclass[a4paper,10pt]{...
Make42's user avatar
  • 1,752
0 votes
1 answer
40 views

Custom command in \NewDocumentCommand documentation

I'm seeing a rather unexpected result with \NewDocumentCommand. Suppose I have a custom-defined command \mybold{}, like this: \NewDocumentCommand{\mybold}{m}{\mathbf{#1}} Or \oybold[]: \...
Abhimanyu Pallavi Sudhir's user avatar
4 votes
1 answer
265 views

(Staircase) Kerning in display math

Simple problem: spacing in math mode can often be awkward, especially with large fences and super- or sub- scripts. Usually, this amounts to exponents being too far from the parenthesized expression, ...
Akioweh's user avatar
  • 41
2 votes
1 answer
109 views

Type of k strange in Lehmann's Analytical geometry book

How can I enter this 'K' in LaTeX?
Brandon Montano Díaz's user avatar
4 votes
2 answers
105 views

Alignment of multiple equations with cases

I have to align multiple equations with cases. I can align the left bracket, but i can't align the cases on the right between different the different equations. I maneged to align only the cases of a ...
Marco's user avatar
  • 41
0 votes
0 answers
56 views

Altering a lualatex code to apply \smash to letters with descenders and math automatically

I am studying the solution provided in this Stack Exchange thread: Is there a way to automatically smash all inline maths (but only vertically)?, which was originally answered by user Mico. I've ...
wrb98's user avatar
  • 842
-2 votes
0 answers
31 views

Problem in equation writing [duplicate]

I am writing below equation in Latex, Plz guide me how to extend braces so that it enclose both conditions with increased font size. t= {1, forall k 0, forall m
pian ke's user avatar
1 vote
0 answers
61 views

How to retrieve coordinates of the bounding boxes from rendered latex that may contain math expressions?

I'm wondering if there is a path to retrieve bounding boxes of the rendered glyphs (text, math symbols, etc) from latex. pdftotext supports partially of that but won't cover non-text glyphs like \frac{...
galactica's user avatar
0 votes
1 answer
51 views

Alignment of truth values with connectives in truth table

I want to typeset a truth table where the truth values of a complex formula are aligned with the corresponding connectives as shown in the attachment. Would someone know a solution? Thanks in advance!
pahohu's user avatar
  • 229
0 votes
0 answers
30 views

How to use both mathcal and pazocal in the same document [duplicate]

I want to use different calligraphic versions, mathcal and pazocal, of some letters in the same project. However, when I add the pazocal package, even mathcal letters show up in the pazocal format. Is ...
r2d2's user avatar
  • 1
2 votes
1 answer
125 views

Color in mathematical symbols does not work with overrightarrow command

I am using this code to change the color of all mathematical characters, sometimes I want to change the color of a few characters, I noticed that some mathematical characters do not change color like &...
Alejandro Munoz Ossa's user avatar
2 votes
1 answer
59 views

\reallywidehat for use with unicode engines

Since I would like a \widehat that is wider than \hat for a single letter, I searched and found this answer. However, when I was trying to compile with LuaLaTeX, I got the following result: Is there ...
Jinwen's user avatar
  • 8,092
15 votes
3 answers
1k views

How can I color the "or equal" line of \le?

I would like a symbol that is identical to \le but where the "or equal" line (the line under the <) is green to emphasize to the reader the (or equal) part. That is, I want the new code ...
scottkosty's user avatar
2 votes
2 answers
313 views

how to use `\texorpdfstring' correctly and properly

I am using math symbols in \section or \subsection. Therefore I need to use \texorpdfstring inside of \section or \subsection to show the math symbols properly. For example, my code \section{Proof of \...
liaoming999's user avatar
-3 votes
1 answer
116 views

Could someone check my document code?

I'm a PhD student writing his thesis on overleaf and been getting more than 400 errors. Could someone help? \documentclass[12pt, thesis]{report} \usepackage[utf8]{inputenc} \DeclareUnicodeCharacter{...
dvverdo's user avatar
2 votes
1 answer
131 views

Controlling alignment in group of equations with align / aligned

\documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} \begin{aligned} x &= 1 & y &= 233 & z &= 2 \end{aligned} \\ \begin{aligned} a &= ...
Simon's user avatar
  • 517
3 votes
1 answer
59 views

Custom alignment with long equation and cases

\documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} x &= 1 & y &= 233 & z &= 3 \\ a &= 4 & c &= 5 & d &= 6 \\ &...
Simon's user avatar
  • 517
1 vote
1 answer
72 views

How to check if all the mathematics in the LaTex document is in math mode?

Is there a quick way to check if all the mathematics in the LaTeX document is in math mode?
Alezigl's user avatar
  • 343
0 votes
1 answer
55 views

The same code works for other types of displayed equations but not for "multline"

I am testing cleveref-usedon's ability on displayed equations. Below is my document for testing: \documentclass{article} \usepackage{mathtools} \usepackage{amsthm} \newtheorem{theorem}{Theorem} \...
Jinwen's user avatar
  • 8,092
2 votes
3 answers
175 views

Using \bm only bolds parts of the equation

\bm{{\int\frac{\mathrm{d}x}{\sqrt{1+x}+\sqrt{1-x}}=}} When I try to bold a part of the equation using \bm it only bolds the \mathrm{d} part. Is there a solution to this? I've tried to use \...
Jesetens's user avatar
  • 235
18 votes
3 answers
2k views

Why is the squared term on sine higher than on cosine?

In the following fraction, the square on the sin is formatted higher than it is on the cos: \int\frac{-2\sin2\theta}{\sqrt{2\cos^2\theta}+\sqrt{2\sin^2\theta}}\,d\theta The sine squared term also ...
Jesetens's user avatar
  • 235
-1 votes
1 answer
51 views

Referring to arguments in newcommand not working in math mode [closed]

I would like to create a command given the arguments $g,n,d,X$, generates the output $\overline{M}_{g,n,d}(X)$. If no $g$ is given, I would like the default to be 0. What I thought was correct was to ...
Irit's user avatar
  • 1
1 vote
1 answer
47 views

Centering in dmath* module

I am using dmath* to automatically cut expressions and correct formatting. For example I have the equation 7+\frac{1}{\epsilon ^2}+\frac{3-G(0,x)}{\epsilon }-3 G(0,x)+G(0,0,x)+\epsilon \left(-7 G(0,x)...
Tanmoy Pati's user avatar
0 votes
1 answer
71 views

TeX is showing the error message "missing $ inserted"

TeX is showing the error message missing $ inserted from typesetting \sqrt{I} = \{a \in R \mid $a^n$ \in I, \exists n\in \mathbb{N}\} The outcome is attached.
Un petit mensonges's user avatar
2 votes
0 answers
50 views

typesetting of math exercises

I am working on creating images / documents developing visual materials and documents aimed at teaching math operations to children with learning disabilities. Here are handwritten examples I received ...
user898678's user avatar
0 votes
1 answer
32 views

widehat shifted to the right whereas having to be centered

I have the following expression : \documentclass{article} \usepackage{amsmath} \begin{document} \[ \widehat{o_{\ell }} = \frac{1}{2l+1} \sum_m\dfrac{\widehat{|a_{\ell m,\rm sp}|^2}}{|a_{\ell m,\rm ...
guizmo133's user avatar
3 votes
1 answer
247 views

How to force the misalignment of subscript and superscript

${\Lambda^a}_b$ compiles to the desired result: However, if I want to add both superscript and subscript on $\Bar{\Lambda}$, the superscript and subscript always align: I tried to add braces on ...
l fx's user avatar
  • 33
2 votes
1 answer
99 views

How to align multiline math equations in ConTeXt when they are inline?

Since \eqalign no longer works in ConTeXt, I'm trying to replace it with \startalign/\stopalign as described here. It works just fine in display mode, but it doesn't seem to be designed to work in ...
Sergey Slyusarev's user avatar
7 votes
2 answers
512 views

Double or triple....exponent

I have this MWE: \documentclass[a4paper,12pt]{article} \usepackage{amsmath,amssymb} \begin{document} Dato l'insieme non vuoto $A$ allora $(A^{c})^{c}$ è uguale a: \end{document} with this output ...
Sebastiano's user avatar
  • 52.7k
5 votes
2 answers
98 views

Problem expanding math in arguments of en environment

I want to redefine by hand a "restatable" environment for theorems. I have to do so because for some obscure reason the jloganal class (for the Journal of Logic and Analysis) mess it up: ...
Quentin G's user avatar
0 votes
1 answer
34 views

Properly sized `\cite` in math superscript

I would like to cite a reference as a superscript of a mathematical symbol, like so: $x^{\cite{nicebook}}$ When I do that, though, the citation symbol is poorly displayed, with e.g., the brackets ...
daysofsnow's user avatar
2 votes
1 answer
107 views

Remove space after math environment

After and before a math environment like $$1+1$$ a space is created to separate text from math. But if the math environment has no text after it, an unnecesary space is created like in: lorem ipsum ...
Agente 156's user avatar
0 votes
2 answers
46 views

Text size changes within a \displaystyle environment?

I am trying to get some equations for an exercise down. However with a fraction in the exponent it gets rather hard to read, that's why I wanted to play around with font sizes ... with rather ...
Sk1nk's user avatar
  • 103

1
2 3 4 5
192