Definice v matematickem rezimu

Tomas Davidek davidek at hp01.troja.mff.cuni.cz
Tue Apr 13 10:58:03 CEST 1999


Dobry den,
  narazil jsem na problem, se kterym si nedovedu poradit. Potrebuji sazet
kvantove stavy impulsmomentu ve tvaru |j,m>, nadefinoval jsem si proto
          \newcommand\ket[2]{$|#1\, #2\rangle $}
Tohle funguje. Pro pouziti v matematickem modu jsem definoval
          \newcommand\mket[2]{|#1\, #2\rangle}
ale tohle uz nefunguje, LaTeX se bouri. Napr. pri pouziti
       $$ \mket{j,m} $$
dostanu hlasku
! Display math should end with $$.
<to be read again>
                   \delimiter
l.15 $$ \mket{j,m} $
                    $
? h
The `$' that I just saw supposedly matches a previous `$$'.
So I shall assume that you typed `$$' both times.

Mohl by mi prosim nekdo poradit, v cem je zakopana kuna ?

Diky za pomoc, zdravi

           Tomas Davidek

 E-mail : davidek at hp01.troja.mff.cuni.cz,
	  Tomas.Davidek at cern.ch




More information about the csTeX mailing list