Math & ScienceBad Math Environment Delimiter

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
User avatar
jafarHH
Posts: 17
Joined: Tue Jun 28, 2011 2:46 pm

Bad Math Environment Delimiter

Post by jafarHH »

Hi,

im a newbie here so srry my newbie questions but what is wrong with this.

Code: Select all

\begin{equation}
\[|H\textrangle = (1.0)^{T}\]
\end{equation}
Led tells me its bad math environment delimiter...?!
Last edited by jafarHH on Mon Jul 25, 2011 2:07 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Bad Math Environment Delimiter

Post by localghost »

You make two mistakes.
  1. You use \textrangle in math mode (see log file for warnings).
  2. You try to nest two math environments.
A simply remedy is to only use one of the math environments at a time, depending on whether you want an equation number or not.

Code: Select all

\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\begin{document}
  \begin{equation}
    |H\rangle = (1.0)^{T}
  \end{equation}

  \[
    |H\rangle = (1.0)^{T}
  \]
\end{document}
I suggest to do some basic reading about math typesetting.


Thorsten
User avatar
jafarHH
Posts: 17
Joined: Tue Jun 28, 2011 2:46 pm

Re: Bad Math Environment Delimiter

Post by jafarHH »

Thank you very much,

i haven't read so much about LaTeX and it's functions i just caught up the very basics and started didn't think it would be needed to go deeper at the level im using it,
but again you and this forum have been very helpful to me thanks.
Post Reply