Re: classicthesis.cls

#66599
Andrea
Partecipante
    Up
    0
    Down
    ::


    Ciao Antonio,

    ho provato una sostituzione “brutale” della tua classe alla classe book che ho utilizzato per una relazione. A parte (l’ovvio) errore dovuto al caricamento di fancyhd, subito commentato, funziona tutto correttamente.

    Ti riporto il mio preambolo, nel caso fosse utile
    `
    % !TEX root = ndts_main.tex
    % !TEX encoding = UTF-8
    \documentclass[a4paper]{anthosthesis}

    %\usepackage{lmodern} %font vettoriali
    \usepackage[T1]{fontenc} %Codifica font output
    \usepackage[utf8]{inputenc} %Codifica font input
    \usepackage[italian,english]{babel} %Lingua italiana
    \usepackage{microtype} %Miglior riempimento riga

    %Pacchetti
    \usepackage{graphicx} %Figure
    \usepackage{booktabs} %Tabelle
    \usepackage{tabularx} %Tabelle giustificate
    \usepackage{multirow} %Tabelle celle unite
    \usepackage{siunitx} %Tabelle soli numeri
    \usepackage{nomencl} %Nomenclatura
    \usepackage{amsmath} %Matematica particolare
    \usepackage{amssymb} %Matematica particolare
    \usepackage{mathtools} %Strumenti matematici
    \usepackage{url} %Indirizzi Internet
    \usepackage{indentfirst} %Identazione I riga
    \usepackage{eurosym} %Simbolo euro
    %\usepackage{fancyhdr} %Testatine personalizzate
    \usepackage{emptypage} %Pagine vuote a fine capitolo
    \usepackage{color} %Colori
    \usepackage{caption}[2011/09/30] %Didascalie
    \usepackage{array} %Colonne personalizzate
    \usepackage{listings} %Codici
    \usepackage{bm} %Neretto
    \usepackage[italian]{varioref} %Riferimenti completi della pagina
    \usepackage{tikz,pgfplots} %Grafici vettoriali
    \usepackage[figuresright]{rotating} %Rotazione figure
    \usepackage[version=3]{mhchem} %Formule chimiche
    \usepackage{ifthen} %Comandi logici
    \usepackage{textcomp} %Gradi e altri simboli

    %Bibliografia
    \usepackage[babel]{csquotes}
    \usepackage[style=numeric,hyperref]{biblatex} %Ordinamento numerico, hyperlink

    %Hyperlink
    \usepackage{hyperref} %Hyperlink

    %File esterni
    \addbibresource{biblio}
    \graphicspath{{Immagini/}}
    \input{MaterialeInizialeFinale/ntds_impostazioni}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \begin{document}
    \frontmatter %Materiale iniziale

    \pdfbookmark[0]{Title page}{title}
    \frontespizio
    %Solo numeri di pagina
    \pagestyle{plain}

    %Indici
    \cleardoublepage
    \phantomsection
    \pdfbookmark[0]{Contents}{cont}
    \tableofcontents %Indice generale
    % %
    \cleardoublepage
    \phantomsection
    \pdfbookmark[0]{List of figures}{lof}
    \listoffigures %Indice figure
    % % % %
    \cleardoublepage
    \phantomsection
    \pdfbookmark[0]{List of tables}{lot}
    \listoftables %Indice tabelle
    { %
    \cleardoublepage
    \phantomsection
    \pdfbookmark[0]{Nomenclature}{nom}
    %\twocolumn
    \printnomenclature %Indice simboli
    }
    \cleardoublepage
    \phantomsection
    \pdfbookmark[0]{List of listing}{lol}
    \lstlistoflistings %Indice Codici
    %Altri indici

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \mainmatter %Materiale principale

    % % % %
    \appendix
    \part*{Appendix}
    \addcontentsline{toc}{part}{Appendix}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \backmatter %Materiale finale

    %Bibliografia
    \nocite{*}
    \cleardoublepage
    \phantomsection
    \addcontentsline{toc}{part}{\refname}
    \chapter*{\refname}
    \printbibliography[heading=norm,category=norm]
    \printbibliography[heading=basi,category=basi]

    \end{document}

    `

    e il file che contiene le impostazioni caricate
    `
    % !TEX root = ../ndts_main.tex
    % !TEX encoding = UTF-8
    %Opzioni frontespizio
    \newif\ifclassica
    \usepackage{topfront}

    \ateneo{TURIN INSTITUTE OF TECHNOLOGY}
    \FacoltaDi{Faculty of }
    \facolta{Engineering}
    \CorsoDiLaureaIn{Master's Degree in }
    \corsodilaurea{Mechanical Engineering}
    \NomeMonografia{Technical report}
    \monografia{Thermal system \\ analysis}
    \logosede{LogoPolito}
    \candidato{Andrea}
    \sedutadilaurea{A.A. 2011-2012}

    %Opzioni collegamenti ipertestuali
    \hypersetup{%
    hidelinks, %
    bookmarksopenlevel=1, %
    pdftitle=NTDS – Practise report, %
    pdfauthor= Andrea, %
    pdfstartview=FitH, %
    %bookmarksnumbered, %
    bookmarksopen=true, %
    }

    %Opzioni nomenclatura
    %eseguire
    % makeindex %.nlo -s nomencl.ist -o %.nls
    %Per generare l'indice dei simboli
    %Non compatibile con formato utf8, attenzione caratteri accentati
    %all'interno del comando nomenclature
    \makenomenclature
    %Cambio nome
    %\renewcommand{\nomname}{Elenco dei simboli}
    %Caricare pacchetto ifthen
    \RequirePackage{ifthen}
    %Divisione in sottogruppi
    \renewcommand{\nomgroup}[1]{%
    \ifthenelse{\equal{#1}{A}}{\item[\textbf{Symbols}]}{%
    \ifthenelse{\equal{#1}{B}}{\item[\textbf{Subscripts}]}{}}{ %
    \ifthenelse{\equal{#1}{C}}{\item[\textbf{Superscripts}]}{}}}
    %Preambolo nomenclatura
    \renewcommand{\nompreamble}{\input{MaterialeInizialeFinale/nomencl}}

    %Opzioni bibliografia
    %\renewcommand*{\mkbibnamefirst}[1]{\textsc{#1}}
    \renewcommand*{\mkbibnamelast}[1]{\textsc{#1}} %Cognome maiuscoletto

    \DeclareBibliographyCategory{basi}
    \DeclareBibliographyCategory{norm}

    \addtocategory{basi}{masoero:slide,mie:note,borchiellini:1d}
    \addtocategory{norm}{norm:10349,norm:11300,norm:14683,norm:13790,norm:442,norm:13789,norm:13370,norm:6946,norm:10339,norm:10351,norm:10355}

    \defbibheading{basi}{\section*{Essential bibliography}}
    \defbibheading{norm}{\section*{Technical standards}}

    %Norma e valori assoluti
    \DeclarePairedDelimiter{\abs}{\lvert}{\rvert}
    \DeclarePairedDelimiter{\norma}{\lVert}{\rVert}

    %Colori
    \definecolor{commenti}{rgb}{0.13,0.55,0.13}
    \definecolor{stringhe}{rgb}{0.63,0.125,0.94}

    %Didascalie tabelle
    \captionsetup[table]{skip=\medskipamount}
    \captionsetup[table]{position=top}
    %Didascalie
    %\captionsetup{format=hang}

    %Codici
    \lstset{
    basicstyle=\small\ttfamily, % stampa piccolo
    keywordstyle = \color{blue},% blue keywords
    identifierstyle =, % nothing happens
    commentstyle = \color{commenti}, % comments
    stringstyle = \ttfamily \color{stringhe}, % typewriter type for strings
    showstringspaces = false, % no special string spaces
    %emph = {for, if, then, else, end},
    %emphstyle = \color{blue},
    firstnumber = 1, % numero della prima linea
    numbers = left, % show number_line
    numberstyle = \tiny, % style of number_line
    stepnumber = 5, % one number_line after stepnumber
    numbersep = 5pt,
    language = {Matlab}, % per riconoscere la sintassi matlab
    extendedchars = true, % per abilitare caratteri particolari
    breaklines = true, % per mandare a capo le righe troppo lunghe
    breakautoindent = true, % indenta le righe spezzate
    breakindent = 30pt, % indenta le righe di 30pt
    }
    \lstset{escapeinside={£!}{!£}}
    %\addto\captionsitalian{%
    %\renewcommand{\lstlistingname}{Codice}}
    %\addto\captionsitalian{%
    %\renewcommand{\lstlistlistingname}{Elenco dei codici}}

    %Opzioni TikZx
    \usetikzlibrary{intersections,% for intersections
    arrows,% for the special arrow
    decorations.pathmorphing,% for “snaking line”
    backgrounds,% for backgroud
    fit, % to compute the sizes of these rectangles
    positioning, % for placing nodes relative to other nodes.
    petri,% for Petr's net
    calc, %
    through, %
    mindmap,% for maps
    calendar,% for calendars
    shapes.geometric, % for other shapes
    shapes.misc, % for other shapes
    chains, % for chains
    scopes, % for replaces scope with {}
    circuits.ee.IEC
    }

    %Modifica comandi
    %Lettere greche
    \renewcommand{\epsilon}{\varepsilon}
    \renewcommand{\theta}{\vartheta}
    %\renewcommand{\rho}{\varrho}
    \renewcommand{\phi}{\varphi}
    %Nuovi comandi
    \newcommand*\E{\`E\space} %E maiuscola accentata
    \newcommand{\uni}[1]{\ \mathrm{#1}} %Unità di misura in tondo
    \renewcommand{\vec}{\bm} %Vettori
    \newcommand{\pedi}[2]{_{\mathrm{#1}#2}} %Doppio pedice
    \newcommand{\degree}{\ensuremath{^\circ}} %Gradi
    %Comandi insiemistica
    \newcommand{\numberset}{\mathbb}
    \newcommand{\N}{\numberset{N}}
    \newcommand{\R}{\numberset{R}}
    %Colonne matematiche per tabelle
    \newcolumntype{C}{>{$}c<{$}} \newcolumntype{L}{>{$}l<{$}} \newcolumntype{R}{>{$}r<{$}} ` Buon lavoro! Ps: l'unico "problema" è l'allineamento a sinistra delle equazioni, ma magari è una cosa voluta... non mi sono mai interessato al lavoro di Miede.

    Go to top