Questions tagged [amsmath]

{amsmath} is a package provided by AMS that enhances LaTeX's mathematical typesetting capabilities in various ways.

Filter by
Sorted by
Tagged with
3 votes
1 answer
68 views

How to add line numbers to equations (amsmath)

I have several equations spanning multiple lines, using \begin{equation} \begin{aligned} to give each of them one equation number. For example: \begin{equation} \begin{aligned} \forall &a. \\ &...
user avatar
2 votes
3 answers
65 views

Align with long equations / join cells?

I'm having trouble using the align environment to stack up equations for a linear program. The issue I'm having is that the contents of the center column in the top row are so long that they push the ...
user avatar
  • 143
0 votes
0 answers
44 views

Insert specific form of tau

I want to insert this specific tau in my paper . But with the usual tau symbol, I am getting this tau,. Wth the upgreek package, I am getting this, . Therefore I am asking for your guidance about the ...
user avatar
  • 1
0 votes
2 answers
52 views

Commutative diagram with 2 blocks

Using the tikzcd package I would like to make the following diagram.
user avatar
10 votes
2 answers
584 views

Math: overwrite \int command

I wish I could override the \ int command, so that each integral is rendered this way. Yes, I know the command to display it this way is \int\displaylimits_a^b, but I would like to overwrite the ...
user avatar
1 vote
2 answers
43 views

Math mode: square bracket strange behaviour

Can you see as the content is not aligned with square brackets? \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \[ \left[ \dfrac{1}{\dfrac{\mathrm{L}^3}{\mathrm{t}}} \right] \] \...
user avatar
5 votes
1 answer
202 views

Why are these two matrices not the same height

code 1 with ctex: \documentclass{article} \usepackage{ctex} \usepackage{amsmath} \begin{document} \begin{equation} A= \begin{bmatrix} x \end{bmatrix} \end{equation} \end{document} code ...
user avatar
  • 53
0 votes
1 answer
37 views

Equation numbers inside multiline vertical braces [duplicate]

I have a sum expression with many terms. I would like to split the summands into two groups in order to be able to talk about the differences between group 1 terms and group 2 terms in general. I ...
user avatar
0 votes
0 answers
60 views

The command \eqref doesn't seem to work

I'm writing a thesis in the Overleaf environment, with several .tex files. In the main one that includes all the rest I have \usepackage{amsmath}. Here are all of my packeages used: \documentclass[MSc]...
user avatar
  • 1
2 votes
2 answers
153 views

Cannot figure out how to align these columns of equations correctly

I want to align these two columns of equations so that there is equal spacing between the numbers, operators, and equal signs throughout. Here is the code I'm using: \begin{center} \begin{alignat*}...
user avatar
0 votes
4 answers
53 views

Problem with align* moving equations off the page

