Skip to main content

New answers tagged

3 votes
Accepted

Equation Misalignment with Springer Nature LaTeX Template Using [iicol] Option

It's not misaligned: the equation is too long to fit. Use multlined from mathtools. I also added siunitx which not only eases numeric input, but ensures uniformity across the document. \documentclass[...
egreg's user avatar
  • 1.1m
1 vote

Why does Latex produce this error and how to fix it?

It's a hmm feature of the amsmath nested accent handling. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} \dot{\hat{a}}&=...\\ \dot{\hat{a}\ExpandArgs{c}\...
David Carlisle's user avatar
2 votes
Accepted

Move the equation to left side inside split environment

I guess you want multline. \documentclass[12pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage[ %width=1.00in, %height=0.80in, left=0.80in, right=0.80in, top=0.80in, bottom=1.00in ]...
egreg's user avatar
  • 1.1m
3 votes

Move the equation to left side inside split environment

Because when I am using split alignment inside the equation, it centers in the middle of the page. The LaTeX default is to center-set all displayed equations -- not just the ones that contain a split ...
Mico's user avatar
  • 514k
0 votes

Spacing between equations in columns in Beamer

With exploiting amsmath package, which loaded by beamer document class and using pifont package for check marks and X cross marks you can write your slide with quite shorter code: \documentclass[...
Zarko's user avatar
  • 300k
0 votes

Spacing between equations in columns in Beamer

You can avoid much of vertical space by removing the empty lines in your source code: \documentclass[xcolor={svgnames}]{beamer} \usepackage{tikz} \newcommand{\tikzxmark}{% \tikz[scale=0.23] { \...
samcarter_is_at_topanswers.xyz's user avatar
1 vote
Accepted

what can be the code of this series which takes 3 values

Use the cases environment. \begin{equation} \begin{cases} \binom{n}{k}\binom{D(\alpha-k)+n}{n} & \text{if } \alpha-k\geq0 \\ 0 & \text{if } \frac{-n}{D}\leq\alpha-k<0 \\ ...
invalidsyntax_'s user avatar
2 votes

setting an equation using text *and* margin

There are three mistakes with your code: The addmargin environment provides an optional and a mandatory argument, but you are trying to use two mandatory arguments. As the name already says, the ...
cabohah's user avatar
  • 14k
0 votes

align* but show one equation number at the end

The environment {DispWithArrows} of witharrows, which is similar to {align} provides a key tagged-lines to control which lines will be tagged. With tagged-lines=last, only the last line is tagged. \...
F. Pantigny's user avatar
0 votes

How to left align chemical equations with tags?

If you don't use amsmath environments for math formulas, but just for chemical equations, you can use fleqn. \documentclass{article} \usepackage[fleqn]{amsmath} \usepackage[version=4]{mhchem} \...
egreg's user avatar
  • 1.1m
0 votes

Drawing intersection over union in equation

I have modified the previous answer. \begin{equation} \label{eq:iou} IoU = \frac{\text{area of overlap}}{\text{area of union}}= \frac{ \tikz{\fill[draw=blue, very thick, fill=blue!5] (0,0) ...
Hasan Masum's user avatar
4 votes

add an apostrophe to equation number having a distant scope

I'd make a few fixes to your code, besides adding the “variant equation numbers”. Don't rely on current equation numbers when defining a \label \left(\begin{array}{l}...\end{array}\right) is more ...
egreg's user avatar
  • 1.1m
5 votes
Accepted

add an apostrophe to equation number having a distant scope

Something like this? \documentclass{article} % or some other suitable document class \usepackage{amsmath}. % for 'align' environment and '\tag' macro \usepackage{bm} % for '\bm' macro; don'...
Mico's user avatar
  • 514k
1 vote

How to control the width of equations?

Your equation is to long that can fit in the text area regardless that you use font size \footnotesize. Possible solution is to break your equation into two lines as suggested in nice @Sebastiano ...
Zarko's user avatar
  • 300k
2 votes

What's the best way to line up equals on a line of text?

This uses flalign*. The first uses paragraph spacing, while the second uses equation spacing. \documentclass{article} \usepackage{upgreek} \usepackage{amsmath} \begin{document} Le périmètre d'un ...
John Kormylo's user avatar
  • 81.1k
11 votes
Accepted

What's the best way to line up equals on a line of text?

You can use aligned environment with t option: \documentclass{article} \usepackage{upgreek,amsmath} \begin{document} Le périmètre d'un cercle. L'aire d'un cercle. L'aire $\mathcal{A}$ d'un disque de ...
hair-splitter's user avatar
0 votes

Mixing chemistry reaction and mathematics in equation

You need to make the aligned to have zero width. In the following I use \DeclareUnicodeCharacter{00B0}{} in order to remove weird warnings: if you really want E° you should give an appropriate ...
egreg's user avatar
  • 1.1m
1 vote

How to set equivalent transformations?

The following solution should address most (all?) of your questions. Oh, | and \vert are equivalent; \mid isn't appropriate here. \documentclass{article} \usepackage{amsmath} \begin{document} \...
Mico's user avatar
  • 514k
3 votes

Non-standard alignment of multiline equation

Just for fun. Thinking a bit as with the typewriter, we can just add the amount of \qquad needed here. \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \begin{align} &\nu (...
mickep's user avatar
  • 9,305
4 votes
Accepted

Non-standard alignment of multiline equation

Use aligned inside aligned inside equation. With bottom alignment we get the number attached to the last line. I also add some vertical separation between the blocks. \documentclass[12pt]{article} \...
egreg's user avatar
  • 1.1m
3 votes

Non-standard alignment of multiline equation

I suggest you nest an aligned environment inside an align* environment. \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \begin{align*} &\nu (\nu_1,\dots, \nu_{t-1},c\nu_t+d\...
Mico's user avatar
  • 514k
5 votes

How can I change the size of \vert accordingly like \left and \right command

My suggestion is to exploit \DeclarePairedDelimiterX and \NewDocumentCommand in order to automatically get | to grow like the outer parentheses. We need to distinguish when the argument contains | or ...
egreg's user avatar
  • 1.1m
3 votes

How can I change the size of \vert accordingly like \left and \right command

There are two problems with using \vert. First, as you've noticed, it's not sized properly relative to the material around it. Second, there's not enough horizontal whitespace around it. The first ...
Mico's user avatar
  • 514k
2 votes
Accepted

How can I avoid that vskip after {equation} and after {enumerate} add up?

You're forgetting to set \parsep to zero. The label can also be simplified; and ref should be set. \documentclass[ onecolumn, nofootinbib, aps, prd, preprintnumbers, 11pt, ...
egreg's user avatar
  • 1.1m
1 vote
Accepted

How can show ratios with tikz arrows?

You may use the following template as your starting point: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \newcommand\tikznode[3][]% {\tikz[remember picture,baseline=(#2.base)] \...
codeR's user avatar
  • 761
2 votes
Accepted

A weird result when use aligned with sqrt for multiple lines

You missed a & in the inner aligned: &= \sqrt{ \begin{aligned} & (\Sigma^{-1/2}(\textbf{w}_i - \mu) - \Sigma^{-1/2}(\textbf{w}_j - \mu))^T\\ & \times (\Sigma^{-1/...
Stephen's user avatar
  • 4,424

Top 50 recent answers are included