On Wed, Oct 01, 2003 at 09:46:58AM +0200, Michael Logies wrote:
> At 07:02 01.10.2003 +0200, Herbert Vo� wrote:
>
> >>I attached the file. It is working with
> >>%\usepackage{cite}
> >>and not working with
> >>\usepackage{cite}
> >
> >do not use spaces inside the keywords!
>
> Herbert,
>
> thanks. When I replace spaces by "_" in my example file, {cite} is working.
You should even use '-' instead of '_' or ' ' to be really on the safe
side. '_' has usually a special meaning for TeX and there are rare
circumstances where it can be used with the 'ordinary meaning'.
Although \cite should be one of these places, not all TeX related
software is aware of that. So better don't use it.
> I consider this a real bug within Lyx.
It is really hard to 'fix' as TeX is far too complex to come up with a
rule 'char x is forbidden in place y'.
> It should warn when using spaces if this is not an appropiate syntax
> for some Latex-macros. I think it will be a lot of work replacing all
> spaces with an editor in my lyx-file.
>
> Interesting is that hyperref for example has no problem with these
> spaces. Is there a general rule, that newer macros or packages can
> handle spaces?
Sort of, yes. Building robust (La)TeX macros is an art (a dark one, if
you ask me), so the casual package writer tends to miss a few corner
cases in the first fourhundred releases or so.
Andre'