::
Stiff” post=64878Salve a tutti!
Usando classicthesis (editor kyle, SO Ubuntu, Texlive 2011) succede una cosa strana:
normalmente nel preambolo si dovrebbe scrivere
\usepackage{classicthesis-preamble}
usepackage[linedheaders, eulerchapternumbers, pdfspacing, eulermath, floatperchapter, subfig]{classicthesis}
\usepackage{arsclassica}
ma compilando appare questo log
Option clash for package classicthesis. \usepackage
mentre invece scrivendo
usepackage[linedheaders, eulerchapternumbers, pdfspacing, eulermath, floatperchapter, subfig]{classicthesis}
usepackage{classicthesis-preamble}
\usepackage{arsclassica}
il testo viene compilato senza problemi…
Qualcuno sa spiegarmi il perchè? Si perde qualcosa a livello di funzionamento?
Nella sua infinita saggezza, Miede ha deciso che classicthesis-preamble carica classicthesis con le seguenti opzioni:
`eulerchapternumbers,drafting,listings,subfig,beramono,eulermath,parts`
quindi non si può chiamare poi classicthesis con altre opzioni. 😯
Se metti classicthesis prima hai un noioso messaggio di avviso.
L’idea (balzana) di Miede è che quando si vuole usare classicthesis ci si fa una copia di classicthesis-preamble nella cartella di lavoro e la si modifica secondo le reali necessità. Ovviamente chi lo apre e si trova davanti roba come
`\newcommand{\backrefnotcitedstring}{\relax}%(Not cited.)
\newcommand{\backrefcitedsinglestring}[1]{(Cited on page~#1.)}
\newcommand{\backrefcitedmultistring}[1]{(Cited on pages~#1.)}
\ifthenelse{\boolean{cld@backref}}%
{%
\PassOptionsToPackage{hyperpageref}{backref}
\RequirePackage{backref} % to be loaded after hyperref package
\renewcommand{\backreftwosep}{ and~} % seperate 2 pages
\renewcommand{\backreflastsep}{, and~} % seperate last of longer list
\renewcommand*{\backref}[1]{} % Disable standard
\renewcommand*{\backrefalt}[4]{% Detailed backref
\ifcase #1 %
\backrefnotcitedstring%
\or%
\backrefcitedsinglestring{#2}%
\else%
\backrefcitedmultistring{#2}%
\fi}%
}{\relax}`
prende paura e non tocca niente.
Per esempio, se non modifichi classicthesis-preamble sei obbligato a usare la codifica latin-9 come input. 😕 Analogamente è obbligatorio (chissà perché) usare pdflatex e non xelatex.
Ciao
Enrico