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
2
votes
1answer
70 views

Crossed partial derivatives

Note that this is a different question from this one. That aside, I was unable to find the markup for writing something like this: As visible, I require the partial symbol to have a line across it. ...
0
votes
0answers
49 views

Problems tagging equations in \[ \] environment

I'm not sure about the common practices in presenting code here, so I'm sure I'll do something wrong, I thank you for your patience. I'm using overleaf.com. Now, the following code will compile ...
1
vote
1answer
30 views

Changing the qedsymbol to a personal icon

When I write out my own proofs by hand on paper, I use my own personal variant of Q.E.D. / square to finish out the proofs (its a cursive version of my initials). I've doodled up this icon on paint ...
1
vote
1answer
54 views

Equation numbers doubled

After some helpful responses, what I have is below: But I would like the equation now numbered with (1.2a) to be (1.2); the equation now numbered (1.2b) to be (1.3); and the equation now numbered (1....
3
votes
2answers
323 views

Why doesn't the 'bm' package work with the 'unicode-math' package?

I want the bold italic math character (as in normal math) in math mode. So, I tried to use the bm package but it doesn't work together with the unicode-math package in my LaTeX document. Again, for ...
3
votes
1answer
29 views

Crash between math \exp and that of gb4e

As originally tweeted here, I would like to use \exp to produce some exponential expressions in math mode, but since gb4e, which I also want to use to make interlinear glossing, overwrites the command ...
6
votes
1answer
77 views

Excess vertical space in \vdots

How do I get a tight \fbox around \vdots? There is an excess vertical space as discussed in Vertical space around \vdots in xymatrix Wrong (too much) vertical space above \vdots in small matrix The ...
6
votes
1answer
81 views

pdflatex vs. lualatex: Libertinus and overline vs. bar

I understand that I am supposed to use \bar instead of \overline in math mode, if I want the respective character to mean "something different", because \bar is actually an accent (similar to \dot, a ...
4
votes
1answer
345 views

Taller than normal parallel symbol ||

I'd love to achieve a nice format for the following snippet: $$Z_{eq}(j\omega) = R_0 + \left(R_1 + \frac{1}{j\omega C_1}\right) || \left(R_2 + \frac{1}{j\omega C_2}\right)$$ If printed as such, the |...
2
votes
2answers
139 views

How to fit a line in latex?

\documentclass[a4paper, 12pt]{article} \usepackage{amsfonts} %\usepackage{amsbsy} \usepackage{amssymb} \usepackage{amsmath} \begin{document} Let $G$ be a $3$-coloured digraph. A subgraph $\mathrm{H}$...
0
votes
1answer
51 views

LuaLaTeX: \math… (\mathtt, \mathcal, \mathfrak) vs. \sym… (\symtt, \symcal, \symfrak) commands and setting different fonts

In another answer (for a completely different question) I have been advised to use the \sym...-commands to change the font in math mode instead of the traditional \math...-font commands, if I use ...
2
votes
2answers
60 views

How do I change the way the colon is typeset?

In math, I exclusively use the colon : for punctuation, i.e. in the sense of \colon (compare this question). Hence I would like to change the way : is being typeset, so that it resembles \colon. Is ...
6
votes
2answers
176 views

Why smashing a sum change an horizontal spacing?

I need to smash a sum because its indices take too much vertical space. But then, it also change the horizontal spacing before it, as shown with the following MWE : \documentclass[11pt,letterpaper,...
1
vote
1answer
55 views

Same height for matrices regardless of fractions inside [closed]

How can I force matrices (bmatrix) with the same number of rows to be the same height when only some entries include fractions (\frac)? I would prefer to increase the size of matrices displayed ...
2
votes
2answers
282 views

How to write the definition of each term in an equation with pointing arrows?

Can someone help me in writing equation as given below UTMThesis.sty is given here %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % The package UTMthesis.sty will produce the output % %...
6
votes
1answer
59 views

Resolving inconsistent sub/superscript behavior with newpxmath and certain delimiters

Edit: I reached out to the package maintainer and he very quickly patched the issue. As of newpx version 1.410 (released 2/15/20), the issue should be resolved. I recently started using newpxmath ...
-1
votes
3answers
109 views

Chemical formula - how can I write parentheses?

I want to write the following chemical equation in Latex: I'm trying to put the parentheses in (): \documentclass[fontsize=11pt]{article} \usepackage{braket} \usepackage{pdfpages} \usepackage{...
2
votes
1answer
44 views

How do I add outward pointing arrows to the \thicksim math symbol?

I am in need of a symbol that looks like \thicksim, but with outward pointing arrows at each side. Is there a package I can use to achieve the desired effect? Thanks in advance.
1
vote
1answer
27 views

Diagonal entries of band matrix not colinear

I have band matrix. Columns of if are formatted to have variable width and this results in \ddots aligned in an ugly way. I'm looking for a compact solution without need for manually controlling each ...
0
votes
0answers
22 views

Double inequalities \lessgtr \lesseqqgtr use [closed]

I am not sure if this is the right place to ask, but how does one use the commands like\lessgtr? Like, under what context? Can one give me a couple of examples of when this is appropriate?
4
votes
2answers
77 views

newcommand for math mode only

My preamble contains the following definition \newcommand* {\pdiffat}[3] {\left(\frac{\partial{#1}}{\partial{#2}}\right)_{#3}} which is meant to be used in math mode only. However, overleaf ...
1
vote
1answer
41 views

Math inline Sans-Serif font

I used this answer to make all the math in my document adhere to Sans-Serif font. However, whenever I use the Polyglossia package and add another language, I get an error which says: Package ...
1
vote
3answers
35 views

Optidef constraint name not aligned properly

I have tried to follow optidef.tex to make the constraint names aligned. Here is the code: \begin{mini*}|s| {\substack{\mathbf{x},\mathbf{u}}}{J = \phi\left(\mathbf{x}\left(t_f\right),t_f\right) +...
16
votes
2answers
2k views

Latex vs Groff for mathematics formatting

I am a physics undergraduate and I often have to write Latex documents. However, I recently heard of Groff which, from what I have gathered, is much lighter and more minimal than Latex. Is it any good ...
8
votes
4answers
1k views

Symbol $\perp$ with a shorter horizontal line to be used as a superscript

i was wondering whether there exists a predefined Latex symbol or command to write $\perp$ with a shorter horizontal line as shown in the image below which has been taken from an old research article ...
3
votes
2answers
105 views

Command \textbackslash invalid in math mode

I'm trying to write LaTeX code in my document. Could someone help me with this error message: LaTeX Warning: Command \textbackslash invalid in math mode on input line 4. {\fontsize{10pt}{12.0pt}\...
0
votes
1answer
36 views

Bold instead of bold extended for `\boldmath`

Alas, yet another question on font selection in mathematics. I want to avoid bold extended and use bold instead. My main font is computer modern. For text, I managed to change the appearance of bold ...
2
votes
2answers
201 views

\frac not working as expected in \newcommand

I'm trying to create some shortcut for the Leibniz notation for partial derivatives. Here the code \newcommand{\px}[1][]{\frac{\partial{#1}}{\partial x}} When I invoke this without arg, it's work ...
1
vote
1answer
134 views

How can I write this equation? [duplicate]

I just want to know how can I write this equation in latex? I mean the equation in the picture, how much description should I make?
4
votes
2answers
391 views

How can I make three horizontal dots on a letter in plain TeX

How can I make three horizontal dots on a letter in plain TeX?
1
vote
1answer
43 views

Using acronym in math mode

I am using the acronym package to set up my formula symbols. When I use them in normal math mode, everything is fine. But when I use one of them as a subscript, the font size is normal and not smaller ...
0
votes
0answers
15 views

Indicate a certain element in a sequence / long list [duplicate]

Let's say I have $ e \ times \ ldots \ times a \ times e \ ldots \ times e $ How do I indicate that $a$ should be in index $b$ cleanly? Like this: I would have put a small arrow above and $b$ if ...
2
votes
0answers
64 views

A valid alternative(s) to siunitx package [duplicate]

Although this question is very simple in the substance, I would like to ask it anyway. Visibly if I use the comma within the mathematical environment you can see a small space that I have underlined ...
0
votes
1answer
50 views

Latex - can't left align equation written as array in enumeration environment

I'm trying to create a solution sheet to show steps used in solving a systems of equations problems using the equal values method. Thanks to SE Bernard, I have successfully created all the steps to ...
0
votes
1answer
46 views

Error with preamble – the preamble for my homework doesnt even compile

I have huge problems and I feel like I am going in circles now for a while. For my homework, I have to work with the math-packages, but nothing seems to work. I am working with TeXstudio (I could ...
-1
votes
1answer
38 views

Summation Symbol is not printing to the pdf in latex

\documentclass[fleqn]{article} \usepackage[T1]{fontenc} \usepackage[sfdefault,scaled=.85]{FiraSans} \usepackage{newtxsf} \usepackage[document]{ragged2e} \usepackage{eulervm} \usepackage{...
0
votes
1answer
23 views

How to include vmatrix in bmatrix? [closed]

Here is my code for this work. But I failed to compile this. \documentclass[10pt,letterpaper]{article} \usepackage[left=8mm,top=6mm,bottom=6mm]{geometry} \usepackage{nccmath} \begin{document} \[ \...
0
votes
0answers
47 views

Math mode brackets `\[…\]` without centering

I'd like to be able to put math mode in distinguishable opening and closing brackets, like \[...\], instead of $...$, but the problem is, \[...\] seems to be auto-centering the equation. Is there a ...
0
votes
1answer
45 views

lengthening down left arrow- swarrow

My question is related to How to create a longer \swarrow - TeX, however I could not apply the answer to my case. I want to create a long \swarrow between two objects that appear in different rows. ...
2
votes
1answer
94 views

How to typeset upright ħ?

As described in this answer, constants should be typeset upright, not in italics. However the symbol for reduced Planck's constant (, \hbar) is in italics by default. This is especially obvious when ...
2
votes
3answers
120 views

Math.symbols in TeX

How can I draw three dots on a letter (similar to \dot, \ddot)? How can I draw {t\to\infty} over a {\longrightarrow}? How can I modify the length of a horizontal {\arrow}? Thank you!
2
votes
1answer
72 views

latex(VAR) command converts other concatenated strings into mathemode when latex displays it

Using sagetex in latex; it appears that using the latex() command converts any concatenated strings to that term into math-mode, rather than strings. See the MWE below: \documentclass{article} \...
1
vote
2answers
135 views

Conditionally redefine \big, \bigg, etc. to \left or \right (locally)

To speed up my typesetting work I'm exploring the possibility to redefine some commands "locally". In this particular case I'd like to redefine the \big, \Big, etc. commands to the \left and \right ...
0
votes
0answers
52 views

How to use “^” above y in math mode? [duplicate]

I was trying to put ^ above y, the follow ways didn't work: $\overset{^}{y} $^y$ $y^{^}$ I wanted something like overset, I would be glad if some one could help me.
5
votes
1answer
108 views

How to make all the exponents same size?

\documentclass{article} \usepackage{amsmath} \begin{document} \[ a^9 \cdot a^{99} \cdot a^{999} \cdot a^{9999} \cdots a^{\overbrace{999 \cdots 9}^{\text{10 digits}}}=a^x \] \end{document}
-1
votes
3answers
82 views

How to write the expression?

How to write this expression in LaTeX?
0
votes
2answers
66 views

Need help cleaning my code

\documentclass{article} \usepackage{amssymb,amsthm} \begin{document} \begin{proof} Given $\epsilon<0$,$\left|\frac{1}{\sqrt[3]{n}}-0\right|<\epsilon \Leftrightarrow\frac{1}{\sqrt[3]{n}}<\...
0
votes
1answer
41 views

Package PGF Math Error: Unknown function `L' (in '-L* 1.9 * 1'). }

I am using this code \begin{equation} G=\begin{matrix} & \begin{tikzpicture} \def\xs{1} %shift in x direction \def\ys{0.5} %shift in y direction \def\nm{2} % number of 2d matrices in the 3d ...
0
votes
1answer
34 views

Make box in alignment mode

I have written this equation in alignment mode. But now I want to box this whole expression. What command should I use? Any Idea? \begin{align*} I=&\frac{1}{|\mathrm{det \, \textbf{A}}|} \sum_{m_{...
0
votes
1answer
47 views

Notation of Cyrillic symbol in Math Reviews of AMS-Latex

When I was writing Math Reviews of AMS, no \usepackage, \newcommand, etc could be allowed. How could I input the notation of Tate--Shafarevich group \Sha, which is a Cyrillic symbol? I've tried ${\...

1 2 3 4 5 148