Re: Impostare figure per tesi in base alla classe da determinare

#30775
Up
0
Down
::

Per completezza, dimenticavo i 4 messaggi di warning che ottengo e qui riporto (erano di più prima delle modifiche postate)

Package hyperref Warning: Option `pagecolor’ is not available anymore.

Class scrbook Warning: \float@addtolists detected!
(scrbook) You should use the features of package `tocbasic’
(scrbook) instead of \float@addtolists.
(scrbook) Support for \float@addtolists may be removed from
(scrbook) `scrbook’ soon .

Package hyperref Warning: The anchor of a bookmark and its parent’s must not
(hyperref) be the same. Added a new anchor on input line 7.

Package hyperref Warning: The anchor of a bookmark and its parent’s must not
(hyperref) be the same. Added a new anchor on input line 79.

L’avviso su \float@addtolists dipende dalla nuova versione di KoMa-Script, non ci si può fare niente se non viene aggiornato ClassicThesis. L’avviso su pagecolor dipende dalle nuove versioni di hyperref, stesso discorso. Gli altri due avvisi non so da dove vengano.

Quanto alla posizione delle figure, non avevo tenuto conto di hyperref e degli strani giochetti che fa con \pageref. Modifica il codice in questo modo:
`\makeatletter
\newcounter{fig@place}
\newenvironment{asymfigure}[1][\fps@figure]
{\figure[#1]
\refstepcounter{fig@place}\label{fig@place\thefig@place}
\ifthenelse{\isodd{\pageref{fig@place\thefig@place}}}
{\let\place@fig\oddplace@fig}{\let\place@fig\evenplace@fig}
}
{\endfigure}
\newcommand{\asymincludegraphics}[2][]{\show\place@fig%
\place@fig{\includegraphics[#1]{#2}}}
\def\oddplace@fig#1{\hb@xt@\textwidth{#1\hss}}
\def\evenplace@fig#1{\hb@xt@\textwidth{\hss#1}}
\makeatother`
Ciao
Enrico

Go to top