{equations} is about the various environments to typeset displaystyle mathematics, e.g. equation and {align}. For general questions about mathematical typesetting use {math-mode}. Both tags are possible on the same question.

learn more… | top users | synonyms (1)

14
votes
2answers
779 views

Is it possible to have a “real” \belowdisplayshortskip?

I think this is a tough one. Have you ever wondered why TeX sometimes produces vertical spacing around equations that is far from satisfactory? An example: \documentclass{article} ...
13
votes
2answers
851 views

What does ampersand equals mean?

On the wikipedia page: http://en.wikipedia.org/wiki/LaTeX, the first example is \begin{align} E &= mc^2 \\ m &= \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}} \end{align} ...
13
votes
4answers
377 views

Graphics equations: put text on equations

I have a big question that I cannot solve by myself. I would like to add text on my equations, but I like to have some graphics on those. For instance, I would like to explain why I am doing ...
13
votes
5answers
640 views

How to split a long formula and make it beautiful?

My method: \documentclass[UTF8]{ctexart} \usepackage{amsmath} \usepackage{amssymb} \usepackage{graphicx} \usepackage{epstopdf} \usepackage{inputenc} \begin{document} \begin{equation} \begin{split} ...
13
votes
1answer
14k views

What is the difference between \eqref and \ref?

Is there any difference between \eqref and \ref? I used both of them in my document using the package classicthesis and saw no difference in the result. Is there any specific situation in which I ...
13
votes
3answers
218 views

Question about the use of cleveref's \Crefrangeformat

I am trying to use the package cleveref to reference to a range of equations. I'd like to have the following result in the text: Eqs. (1)-(5) I want to be able to define the format once, using ...
13
votes
3answers
8k views

How to provide a definition for symbols in a LaTeX math equation?

Say I have an equation: x = R + E What's the best way to provide a definition for R and E? Is there a way to include a line under the equation saying what the variables mean (i.e. a "where" ...
13
votes
2answers
12k views

Use of \small in the equation environment

My equations are a little too large for the normal eqnarray environment, so I've been using the \small delimiters around the \begin{eqnarray} ... \end{eqnarray}. Unfortunately, this causes the the ...
13
votes
4answers
761 views

How to move the equation numbers to bottom lines?

\documentclass[preview,border=12pt,varwidth]{standalone} \usepackage[a4paper,margin=1cm]{geometry} \usepackage{mathtools} \begin{document} \abovedisplayskip=0pt\relax \begin{align} ...
13
votes
1answer
13k views

Change the type of equation numbering in document class article [duplicate]