Here is the Math question and answer that I want to typeset into LaTeX: I'm using the align* environment to typeset everything and this is the code I've used: \documentclass{article} \usepackage{...
user avatar
1 vote
1 answer
30 views

Change the default behavior of \\ inside cases environment?

Based on the answer by egreg in The curly brace is too big, I would like to modify the cases environment After some experimentation, I found out the following option that I like the most: \...
user avatar
0 votes
0 answers
31 views

Unwanted spacing right before \left (

When I run the following code \documentclass[10pt]{article} \usepackage{amsmath, amsfonts} \begin{document} \begin{gather*} \mathbb{E} [x]\\ \mathbb{E} \left[x\right]\\ \mathbb{E} {\left[x\right]...
user avatar
2 votes
1 answer
35 views

amsmath's align* or gather* followed by \ifmmode = 🗲

Feeding \documentclass{article} \usepackage{mathtools}%%% or amsmath \begin{document} \begin{gather*} \ifmmode Math\else Text\fi \end{gather*} \end{document} to any of the four LaTeX processors (...
user avatar
  • 1,119
3 votes
2 answers
121 views

automatic indentation by units in align environment

The AMS style guide, p.118, says "If there is a long expression before the first verb, align succeeding verbs with a two-em quad indent from the left." Right now I can achieve this with a &...
user avatar
  • 155
3 votes
1 answer
45 views

Reversed arrow tips for \overleftarrow and \overrightarrow

The post Change arrow tip of \overleftarrow-Command tells me how to change the size of the tips of arrows generated with \overleftarrow and \overrightarrow. But how can I get a different tip all ...
user avatar
  • 31
3 votes
2 answers
115 views

How use the align environment to do this

I'm trying write this two equations but I only get this: with this code: \documentclass[a4paper, 11pt]{article} \usepackage[top=3cm, bottom=3cm, left=3cm, right=3cm]{geometry} \usepackage[spanish]{...
user avatar
  • 31
2 votes
2 answers
65 views

shorter method of writing \text{}

I use \text{} a lot for subscripts as it make equations look cleaner. It is however a giant pain to write something like x_{\text{subscript}} several times over. Not to mention that it makes the latex ...
user avatar
  • 41
0 votes
0 answers
30 views

Spacing problem with \dim command

If we use the \dim command from amsmath, shouldn't there be some space after dim? For some reason, there is no space after dim if \dim is immediately followed by a (. However, enclosing the ...
user avatar
7 votes
1 answer
498 views

What is the difference between \cdots and \dotsm?

\cdots and \dotsm, which I presume to stand for center dots and dots for multiplication, are both three dots in the middle of the line. I don't see the difference between them, and which is better to ...
user avatar
0 votes
1 answer
29 views

Labeling Equations in TOC

I am working with a class file that creates a new TOC for a new list as follows: \chapter*{\listname\ #1} \addcontentsline{toc}{chapter}{{\texorpdfstring{\MakeUppercase{\listname\ #1}}{\...
user avatar
0 votes
1 answer
26 views

Equation with two sums but just one min and max

I started with equations now and I got a problem with two sums in a row which should have the same symbol for minimum and the same symbol for maximum obove / under the sum symbols. The min and max ...
user avatar
  • 111
3 votes
2 answers
182 views

Big optimization expression spanning both the columns of IEEE paper

I have tried the following code: \[ \begin{alignedat}{2} & \text{Find} & & X \\ & \text{subject to} & \quad & \mathcal{A}(X) = y \\ & & & X \succeq 0 \\ & & ...
user avatar
0 votes
1 answer
77 views

How to type this optimization problem in latex without equation number

I am writing a paper in IEEE Transactions on signal processing. I need to write the attached optimization problem in one column of the paper without the equation number. The code I have tried is \...
user avatar
0 votes
0 answers
31 views

Help with \ProvideMathOperator

In my document I often write c_\mathrm{A} So, to recycle this command for other subscripts other than A, I tried to define a mathematical operator, but it broken \documentclass[12pt]{article} \...
user avatar
0 votes
1 answer
30 views

Extra alignment tab has been changed to \cr. \end{multline}

How do I represent this matrix sum in two lines? I am getting the error "Extra alignment tab has been changed to \cr. \end{multline}" \begin{multline} \begin{bmatrix} ...
user avatar
  • 3
1 vote
3 answers
44 views

Tilde character spacing too large while using fractions [closed]

I am facing a strange issue while using \tilde option in LaTex : I keep having a very large space between the tild character and the letter related to like this (in the second line) : The fact is ...
user avatar
  • 185
3 votes
1 answer
50 views

double-underline notation for matrices and single-underline notation for vectors [duplicate]

This is a fairly nice solution to double-underlines for matrices and single-underline for vectors: \def\mat#1{\underline{\underline{#1}}} \def\v#1{\underline{#1}} However, it doesn’t work well when ...
user avatar
  • 57
1 vote
2 answers
71 views

Format long equation in Array

I have a 3 X 1 array that is too long. I have used the multline command to write it but it is not easily readable. Please, is there a better way to write this equation? Thank you for your help. Code ...
user avatar
  • 69
0 votes
0 answers
46 views

creating random questions for a worksheet

This might be too much to ask but I would like to create a worksheet like the one below, \documentclass{article} %AdditionCode % \usepackage{amsmath} \usepackage{mathtools} \usepackage{enumitem} \...
user avatar
  • 405
0 votes
0 answers
29 views

Nested new commands yields undefined control sequence

I defined new commands in a Latex document. Even though the pdf render is correct, compiler raises "undefined control sequence" error. Could you help me identifying the problem? \...
user avatar
0 votes
0 answers
20 views

Position of Sigma indices

I use \frac{\sum_{j=1}^{|K_i|} I_{j}}{\sum_{j=1}^{|K_i|} C_{j}} to show a sigma expression but as you can see in the figure, the indices are not on top and below the symbol. Any way to fix that? P.S: ...
user avatar
  • 3,117
0 votes
0 answers
25 views

Lower the superscript of a hat variable

I have an inline math expression involving a superscript and a hat: \documentclass{article} \usepackage{lipsum} \usepackage{amssymb,amsmath,amsthm} \setlength{\parindent}{0pt} \begin{document} \...
user avatar
  • 143
7 votes
3 answers
735 views

How can I show S-comma in LaTeX math mode?

I am writing my bachelor's thesis and it needs to be written in Romanian. While writing some math formula, I wanted to write "and". It translates to "și". As it turns out, my ...
user avatar
0 votes
1 answer
67 views

A practical way to color pairs of brackets [duplicate]

I would like to find an option in order to color automatically pairs of brackets because I am starting to have a very long equation (that is splitted in two lines) and I was wondering if it was ...
user avatar
  • 185
0 votes
1 answer
65 views

Dashed \longleftrightarrow

I want to write a short causal path diagram like so: $Z \longleftrightarrow X \to Y$ Except I would like the \longleftrightarrow to be dashed, in much the same way that there is a \dashrightarrow and \...
user avatar
  • 3
3 votes
3 answers
359 views

unicode-math delimiters

I need the unicode-math package for LucidaBrightMathOT fonts. However, this seems to have some undesirable effects on delimiters. Left without and right with unicode-math using the MWE: \...
user avatar
2 votes
1 answer
62 views

Changing theoremstyle

I wanted to change the way "Definition 1.1" is displayed. Specifically, I want to make the name of the definition (green box in attached image) appear in bold (which I know I could do with \...
user avatar
  • 35
2 votes
1 answer
59 views

Remove horizontal indentation from an array

How can I remove horizontal indentation from an array globally? \documentclass[]{article} \usepackage{amsmath} \usepackage{amsmath, amssymb, amsfonts} \begin{document} \section{Test 1 -- normal} $f(...
user avatar
  • 6,335
0 votes
0 answers
32 views

Reference subequations without parentheses with cleveref

Is there a possibility to reference subequations with cleveref without parentheses? MWE: \documentclass{scrartcl} \usepackage{amsmath} \usepackage{cleveref} %\crefformat{subequations}{eq.~#2#1#3}% ...
user avatar
  • 455
7 votes
3 answers
220 views

Equation alignment with varying number of columns

How do I align an optimization statement where the number of columns varies in each row? I'm trying to align the summation symbols, equation signs within the "subject to" section, and any &...
user avatar
0 votes
3 answers
41 views

Equation breaking without Losing alignment

I've done this before breaking equation using \split while working in align environment but this is not the output I want. I want to break the equation but don't want to lose alignment of the equation ...
user avatar
2 votes
1 answer
194 views

How can I modify the size of fraction?

$ \hat{Y}=\ln{\frac{Y}{Y^*}} $ When I took a log on fraction, the size of this fraction is too small to see. I don't want the size of the fraction to decrease. How can I fix this problem?
user avatar
  • 31
0 votes
0 answers
12 views

Partial framebox annotation

What is the best way to create an annotation like this: MWE: \documentclass[]{article} %\usepackage{amsmath} \begin{document} \newcommand\Start[1]{\ensuremath{\begin{array}{| l} \hline #1 \end{...
user avatar
  • 6,335
1 vote
4 answers
67 views

Numbered equation, alignedat enviroment, tall curly brace [duplicate]

I want to get a single equation number for this multiple equation with \label I need for cross referencing. Also, I need a tall curly brace prior to the equation number.
user avatar
2 votes
3 answers
27 views

Line breaking inside BIG parenthesis

I tried line break as well as \newline command inside parentheses but it did not work.
user avatar
0 votes
2 answers
48 views

how to place two equations side by side

I have seen other answers to the same problem but none seem to work for me. I have this code: \documentclass [10pt, a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[portuguese]{babel} \...
user avatar
2 votes
1 answer
135 views

Line Spacing Between Aligned Equations

I've been typing this equations but these equations does not get enough line spacing spacing. I get space sufficient if I did type them separately but I want them aligned too. following is the code: \...
user avatar
4 votes
2 answers
302 views

How do I access the integral symbol "\int" after renewcommanding "\int" to something else?

I like to define "\int" to be \operatorname{int}, where int refers to the interior automorphism defined by an element of a group. This is good for me because integrals never appear in my ...
user avatar
  • 203
2 votes
1 answer
21 views

Change format of manual equation tags without changing format of automatic numbered tags or references

I would like to make it so that when I use the \tag command to give an equation a name rather than a number, this name is printed in bold next to the equation (without parentheses), but subsequent ...
user avatar
  • 166

1
2 3 4 5
63