New answers tagged

0 votes

Aligning long Equations

My advice is as follows. It's improved from @Mico 's solution: add the indentation by \hptantom of the first line of the equations; add the indentation by \hptantom of the third line of the equations;...
M. Logic's user avatar
  • 3,961
1 vote

Aligning long Equations

Here's my suggestion. Observe that I've replaced all four instances of | with \bigm\vert and manually increased the sizes of the opening and closing parentheses in each line. I'd also place the final ...
Mico's user avatar
  • 490k
3 votes

Aligning long Equations

I'd use something like this Note I changed your conditional |'s to \mid's to give them better spacing. The normal | kinda drowns Edit: Missed the \cdot, this is exactly why one never ends a displayed ...
daleif's user avatar
  • 52.7k
5 votes

Vertical spacing around plain display math vs `amsmath` environments such as `gather`

The space above a math display is either \abovedisplayskip or \abovedisplayshortskip depending on whether the last line of the previous paragraph overlaps the equation. However AMS alignments are ...
David Carlisle's user avatar
6 votes

How to add a left-hand brace to this system of equations?

With {DispWithArrows} of witharrows. \documentclass[12pt,a4paper]{article} \usepackage{witharrows} \usepackage{amsmath} \begin{document} \begin{DispWithArrows}<> a_1x + b_1y + c_1z &= ...
F. Pantigny's user avatar
  • 36.6k
7 votes
Accepted

How to add a left-hand brace to this system of equations?

The following solution employs the empheq package and its eponymous environment. Note that it's not necessary to employ {alignat}{3} for the equations at hand -- align will do just fine. \...
Mico's user avatar
  • 490k
2 votes
Accepted

How convert equation environment to dmath environment automatically?

First of all, you want dmath, not dmath*. \documentclass[12pt,notitlepage]{article} \usepackage{amsmath} \usepackage{breqn} \ExplSyntaxOn \RenewDocumentEnvironment{equation}{b} { \...
egreg's user avatar
  • 1.1m
1 vote

How to represent the following math equation (border matrix) in Latex?

With {NiceArray} of nicematrix. \documentclass{article} \usepackage{nicematrix} \begin{document} \[ \renewcommand\arraystretch{1.5} ETC_{ij}= \begin{NiceArray}{c\left\lbrace cccc}[first-row,...
F. Pantigny's user avatar
  • 36.6k
3 votes
Accepted

How to align 4 equations and enumerate them

Just add another & to have the descriptions left-aligned and use the subequations environment to obtain a sub-numbering for the set of equations: \documentclass[12pt]{article} \usepackage{...
Werner's user avatar
  • 595k
5 votes
Accepted

Numbering individual cases

One way is to employ raisebox for moving comment condition for the second and third and ˙TikZ library tikzmark for drawing curly brace. In this are used decorations.pathreplacing and calligraphy ...
Zarko's user avatar
  • 289k
7 votes
Accepted

Smoothing a gaussian curve in tikz

Why not just add the two bell curves together? \documentclass[margin=10pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ declare function={gauss(\x)=3*exp(-(\x/3)^2);}, ...
John Kormylo's user avatar
  • 77.4k
4 votes

Smoothing a gaussian curve in tikz

Adaptations added another plot in between, reusing the gauss function, and scaled and moved it plot[domain=-4:4, samples=100] (.125*\x+4.5, {3.39 - gauss(.15*\x)}) added some code comments used ...
dexteritas's user avatar
  • 8,836
8 votes

Make single-dollar equation wrap

An old-style implementation: \documentclass{article} \usepackage{amsmath} \makeatletter \newcommand{\lon}[1]{% list of numbers \ifmmode \if@display \ERROR \else \lon@{#1}% \...
egreg's user avatar
  • 1.1m
5 votes

Make single-dollar equation wrap

You already got good LaTeX advice here by Mico, so I feel free to add here a way to do it in ConTeXt lmtx, with the help of penalties. To easily be able to turn it on and off, we define below Pmath, a ...
mickep's user avatar
  • 7,740
15 votes
Accepted

Make single-dollar equation wrap

I would argue that your approach to inputting the numbers is faulty. What you're conveying to your readers is a collection of individual numbers; this makes the commas part of the textual or sentence ...
Mico's user avatar
  • 490k
0 votes

How to Break Long Equation which Exceed Page Width

There are many ways to do that. Here you have some of them: You can use the \begin{split} environment. The \begin{split} environment allows you to split a long formula into multiple lines. The ...
scd's user avatar
  • 774
1 vote

Long equations break with split or multlined

First proposal The math fonts clearly clash with the text font. \documentclass{IEEEtran} \usepackage{amsmath,amssymb} \usepackage{lipsum} \DeclareMathOperator*{\E}{E} \begin{document} \lipsum[1][1-...
egreg's user avatar
  • 1.1m
1 vote

Change equation using beamer without reformatting slide

An easy way to avoid vertical shifts in your frame is to use a [t]op aligned frame to avoid horizontal jumping from adding the box around your formula, you could already draw it in the previous slide, ...
samcarter_is_at_topanswers.xyz's user avatar
1 vote

Equation layout when using figure* for long equations occupying two colums

You have not provided the full MWE and we have no information on which document class is in use. If it's the standard article, here's a link to a solution on how to put wide floats in two-column ...
Celdor's user avatar
  • 8,458
1 vote

last few lines not showing in the pdf

The align environment contains several lines that are very wide -- too wide, in fact, to fit within the text block. The main issue, though, is the material has so many lines that it simply cannot fit ...
Mico's user avatar
  • 490k
3 votes
Accepted

PMI formula throws error

To use the \llbracket and \rrbracket macros, it's necessary to load either the stmaryrd or the fourier package. (Loading the fourier math package will also affect other parts of math typography in ...
Mico's user avatar
  • 490k
0 votes

underbrace matrix inside brackets

With {NiceArray} of nicematrix. \documentclass{article} \usepackage{nicematrix} \begin{document} $\begin{NiceArray}{([ccc][c])} a & b & c & x_1 \\ d & e & f & x_2 \\ g &...
F. Pantigny's user avatar
  • 36.6k

Top 50 recent answers are included