On 01/15/2010 05:02 AM, Pascal Boehm wrote:
Dear Lyx-Users!

I use the following macro:

\newcommand{\ket}[1]{|#1\rangle}

This should produce stuff like |F,mF>  with the argument being 'F,mF'

My problem is: entering the comma, Lyx leaves the argument-focus of \ket
This means, Lyx produces |F>,mF (when I compile with pdfLatex)

Does andybody know what I can do?

I don't see this. See the attached.

rh

#LyX 1.6.4svn created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass paper
\begin_preamble
\usepackage{heck}
\end_preamble
\use_default_options false
\language english
\inputencoding auto
\font_roman times
\font_sans helvet
\font_typewriter courier
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\paperfontsize 11
\spacing single
\use_hyperref false
\papersize letterpaper
\use_geometry false
\use_amsmath 1
\use_esint 0
\cite_engine natbib_authoryear
\use_bibtopic false
\paperorientation portrait
\leftmargin 1in
\topmargin 1in
\rightmargin 1in
\bottommargin 1in
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip smallskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle plain
\tracking_changes false
\output_changes false
\author "" 
\author "" 
\end_header

\begin_body

\begin_layout Standard
\begin_inset FormulaMacro
\renewcommand{\ket}[1]{|#1\rangle}
\end_inset


\end_layout

\begin_layout Standard
\begin_inset Formula $\ket{a,b}$
\end_inset


\end_layout

\end_body
\end_document

Reply via email to