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
1
vote
0answers
12 views

Searchable math symbols in pdf

When learning a new subject, I find searchable pdf files very useful. A quick search brings me back to the definition of a new concept, so I don't have to tax my brain so much memorizing. This also ...
0
votes
0answers
42 views

Automatically generate TeX to solve equation

I am using LaTeX to show the solution to some equations which requires a lot of tedious and repetitive changing of terms. There are plenty of online solvers that can actually solve the equations ...
2
votes
0answers
32 views

Advantage of math mode only for numbers [duplicate]

I wonder whether it makes a difference to write numbers, e.g., 3.1416 in math mode $3.1416$ or it is exactly the same as in text mode. I have many numbers in my document, especially decimal numbers, ...
0
votes
0answers
23 views

unusual amount of spacing around only one of my equations

This is my what I have written in my editor: In random effects estimation, the country specific effect (\(\eta_c\)) is assumed to be random and as a result is considered to be uncorrelated with the ...
12
votes
3answers
468 views

How to make the matrices look constant throughout?

I'm trying to make the following matrices look constant throughout, that is not change their size. I'm having trouble with the third. What do you suggest I use instead or maybe alter this? First, we ...
1
vote
1answer
16 views

Affiliations appear in unspaced italics, possible math mode triggered by breqn package

I recently found out about the breqn package and have been using it profusely. However, I notice that my article's title section is thrown off by this package. Specifically, the affiliation part of my ...
3
votes
3answers
245 views

Is it possible to shorten the use of \left and \right?

So I'm writing a latex document that has the following code in it \begin{align*} n! - k &= n! - \sum_{i=1}^{\left\lfloor\frac{n}{r}\right\rfloor}(-1)^{i+1}\binom{n}{r,\dots,n-ir} ((r-1)!)^i(n-...
2
votes
4answers
312 views

how to adjust the bar in the notation for the derivative assigned in $s = 0$?

How can I do this bar with the size adjusted? Thanks in advance!
1
vote
1answer
30 views

Is there a way to switch mathbf and bm commands within the document?

I have written a long document with a lot of equations that contain both \bm and \mathbf. However, now I would like to switch their behaviour. So whenever I have \mathbf{X} in the document, I would ...
1
vote
1answer
22 views

PDFLaTeX: changing the font type of the Greek mathematical symbols in formula

