Re: Problem with cross references

2011-09-18 Thread ehud.kap...@gmail.com
I had similar problems with references, which were solved by placing the 
offending character in the .bib file (usually something with an accent)  
with a \?{c}  where ? is the appropriate marker, such as ` or ' or " and 
c is the accented character, usually a, o, e, u or i.It is also 
possible that including the relevant language package (French, Czech, 
German  or whatever) in the Latex system will accomplish the same thing.


Ehud Kaplan

On 9/18/2011 6:07 AM, Alain Didierjean wrote:


- Mail original -

De: "Paul A. Rubin"
À: lyx-users@lists.lyx.org
Envoyé: Dimanche 18 Septembre 2011 03:58:29
Objet: Re: Problem with cross references

Alain Didierjean  free.fr>  writes:



Any other suggestions ? What's this "active character" problem
about ?
It's a mess as I need this documents printed on monday !

Do you have Unicode characters (or something other than basic latin)
in the
reference labels?  Could this be an encoding issue?

Under the heading "desperate times call for desperate measures", you
might try
making a copy of the .lyx files and using a plain text editor to
globally search
and replace the labels with something that uses only ASCII
characters.  Then see
if LyX does any better.


  The problem is a known bug, specific to french and solved in texlive-2011. I 
have found a work around and I'll have my docs in time. Some discussions about 
it are in the french mailing list (in french of course).
Thanks all for the help,


--
Ehud Kaplan, Ph.D.
Jules and Doris Stein /Research to Prevent Blindness /Professor
*Director*, Center of Excellence for /Computational & System neuroscience,
The Friedman Brain Institute, MSSM/
*Director*, The laboratory of /Visual & Computational Neuroscience/
Depts. of Neuroscience, Ophthalmology, Chemical & Structural Biology
The Mount Sinai School of Medicine
One Gustave Levy Place
New York, NY, 10029


Re: Problem with cross references

2011-09-18 Thread Alain Didierjean


- Mail original -
> De: "Paul A. Rubin" 
> À: lyx-users@lists.lyx.org
> Envoyé: Dimanche 18 Septembre 2011 03:58:29
> Objet: Re: Problem with cross references
>
> Alain Didierjean  free.fr> writes:
>
>
> > Any other suggestions ? What's this "active character" problem
> > about ?
> > It's a mess as I need this documents printed on monday !
>
> Do you have Unicode characters (or something other than basic latin)
> in the
> reference labels?  Could this be an encoding issue?
>
> Under the heading "desperate times call for desperate measures", you
> might try
> making a copy of the .lyx files and using a plain text editor to
> globally search
> and replace the labels with something that uses only ASCII
> characters.  Then see
> if LyX does any better.
>
 The problem is a known bug, specific to french and solved in texlive-2011. I 
have found a work around and I'll have my docs in time. Some discussions about 
it are in the french mailing list (in french of course).
Thanks all for the help,


Re: Problem with cross references

2011-09-17 Thread Paul A . Rubin
Alain Didierjean  free.fr> writes:


> Any other suggestions ? What's this "active character" problem about ?
> It's a mess as I need this documents printed on monday !

Do you have Unicode characters (or something other than basic latin) in the
reference labels?  Could this be an encoding issue?

Under the heading "desperate times call for desperate measures", you might try
making a copy of the .lyx files and using a plain text editor to globally search
and replace the labels with something that uses only ASCII characters.  Then see
if LyX does any better.

HTH,
Paul






Re: Problem with cross references

2011-09-15 Thread Alain Didierjean


- Mail original -
> De: "Richard Heck" 
> À: "Alain Didierjean" 
> Cc: lyx-users@lists.lyx.org
> Envoyé: Jeudi 15 Septembre 2011 14:07:03
> Objet: Re: Problem with cross references
>
> On 09/15/2011 06:09 AM, Alain Didierjean wrote:
> > I have 2 documents, class koma script book (in french) which I
> > started writing back in 2004. Since them, I've been working on
> > them, adding more chapters. They don't compile on lyx2.0x as they
> > used to, failing on each and every cross reference with a message
> > like:
> >
> > [18]
> >
> > LaTeX Warning: Reference `cha:Th=E9or=EAme-de-Herbrand' on
> > page 19 unde
> > fined on input line 595.
> >
> >
> > LaTeX Warning: Reference `cha:Th=E9or=EAme-de-Herbrand' on
> > page 19 unde
> > fined on input line 595.
> >
> > ! Missing \endcsname inserted.
> > 
> >:
> > l.595 ...ref{cha:Th=E9or=EAme-de-Herbrand}
> >   ).
> > The control sequence marked  should
> > not appear between \csname and \endcsname.
> >
> > ! Extra \endcsname.
> >  ...E9or=EAme-de-Herbrand\endcsname
> >   \space
> > l.595 ...ref{cha:Th=E9or=EAme-de-Herbrand}
> >   ).
> > I'm ignoring this, since I wasn't doing a \csname.
> >
> > ! Undefined control sequence.
> > \is@pos@num@ #1\@nil ->\ifx \@nil #1\@nil
> >   \expandafter \@firstoftwo
> >   \else \e...
> > l.595 ...ref{cha:Th=E9or=EAme-de-Herbrand}
> >   ).
> > The control sequence at the end of the top line
> > of your error message was never \def'ed. If you have
> > misspelled it (e.g., `\hobx'), type `I' and the correct
> > spelling (e.g., `I\hbox'). Otherwise just continue,
> > and I'll forget about whatever was undefined.
> >
> > ! Missing number, treated as zero.
> > 
> >\unskip
> > l.595 ...ref{cha:Th=E9or=EAme-de-Herbrand}
> >   ).
> > A number should have been here; I inserted `0'.
> > (If you can't figure out why I needed to see a number,
> > look up `weird error' in the index to The TeXbook.)
> >
> > ! Missing = inserted for \ifnum.
> > 
> >\unskip
> > l.595 ...ref{cha:Th=E9or=EAme-de-Herbrand}
> >   ).
> > I was expecting to see `<', `=', or `>'. Didn't.
> >
> > ! Missing number, treated as zero.
> > 
> >\unskip
> > l.595 ...ref{cha:Th=E9or=EAme-de-Herbrand}
> >   ).
> > A number should have been here; I inserted `0'.
> > (If you can't figure out why I needed to see a number,
> > look up `weird error' in the index to The TeXbook.)
> >
> > ! Extra \endcsname.
> > \thevpagerefnum ...EAme-de-Herbrand\endcsname
> >
> > l.595 ...ref{cha:Th=E9or=EAme-de-Herbrand}
> >   ).
> > I'm ignoring this, since I wasn't doing a \csname.
> >
> > ! Missing number, treated as zero.
> > 
> >p
> > l.595 ...ref{cha:Th=E9or=EAme-de-Herbrand}
> >   ).
> > A number should have been here; I inserted `0'.
> > (If you can't figure out why I needed to see a number,
> > look up `weird error' in the index to The TeXbook.)
> >
> >
> > Overfull \hbox (73.53159pt too wide) in paragraph at lines 590--596
> > \T1/cmr/m/n/10.95 Jacques Her-brand (cf. [][]
> >  :Th=E9or=EAme-de-Herbran
> > d :Th=E9or=EAme-
> >  []
> >
> > Of course, removing the cross references fix the problem...
> > creating a new label and cross ref brings it back.
> > - is this a known problem ?
> > - any known way to fix this ?
> > - any idea ?
> >
> This looks like it might be a form of the "active character" problem,
> if
> you are using French. You could try switching to refstyle under
> Document>Settings>Document Class.


Did it. Doesn't make any difference.
Any other suggestions ? What's this "active character" problem about ?
It's a mess as I need this documents printed on monday !


Re: Problem with cross references

2011-09-15 Thread Richard Heck
On 09/15/2011 06:09 AM, Alain Didierjean wrote:
> I have 2 documents, class koma script book (in french) which I started 
> writing back in 2004. Since them, I've been working on them, adding more 
> chapters. They don't compile on lyx2.0x as they used to, failing on each and 
> every cross reference with a message like:
>
> [18]
>
> LaTeX Warning: Reference `cha:Th=E9or=EAme-de-Herbrand' on page 19 
> unde
> fined on input line 595.
>
>
> LaTeX Warning: Reference `cha:Th=E9or=EAme-de-Herbrand' on page 19 
> unde
> fined on input line 595.
>
> ! Missing \endcsname inserted.
>  
>:
> l.595 ...ref{cha:Th=E9or=EAme-de-Herbrand}
>   ).
> The control sequence marked  should
> not appear between \csname and \endcsname.
>
> ! Extra \endcsname.
>  ...E9or=EAme-de-Herbrand\endcsname 
>   \space 
> l.595 ...ref{cha:Th=E9or=EAme-de-Herbrand}
>   ).
> I'm ignoring this, since I wasn't doing a \csname.
>
> ! Undefined control sequence.
> \is@pos@num@ #1\@nil ->\ifx \@nil #1\@nil 
>   \expandafter \@firstoftwo \else 
> \e...
> l.595 ...ref{cha:Th=E9or=EAme-de-Herbrand}
>   ).
> The control sequence at the end of the top line
> of your error message was never \def'ed. If you have
> misspelled it (e.g., `\hobx'), type `I' and the correct
> spelling (e.g., `I\hbox'). Otherwise just continue,
> and I'll forget about whatever was undefined.
>
> ! Missing number, treated as zero.
>  
>\unskip 
> l.595 ...ref{cha:Th=E9or=EAme-de-Herbrand}
>   ).
> A number should have been here; I inserted `0'.
> (If you can't figure out why I needed to see a number,
> look up `weird error' in the index to The TeXbook.)
>
> ! Missing = inserted for \ifnum.
>  
>\unskip 
> l.595 ...ref{cha:Th=E9or=EAme-de-Herbrand}
>   ).
> I was expecting to see `<', `=', or `>'. Didn't.
>
> ! Missing number, treated as zero.
>  
>\unskip 
> l.595 ...ref{cha:Th=E9or=EAme-de-Herbrand}
>   ).
> A number should have been here; I inserted `0'.
> (If you can't figure out why I needed to see a number,
> look up `weird error' in the index to The TeXbook.)
>
> ! Extra \endcsname.
> \thevpagerefnum ...EAme-de-Herbrand\endcsname 
>   
> l.595 ...ref{cha:Th=E9or=EAme-de-Herbrand}
>   ).
> I'm ignoring this, since I wasn't doing a \csname.
>
> ! Missing number, treated as zero.
>  
>p
> l.595 ...ref{cha:Th=E9or=EAme-de-Herbrand}
>   ).
> A number should have been here; I inserted `0'.
> (If you can't figure out why I needed to see a number,
> look up `weird error' in the index to The TeXbook.)
>
>
> Overfull \hbox (73.53159pt too wide) in paragraph at lines 590--596
> \T1/cmr/m/n/10.95 Jacques Her-brand (cf. [][]  
> :Th=E9or=EAme-de-Herbran
> d :Th=E9or=EAme-
>  []
>
> Of course, removing the cross references fix the problem... creating a new 
> label and cross ref brings it back.
> - is this a known problem ?
> - any known way to fix this ?
> - any idea ?
>
This looks like it might be a form of the "active character" problem, if
you are using French. You could try switching to refstyle under
Document>Settings>Document Class.

Richard