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

learn more… | top users | synonyms

5
votes
5answers
292 views

How to change all \vec{} to \bf{}

I'm writing a paper and I used \vec{} to express all vectors. Now, I changed my mind and want to write them in bold letters using \bf{} for instance. Is there a fast way to change all that's been ...
1
vote
1answer
18 views

Customizing header in gsm-l class

I use gsm-l class, a derived class from amsbook, to write my mathbook. However, it happened that on the header, the same number of chapter and section appear, like this (number 1 on the left is ...
3
votes
2answers
44 views

Align definition of variables of an equation right (not next to the equation)

this question has been asked before but I never saw a "perfect" solution for this problem. I use the equation block for my equations and I want the definition of the variables to show at the right, ...
12
votes
3answers
5k views

Big forward slash in math

I have a equation in from of a=VERYBIGSTUFF / VERYBIGSTUFF And I would like to have a "verybig" forward slash in the middle of them. I dont like \frac mode, as I would like to have them ...
4
votes
2answers
39 views

Odd spacing due to diagonal dots in pmatrix environment

I'm trying to typeset this matrix, but it seems the spacing between the fourth and fifth lines is off, perhaps due to the diagonal dots : Here is my Latex code : \[ \mathrm{Mat}_{\mathcal B}D = ...
1
vote
1answer
30 views

\varnothing or \emptyset not at the end of the line

I'd like to place either a \varnothing or a \emptyset symbol in my text, but every time I try, the symbol appears at the end of the line and not just behind the text where it needs to be. How can I ...
18
votes
2answers
3k views

Multiset notation in LaTeX

Does anyone know how to make (nice looking) double bracket multiset notation in LaTeX. i.e something like (\binom{n}{k}) where there are two outer brackets instead of 1 as in binomial? You can see an ...
10
votes
2answers
195 views

How to make underbrace label text wrap at brace width?

Is there a way to make underbrace label text automatically wrap at the underbraces width, preferably even with automatic syllabication? Example where brace label text exceeds underbrace width: ...
5
votes
1answer
34 views

Allow page breaks in a gather environment with a nested align

I have two consecutive lists of equations, the second of which is quite long (16 lines with no reasonable way to shorten it apparent). Because the center alignment of gather looks ugly in this case, ...
1
vote
1answer
31 views

Multi-row text comment in align environment

I am wondering what is the best way to make multi-row text comments in the align environment. Here is an example code: \begin{align*} \int \left( \frac{x+3}{2}\right) \, dx =& \int ...
2
votes
1answer
19 views

New gather and equation environments with a single counter

So I've created a new equation-style environment with an associated counter to track a certain set of definitions I introduce in my document: \newcounter{defcounter} \newenvironment{defeq}{% ...
2
votes
1answer
44 views

Distinguishing a symbol from a character around it while typesetting

When typesetting the LaTeX in Math mode is it safe to create a space (one carriage return) around a LaTeX symbol to isolate it from the surrounding character instead of enclosing the surrounding ...
4
votes
2answers
40 views

How to set \qedhere properly within “alignat*” environment?

The last part of my proof is formatted in an alignat* environment. How do I make \qedhere appear correctly? The naive approach (as you would do with align*): \documentclass{article} ...
7
votes
2answers
64 views

French equation numbering using bis, ter, etc

As a corollary to my other Question "French section numbering using bis, ter, etc", I am looking for a way to number equations by appending "bis," "ter," and other latin suffixes after the equation ...
1
vote
4answers
36 views

What is the command to add newline linebreak in \sum \prod? [duplicate]

I am sure this question or similar has been asked but I cannot find it by searching so adding it to make it more accessible: what is the command/environment to add newline linebreak in \sum \prod so ...
4
votes
1answer
69 views

Stop custom counter from incrementing twice in align* environment

This took me hours to track down, partially because I am fairly new to TeX. I want to understand why the custom counter eqpart in the following code fails to increment properly when using mathclap. ...
2
votes
1answer
49 views

How can I write a big set in overleaf

I want to write a set with 14 elements, for that I am using this but this keeps it all in one line and half of the set is visible only ...
1
vote
2answers
101 views

What kind of font is used in math mode of LaTeX?

For some reasons of compatibility and interactivity I need to create my own simple system for drawing the formulas. (So I need standard math sybols and something like \mathcal{N}.) Is there a way ...
0
votes
1answer
35 views

sum symbol in tikzposter too small

I am using the tikzposter package and am fairly happy with it except for one small thing: When I have an equation with a sum the sum becomes ridiculously small. I have read the questions about ...
2
votes
2answers
47 views

How to put a long equation spanning two columns while using IEEEtran?

I am using the IEEEtran document class to generate my PDF file so that it has two columns, but now I get a long equation and I cannot put it into just one of the two columns. Thus I used \onecolumn at ...
6
votes
3answers
295 views

Align without display math?

Is it possible to use the align environment without the display math? For example, I would like \sum to look as if it were inline. The solution given here does not work, insofar as the summation ...
2
votes
1answer
40 views

How to make normal subgroup sign in overleaf? [duplicate]

Overleaf is saying that both \unlhd and \trianglelefteq are undefined control commands, although \traingleleft works fine. How else can I make normal subgroup symbol i.e. with an equality sign ...
4
votes
1answer
74 views

Formatting a fractional exponent in display math

Typographically, what is the correct way to display a fractional exponent in display math mode? There was a post regarding inline math, but consider this example. \documentclass{article} ...
4
votes
2answers
29 views

scale down first half of split math equation

I need to scale down my math equation, I looked on the forum and it only addresses one part of my problem, splitting the equation into two lines, but the first line still exceeds the textwidth. I dont ...
2
votes
2answers
63 views

Hide Text with Latex

So I was wondering if there is some commands or/and packages that allows us to hide text (I didn't find an answer here on the site ...) , because I really need it for hiding hints in some math article ...
5
votes
2answers
79 views

flalign doesn't work in for me

I want to left justify my equations using flalign. However,it works in some places and doesn't in others. Below is a sample of my code \documentclass[12pt]{article} \usepackage{amsmath} ...
2
votes
1answer
44 views

How to number a given equation in the align* environment such that the number depends on the whole document?

\documentclass{amsart} \begin{document} We have \begin{align*} x^{2} &= x\cdot x\\ &= x^{6/3} \end{align*} for all real $x$ \end{document} To illustrate, suppose I would like to number ...
1
vote
1answer
39 views

How can I align multirow and multicolumn equations?

There is a multiline and multirow equation: \begin{equation} \begin{cases} f(x)=\frac{1}{12} \cdot x \quad g(x) = \frac{1}{24} \cdot x, & x<12 \\ f(x)=1 \quad g(x) = \frac{1}{8} \cdot x - 1, ...
1
vote
2answers
85 views

How can I make comments inside an equation?

How can I make comments inside an long equation, something like: \begin{equation} G(r) % comment here = \frac{A}{B} = \frac{\frac{t_c}{3}}{2 \cdot \frac{2t_b + t_v + t_c}{r}} = \frac{t_c}{6 \cdot ...
2
votes
1answer
24 views

Combining enumerate and align works in theorem environment, but not outside the theorem environment

I was using MWE 1 (which worked fine), but now I want to get rid of the theorem environment (MWE 2). However, that does not work and I get the following error. Any idea how I can make MWE 2 work? ...
3
votes
2answers
2k views

Commutative diagram with parallel arrows in opposite direction

I have a diagram of the following form, written with the package amscd: \begin{align*} \begin{CD} W @>\phi>> X \\ @V{a}V{b}V @V{c}V{d}V \\ Y @>\phi>> Z \\ \end{CD} ...
1
vote
1answer
28 views

How can i put in a limit a letter with undescore letter?

well, i have to write the limit in latex, but i don't know why i can't write un underscore caracter in the limit argument.
17
votes
3answers
2k views

What is the mandatory argument of alignedat for?

alignedat has a mandatory argument. But Herbert (in his mathmode.pdf) wrote as follows, I have made a trial and error, I noticed that the largest number that can be passed is 1073741823 and no ...
5
votes
2answers
177 views

Left - Right 'Double' curly brace (Blackboard bold) symbol

I am looking for a 'double' brace symbol (aka Blackboard or Doublestroke) like this - but for curly braces instead of square brackets. The symbol is used to denote the average in discontinuous ...
0
votes
0answers
19 views

How to include bold+italic font in an equation

\documentclass[a4paper,12pt,numbers=noenddot]{scrartcl} \usepackage{mathtools} \usepackage{amsmath} \begin{document} \begin{equation} \mathbf{R}_I(\mathbf{u}_{e}) = ...
0
votes
0answers
40 views

Attempting to replicate some beautiful papers I have recently read

I have recently read some really beautiful papers: https://web.eecs.umich.edu/~zmao/Papers/conextDefendHijack07.pdf http://rio.ecs.umass.edu/mnilpub/papers/securecomm07.pdf Is anyone able to ...
0
votes
1answer
24 views

mathfrak in htlatex

In LaTeX mathfrak command is working fine and when using htlatex it's converting and not viewing in the HTML file. This is Bug in htlatex? My MWE is: \documentclass{book} ...
0
votes
2answers
51 views

Package for Not Equal to sign in latex

I am new to latex. I need to write the following equation in latex. I have tried following packages:- \usepackage{amssymb} \usepackage{amsmath} L1 \cap Li \neq \Phi But i constantly get error ...
11
votes
2answers
5k views

How to fix this amsmath warning about redefining \vec

I am using the pss(b) template, which starts with, \documentclass[pss]{wiley2sp} % provides pss two-column style \usepackage{amsmath} %\usepackage{bm} % uncomment these two packages if ...
7
votes
1answer
814 views

svmono+amsmath causes a warning

\documentclass{svmono} \usepackage{amsmath} \begin{document} \end{document} generates the warning Package amsmath Warning: Unable to redefine math accent \vec. Is there any way to remove this ...
8
votes
2answers
137 views

Increase size of fractions on multiple lines

Inside a matrix, I have some very loaded (subscripts, greek letters, \breve) fractions: \begin{equation} Q_r = \begin{bmatrix} \frac{\partial \breve{y}_r}{\partial \theta_1}\bigg|_{t_1} & ...
2
votes
1answer
41 views

How to align over multiple lines?

So I have some lines of formulas that I want to align: \Xi_c=(0.136,\ 0.307,\ 0.057^+\ ||\ 0.194^-,\ 0.148,\ 0. 087, 0.074)\ \text{ and }\ \aleph_c=[\varnothing]. and \Xi_c=(0.136,\ 0.307,\ 0^+\ ...
2
votes
1answer
52 views

Vector with boldface and a hat on top

Could one of you help me on how to get the following: I need a boldface vector with a hat on top, something like the vector with boldface and a hat as below: ${\mathbf \hat{p}}$ or $\bm{\hat{p}}$ ...
15
votes
7answers
1k views

Aligning polynomial terms

In LaTeX align, I'm struggling to align polynomial terms and assume there's an easy way to do it. But I cannot find the simple/elegant solution. What I would like is something like this: x1 + x2 ...
10
votes
4answers
232 views

Indices with German Umlaut ä - \mathrm{} or \text{}?

I'm wondering about the correct use of \mathrm{} and/or \text{} (or similar) in formulas. I've read these topics (and some more): Is there a preference of when to use \text and \mathrm? and ...
3
votes
2answers
50 views

Theorems spanning pages without losing width

I use declaretheoremstyle to declare a theorem environment. I like the format of shaded, it gives a special background color without shorten the width of a text. But one problem is that a theorem ...
22
votes
2answers
14k views

\xRightarrow (text)

I know it's possible to have \xrightarrow (text), but if I try to do \xRightarrow (text) I get an error each time. Does anybody know if it's a syntax error or if there is a other way to produce the ...
0
votes
2answers
36 views

Eulerian polynomials of the second kind with \genfrac?

The Eulerian polynomials of the second kind are defined as (see for example here) E_n(x) = \sum_{m\ge0} \left\langle\!\!\left\langle n\atop m\right\rangle\!\!\right\rangle x^m . I would like to ...
1
vote
1answer
100 views

Displayed equation is not centered

I'm planning to send my research paper to a journal using the provided template. However, i found that displayed math is not centered (paper publish in the journal have equation centered). Below i ...
3
votes
2answers
75 views

Regression equation font face for long variable names

I'm writing a paper for a journal that contains several regression equations (a first for me). Some of the models have long variables names (between 2-7 characters in length). I'm wondering what the ...