Classicthesis: immagine nella pagina-titolo parte

  • Creatore
    Topic
  • #51706
    Up
    0
    Down
    ::


    Buongiorno,

    ho provato a cercare un po’ nel forum ma non sono riuscita a trovare niente che possa risolvere la mia domanda.
    Mi scuso in anticipo se invece la risposta c’era da qualche parte (in ogni caso era ben nascosta!).

    Comunque, vorrei sapere come posso aggiungere un’immagine alla pagina con il titolo della parte che viene creata automaticamente con il comando

    `\cleardoublepage\part{Trascrizione}`

    nel file principale del lavoro.

    Volevo usare il comando
    `\includegraphics[]{immagine.jpg}`

    ma riesco solo a far si che l’immagine sia presente sulla pagina successiva e non nella pagina con il titolo dell parte.

    Grazie mille per l’aiuto

Visualizzazione 12 filoni di risposte
  • Autore
    Risposte
    • #51707
      Up
      0
      Down
      ::

      Buongiorno,

      ho provato a cercare un po’ nel forum ma non sono riuscita a trovare niente che possa risolvere la mia domanda.
      Mi scuso in anticipo se invece la risposta c’era da qualche parte (in ogni caso era ben nascosta!).

      Comunque, vorrei sapere come posso aggiungere un’immagine alla pagina con il titolo della parte che viene creata automaticamente con il comando

      `\cleardoublepage\part{Trascrizione}`

      nel file principale del lavoro.

      Volevo usare il comando
      `\includegraphics[]{immagine.jpg}`

      ma riesco solo a far si che l’immagine sia presente sulla pagina successiva e non nella pagina con il titolo dell parte.

      Grazie mille per l’aiuto

      Benvenuto! Il nickname direbbe di usare il maschile, almeno. 🙂

      La pagina della parte ha solo il titolo e l’indicazione della parte. Puoi inserire l’immagine nel titolo stesso:
      `\part[Trascrizione]{Trascrizione\\[2cm]
      \includegraphics[…]{…}}`
      Così l’immagine verrà sotto il titolo. L’argomento opzionale serve per il titolo da riportare nell’indice.

      \cleardoublepage prima di \part è inutile.

      Ciao
      Enrico

    • #51708
      Up
      0
      Down
      ::


      Come il maschile?

      Comunque, ho provato come ha detto:

      `\part[Introduzione]{Introduzione \\[2cm]
      \includegraphics[width=6cm]{Immagini/ebs-0020_004v_Aristoteles_Astrolog.jpg}}
      \include{Capitoli/Introduzione}`

      Però mi da errori:

      `! Use of \@icentercr doesn't match its definition.
      \def
      l.239 …/ebs-0020_004v_Aristoteles_Astrolog.jpg}}
      If you say, e.g., `\def\a1{…}', then you must always
      put `1' after `\a', since control sequence names are
      made up of letters only. The macro here has not been
      followed by the required stuff, so I'm ignoring it.
      ! Missing \endcsname inserted.

      \protect
      l.240 \include{Capitoli/Introduzione}
      The control sequence marked
      should
      not appear between \csname and \endcsname.
      ! Missing \endcsname inserted.

      \protect
      l.240 \include{Capitoli/Introduzione}
      The control sequence marked
      should
      not appear between \csname and \endcsname.
      Runaway argument?
      ! TeX capacity exceeded, sorry [main memory size=3000000].
      \reserved@a #1#2->\let #1#2\reserved@a
      l.240 \include{Capitoli/Introduzione}
      If you really absolutely need more capacity,
      you can ask a wizard to enlarge me.
      Here is how much of TeX's memory you used:
      15835 strings out of 493848
      238072 string characters out of 1152823
      3000001 words of memory out of 3000000
      18568 multiletter control sequences out of 15000+50000
      48119 words of font info for 146 fonts, out of 3000000 for 9000
      714 hyphenation exceptions out of 8191
      51i,11n,67p,501b,542s stack positions out of 5000i,500n,10000p,200000b,50000s
      ! ==> Fatal error occurred, no output PDF file produced!`

    • #51709
      Up
      0
      Down
      ::

      Come il maschile?

      Comunque, ho provato come ha detto:

      `\part[Introduzione]{Introduzione \\[2cm]
      \includegraphics[width=6cm]{Immagini/ebs-0020_004v_Aristoteles_Astrolog.jpg}}
      \include{Capitoli/Introduzione}`

      Però mi da errori:

      `! Use of \@icentercr doesn't match its definition.
      \def
      l.239 …/ebs-0020_004v_Aristoteles_Astrolog.jpg}}
      If you say, e.g., `\def\a1{…}', then you must always
      put `1' after `\a', since control sequence names are
      made up of letters only. The macro here has not been
      followed by the required stuff, so I'm ignoring it.
      ! Missing \endcsname inserted.

      \protect
      l.240 \include{Capitoli/Introduzione}
      The control sequence marked
      should
      not appear between \csname and \endcsname.
      ! Missing \endcsname inserted.

      \protect
      l.240 \include{Capitoli/Introduzione}
      The control sequence marked
      should
      not appear between \csname and \endcsname.
      Runaway argument?
      ! TeX capacity exceeded, sorry [main memory size=3000000].
      \reserved@a #1#2->\let #1#2\reserved@a
      l.240 \include{Capitoli/Introduzione}
      If you really absolutely need more capacity,
      you can ask a wizard to enlarge me.
      Here is how much of TeX's memory you used:
      15835 strings out of 493848
      238072 string characters out of 1152823
      3000001 words of memory out of 3000000
      18568 multiletter control sequences out of 15000+50000
      48119 words of font info for 146 fonts, out of 3000000 for 9000
      714 hyphenation exceptions out of 8191
      51i,11n,67p,501b,542s stack positions out of 5000i,500n,10000p,200000b,50000s
      ! ==> Fatal error occurred, no output PDF file produced!`

      Non mettere _ nel nome del file.

      Ciao
      Enrico

    • #51710
      Up
      0
      Down
      ::


      Ho tolto qualsiasi simbolo dal nome dell’immagine

      `\part[Introduzione]{Introduzione \\[2cm]
      \includegraphics[width=6cm]{Immagini/Astrolog.jpg}}`

      eppure mi da sempre errore:

      `! Use of \@icentercr doesn't match its definition.
      \def
      l.239 …aphics[width=6cm]{Immagini/Astrolog.jpg}}
      If you say, e.g., `\def\a1{…}', then you must always
      put `1' after `\a', since control sequence names are
      made up of letters only. The macro here has not been
      followed by the required stuff, so I'm ignoring it.
      ! Missing \endcsname inserted.

      \protect
      l.241 \include{Capitoli/Introduzione}
      The control sequence marked
      should
      not appear between \csname and \endcsname.
      ! Missing \endcsname inserted.

      \protect
      l.241 \include{Capitoli/Introduzione}
      The control sequence marked
      should
      not appear between \csname and \endcsname.
      Runaway argument?
      ! TeX capacity exceeded, sorry [main memory size=3000000].
      \reserved@a #1#2->\let #1#2\reserved@a
      l.241 \include{Capitoli/Introduzione}
      If you really absolutely need more capacity,
      you can ask a wizard to enlarge me.
      Here is how much of TeX's memory you used:
      15835 strings out of 493848
      237942 string characters out of 1152823
      3000001 words of memory out of 3000000
      18568 multiletter control sequences out of 15000+50000
      48119 words of font info for 146 fonts, out of 3000000 for 9000
      714 hyphenation exceptions out of 8191
      51i,11n,67p,501b,542s stack positions out of 5000i,500n,10000p,200000b,50000s
      ! ==> Fatal error occurred, no output PDF file produced!`

      mi dispiace…

    • #51711
      Up
      0
      Down
      ::

      Ho tolto qualsiasi simbolo dal nome dell’immagine

      `\part[Introduzione]{Introduzione \\[2cm]
      \includegraphics[width=6cm]{Immagini/Astrolog.jpg}}`

      eppure mi da sempre errore:

      `! Use of \@icentercr doesn't match its definition.
      \def
      l.239 …aphics[width=6cm]{Immagini/Astrolog.jpg}}
      If you say, e.g., `\def\a1{…}', then you must always
      put `1' after `\a', since control sequence names are
      made up of letters only. The macro here has not been
      followed by the required stuff, so I'm ignoring it.
      ! Missing \endcsname inserted.

      \protect
      l.241 \include{Capitoli/Introduzione}
      The control sequence marked
      should
      not appear between \csname and \endcsname.
      ! Missing \endcsname inserted.

      \protect
      l.241 \include{Capitoli/Introduzione}
      The control sequence marked
      should
      not appear between \csname and \endcsname.
      Runaway argument?
      ! TeX capacity exceeded, sorry [main memory size=3000000].
      \reserved@a #1#2->\let #1#2\reserved@a
      l.241 \include{Capitoli/Introduzione}
      If you really absolutely need more capacity,
      you can ask a wizard to enlarge me.
      Here is how much of TeX's memory you used:
      15835 strings out of 493848
      237942 string characters out of 1152823
      3000001 words of memory out of 3000000
      18568 multiletter control sequences out of 15000+50000
      48119 words of font info for 146 fonts, out of 3000000 for 9000
      714 hyphenation exceptions out of 8191
      51i,11n,67p,501b,542s stack positions out of 5000i,500n,10000p,200000b,50000s
      ! ==> Fatal error occurred, no output PDF file produced!`

      mi dispiace…

      Esempio minimo, per favore. A me funziona benissimo (anche con _ nel nome).

      Il riferimento al maschile era per la scelta di “Benvenuto” rispetto a “Benvenuta”. 🙂

      Ciao
      Enrico

    • #51712
      Up
      0
      Down
      ::


      Beh, questo è il mio file principale della tesi;

      `
      \documentclass[ twoside,openright,titlepage,fleqn,numbers=noenddot,headinclude,%1headlines,
      11pt,a4paper,BCOR5mm,footinclude,cleardoublepage=empty,abstractoff
      ]{scrreprt}
      \listfiles
      % ********************************************************************
      % Informazioni
      % ********************************************************************
      \newcommand{\myTitle}{Titolo\xspace}
      \newcommand{\myDegree}{Tesi di laurea\xspace}
      \newcommand{\myName}{Mio nome\xspace}
      \newcommand{\myProf}{Nome Prof\xspace}
      \newcommand{\myFaculty}{Facolt\`a di Lettere\xspace}
      \newcommand{\myDepartment}{Cattedra di Filosofia medievale e Ontologia\xspace}
      \newcommand{\myUni}{\protect{Universit\`a di Friborgo (Svizzera)}\xspace}
      \newcommand{\myLocation}{Friborgo\xspace}
      \newcommand{\myTime}{Dicembre 2010\xspace}
      %*******************************************************
      % Pacchetti
      %*******************************************************
      \usepackage[utf8x]{inputenc}
      \usepackage[italian,latin]{babel}
      \usepackage[square,numbers]{natbib}
      \usepackage[fleqn]{amsmath} % math environments and more by the AMS

      % Tabelle
      \usepackage{multicol}
      \usepackage{booktabs}
      %\usepackage{supertabular}
      \usepackage{caption}
      \captionsetup[table]{position=top}
      \usepackage{longtable}

      % Per l'indice analitico
      \usepackage{makeidx}
      \makeindex

      % Edizione critica
      \usepackage{ledmac}
      \usepackage{endnotes}

      \linenummargin{inner}
      \sidenotemargin{outer}

      \renewcommand{\ledlsnotefontsetup}{\raggedleft\scriptsize}
      \renewcommand{\ledrsnotefontsetup}{\raggedright\scriptsize}

      \newdimen\ledlsnotewidth \ledlsnotewidth=\marginparwidth
      \newdimen\ledlsnotesep \ledlsnotesep=\linenumsep
      \newdimen\ledrsnotesep \ledrsnotesep=\linenumsep

      \renewcommand{\notenumfont}{\footnotesize}
      \newcommand{\notetextfont}{\footnotesize}

      \renewcommand*{\thefootnoteB}{\alph{footnoteB}}
      \footparagraphX{B}

      \addtolength{\skip\Afootins}{1.5mm}
      \addtolength{\skip\Bfootins}{1.5mm}

      \count\Afootins=825
      \count\Bfootins=825

      \makeatletter

      \footparagraph{A}
      \footparagraph{B}

      \emergencystretch40pt

      %*******************************************************
      \usepackage{classicthesis-ldpkg} % [backref]
      %*******************************************************
      % Options for classicthesis.sty:
      % tocaligned eulerchapternumbers drafting linedheaders listsseparated
      % subfig nochapters beramono eulermath parts minionpro pdfspacing
      % listings dottedtoc minionprospacing manychapters
      \usepackage[eulerchapternumbers,drafting,linedheaders,listings,listsseparated,%pdfspacing,%listings,
      subfig,beramono,eulermath,parts]{classicthesis}

      \usepackage{makerobust}
      \makeatletter
      \MakeRobustCommand\caption@xref
      \makeatother

      % ********************************************************************
      % Setup and Finetuning
      %*******************************************************
      \newlength{\abcd} % for ab..z string length calculation
      \newcommand{\myfloatalign}{\centering} % how all the floats will be aligned
      \setlength{\extrarowheight}{3pt} % increase table row height
      % ********************************************************************
      % Captions look and feel
      %*******************************************************
      \captionsetup{format=hang,font=small}
      % ********************************************************************
      % Listings setup
      % ********************************************************************
      %\lstset{emph={trueIndex,root},emphstyle=\color{BlueViolet}}%\underbar} % for special keywords
      % ********************************************************************
      \lstset{language=[LaTeX]Tex,%C++,
      keywordstyle=\color{RoyalBlue},%\bfseries,
      basicstyle=\small\ttfamily,
      %identifierstyle=\color{NavyBlue},
      commentstyle=\color{Green}\ttfamily,
      stringstyle=\rmfamily,
      numbers=none,%left,%
      numberstyle=\scriptsize,%\tiny
      stepnumber=5,
      numbersep=8pt,
      showstringspaces=false,
      breaklines=true,
      frameround=ftff,
      frame=single,
      belowcaptionskip=.75\baselineskip,
      numberbychapter=false
      %frame=L
      }

      % ********************************************************************
      % Where to look for graphics
      %*******************************************************
      %\graphicspath{{gfx/}{misc/}} % considered harmful according to l2tabu
      % ********************************************************************
      % Hyperreferences
      %*******************************************************
      \hypersetup{%
      colorlinks=true, linktocpage=true, pdfstartpage=3, pdfstartview=FitV,%
      % uncomment the following line if you want to have black links (e.g., for printing)
      %colorlinks=false, linktocpage=false, pdfborder={0 0 0}, pdfstartpage=3, pdfstartview=FitV,%
      breaklinks=true, pdfpagemode=UseNone, pageanchor=true, pdfpagemode=UseOutlines,%
      plainpages=false, bookmarksnumbered, bookmarksopen=true, bookmarksopenlevel=1,%
      hypertexnames=true, pdfhighlight=/O,%hyperfootnotes=true,%nesting=true,%frenchlinks,%
      urlcolor=webbrown, linkcolor=RoyalBlue, citecolor=webgreen, %pagecolor=RoyalBlue,%
      %urlcolor=Black, linkcolor=Black, citecolor=Black, %pagecolor=Black,%
      pdftitle={\myTitle},%
      pdfauthor={\textcopyright\ \myName, \myUni, \myFaculty},%
      pdfsubject={},%
      pdfkeywords={},%
      pdfcreator={pdfLaTeX},%
      pdfproducer={LaTeX with hyperref and classicthesis}%
      }

      \begin{document}
      \frenchspacing
      \raggedbottom
      \selectlanguage{italian}
      %\renewcommand*{\bibname}{new name}
      %\setbibpreamble{}
      \pagenumbering{roman}
      \pagestyle{plain}

      %********************************************************************
      % Frontmatter
      %*******************************************************
      \include{MaterialeInizialeFinale/Frontespizio}
      \include{MaterialeInizialeFinale/PaginadiTitolo}
      \include{MaterialeInizialeFinale/DietroAlTitolo}
      \cleardoublepage\include{MaterialeInizialeFinale/Dedica}
      \cleardoublepage\include{MaterialeInizialeFinale/Ringraziamenti}
      \cleardoublepage\include{MaterialeInizialeFinale/Sommario}
      \pagestyle{scrheadings}
      \cleardoublepage\include{MaterialeInizialeFinale/Indici}
      \cleardoublepage\include{MaterialeInizialeFinale/SimboliNotazioni}
      \cleardoublepage

      %********************************************************************
      % Mainmatter
      %*******************************************************
      \pagenumbering{arabic}

      \cleardoublepage\part[Introduzione]{Introduzione}
      % \\[2cm]
      %\includegraphics[width=6cm]{Immagini/Astrolog.jpg}}

      \include{Capitoli/Introduzione}

      \cleardoublepage\part[Trascrizione]{Trascrizione}
      %\\[2cm]
      % \includegraphics[width=6cm]{Immagini/Lehrend.jpg}}

      \include{Capitoli/Quaestio3}
      \include{Capitoli/Quaestio4}

      \cleardoublepage\part[Commento]{Commento}
      % \\[2cm]
      %\includegraphics[width=6cm]{Immagini/Pflanzenforscher.jpg}}

      \include{Capitoli/Commento}
      \include{Capitoli/Paralleli}

      \cleardoublepage\part{Conclusione}
      % \\[2cm]
      %\includegraphics[width=6cm]{Immagini/Linien.jpg}}

      \include{Capitoli/Conclusione}
      \printindex

      % ********************************************************************
      % Backmatter
      %*******************************************************
      \appendix
      \cleardoublepage\part[Appendice]{Appendice}
      % \\[2cm]
      %\includegraphics[width=4cm]{Immagini/Tiere.jpg}}

      \cleardoublepage\include{MaterialeInizialeFinale/Bibliografia}
      \cleardoublepage\include{MaterialeInizialeFinale/Colophon}
      \cleardoublepage\include{MaterialeInizialeFinale/Dichiarazione}

      \end{document}`

    • #51713
      Up
      0
      Down
      ::


      e tra l’altro, il comando funziona perfettamente sulla pagina di titolo

      `\begin{titlepage}
      % if you want the titlepage to be centered, uncomment and fine-tune the line below (KOMA classes environment)
      \begin{addmargin}[-1cm]{-3cm}
      \begin{center}
      \large

      \hfill

      \vfill

      \begingroup
      \color{Maroon}\spacedallcaps{\myTitle} \\ \medskip
      \spacedallcaps{\mySubTitle} \\

      \bigskip
      \endgroup

      \spacedlowsmallcaps{\myName}

      \vfill

      \includegraphics[width=6cm]{Immagini/Buch.jpg} \\ \medskip

      \myDegree \\ \medskip
      \myDepartment \\
      \myFaculty \\
      \myUni \\ \bigskip

      \myTime

      \vfill

      \end{center}
      \end{addmargin}
      \end{titlepage} `

    • #51714
      Up
      0
      Down
      ::


      Il problema è nella definizione del comando \part da parte di ClassicThesis. Niente da fare, mi dispiace.

      Puoi eventualmente provare con i comandi del pacchetto atbegshi.

      Ciao
      Enrico

    • #51715
      Up
      0
      Down
      ::


      e non sarebbe possibile modificare la definizione del comando \part per far si che si possa includere un’immagine?

    • #51716
      Up
      0
      Down
      ::

      e non sarebbe possibile modificare la definizione del comando \part per far si che si possa includere un’immagine?

      Metti questo nel preambolo:
      `\newcommand\partwithimage[3][1cm]{\begingroup
      \let\origspacedallcaps\spacedallcaps
      \def\spacedallcaps##1{##1}%
      \part[#2]{\origspacedallcaps{#2}\\[#1]#3}%
      \endgroup}`
      Poi, per le parti che vuoi con un’immagine, usa
      `\partwithimage{Introduzione}{\includegraphics[…]{…}}`
      C’è un argomento opzionale a \partwithimage: con
      `\partwithimage[2cm]{Introduzione}{\includegraphics[…]{…}}`
      la distanza tra il titolo e l’immagine è di 2cm; il valore normale, come assegnato nella definizione, è 1cm. Vedi tu se ti va bene.

      Ciao
      Enrico

    • #51717
      Up
      0
      Down
      ::


      Non manca un

      `\usepackage{ucs}`

      prima della chiamata di inputenc con utf8x? O non serve?

      Ciao
      Tommaso

    • #51718
      Up
      0
      Down
      ::

      Non manca un

      `\usepackage{ucs}`

      prima della chiamata di inputenc con utf8x? O non serve?

      Normalmente, se utf8x funziona senza chiamare ucs, basta l’opzione utf8.

      Bisogna dire che quel preambolo è piuttosto bruttino. C’è anche un errore:
      `\usepackage[latin,italian]{babel}`
      è la chiamata corretta, visto che difficilmente la tesi sarà scritta in latino. Così il comando \selectlanguage{italian} è superfluo.

      C’è anche un \makeatletter inutile, prima di \footparagraph{A}.

      La dichiarazione \raggedbottom è da evitare. Anche quei \cleardoublepage sono del tutto superflui.

      Ciao
      Enrico

    • #51719
      Up
      0
      Down
      ::


      Funziona!
      Grazie mille!

      In effetti, devo ancora ripulire il codice. Per il momento l’avevo copiato dall’esempio dato con classicthesis.

      Comunque, sì, la maggior parte della mia tesi è in latino, visto che è una trascrizione da un manoscritto!

      Grazie ancora e buona serata

Visualizzazione 12 filoni di risposte
  • Devi essere connesso per rispondere a questo topic.

Go to top