Questions tagged [equations]

{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.

Filter by
Sorted by
Tagged with
15
votes
3answers
20k 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 \...
15
votes
4answers
7k views

How to draw slope fields with all the possible solution curves in latex

Sorry, I have no code to submit, mostly because I have no idea how to do this. I want to type up my homework (I can do the homework by hand) and I am looking for a simple method that I can use ...
15
votes
1answer
122k views

using subequations

I have an equation consisting of two parts and would like to use subequation for that. Here's the code: \usepackage{amsmath} \begin{subequations} \begin{equation} \operatorname{min}_{a,b,c} \frac{1}...
15
votes
2answers
2k 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
15
votes
3answers
7k views

Equations and Double Spacing

If a document (in any class) is double spaced, how do you redefine the spacing around centered equations as if there was single spacing? Whenever I use double spacing, I feel like the space before and ...
15
votes
2answers
4k 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 ...
15
votes
2answers
26k 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 ...
15
votes
2answers
980 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 ...
15
votes
3answers
47k views

Using \gather and \align together

I'm very picky regarding alignment inside my proofs. What's frustrating me right now is that I have some lines that I want to be center-aligned (using \begin{gather}) and others that I wish to align ...
15
votes
2answers
682 views

Automatically replace environment align by equation+aligned combination

I would like to automatically replace the align environment by an equation + aligned combination. Specifically, whenever \begin{align} occurs, it should automatically read it as \begin{equation}\begin{...
15
votes
2answers
4k views

Custom pagebreak in align equation

I got the following problem: Right now I am checking my equations, which are usually written in align. This looks great in most of the cases, but sometimes the pagebreaks are weird, ie there is a lot ...
15
votes
3answers
5k views

A vertically centered equation number on a multline environment

The multline environment does exactly what I want in splitting a long formula between lines by utilizing the horizontal space to the fullest. (I don't want the alignment features of the align ...
15
votes
1answer
9k 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 - \mu_0\...
15
votes
2answers
7k views

Describing steps in an equation

I am always describing the steps on how a formula is achieved or describing the underlying Mathematical principles taken to solve a problem in the align environment. But the descriptions are not ...
15
votes
2answers
1k 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} \setlength{\...
14
votes
4answers
19k views

Coding an equation with description

I want to code this equation in LaTeX: I'd like to know how to code the equation and the description below it with a reference as well.
14
votes
3answers
3k views

How to handle long equation in LaTeX?

I used the code below, but the equation does not fit the page as it is too long. I tried to reduce the font size but I could not. What could be done to fit the equation to the line? I am also ...
14
votes
5answers
4k 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 ...
14
votes
5answers
9k views

Typesetting math: an optimisation problem (cost & constraints)

I really struggle to align a system of equation for an optimisation problem. It was all ok at the beginning until I started adding the constraint. I've got this code so far: \documentclass{article} \...
14
votes
6answers
508 views

How to align the term to right

\documentclass[a4paper,titlepage]{article} \usepackage{amsmath,amssymb} \newcommand*{\PartialConj}{\ensuremath{\bar{\partial}}} \newcommand*{\Abs}[1]{\ensuremath{\left\lvert #1\right\rvert}} \begin{...
14
votes
3answers
4k views

Aligning stackrel signs beneath each other using split

I'm typesetting a proof by induction using split to align equality signs precisely beneath each other. One of the signs should have 'IH' on top of it to indicate that the induction hypothesis has been ...
14
votes
5answers
16k views

abovedisplayskip vs abovedisplayshortskip

What is the difference between these two? http://en.wikibooks.org/wiki/TeX/abovedisplayskip http://en.wikibooks.org/wiki/TeX/abovedisplayshortskip I don't know why, but it seems to work unusually. ...
14
votes
3answers
10k views

\boxed border color

I would like to change border color of an boxed equation (without disturb equation color); I'm using to boxing equations this code: \begin{equation*} \boxed{E_{F_i}-E_c = \frac{E_v-E_c}{2}...
14
votes
4answers
3k views

Highlighting equation with arrow

I want to create an equation with highlighting as shown bellow. But using following code: \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{...
14
votes
4answers
3k 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} \begin{multlined}[b]...
14
votes
3answers
4k 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. they ...
14
votes
4answers
33k views

Avoid large spaces between text and equations

I use the options \renewcommand{\baselinestretch}{1.25} \setlength{\parskip}{0pt} \setlength{\parindent}{0pt} in the preamble of my document and most of the time the document looks like intended. ...
14
votes
2answers
30k views

Big \sum instead of small \sum in array environment

\begin{align*} \begin{array}{c} \min \: A = \min \: \sum_{i\in B} C_i \\ \\ \min \: D = \min \: \sum_{i\in B} \pi_i \cdot F_i \end{array} \end{align*} How can I get i \in B below the \sum symbol ...
14
votes
1answer
34k views

aligning split equation

I am new to Latex ;) I split my equation like this: \begin{equation} \begin{split} \tilde{m}=P\tilde{M} \\ \quad = K(R^1R^2R^3t) \begin{pmatrix} X \\ Y \\ 0 \\ 1 \end{pmatrix} \\ \quad= K(...
14
votes
1answer
46k views

How to shift one equation only towards the left margin

I have an equation extending into the right margin and off the page. I have many equations. For this equation only, I would like to shift it to the left. MWE below. \documentclass[twoside]{book} ...
14
votes
1answer
25k views

Difference between {align} and {aligned}[t]

When I use {align*}, it shifts the expressions on the right of the = to the far right of the equation. But when I use {aligned}[t] it works normally. The following is the code: \documentclass{article}...
14
votes
3answers
9k 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 ...
14
votes
2answers
56k views

Bad math environment delimiter when using \begin{equation} and \end{equation}

I wrote a matrix equation \[ \left[ \begin{array}{c} v^{0}_{n} \\ v^{K-1}_{n} \end{array} \right] = -\frac{1}{C_{ref}} \left[ \begin{array}{ccc} V^{0}_{0,n} & \cdots & ...
14
votes
2answers
4k 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 ...
14
votes
1answer
17k views

LaTex Error: Environment equation* undefined

I am trying to work on a Poisson problem (BVP) which looks like the pic above. However, when I executed my codes as below, the compiler showed that "LaTex Error: Environment equation* undefined." I ...
14
votes
1answer
840 views

Spacing issue for newenvironment wrapper of equation environment

If I create a custom environment based on the equation environment, I get a spacing issue: the next line of text after my environment closes doesn't start on the left margin. Example code: \...
14
votes
1answer
9k views

aligning a multiline formula with the bullet of itemize

I would like to use a multiline equation into an itemized list, but such that the bullet of the list is aligned with the first line of my equation. The current code I use is like this: \...
14
votes
1answer
16k views

LaTeX in CorelDRAW

What is a good way to get LaTeX formulas into CorelDRAW figures? I will provide a solution below, based on a rather old macro adapted to work on 64 bit systems as well as 32 bit - it works well, but ...
14
votes
2answers
41k views

problem when writing an equation with latex: missing delimiter (. inserted) \end{equation}

I tried this and that, but could not solve this problem. Here is the code that produces this error: \begin{equation} o=g(h)=\left\{\begin{array}{rcl} 1 & if & h < 0 \\ 0 & if ...
14
votes
2answers
1k views

Equation number enclosing parentheses misplaced with Polyglossia+Hebrew+amsmath

I am compiling the following MWE using XeLatex within TeXnicCenter and get a garbled equation number: \documentclass{article} \usepackage{amsmath} \usepackage{polyglossia} \setmainlanguage{hebrew} \...
13
votes
2answers
2k views

How to draw a double-ended arrow between the numerator and denominator in a frac inside a sqrt, and an arrow labeled by an otimes pointing to that?

Here's what I have, and I've hand drawn what I seeking: I'm after (a) a double-ended arrow with the two ends pointing to the numerator and denominator of a fraction under a square root, and (b) an ...
13
votes
5answers
1k 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
3answers
1k 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 \[ ... \] ...
13
votes
2answers
30k views

Resizebox within equation environment

How does the resize command work with the equation environment? The following code results in an error. \begin{equation}\label{model3_coef} \resizebox{0.91\hsize}{!}{y_{t}^{3} = -145.071 - 0.003*x_{...
13
votes
3answers
3k views

In the equation environment, how do I align an equation, AND an image AND the equation number?

I am trying to add an image adjacent to an equation in the equation environment. When I use the code below, the equation and the image are aligned but the equation number jumps to the next line. If I ...
13
votes
1answer
265 views

When is `\[` preferred over equation* environment? [duplicate]

When is it preferable to use \[ instead of equation*? I find I often use the equation* environment in the following way: \begin{equation*} some expression \end{equation*} Should I instead be using ...
13
votes
4answers
7k views

All letters upright in math mode (equivalent to \rm)

I'm using the document class scrartcl and I'm looking for a way to write equations in which all letters are upright like it appears when using \rm. \begin{equation} \rm A_{something} + B_{another}...
13
votes
3answers
2k 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 ...
13
votes
3answers
1k views

Add Annotations and Remarks next to Equations

for a thesis I am currently writing on, I would like to highlight and explain some mathematical transformations inside the equations (to explain why the transformation holds). Of course, I could "...
13
votes
3answers
14k views

Aligning multiple places in equations using align

My question is simple. I've played around with the & symbol to align my equations neatly under each other, but I just can't get it to look nice. This is the closest I've got: \documentclass[11pt,...

1
3 4
5
6 7
93