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
3
votes
2answers
58 views

Using a primed sum operator in display and text mode

I would like to define a primed sum command \sump such that \sump_{x \in X} produces: a prime at the top right corner and the x \in X below the sigma in display mode, and a prime in the top right ...
1
vote
2answers
41 views

autobreak formula but doesn't work

I have a long formula , I use autobreak as follows,but it doesn't work \begin{align} \begin{autobreak} {E_{{S_{t + 1}}}}\left[ {\left. {E\left[ {\left. {{G_{t + 1}}} \right|{S_t},{S_{t + 1}}} \right]}...
3
votes
1answer
41 views

Interchange `\colon` and `:`

I know that there is a typographical difference between using : and \colon in math mode, because : is considered to be a relation. However, I use \colon far more often than :, so I would like to ...
1
vote
1answer
80 views
+100

Modify braket package to control the space between text and brackets

Significant EDIT: Stimulated by the comments of the users egreg and schtandard, I found a solution to my original problem. Now, the problem has slightly changed, but it is still about the control ...
13
votes
4answers
5k views

All letters upright in math mode (equivalent to \rm)

I'm using the document class scrartcl and I'm looking for a way to write equations in which all letters are upright like it appears when using \rm. \begin{equation} \rm A_{something} + B_{another}...
1
vote
0answers
26 views

Inconsistent horizontal spacing when using a new font in math mode

I am trying to work out a way of using the Optima font in both math mode and the main body of my text. The code I came up with is given below. It is by no means elegant, and if there is a better way, ...
-1
votes
1answer
42 views

How to type this complicated fraction in latex? [duplicate]

As shown in the below screenshot, how could I type this complicated fraction for x_n in problem 5?
2
votes
2answers
64 views

Best way to refactor of more complicated TeX

