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

learn more… | top users | synonyms

4
votes
2answers
53 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
18 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? ...
0
votes
0answers
26 views

Splitting commands over multiple lines

We have a command used to typeset things in a specific font and colour. Sometimes, what is given to this command is large and it needs to be split into multiple lines within the same align or ...
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
25 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
156 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
16 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
33 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
21 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
43 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 ...
0
votes
0answers
16 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 ...
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
798 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
128 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
38 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
42 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
225 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
39 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 ...
21
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
34 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
93 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
67 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 ...
11
votes
3answers
3k views

Why doesn't lineno number a paragraph when it is followed by an “align” equation environment without a space?

lineno skips the line numbering in this case: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{lineno} \linenumbers \begin{document} Lorem ipsum dolor sit amet, consectetur adipiscing ...
7
votes
4answers
151 views

Multiple matrix equations, alignment

I want to write three matrix equations on multiple lines so I'm using alignat. However, the widths of the matrices on each line are not equal. How can I make sure they will be? I've been looking ...
2
votes
1answer
48 views

Math Formula is too long exceeds column width

I have a formula below which is expected to be in an column. After compiled, it is too long and covers two column. How can I constrain it into only one column width? Thanks \begin{equation} f'(u,v) ...
1
vote
1answer
60 views

File ended while scanning use of \frac

I keep receiving the error message File ended while scanning use of \frac ." and have narrowed the error down to this equation, though I can't work out why. \documentclass [12pt] {report} ...
1
vote
0answers
25 views

Why do I get an error when putting more elements in a row of a bmatrix? [duplicate]

I'm using bmatrix to display a simple matrix. Curiously, this does not work with a 1x11 matrix, while it does work with a 1x10 matrix: This works just fine: $$ \begin{bmatrix} a_1 & a_2 & ...
2
votes
1answer
34 views

Horizontal alignment in multicols

I was working with math equations in multicols, but the equations don't seem to align (i.e. (a), (c) and (e) do not horizontally align). Is there any easy workaround for this? ...
2
votes
1answer
130 views

missing $ inserted on code

I am certainly new to latex and have this error in a high frequency in my code. The error is claiming I have a missing $ sign in many places, and I imagine that my syntax usage of $ is off. My ...
1
vote
2answers
50 views

How can I typeset this optimisation problem?

I need to reproduce the following equation: I've tried the following: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \begin{aligned} & \text{minimize} ...
6
votes
2answers
2k views

Aligned multline

I want to show the derivation of a formula where I encounter long formulae. Unfortunately the derivation is very complex, so I have to show some intermediate steps. My problem is, that I want to mix ...
3
votes
1answer
52 views

New command: Hypothesis

I'm new with Latex and trying to get four hypotheses in the following style: Hypothesis 1 (H1): This is my first hypothesis. I'm using the amsmath package and the following code: ...
0
votes
2answers
28 views

Long set description

I want to define the following set whose description is too long. How do I break it into two? $L_4 =\lbrace{ w \mid w \text{ every } 1 \text{ in } w \text{ is either preceeded or followed (not ...
3
votes
3answers
81 views

Arrange long multiple equations with texts between them

I have aligned the equations in the following way but using multiple \qquad. I don't think it is a good practice to do so. Moreover the equations should fit within the width of the document. What I ...
4
votes
1answer
121 views

Standard for typesetting mathematical objects other than variables

Is there a standard in mathematics for typesetting the textual (not symbolic) identifiers of mathematical objects other than variables? Textual identifiers of mathematical objects other than ...
2
votes
1answer
32 views

Fixing the spacing of overbrace and underbrace contents relative to large brackets

Consider the code for the MnWE: \documentclass{article} \usepackage{physics} \usepackage{mathtools} \usepackage{amsmath} \begin{document} \begin{equation} \norm{f - L}_{\infty} = ...
2
votes
1answer
28 views

Command \* already defined

I have included the package amsmath as required to defined a new theorem/corollary (without number), but I keep having the following error: ! LaTeX Error: Command \* already defined. Now, ...
0
votes
2answers
52 views

Aligning Multiline Matrix Equations

I need to align two equations, one of which spans two lines. I've tried the solution here, but this isn't for matrix equations, and it doesn't seem to work with these. My minimized code is: ...
1
vote
1answer
41 views

Looking for a more elegant (correct) way of creating a formula

I wanted to achieve the following: And I did but my code looks like it was in a major accident: \documentclass{article} \usepackage{amsmath} \usepackage{stackengine} \begin{document} ...
3
votes
3answers
63 views

Alignment of formular after linebreak in amsmath (flalign)

I am trying to achieve something like this: in amsmath. The best I could come up with so far is the following MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{flalign*} ...
4
votes
1answer
45 views

Subequations with varioref and cleverref

Can somebody tell me why the references don't work in this example? \documentclass{article} \usepackage{varioref} \usepackage{hyperref} \usepackage{cleveref} \usepackage{amsmath} \begin{document} ...
3
votes
3answers
77 views

Adjusting the description about an equation in Latex

I have to write the "Where" text about an equation as shown the given picture. The "Where" text appears to the left side which seems a little awkward as per the standards. Please suggest me, how can I ...
10
votes
2answers
3k views

Why doesn't lineno number a paragraph when it is followed by an indented equation?

While searching for the source of missing line numbers, I realized that paragraphs followed immediately by an equation have no line number, but this is fixed when a space is included, e.g. the ...
2
votes
1answer
41 views

Making \xrightarrow longer but without using spaces

I have this table, and as you can see I make the last arrow longer with loads of spaces. Is there a better way to make it as long as the other \plusarrows but at the same time with a centered text ...
1
vote
1answer
47 views

Appropiate size of mathmatical formula in a text

I used this code to inset a mathematical formula in my two-columns text. ($Prob_{SVM}-Prob_{MLP}$) Comparing to normal text, Isn't it a little big and inappropriate? How can i fix it?
1
vote
1answer
53 views

Even vertical spacing in multline and gather environments

Using fractions or expressions with sub- and superscripts may lead to uneven vertical spacing in math environments spanning several lines (i.e., align, gather, multline,...). A fix for align was ...
4
votes
1answer
84 views

Symbols for left and right limits

I am using lualatex, are there symbols for left and right limits, like small "-" and "+" to put above the numbers? For now I use \documentclass[a4paper,12pt]{book} \usepackage{fontspec} ...
68
votes
5answers
11k views

Is there a preference of when to use \text and \mathrm?

I'm unsure of when it is preferable to use \text versus \mathrm, is there some unwritten rule about the use of these? For example, I saw the following code in a math post: ...