On Mon, Nov 06, 2006 at 12:17:53PM +0100, Jean-Marc Lasgouttes wrote:

> >>>>> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes:
> 
> Georg> Jean-Marc Lasgouttes wrote:
> >>>>>>> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes:
> >>
> Georg> I don't think that that will work. What does work for me is to
> Georg> test the previous inset: If it is unknown, do not remove the
> Georg> braces.
> >>  And what about \xxx{aa}{bb}^2
> 
> Georg> Indeed we have also to test for brace insets...
> 
> >> It seems difficult to find a good solution, actually.
> 
> Georg> Yes. I don't like it very much, but I don't see how we could do
> Georg> better. The principal problem is that we can't know for sure
> Georg> whether the braces are needed because of a previous command or
> Georg> not. What about this version?
> 
> Would it be a big problem (esthetics aside) to always leave the braces
> alone? I do not like behaviour that is not predictable.

I beg your pardon, but what's wrong with writing {\xxx{aa}}^2
if you want to preserve the braces? See attached file.
This is a problem with semantics. IMO, \xxx{aa}^2 defines aa as the
nucleus, whereas {\xxx{aa}}^2 explicitly says that \xxx{aa} is the
nucleus. The fact that \xxx{aa}^2 works in TeX is unfortunate.

-- 
Enrico
#LyX 1.4.3 created this file. For more info see http://www.lyx.org/
\lyxformat 245
\begin_document
\begin_header
\textclass article
\language german
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize 12
\spacing single
\papersize default
\use_geometry false
\use_amsmath 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language german
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes true
\end_header

\begin_body

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Standard


\backslash
newcommand{
\backslash
un}[1]{
\backslash
underline{#1}}
\end_layout

\end_inset


\end_layout

\begin_layout Standard
\begin_inset Formula ${\un{H}}_{0}$
\end_inset


\end_layout

\end_body
\end_document

Reply via email to