Which options do I have to modify the font that PDFLaTeX used to typeset Greek letters in mathematical formulas? For example: \textgreek{mvopr} is `textgreek' and $\mu\nu\omicron\pi\rho$ is a ...
2
votes
1answer
33 views

How to label underneath “buckets” when writing out a combinatorial problem

How would I go about creating a set of buckets for a combinatorial problem with labels underneath? What I mean is something like: $$ _ _ _ _ _ $$ and underneath each "bucket" I have a character such ...
0
votes
2answers
43 views

math mode in titles doesn't match font

When typesetting math in a section title, it will be set in italic serif normal, just as usual. The surrounding text however will be (depending on the documentclass) sans bold which looks like a ...
0
votes
0answers
27 views

How is `multline` or `flushright` declared?

I am still looking for the solution of this problem and I thought it might help if I knew how multline from amsmath or flushright environment declared. Could you help me with that?
0
votes
2answers
27 views

multiline in subscript

what is the correct way to write the following? \begin{align} &\prod_{\substack{p \leq x \\ $p$ ~{}odd }} p \end{align} Any help would be appreciated .Thanks in advance.
4
votes
1answer
33 views

Spacing in \colon

Following this question the consistent way to write a function is f\colon A\to B, but if I want to write a cospan like the following \documentclass[border=1mm]{standalone} \usepackage{mathtools} \...
1
vote
1answer
36 views

Increasing vertical space space between an $$ equation and text (An abnormal case)

In an overleaf document using \documentclass[a4paper,15pt]{scrartcl}, I wrote some text and thereafter, I wrote something like $$ c^2=a^2+(-b)^2=a^2+b^2 $$ (Not this equation, please see the attached ...
1
vote
1answer
31 views

What is the difference between the several definitions of mathematic operators?

I am defining a new math operator, and I found that I can define it using 4 different commands: \DeclareMathOperator (package amsmath) \operatorname (package amsmath) \DeclareMathOperator* (package ...
1
vote
1answer
45 views

Aligning on left (?)

Why the equation continues on the left side? It was always convenient for me when eq. continues on right, how to fix? P'(x)=0+a_1+2a_2(x-x_0)+..+na_n(x-x_0)^{n-1}\\ P'(x_0)=a_1\\ P''(x)=0+2a_2+6a_3(...
0
votes
1answer
37 views

Import 'u' and 'v' from txfonts

Unfortunately, I am not so good at extracting single characters from the other fonts, so I would like to ask for some help. I need to import 'u' and 'v', that are used in math mode, from txfonts I ...
1
vote
1answer
47 views

Automatically separate blocks by space in mathmode

I have a document with equations containing many mathematically not strictly necessary brackets. These brackets are customary in order to simplify the identification of certain blocks of the equations....
0
votes
1answer
19 views

On Defining Personalized Commands

Many times it takes a long time to write a mathematical formula using big commands. So I want to define a set of personalized commands that I frequently use. Please guide me.
2
votes
1answer
48 views

Extra space above `amsmath` environment inside `mdframed`

When I use this code some space above appears. \documentclass{article} \usepackage{amsmath} \usepackage{mdframed} \begin{document} \begin{mdframed} \begin{gather*} \lambda^2-2\lambda = 0\\ ...
1
vote
1answer
39 views

Custom document class, math mode in thesis title

I'm writing my thesis using a custom document class provided by our university vutinfth ( template in overleaf ), the title of the thesis has a few math symbols, which I need them to be bold to match ...
0
votes
0answers
45 views

How to underline in text mode IN math mode? [closed]

Not sure if this is possible. This is what I tried: $\text{ text in math not underlined }$ $\underline{underlined}$ $\text{\underline{text in math underlined}}$ This is how they render in Jupyter ...
6
votes
2answers
387 views

How to bring bar and \sim symbol at the same level

I am trying to bring the bar over $\rho$ and \sim over $u_i$ at the same level in the following equation (second term) but unable to do so. Kindly help me on how to do it? Someone told me to go for \...
0
votes
1answer
24 views

Top aligned nested math environmnets

How can I make y_* = appear on the same level as the first line of aligned environment without delarray package? \documentclass{article} \usepackage{mathtools} \DeclareMathOperator{\const}{\mathop{C}...
1
vote
1answer
21 views

Formulas before the first line of a system

How can I make \lambda_1: appear on the same level as the first line of the system? \documentclass{article} \usepackage{mathtools} \begin{document} \begin{equation} \lambda_1: \left\{\begin{...
0
votes
1answer
45 views

Syntax errors in a 'tabularx' environment

I am having some issue where Ii am unable to figure out whata is the error in my latex file and I am using TexStudio. \documentclass[12pt,a4paper]{report} \usepackage{mathbbol} \usepackage{physics} \...
3
votes
2answers
117 views

Decrease the distance between these two formulas

How can I decrease the distance between the following two formulas? \documentclass[12pt,a4paper]{article} \usepackage[utf8]{vietnam} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \...
1
vote
0answers
35 views

Differentiation symbol

Generally, I use mathrm{d} for the differentiation symbol in math mode, x\,\mathrm{d}x? However, I sometimes feel that the spacing is not accurate. What is best practice, theoretical computer science ...
3
votes
2answers
191 views

How to avoid this error defining a \newcommand?

I want to define this macro: \newcommand{stackonetwo}{\begin{smallmatrix} 1 \\ 2 \end{smallmatrix}} But I think the compiler doesn't like \\ inside the new command. It returns the error Missing ...
0
votes
0answers
30 views

How to make subscript size bigger globally and locally

Hello StackExchangers. I need to make subscripts in math mode greater in two separate ways: in a whole document; locally within a paragraph or a table. I have tried modifying the \DeclareMathSizes{...
1
vote
1answer
63 views

Dot over column vector

I create column vectors using: \newcommand*\colvec[1]{\begin{pmatrix}#1\end{pmatrix}} How do I put a "dot" above the vector? \colvec{q\\ f(q, \dot{q}, u)} I mean, I don't want \dot to be visually ...
0
votes
0answers
87 views

Writing Integrals in LaTeX

I am learning how to use LaTeX to write double and triple integrals. The issue is about style. There is a difference between the normal integral and the double and triple one: %%%%%%%%%%%%%%%%%%%%%%%...
0
votes
1answer
49 views

How does \if \else work at \DeclareDocumentCommand?

I made a command with DeclareDocumentCommand from the packet xparse, and I have had troubles. My problem is that the \ifmmode (if mathmode) and the else don't work correctly, because when I type $$ \...
0
votes
0answers
23 views

Global setting to ignore inline math when computing leading

I'm writing a paper with a provided template and page limit, meaning I cannot change the leading. However, it really annoys me how often the leading between lines is different due to inline math: I ...
0
votes
4answers
66 views

How to put matrix in a matrix

I am curious how I can make something similar to this
0
votes
0answers
55 views

Why is \left( discouraged? [duplicate]

From George Grätzer's Book; More Math Into LaTeX (5th edition) at the subsection 2.6 Your errors: Davey's Dos and Don'ts, it is mentioned that when you submit an article to a journal, Don't use \left\...
0
votes
0answers
15 views

Decreasing horizontal space between cases environment and `\Rightarrow`

\documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \[ \sum\vec{F}= 0 \Rightarrow \begin{cases} \frac{{\partial {\sigma _{xx}}}}{{\partial x}} + \frac{{\partial {\sigma _{yx}}}}{{\...
4
votes
1answer
64 views

fixed size box with math

Is there a way to code : \begin{aligned} & \boxed{\cos(30)}~x + \boxed{-\cos(20)}~y = \boxed{0} \\ & \boxed{-\sin(30)}~x + \boxed{\sin(20)}~y = \boxed{100} \\ \end{aligned} And have boxes ...
-1
votes
1answer
67 views

How to write code like this picture?

And write macro books mathematics for publishing
0
votes
0answers
39 views

Pretty statistical evaluation (min, max, avg, std)

Is there a better way of formatting statistical values in continuous text than this? The participants of the study were on average \num{33.5} years old (min=22, max=51, $\sigma$ =8.55, median=34). I ...
0
votes
0answers
17 views

“Go to source” math envinroments – TeXstudio

When I Ctrl+Click on an equation that is inside a math environment(align, gather) at texstudio's viewer, it jump to the \end{...}, but the the actual equation I've clicked. How can it be fixed?
0
votes
0answers
26 views

problem with math equations with package mathpazo

I write a document in french language and i use the mathpazo package for mathematical equations. My problem is when I compile, the letters with accents does not appear and I do not want to use the ...
0
votes
0answers
13 views

Lyx: old math previews are lowered, but new math previews are fine

Not sure exactly the reason, but at some point all of my instant previews is vertically offset, whereas new instant previews look fine. For example, in the pic here, the first show contains a new ...
1
vote
3answers
50 views

What is the best (easiest) way to indent lines of math without defining columns (think pseudocode)

All the ways I see to align things in math mode have you set columns, but I only care about where a line of math starts. I want to be able to write something like: f:A\to \mathbb{R}\\ % indent ...
0
votes
0answers
35 views

Comma semantics

I am wondering about whether to use text or math comma in the following cases (because they carry different spacing), and whether if style guides actually have comments on these. The points A, B and ...
7
votes
1answer
74 views

`\not\perp` not displaying properly using unicode-math

I am using the unicode-math package and I would like to write the symbol to indicate that two vectors are not perpendicular, but \not\perp does not display properly (the 'not' bar is too high): MWE: ...
2
votes
1answer
58 views

Copyable math formulas

I'm curious whether there is a package that allows to copy math formulas correctly. For example, this one should highlight like so but, not like so And if I copy one, I should get: ∫₃⁵ (x/(1-x²)) ...
3
votes
1answer
52 views

Custom math environment

Recently I've seen this post and I felt that I'd like to have something similar, but with math environment, so that if I write a single line of equation, it will put it at the centre, like equation ...

1
2 3 4 5
153