0

It seem like a same thing to me. But I don't ever try \begin{math}.............\end{math}

  • 4
    Please provide a little more details since at the moment for me it is not entirely clear what you are asking. – Christian Aug 06 '21 at 12:31
  • Welcome to the TeX.SE. community. Also for me it is not clear. – Sebastiano Aug 06 '21 at 12:33
  • Are you asking difference between \[ .... \] and \begin{math}....\end{math}? As others have mentioned your question does not make much sense as it is – daleif Aug 06 '21 at 12:36
  • 5
    They are not the same thing. \[....\] makes displayed math. \begin{math} XXX \end{math} gives the same as $ XXX $. I have never seen anyone use the math env in my 20+ years of LaTeX – daleif Aug 06 '21 at 12:44

1 Answers1

9

A quick experiment:

enter image description here

\documentclass{article}
\usepackage{fullpage}
\begin{document}
\begin{enumerate}
\item \verb@\[\sum_{i=1}^n i=\frac{n(n+1)}{2}\]@:
  \[\sum_{i=1}^n i=\frac{n(n+1)}{2}\]
\item \verb@\begin{displaymath}\sum_{i=1}^n i=\frac{n(n+1)}{2}\end{displaymath}@:
  \begin{displaymath}\sum_{i=1}^n i=\frac{n(n+1)}{2}\end{displaymath}
\item \verb@\(\sum_{i=1}^n i=\frac{n(n+1)}{2}\)@:
  \(\sum_{i=1}^n i=\frac{n(n+1)}{2}\)
\item \verb@\begin{math}\sum_{i=1}^n i=\frac{n(n+1)}{2}\end{math}@:
\begin{math}\sum_{i=1}^n i=\frac{n(n+1)}{2}\end{math}
\end{enumerate}
\end{document}
citsahcots
  • 7,992