(Apologies for the slow reply.) I've tried adding the \AtBeginDocument{} as
you suggest but while the error goes away, the cross ref formatting is not
honoured.

I think I might try to get my head around *refstyle* as this is the way LyX
is moving for cross ref formatting, correct?

On 10 December 2010 18:29, Jürgen Spitzmüller <sp...@lyx.org> wrote:

>  Justin Wood wrote:
> > The template files do actually have this embrace, but it doesn't prevent
> > the parsing error.
>
> No. \addto\extrasenglish is not embraced by \AtBeginDocument{}
>
>
> > Or do you mean the next release will do something else
> > that will fix the problem? Thanks Jürgen.
>
> No. Look below.
>
>
> > For completeness, this is the preamble, taken directly from the chapter
> > template:
>
> [...]
>
> >
> > *\addto\extrasenglish{*
>
> >
> > * \renewcommand{\equationautorefname}{\hspace{-\abc}}*
> >
> > * \renewcommand{\sectionautorefname}{sec.\negthinspace}*
> >
> > * \renewcommand{\subsectionautorefname}{sec.\negthinspace}*
> >
> > * \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}*
> >
> > * \renewcommand{\figureautorefname}{Fig.\negthinspace}*
> >
> > * \renewcommand{\tableautorefname}{Tab.\negthinspace}*
> >
> > *}*
> >
>
> change this to
>
> \AtBeginDocument{%
>
> \addto\extrasenglish{
> \renewcommand{\equationautorefname}{\hspace{-\abc}}
> \renewcommand{\sectionautorefname}{sec.\negthinspace}
> \renewcommand{\subsectionautorefname}{sec.\negthinspace}
> \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
> \renewcommand{\figureautorefname}{Fig.\negthinspace}
> \renewcommand{\tableautorefname}{Tab.\negthinspace}
> }
> }
>
> Jürgen
>

Reply via email to