3

I want to use the labbook document class, but it seems not to work with LuaLaTeX compiler, with some UTF-8 error (hereafter). Is there any possibility to make it work ?

String contains an invalid utf-8 sequence. \def\fk@@getatdashsep@list#1
4

The file is unfortunately written in latin-1, however only a few lines are affected, if I load labbook.cls into my editor and save a copy of it in UTf8 it loads into luatex with no errors and the following lines have changed

9c9
< %% Copyright (C) 2002 Frank Küster.
---
> %% Copyright (C) 2002 Frank Küster.
128c128
< \def\fk@@getatdashsep@list#1§{%
---
> \def\fk@@getatdashsep@list#1§{%
194c194
<     \protected@edef\fk@exp@indexlist{#1§\fk@exp@indexlist}
---
>     \protected@edef\fk@exp@indexlist{#1§\fk@exp@indexlist}
196c196
<     \protected@edef\fk@subexp@indexlist{#1§\fk@subexp@indexlist}
---
>     \protected@edef\fk@subexp@indexlist{#1§\fk@subexp@indexlist}
213c213
<       \expandafter\fk@useindexlist\fk@subexp@indexlist\relax§%
---
>       \expandafter\fk@useindexlist\fk@subexp@indexlist\relax§%
251c251
<   \expandafter\fk@useindexlist\fk@exp@indexlist\relax§%
---
>   \expandafter\fk@useindexlist\fk@exp@indexlist\relax§%
526c526
<           \expandafter\fk@useindexlist\fk@exp@indexlist\relax§%
---
>           \expandafter\fk@useindexlist\fk@exp@indexlist\relax§%

You should probably report that to the class author, but any editor should be able to save the file in UTF-8.

  • note in the display above the lines with the accented A are the UTF-8 ones (the display is confused as the diff is a mixed latin-1/utf-8 file) – David Carlisle Mar 6 '17 at 20:24
  • Thank you for your answer @DavidCarlisle ! So you suggest to keep the version UTF-8 saved with those "§" ? – Mammouth Mar 6 '17 at 21:08
  • the@Mammouth they only look like § if you view a utf8 file in a system set up for latin1 for example look at this section mark [ § ] if you select latin 1 (might be called western or other names) in your browsers view/encoding menu. – David Carlisle Mar 6 '17 at 21:24
  • Thanks again ! A local copy of labbook.cls was messing up with my changes, works like a charm. I cannot report that issue to the author though : no email address displayed. – Mammouth Mar 6 '17 at 21:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.