Re: Incompatibilità siunitx e egpubl

#52931
Up
0
Down
::

Sto creando un articolo con la classe egpubl.

La classe deve però avere qualche incompatibilità con siunitx. Quando si utilizza maketitle, la compilazione si arresta. Questo è il codice di esempio:

`\documentclass{egpubl}
\usepackage{siunitx}

\title{A very nice work}
\author{My name}

\begin{document}
\maketitle
\end{document}`

Questo è l’errore:
`This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010/Arch Linux)
restricted \write18 enabled.
entering extended mode
(./ooo.tex
LaTeX2e <2009/09/24>
Babel and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2009-06-19, ngerman-x-2009-06-19, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, farsi, finnish, french,
galician, german, ngerman, swissgerman, monogreek, greek, hungarian, icelandic
, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, oriya, panja
bi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji, lao, lati
n, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, polish, portu
guese, romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedis
h, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded.
(./egpubl.cls
Document Class: egpubl 2010/09/23 Document Style for EG Publications v3.51
(/usr/share/texmf-dist/tex/generic/oberdiek/ifpdf.sty) (./ooo.lbl))
(/usr/share/texmf-dist/tex/latex/siunitx/siunitx.sty
(/usr/share/texmf-dist/tex/latex/expl3/expl3.sty
(/usr/share/texmf-dist/tex/latex/expl3/l3names.sty)
(/usr/share/texmf-dist/tex/latex/etex-pkg/etex.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3basics.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3expan.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3tl.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3intexpr.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3quark.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3seq.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3toks.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3int.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3prg.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3clist.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3token.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3prop.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3msg.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3io.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3skip.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3box.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3keyval.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3keys.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3precom.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3xref.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3file.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3fp.sty)
(/usr/share/texmf-dist/tex/latex/expl3/l3luatex.sty)
(/usr/share/texmf-dist/tex/latex/tools/calc.sty))
(/usr/share/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texmf-dist/tex/latex/tools/array.sty)
(/usr/share/texmf-dist/tex/latex/xpackages/xtras/l3keys2e.sty
(/usr/share/texmf-dist/tex/latex/xpackages/xbase/xparse.sty))
(/usr/share/texmf-dist/tex/latex/beamer/translator/translator.sty
(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-dist/tex/latex/beamer/translator/translator-language-mappings
.tex))) (./ooo.aux)
(/usr/share/texmf-dist/tex/latex/beamer/translator/dicts/translator-basic-dicti
onary/translator-basic-dictionary-English.dict)
! Missing # inserted in alignment preamble.

\cr
l.8 \maketitle
`

Qualcuno ha idea di come aggirare il problema? Grazie mille.

Lo aggiri scrivendo nel preambolo
`\makeatletter
\let\author@tabular\tabular
\makeatother`
e il risultato mi sembra uguale, ma non so se sia del tutto corretto. Fa’ qualche prova con autori e titoli più complicati.

Ciao
Enrico

Go to top