{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.
14
votes
4answers
386 views
Giving an equation between \[ \]'s a number
I usually use \[ ... \] to typeset equations in latex and sometimes I come back and realize that I want to have an equation number and label. I have been coming back and editing it to \begin{equation} ...
14
votes
5answers
1k views
For formal articles, should a displayed equation be followed by a punctuation to conform to the language grammar ?
For formal articles, should a displayed equation be followed by a punctuation to conform to the language grammar ?
For example:
The most well-known physics formula is
\[E=mc^2.\] %should I put ...
14
votes
2answers
1k views
Period after math-mode equation
If I write
If $x \rightarrow y$, then $y \rightarrow z$.
it looks fine. But if the sentence is more involved and formulas longer, I tend to change $...$ to \[...\]. In many cases I think the result ...
14
votes
3answers
8k views
Adding letters to equation numbers
I want to number use a equation and add a letter to the equation number such as:
f(x) =a x and g(x) = b x (3.1.1a,b)
That is e.g. using \begin{equation} ... \label{eq} ...
14
votes
1answer
1k views
What is the difference between \notag and \nonumber in align environment?
I use \notag or \nonumber in align environment but there seems no any difference when display. What is the difference between these two commands?
14
votes
1answer
6k views
Adding line numbers to latex and respecting equations
It's often convenient to add line numbers to a page automatically and the lineno package generally does the trick. But I've had two problems with it
It doesn't seem to align the line numbers with ...
14
votes
2answers
495 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}
...
14
votes
2answers
544 views
How do I discard a portion of an equation number when cross-referencing?
I am writing a LaTeX document in which I number equations within sections. Thus, in my preamble I have
\makeatletter
\@addtoreset {equation}{section}
...
13
votes
5answers
248 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}
...
13
votes
3answers
1k views
Exporting all equations from a document as individual svg files
I'm currently a presentation based on a paper originally written in Latex. Currently, I use Kile and Ubuntu for my work.
What I'm finding is that I need a large number of the equations from the ...
13
votes
3answers
1k views
Can I insert an image into an equation?
I would like to use a small image in an equation, where a symbol like \alpha might otherwise be. Is there a nice way to do this?
13
votes
2answers
328 views
Align Equations Over Multiple Tabular Rows
I'm trying to set up a table with some equations in it, however I would like the equations on multiple rows to be aligned properly. So far I have
\begin{tabular}{cc}
\hline \multicolumn{1}{l}{Header ...
13
votes
2answers
882 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
2answers
276 views
How do I show the equation formula again instead of its number of ref?
I have an equation:
\begin{equation}\label{eq:equation}
f(x)=x
\end{equation}
I would like to refer to this equation and show the whole formula again, and not only its number. In other words, I ...
13
votes
2answers
3k views
Alignment of equals sign in multiple align environments
I have multiple align environments in my document, separated by a small paragraph of text:
\begin{align*}
foo &= something very very long compared to the other align
\end{align*}
explanation ...
13
votes
1answer
2k views
Aligned equations inside of TikZ node.
How can I create a tree node with an aligned math equations inside?
\begin{align}
\end{align}
doesn't work
\begin{minipage}{100}
\begin{align}
...
\end{align}
\end{minipage}
Gives a lot ...
13
votes
3answers
4k views
Aligning across 'aligned' equation blocks
I'd like to format two groups of equations such that all their equal signs line up and such that I can put a big brace to the right of each block to annotate that block. The last part is easily ...
12
votes
3answers
492 views
How can I illustrate decimal to binary conversion?
As part of my homework for discrete math I need to convert different decimal values, both positive and negative, to 8-bit binary representations using signed magnitude, 1's complement, and 2's ...
12
votes
5answers
796 views
Which equations should be numbered?
Is the best practice to number all equations, or just those that will be referred to?
12
votes
6answers
2k views
Multiline equation with LHS alone on first line?
I would like my multiline equations to look like this:
Left-hand-side of my equation
= right-hand-side number 1
= right-hand-side number 2
= etc.
I know there is a simple way to do ...
12
votes
2answers
4k views
Multi-page equations — problem
I have a very long derivation, that needs to look like:
A = B \\ = C \\ = D \\
etc. The derivation spans across many lines. I'm looking for a way to typeset it so that when it reaches the end of ...
12
votes
3answers
544 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
251 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
2answers
368 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 ...
12
votes
2answers
80 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
209 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
3answers
2k 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
367 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
5k 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 -
...
12
votes
2answers
3k 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 + ...
12
votes
1answer
2k views
How to reference equations using letters and numbers
Sometimes it is convenient to refer to a group of equations by a letter and a number.
For example:
2+1 (A1)
2+4 (A2)
x^4 (B3)
x^e (B4)
Placing
...
12
votes
1answer
946 views
Is there a standard way to refer to a range of equations?
I have occasionally wanted to refer to a range of equations in my document. So far, I've been using Equations~\eqref{firstEquation}~--~\eqref{lastEquation}, which produces something like "Equations ...
12
votes
1answer
314 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?
12
votes
1answer
107 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 ...
12
votes
2answers
4k 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. ...
11
votes
3answers
26k views
Big Parenthesis in an Equation
I have an equation contained inside \[...\], which automatically makes a \sum with sub- and superscripts turn big--so that the summation sign looks awkward inside parenthesis. Any idea how to make ...
11
votes
2answers
6k views
How to write conditional equations with one-sided curly brackets
I want to write a conditional expression such as the following.
What is the best way to express such conditional expressions in Latex?
11
votes
3answers
4k 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
...
11
votes
3answers
650 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.
11
votes
3answers
295 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. ...
11
votes
4answers
3k views
11
votes
2answers
815 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:
...
11
votes
2answers
10k views
Attractive Boxed Equations
I often used \boxed{...} from the AMS math package to place a box around important equations. However, this approach often produces somewhat awkward looking output. Consider
\documentclass{article}
...
11
votes
1answer
4k views
How can I add left aligned text to an equation?
I have a document I am trying to copy to learn TeX. Here is what I have encountered: How can I have the "or" in the equation. This is what I have right now:
\[ f = ma; \]
But $a$ is the change in ...
11
votes
1answer
116 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 ...
11
votes
1answer
190 views
Writing Notes, want my equations organized at the end of document
I'm writing up my textbook notes in LateX. As I am writing paragraphs, I am inserting equations while I'm writing.
I want to somehow display all of my numbered equations at the end of my document ...
11
votes
2answers
180 views
How do I make “gather” object, place its self in the text, the same way as an equation object?
Assuming the amsmath package is installed. I found a difference between the way that an equation object and a gather object is embedded within the text.
If an equation is beneath a line of text that ...
11
votes
1answer
505 views
How to avoid widow lines after displayed equations
If a displayed equation is close to the bottom of the page, TeX likes to insert a page break even if the current paragraph contains only one more line after the equation, as e.g. in
... it follows ...
10
votes
3answers
322 views
“Escaping” Linux kernel version in latex
I'm trying to include a kernel version info (i.e. \texttt{2.6.40.4-5.fc15.x86_64}) in my LaTeX document. However, LaTeX keeps trying to put it into "math-text" ("Missing $ inserted" and so on).
How ...
10
votes
5answers
286 views
How to align the equal signs in this equation such that the first line and last 2 lines align
so I have an equation below.
My latex code for it is:
\begin{align*}
CoJPoD_{ \{I_1, \cdots, I_{k-1}, I_{k+1}, \cdots, I_{n}\} | I_{k} } = CoJPoD_{ \{system \backslash I_{k}\} | I_k} \\
= ...
