Following is the equation I want to write in latex in the same way:
π^2+π^2=π^2 πππ π^(βπππ‘) (3,4)
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityFollowing is the equation I want to write in latex in the same way:
π^2+π^2=π^2 πππ π^(βπππ‘) (3,4)
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
a=b
\end{equation}
\begin{equation}
c=d
\end{equation}
\begin{equation}
a^2+b^2=c^2\quad\text{and}\quad\mathrm{e}^{\mathrm{i}\omega t}
\tag{\stepcounter{equation}\theequation,\stepcounter{equation}\theequation}
\end{equation}
\begin{equation}
h=k
\end{equation}
\end{document}
equation
s one after another) this works equally well with gather
.
Jun 9, 2018 at 20:10
\documentclass[preview,margin=5mm]{standalone}
\usepackage{amsmath}
\begin{document}
\begin{equation}
a\times b = c \quad\text{and}\quad a + b = d
\end{equation}
\end{document}
If you need inter text without leaving the displayed equation environment, use \intertext
as follows.
\documentclass[preview,margin=5mm]{standalone}
\usepackage{amsmath}
\begin{document}
This is a sentence before my important formulae.
\begin{gather}
a\times b = c \qquad\text{and}\qquad a + b = d\\
\intertext{I can also show another sentence without leaving the gather environment. Is it cool, right?}
E= m c^\text{two}
\end{gather}
A sentence after the gather environment.
\end{document}
I use standalone
document class instead of article
just for making the attached images more compact. Replace it with any document class that suits your best.