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
9 views

Character f in maths mode

I read through many posts regarding problems with the character "f" in maths mode but I'm not really seeing my problem among them. Maybe it's just so simple and I'm just too slow today :) ...
user1762322's user avatar
0 votes
0 answers
14 views

nested \left \right paranthesis math formula doesn't work [duplicate]

This is the formula \begin{align} a_i &= \dfrac{1}{\phi_{i-1}(\lambda_i)}\bigg(\dfrac{c_{i-2}^2}{b_{i-2}^2}\phi_{i-1}(\lambda_i) + \left(b_{i-1}^2 - \dfrac{a_{i-1}c_{i-1}^2}{b_{i-2}^2}\...
M a m a D's user avatar
  • 191
3 votes
3 answers
126 views

How do I move the \fboxsep in the middle

I am trying to create these number bonds with squares for the numbers but I am not sure how to move the box towards the middle. \documentclass{article} \usepackage{enumitem,multicol,xcolor} \fboxsep=...
user292225's user avatar
0 votes
0 answers
62 views

\[ .... \] or $$ for mathmode in LaTeX; which is preferable? [duplicate]

Which one is better to use if you want mathmode in LaTeX, \[ ... \] or $$...$$? My teacher said that \[ ... \] is better, but he did not give an argument why. Is there one? I'd be interested for ...
Ben123's user avatar
  • 213
0 votes
0 answers
22 views

R markdown ! Package amsmath Error: \hat allowed only in math mode

Here is the error I'm getting trying to knit my R markdown file. output file: HW4.knit.md ! Package amsmath Error: \hat allowed only in math mode. Error: LaTeX failed to compile HW4.tex. See https://...
Vladimir Lenin's user avatar
1 vote
0 answers
50 views

How to write structural inductions proofs using LaTeX?

Just wondering what packages or methods I can use in LaTeX to write out a structural induction proof for a list in LaTeX; I am writing the proof out in overleaf. As an example, I tried to write out ...
just_some_guy's user avatar
1 vote
1 answer
54 views

How to force latex to neccesarily put a mathematical expression in a single line? [duplicate]

I'm writing a game theory book, and I've wrote something like this: As it can be seen, that mathematical expression has been splited into two lines. It surely can be fixed, by making some spaces' ...
sbh's user avatar
  • 21
1 vote
1 answer
40 views

Using equation from Google lens [duplicate]

Apologies if this question is off topic. I am trying to create a maths test paper for my daughter by scanning questions from her textbook. I found that Google lens can ocr the equation quite ...
Xuo Guoto's user avatar
1 vote
3 answers
29 views

Breaking Long Radical Over Multiple Lines

I need help making this monstrosity look presentable: \documentclass[12pt, a4paper]{article} \usepackage{graphicx} \usepackage{amsmath} \usepackage{parskip} \usepackage{enumitem} \usepackage{float} \...
Yasen Y.'s user avatar
5 votes
2 answers
83 views

Alignment problems with regression table and math in heading

I have a problem with the alignment of the commas in a regression table. Due to the fact that I also have mathematical expressions in the heading, other solutions I found do not work. Is it still ...
herry.23's user avatar
  • 197
1 vote
1 answer
52 views

Handwriting font lowcase letters and math

How can I make the math formular also as handwritten? And can I make the letters in the handwritten be as written on screen with lower case? As you can see both g af b are written as G and B. \...
Jakob Kruse's user avatar
0 votes
0 answers
55 views

What font in mathmode gives the "T" used here to denote a Hausdorff space on Wikipedia?

In this Wikipedia article (also in textbooks) for a Hausdorff space, you see that notation for (in mathmode) "$T_2$" being used. However, as you can see in the screenshot, it is very "...
Nate's user avatar
  • 101
4 votes
1 answer
280 views

Bold garamondx font looks like computer modern in math mode

I'm using the garamond font from the garamondx package. Using the following commands \usepackage{garamondx} \usepackage[garamondx,cmbraces]{newtxmath} effectively changes the text font but I realized ...
Imotep's user avatar
  • 141
3 votes
2 answers
68 views

Cant get rid of vspaces after align environment

I have the next document: \documentclass[12pt]{article} \usepackage[english, ukrainian]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{geometry} \geometry{ paper=a5paper, ...
Vladyslav Rehan's user avatar
2 votes
0 answers
56 views

Help replicating 1960s-1990s old eastern bloc font

I have been trying to replicate the font and formatting from my old maths books from the eastern bloc, and I cannot seem to replicate it. Either the font is correctly slanted, but the shape is wrong, ...
texarch's user avatar
  • 21
0 votes
1 answer
34 views

How to add caption to a table with arrow next to it?

I have a table as described here. It has a \Downarrow on the left side. I would like to add a caption to this, but I have had no luck due to the whole tabular environment being contained in math mode (...
FISR's user avatar
  • 1
7 votes
2 answers
671 views

Show actual math source code in pdf

I have an almost blind student in my class who has a hard time reading many math symbols such as superscripts or subscripts ($M_1$, $K^3$). He has learnt to read the latex source code, which is easier ...
YukiJ's user avatar
  • 169
1 vote
1 answer
23 views

Long equations break with split or multlined

I am using the IEEEtran class (two columns) for a paper, and have several long expressions that I cannot figure out the best way to format them. I am currently using \split and aligning everything ...
betaros's user avatar
  • 11
1 vote
1 answer
43 views

Indentation in align* when using &=

\begin{align*} \text{Assume for all i = 0, 1, ..., k, }\mathbb{P}(A_i\mid B) < \mathbb{P}(A_i)\\ \text{Then, }\mathbb{P}(\Omega\mid B) &= \mathbb{P}(\bigcup_{i=1}^kA_i\mid B) \end{align*...
yoshino's user avatar
  • 11
1 vote
0 answers
16 views

Space after decimal comma in math mode [duplicate]

This is actually my first time using Math mode in earnest. Without being able to put a finger on it, I am not really happy with the whole document (fractions are rather ugly, for starters). My main ...
Ingmar's user avatar
  • 6,568
2 votes
1 answer
99 views

Long Multiplication using Latex

I am writing a program that generates the steps performed during math operations ( + - * / ) and explain it has well. I have read this and the best answer here is using the xlop package , which ...
Aarav Shah's user avatar
4 votes
2 answers
322 views

How to use the (restrained) "CM calligraphic, cmsy" font?

How to use the (restrained) "CM calligraphic, cmsy", mentioned in "What are all the font styles I can use in math mode?"? Can you provide a minimum working example please?
Ommo's user avatar
  • 481
1 vote
1 answer
37 views

Typesetting \gls in subscripts and superscript in the right size

Continuing \gls in the subscript has too normal size, running a loop of latex followed by makeglossaries till stabilization on \documentclass{article} \usepackage{amssymb} \usepackage[hidelinks]{...
AlMa0's user avatar
  • 439
3 votes
1 answer
217 views

Where is the definition of the math mod environment `$$...$$`?

I have a problem with display math modes $$...$$ and \[...\], see The display math mode and the `center` environment. So, I want to find the definition of the display math mode $$...$$ for ...
phchon's user avatar
  • 51
0 votes
1 answer
53 views

Reduce size of integral box

I am trying to write an integral over quite a few factors. Everything put together will easily exceed one line, maybe even two. If I try to align everything with some align environment (be it align, ...
Sellerie's user avatar
  • 133
1 vote
3 answers
92 views

The display math mode and the `center` environment

I have asked a question at How to delete a command in the \BODY macro of environment defined by \NewEnviron about the problem when I try to convert my ex environment to the multi environment of moodle ...
phchon's user avatar
  • 51
2 votes
1 answer
85 views

Restate all theorems & definitions?

I am new to this community, and unfamiliar with advanced latex use (e.g. creating packages, custom build scripts, post-processing scripts) so I apologize if my question seems unusual or overly simple. ...
davidleejy's user avatar
1 vote
1 answer
33 views

How avoid empty slide with TikZ-overlay footnote in beamer

Motivation I want to maintain a footnote in beamer through some slides. To avoid jumping I tried to place them with TikZ (which works) but the height of the inline math causes empty slides. Question ...
BadAtLaTeX's user avatar
  • 1,110
1 vote
2 answers
62 views

\mathlarger does not make anything larger

I am using VerbTeX on an iPhone. The \mathlarger command in math mode does not actually make anything larger. Text and and symbols within it do not get sized differently. Why? Commands like \big and \...
Melab's user avatar
  • 171
1 vote
3 answers
55 views

\rightleftarrows in the style of \rightarrowtriangle

Is there a symbol for \rightleftarrows (an arrow to the right above an arrow to the left) but in the style of \rightarrowtriangle (an arrow with a hollow triangular head)?
dremodaris's user avatar
1 vote
0 answers
25 views

Question concerning an error occurring only one time in two similar examples (tables/array and I cannot find the mistake) [duplicate]

I'd like to create a table, but I get the strange error "Missing $ inserted \end{frame}". Here is the code. See below for a similar example, where it worked. Unfortunately, I cannot find my ...
Bernhard Boehmler's user avatar
1 vote
1 answer
53 views

How to put display equations (with some space around them) inline?

I want to write an equation that behaves like inline-math w.r.t to horizontal alignment (i.e., the equations’ left edge is where the text before it ends; and the text after it is indented, so it ...
nleanba's user avatar
  • 113
1 vote
2 answers
91 views

Large cursive letters

I want to write a large cursive a as in the following picture: Is this possible? And if so how it is done?
pipenauss's user avatar
  • 321
4 votes
1 answer
116 views

A cleaner way of getting accented math symbols in LuaLateX [duplicate]

Lualatex + unicode-math is awesome, but I'd like to be able to type $Â$ (in vscode) to get the same as if I were to type $\hat A$. So I wrote the clunky code below which does exactly what I want it ...
JPi's user avatar
  • 13.5k
3 votes
1 answer
96 views

ConTeXt : strange behavior in pagella-with-euler

I would like to use the pre-defined font combination pagella-with-euler. However some math glyph (apprently linked with \displaystyle ?) behave strangely, as you can see on this MWE : \setupbodyfont[...
A. Licari-Guillaume's user avatar
1 vote
1 answer
79 views

Make TikZ overlay part of a formula bounding box

I have a formula, annotated using a TikZ picture overlay: \documentclass{memoir} \usepackage{calc} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{tikzmark,calc,fit,shapes.geometric} \begin{...
Zoxume's user avatar
  • 1,083
6 votes
1 answer
229 views

Parenthesis sizing within macro

I have a macro that typesets its arguments inside a set of parentheses \left(...\right). For simplicity, let's say it's \newcommand{\func}[1]{ \ensuremath{ f \left( #1 \right) } } Sometimes, the ...
avid's user avatar
  • 161
2 votes
2 answers
200 views

Wasysym astrological symbol does not resize appropriately in math (e.g. subscript/superscript)

I am using the symbol \sagittarius from wasysym in math mode, and it does not resize appropriately e.g. when it appears in a subscript or superscript. How can I fix this? This question is a special ...
dremodaris's user avatar
1 vote
1 answer
66 views

How to make small set [closed]

i have a map such that image of an element is a set \documentclass{article} \usepackage{amsmath,amssymb,amsthm,mathtools,xcolor,enumitem,mathrsfs,pzccal,mdframed} \usepackage[hmargin=3cm,vmargin=3cm]{...
Kaneki1013's user avatar
1 vote
1 answer
49 views

How to right-align part of an equation in display math mode

This is over a single line. I honestly thought it would be very simple but so far I have tried: \hfill \hspace*{\fill} \null\hfill \hspace*{0pt}\hfill \mbox{}\hfill In the following line: $$g(x) = \...
Somniare's user avatar
1 vote
1 answer
67 views

Alignment problem when I write a lot of map

When I write a lot of map the alignment of map is not good. \documentclass{article} \usepackage{amsmath,amssymb,amsthm,mathtools,xcolor,enumitem} \usepackage[hmargin=3cm,vmargin=3cm]{geometry} \...
Kaneki1013's user avatar
2 votes
1 answer
210 views

\NP macro as in P=NP formula, to work for both text and math modes

I want \NP command to produce the string "NP" in both text and math (e.g. P=NP formula) modes. I also want it to be styled (even if it is in math mode) the same as the surrounding text (...
porton's user avatar
  • 1,198
0 votes
0 answers
171 views

Problem with \eqalign in newer versions of ConTeXt

After updating to ConTeXt ver: 2023.05.05 (LuaTeX) I encountered the following problem: \eqalign doesn't seem to work anymore. MWE: \starttext $\eqalign{ a &= b\cr b &= c\cr }$ \stoptext ...
Sergey Slyusarev's user avatar
4 votes
1 answer
87 views

Removing space generated by box of multiline sum subscript

I have the following equation \begin{equation} \begin{split} \sum_{\mathclap{\substack{T_i \in \\ \{T_1,T_2, T_4,\\ T_5,T_6,T_7\}}}} T_i W^i_\mu &\equiv T_{+}W^+_\mu + T_{-}W^-_\mu +\\ &+ T^\...
GaloisFan's user avatar
  • 195
2 votes
1 answer
52 views

Superscript placement when typesetting with "odd" subscripts

From time to time I typeset classical papers, trying to obtain (as close as possible) the original appearance of the document. I'm currently fiddling with a paper in German that uses the lowered ...
Derek's user avatar
  • 1,748
4 votes
1 answer
142 views

Horizontal spacing in math mode with \mathbb

Why? \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{libertine} \usepackage[libertine]{newtxmath} \usepackage[scaled=.86]{...
17tmh's user avatar
  • 91
0 votes
1 answer
46 views

New indexing in the summation sign

Can you help me to write this notation in latex? it is a new symbol and I do not know how to write it in latex.
Touba Parsa's user avatar
0 votes
1 answer
46 views

How to add big slash to equation?

\begin{equation} A = \frac{\frac{BBBBBBBB}{CCCCCCCC}}{\frac{DDDDDDDDD}{EEEEEEEEE}} \end{equation} I want to add the equation as shown in the figure (I have written in MS Word) but I want to write ...
A S's user avatar
  • 31
2 votes
0 answers
37 views

Horizontal rule on tall radical sign has segments of different thicknesses

I wonder how I can generate a document, as shown below, in which the horizontal rule for the radical does not comprise two segments of differing thicknesses. I'm working on Ubuntu 22.04. latex --...
Robert Dodier's user avatar
-1 votes
1 answer
51 views

hfill in align environment, so that the formula is still centered

I would like to use \hfill (or it could be a similar command) the same way it works outside the math environment. Right now I have \begin{align*} dw=ddf=0. \end{align*} \hfill $\#$ But I ...
PanicStation's user avatar

1
2 3 4 5
191