The problem arises with the file templates/ectart.lyx using lualatex.

What should we do here?

(I tried to omit the output "\usepackage[utf8]{luainputenc}", but
then all of our */Math*.lyx files were not compilable with lualatex)

a.) We could add some info in the ectaart.layout (and honour the value in 
src/BufferParams.cpp)
b.) Change the UI for document settings->class to allow 'not to use luainputenc'
c.) contact someone responsible for ectaart.cls
d.) use the sed-command (from Philipp in the attached mail) (This works without 
problems)

        Kornel
--- Begin Message ---
Am Sonntag, 18. August 2013 um 10:40:29, schrieb Philipp Gesang 
<philipp.ges...@alumni.uni-heidelberg.de>
> ···<date: 2013-08-18, Sunday>···<from: Kornel Benko>···
> 
> > Am Samstag, 17. August 2013 um 20:42:50, schrieb Herbert Voss 
> > <herbert.v...@fu-berlin.de>
> > > Am 17.08.2013 16:13, schrieb Kornel Benko:
> > > > Hi, not sure if this is the right list.
> > > >
> > > > Documents starting with
> > > >
> > > > \documentclass[english,draft]{ectaart}
> > > >
> > > > ...
> > > >
> > > > \usepackage[utf8]{luainputenc}
> > > 
> > > why do you need luainputenc? You are already using the default
> > > encoding utf8
> > 
> > I don't. It is inserted by lyx if trying to use lualatex.
> > 
> > > However, use
> > > 
> > > \documentclass[english,draft]{ectaart}
> > > \let\setattribute\relax
> > > ...
> > 
> > Thanks Herbert.
> > 
> > However, using it gives another error message.
> >     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/t1cmtt.fd)
> >     ./ectarttest.tex:61: You can't use `\numexpr' in horizontal mode.
> >     \setattribute #1#2^^@-#1=\numexpr 
> >                                     #2\relax 
> >     l.61 \kwd
> >            {Keyword1}\kwd{Keyword2}
> >     ? 
> > 
> > The relevant latex-lines are:
> >     ...
> >     \begin{keyword}
> >     \kwd{Keyword1}\kwd{Keyword2}
> >     \end{keyword}
> >     ...
> > Looks like the redefinition of \setattribute in luainputenc makes no good.
> > 
> > Simply commenting use of luainputenc works though. 
> 
> The name clash is not caused directly by luainputenc, but by
> luatex.sty which is loaded by luatexbase. Anyways, Herbert is
> correct: there is no justification for luainputenc there, so best
> file a bug report against whatever tool inserts it.
> 
> Now, to the actual problem, since it will occur with most other
> Luatex specific packages: running
> 
>   sed -i 's/setattribute/setectaartattribute/g' ectaart.cls
> 
> will fix the class file.
> 
> Best regards,
> Philipp
> 

Thanks Philipp, will do.

        Kornel

Attachment: signature.asc
Description: This is a digitally signed message part.


--- End Message ---

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to