Possible Duplicate: Continuous v. per-chapter/section numbering of figures, tables, and other document elements I have written my thesis in document class 'article' (don't ask me why). Now ...
13
votes
2answers
2k views

Image next to Equation

I am trying to make my first LaTeX file and have been reading syntax for a bit and have not been able to figure one thing out yet and don't seem to find anything about it online so I thought I might ...
13
votes
1answer
8k views

Change font size of an align environment

In a document, I'd like to change the font size of a single align environment (not globally throughout the document). What is the proper way to do this? I've been using Preceding paragraph. {\tiny ...
13
votes
2answers
2k views

Displaystyle fractions in a system of equations

I'm trying to define an environment to use with equations' systems. So far, the best solution was \newenironment{eqsys}{\begin{equation}\begin{cases}}{\end{cases}\end{equation}} but I noticed that ...
13
votes
2answers
1k views

Two-Headed Arrow Over Formula

I have a quantified formula. I want to show what happens when the order of quantifiers is reversed. To do this, I like to use a two-headed arrow over the formula, like this: Is it possible? I don't ...
13
votes
1answer
241 views

Equations with comment bubbles

Is it possible to have write equations accompanied with explanatory bubbles and comments? I am familiar with underbracket, overbracket, underbrace and overbrace but I have terms close together and I ...
13
votes
1answer
7k views

How can I have a bigger integral (\int) delimiter?

I'm writing some integrals and I don't like the way the \int symbol is displayed when it is followed by a big delimiter. Here's the code: \[ \int_S\biggl(\nabla\times\bar B - \mu_0\bar J - ...
13
votes
1answer
138 views

How can we detect that we are right after display math mode? (for vertical spacing)

I need a "\smartmedskip" feature/macro in plain TeX which is in usual identical to \medskip, however, if we are right after display math mode, then it should be just "disabled", i.e. it should then ...
13
votes
2answers
10k views

Using “cases” inside “equation” gives error[with “amsmath” loaded]

I'm trying to use the cases environment inside an equation environment. The sample code is quite simple: \begin{equation*} X(\omega) = \begin{cases} 1 \text{se $\omega ...
13
votes
2answers
9k views

Multiple subequation labels in one \ref

I'm trying to write a macro that puts subequations' labels in parentheses in a compact form. For example, if I have \begin{subequations} \begin{align} y - ax &= b \label{subeq1}\\ x^2 + ...
13
votes
2answers
6k views

Too much space at the top of a beamer block when using multilined math environment

I would like to place two math lines in a beamer block, as two separately centered lines. I know that I could do this using two distinct equation environments, but it would be nicer to use a single ...
13
votes
1answer
640 views

Put equation numbers in the sidemargin with Tufte-Latex class

In Tufte-Latex all captions etc. are in the side margin. I want to put the equation numbers there as well. Is it possible to do this?
13
votes
2answers
6k views

How can I center text/math inside a list environment?

When using math (display) mode in conjunction with a list environment, the displayed material is not truly centered on the page; it is only centered with respect to the indentation of the item. ...
12
votes
5answers
2k views

Help me to write Long LaTeX equations fast with colours and possibly with other aids

I am too slow LaTeX-typist, for example with the equations below I cannot find where I am missing some bracket. Could someone offer me some computational method? I use Vim but I am happy with any ...
12
votes
2answers
326 views

diagonal text in math mode w/ vertical equality

The goal is a code where one can label elements in math mode in the following way: without having to manually position each letter of each word as a node in tikz. Preferably, other than the stacks ...
12
votes
3answers
8k views

Curly brace behind equations

I have the following question: I like to have a big curly brace behind the equations to show that they belong together and have only one equation number. An example without the brace would be ...
12
votes
3answers
3k views

How to Make Theorems and Equations Share Numbering

How do I make theorems and equations share numbering? The default numbering system goes like this: Theorem 1. Blah blah blah... 1=0+1 (1) Theorem 2. More blahs... Theorem 3. No more ...
12
votes
4answers
5k views

Aligning plain `align` and `cases`?

The cases environment works very well for enumerating cases within a large left bracket. I'd like to be able to combine it with the align environment so that equals-signs and conditions also line up: ...
12
votes
2answers
2k views

How do I produce Theorems and equations which are numbered by hand?

I'd like to be able to write a LaTex document with numbered theorems and equations, but I would like not to have them numbered automatically, but rather put in by hand. Ideally, I'd like to be able ...
12
votes
3answers
5k views

How to draw the calculation of a determinant?

I'm trying to reproduce the following calculation of a determinant in latex: Any ideas? I thought of using the tabular environment but unfortunately I'm not able to align the "=" correctly.
12
votes
2answers
868 views

\mathrm{} or \mbox{}? What is the convention when writing a equation?

When writing a equation, sometimes we need write letters non-italic. For example, let A be a matrix and its transpose should be A^{\mathrm{T}} instead of A^T. In addition, if a letter does not ...
12
votes
3answers
751 views

Replace the `$$ … $$` macro with the `\[ … \]` macros? - Prefer the way LaTeX lays it out, but `$` are faster to write

Is there a way to replace the $$ ... $$ macro with the \[ ... \] macros? (and replace inline mathmode as well) I realised the only way I can write the \sum_{i=1}^{10} t_i is between the \[ ... \] ...
12
votes
2answers
268 views

TikZ figure inside equation?

I was wondering if it is possible to have a TikZ graphic inside an equation, to produce something similar to
12
votes
3answers
1k views

How do I obtain multline-type alignment within a group of equations?

I want to achieve something like the following (for now achieved using Microsoft Paint): That is, I want to group a number of multi-line equations within a single equation-type environment (i.e. ...
12
votes
2answers
2k views

inserting sentences between subequations

My apologies for asking so many questions here. I want to introduce a sentence in between 2 subequations which is not in math mode. Here is the code that I am using: ...
12
votes
3answers
7k views

How to increase the spacing between equations in “gather”?

Is there a way to consistently increase the vertical spacing between equation lines in a gather (or gather*) environment from amsmath? Specifically, I want to produce something like \begin{gather*} ...
12
votes
1answer
3k views

Write 'text' **correctly** in equations

Although many has attempted to explain the difference among \mathrm, \textrm, \textnormal and \text (and others?), I found them misleading. See for example the LaTeX's Wiki \mathrm explanation Why ...
12
votes
5answers
5k views

Diagonal strikeout starting too low and ending too high

I want to strikeout an equation with diagonal line but I've not managed to get the diagonal line to draw as I want. The closest I've gotten is via the first example in Frédéric's answer of \cancel ...
12
votes
3answers
861 views

polytopes as inequalities sistem solutions in R3 (x-y-z) cartesian space

i'm here to ask if there's a TikZ/pgf support to draw areas resulting from a system of linear inequalities, into a xyz cartesian space. i found examples of my needs for xy plan at How to plot polygon ...
12
votes
3answers
6k views

Chemistry Equations

I have the following Chemistry equation: 2LiOH(s) + CO2(g) -> Li2CO3(s) + H2O And I have the following LaTeX code: \ce{2LiOH_{(s)} + CO_{2(g)} -> Li_{2}CO_{3(s)}+ H_{2}O_{(g)}} But I ...
12
votes
1answer
1k views

How to vertically align underbraces

I am trying to balance underbraces in the equation below, how can I ensure that both underbraces at the same depth? \begin{equation} y = \underbrace{ \left [ x^2 + r^2 (a^2+\frac{a^{0.3}}{b}) ...
12
votes
2answers
206 views

Input manually a number into \eqref

Often while writing papers I find the need to cite particular equations from other papers. For example, the landmark paper by Einstein, Newton, and White (2015) lays out the theory of everything in ...
12
votes
4answers
280 views

How can I nicely show an absolute value with the “divides” function, |?

Right now, I am using \lvert,\rvert, and \mid to display \documentclass[border=3pt]{standalone} \usepackage{amsmath} \begin{document} $\lvert x \rvert \mid y$ \end{document} Is there a better ...
12
votes
1answer
4k views

How can I position equation numbers always to the left side?

Equations and amsmath environments put equation numbers to the right side by default, the output of \begin{multline} some equation \end{multline} is: equation (number) How can I change it this ...
12
votes
1answer
437 views

How can I extract equations from one document for use in another?

I have a LaTeX document that includes many equations. I would like to create a separate "quick reference" sheet that includes many of these equations. Instead of copy-and-pasting the equations from ...
12
votes
1answer
198 views

Extra space added after equation when it is coloured

For some reason space is added after my equation when I colour it. This does not happen if the colour is added to text. Is there a simple way to prevent this from happening, like a global setting (I ...
12
votes
3answers
432 views

Displaymath environment that can align equations and squeezes math

I have a long equation to align. Without squeezing the math, it is just barely longer than \textwidth. However, the align environment doesn't squeeze the math at all, which results in a badbox. ...
12
votes
1answer
164 views

First reference to equation underlined

In these days I'm writing at my Bachelor's Thesis and I've got a new problem. I have to underline the first reference to figures, tables and equations. By searching in the Internet I've already found ...
11
votes
3answers
15k views

Make equations large

I'm including some equations in my document, but want them to appear very large. I have them in display mode, as opposed to inline mode, but can't seem to find any way to make them larger. I've tried ...
11
votes
4answers
268 views

Curve Integral typeset problem

I would like typeset equation on the figure below: I've tried code: \begin{equation}\label{fyz:eq_fey_curveint1} \Psi(2)-\Psi(1) = \begin{array}{l} ...
11
votes
3answers
2k 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 ...