I need do refactoring ugly equations. \documentclass{article} \usepackage{amsmath} \begin{document} $ \sum_{l=1}^{n} \frac{x_{k}}{\left(\overset{n}{\underset{l=1}{\sum}}\vert x_{l}\vert^...
0
votes
1answer
49 views

Is there a font where lower-case $x$ and $z$ look more like $X$ and $Z$, and how do I switch all my equations to have that font?

I like $X$ and $Z$ more than $x$ and $z$. The lower case versions are too fancy (too many curves, whereas the $X$ and $X$ have lines that are more "straight"). Is there a font where the lower case $x$ ...
1
vote
2answers
47 views

Active apostrophe character in math mode

For some reason, I need a package providing an active apostrophe. For the sake of simplicity, let's say that every apostrophe shall be replaced by ABC in text mode. In math mode, the default behaviour ...
0
votes
0answers
52 views

Fix vertical space for all display equations for all possibilities

My tags are as follows: \documentclass[10pt]{book} \usepackage{mathtools}%to load amsmath \begin{document} \makeatletter \newbox\eqnskipbox% \newdimen\eqnskipdimen% \setbox\eqnskipbox=\hbox{\...
0
votes
0answers
31 views

Omega T and latex [on hold]

i am trying to translate a .tex file using OmegaT 4.3.0 with a DeepL license. When I upload the file to translate it I notice that some of the latex syntax is changed: for example if in the original ...
4
votes
2answers
53 views

A label for multiple equations

The following code gives two examples: The former gives only one label for two equations with a redundant notation "{ ", but the later gives three labels (It should be two?). Is it possible to give ...
0
votes
1answer
50 views

mathematics to markdown in pandoc or latex

Latex cannot do addition or other mathematical operations like creating a graph from a sine equation--which program can be used for mathematical operations and then parsing the output to a pdf file--...
7
votes
3answers
948 views

align inside \left … \right

I am trying to split an equation over multiple lines. To improve readability, I want to make the second line line up with the right side of the left brace of the first line as is almost achieved in ...
0
votes
0answers
32 views

! Undefined control sequence. \f@nch@olh ->\NetIDa

I'm trying to run my code, but it's giving me the following error: ! Undefined control sequence. \f@nch@olh ->\NetIDa \\\NetIDb \strut l.87 \[ \Delta P=0....
5
votes
4answers
252 views

Putting Faraday's law formula in LaTeX

Can anyone tell me how to put the formula for faraday's law in LaTeX? This is the formula I want emf=(Delta.Phi)/(Delta.t) thanks
1
vote
0answers
30 views

Should I use $ notation to deal with math expressions in latex? [duplicate]

I guess I saw a suggestion somewhere that standard latex does not use $$ notation for math equation, but I am not sure. This is the default template provided by the online compiler. \documentclass{...
0
votes
1answer
37 views

Label eqnarray split and align

I've this tex code \begin{eqnarray} &\partial_{t}f =D \nabla^{2}f -f (1-f)[(1-s)-(2-s)f]\epsilon \label{eqn:1}\\ \nonumber &\\ \text{from which we get} &\partial_{t}f =- \frac{\...
1
vote
1answer
24 views

Some symbols load (display) issue when converting MathML to LaTeX

I'm using David Carlisle's stylesheet to convert MathML to LaTeX. The stylesheet does a phenomenal job for converting even very complex MathML into LaTeX. But I'm having trouble displaying following ...
1
vote
1answer
57 views

Make a new line in a displayed equation in LaTeX

How do I make a new line in LaTeX? $$2^2+2=6 3^2+3=12$$ returns $$2^2+2=6 3^2+3=12$$
0
votes
2answers
24 views

Customize equation numbering for Equation environment for Supplementary Material?

I need a different numbering style for equations in the Supplementary Material, for example use (S.1) instead of (1.1) It works manually with \tag{S.1} but is there a way to change the ...
0
votes
0answers
27 views

How to add this mathematical sign in LaTeX [duplicate]

Following is an equation (taken from Reinforcement Learning field). How can I add the first sign (like 1) in LaTeX and what does it mean?
5
votes
1answer
2k views

How can I set uppercase greek letters as italic in math mode by default?

This is a follow up question to here. The recommended solution doesn't work for me. I therefore let all my mathematical packages in the MWE. The result is an upright Psi followed by an italic Psi. I ...
8
votes
3answers
794 views

mathabx + mathtools -> extremely odd underbrace behaviour… how to fix?

This following code produce very strange result: \documentclass[12pt]{book} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{amssymb} \usepackage{amsmath} \usepackage{mathabx} \...
3
votes
1answer
42 views

Vertical alignment of equation and text in minipage

I'm trying to define a command (\formule) with two arguments: the first one is the math equation(s) and the second one the text to be displayed on its right side. The difficulty is that the second ...
1
vote
0answers
38 views

How can I made \dots command smarter?

I have used in my document \dots instead of almost all other dots such as \cdots, \ldots. though it is smart in choosing base line depend on the formula, but in some cases it is not as (at least my) ...
0
votes
0answers
32 views

Django template : begin-math/end-math missing symbol error

I wrote a the following template in LaTeX: % Projet : INFOREFLEX_GENER_HTML % Nom : index_cellules.tex % Auteur : Emmanuel DUVSHANI % Fonction : template pour l'affichage des cellules ...
1
vote
2answers
51 views

Too much white space after large equation in memoir class

I'm currently writing my thesis using the memoir class and I have experienced some unwanted behavior when typing large equations. LaTeX adds a ridiculous amount of vertical white space to place the ...
1
vote
1answer
23 views

Strikeout a paragraph containing text and an equation environment

As shown in this answer, we can strikeout text like abc $x=y$ using \st or \sout from the ulem and soul package, respectively. However, both approaches don't work if the text contains an equation ...
6
votes
2answers
100 views

Script for dualizing diagrams in tikzcd by mirroring

My question is very similar to this one but in some cases I would prefer my diagrams to be mirrored instead of rotated. Are anyone able to write a script like this in LaTeX? As an example I have this ...
9
votes
3answers
8k views

Forcing math mode to be on the same line

I would like to have math mode expressions in dollar signs always to stay on the same line, which is what happens to a sequence of characters with no spaces while not in math mode. Is there a way to ...
0
votes
0answers
16 views

Can we use \glsxtrnewsymbol for a symbol containing \operatorname?

Please consider the following example from this question (Method 3): \documentclass{article} \usepackage[colorlinks]{hyperref} \usepackage[symbols, nogroupskip]{glossaries-extra} \...
14
votes
3answers
21k views

\newcommand gives errors in math mode (with or without arguments)

I'm trying to define a custom command for use in math mode, defined as \newcommand{\deriv2}[2]{\ensuremath{\frac{\partial^2 {#1}}{\partial {#2}^2}}} Other non-math mode \newcommands work in my ...
5
votes
1answer
102 views

Apostrophe in math formula prevents luatex compilation for Slovak

The following example can be compiled with pdflatex or xelatex without any problems, but with lualatex, the compilation comes never to an end. \documentclass{article} \usepackage[slovak]{babel} \...
10
votes
5answers
730 views

Writing a worded mathematical expression

How to write the below expression in latex using equation or align. Edit: Changed the wordings based on the suggestion from @Henri Menke
0
votes
0answers
30 views

Punctuation spacing in math that ends with a differential \dd{}, and the physics package

It seems the physics package adds an extra (thin) space after \dd{x}, before my punctuation (usually "," or ".") and I don't want this. This is a common scenario for me, especially if I'm displaying a ...
4
votes
2answers
46 views

super and subscripts on stackrel variable

How I am trying to put a label above a variable omega. That works well but I cant find a better way to have the sub- and superscripts belonging to omega itself without a gap. using the superscripts on ...
0
votes
1answer
28 views

embedded command resulting in argument of \equal has extra } error

I am trying to make a macro (\ls) which will convert keywords into the mathmode version of their equivalent logic symbol. I've figured a way to make this work fine, except when it is in an argument of ...
0
votes
0answers
31 views

How to make a new paragraph with formula?

\noindent $(1)$ \textit{If $\theta \in [\frac{1}{\alpha},\infty]$, we have} \begin{flalign} \int_0^{\tau} t^{-\theta} dS_t = \infty \ \forall \tau >0, \textit{a.s.} && \tag{1.1} \end{...
2
votes
3answers
250 views

Combine \symbb and \symbf to get bold double struck

I would like to get a bold double struck one and I tried to use \symbf{\symbb{1}} but this does not work sadly. Is there some way to still get the desired result? Thanks for your help :-) Update: ...
1
vote
1answer
93 views

How to write “Nosé–Hoover thermostat” in latex?

I want to write following in latex - Nosé–Hoover thermostat I tried this but it didn't work - Nos$\ {\prime} e$--Hoover thermostat
15
votes
1answer
137k views

Epsilon and log functions

I m trying this T(n) \epsilon \left(\Theta(n^\log_22$\right) = $\Theta(n^\log_22 )$ = $\Theta(n)$ but i want below result. Is E sign is epsilon only . And also log bracket not coming properly and ...
6
votes
2answers
237 views

Closer slanted parallel symbol

Looking the @egreg's answer where I have deleted some parts of code \documentclass[12pt]{article} \newcommand{\parallelsum}{\mathbin{\!/\mkern-5mu/\!}} \begin{document} $AB \parallelsum CD$ \end{...
2
votes
1answer
44 views

Combine alignat and flalign

I have a rather large argument, where I want some equations to have text flushed left. This will usually just be a reference to the problem at hand My desired outcome is something that looks like the ...
0
votes
0answers
25 views

apply vertical set spacing for all align environments in document

I saw a lot solutions to this questions in here, unfortunately none of them works in my case. The code below works exactly as I would expect it. For my thesis however the \setlength{\abovedisplayskip}{...
1
vote
3answers
47 views

Use split environment multiple times in align

I got a big fan of the split environment to share forumula numberings over multiple lines. However I can't figure out how to use it multiple times inside an align environment. I have an equation that ...
10
votes
1answer
235 views

Scaling of delimiters and \widetilde does not work with Libertinus

I’m using XeLaTeX and I recently started using the Libertinus font family. I ran into the problem that scaling of delimiters does not always seem to work. As an example, take the following code: \...
3
votes
1answer
28 views

How to display only one reference for equation using \align?

Good morning. I would like to understand how to write this equation and receive only one reference (example: equation 1.1) and not euqation 1.1 and 1.2 relative to the second line of the equation. ...
0
votes
0answers
25 views

Creating your own summation-like command [duplicate]

Now I've asked this question here before, but since then I've lost my account, and after an hour of trying to find the answer again somewhere on this site, I thought I'd just ask it again. So it ...