Rimuovere indice dall’indice

  • Creatore
    Topic
  • #111362
    Up
    0
    Down
    ::


    Ciao a tutti, sto scrivendo la mia tesi di laurea e mi sono accorta che il comando \tableofcontents inserisce automaticamente se stesso nell’indice, inserisco il codice originale così potete segnalarmi eventuali errori 🙂

    \documentclass[a4 paper, 11pt,twoside,openright]{report}
    \usepackage[italian]{babel}

    \usepackage[UTF8]{inputenc}
    \usepackage{amsmath,amscd}
    \usepackage{wasysym}
    \usepackage{amssymb}
    \usepackage{amsfonts}
    \usepackage{eucal}
    \usepackage{amsthm}
    \usepackage[all, cmtip]{xy}
    \usepackage{tikz-cd}
    \usepackage{tocbibind}
    \usepackage{fncychap}
    \usepackage{fancyhdr}
    \usepackage{extramarks}
    \usepackage{lipsum}
    \fancyhead{}
    \fancyhead[LE]{\textsl{\leftmark}}
    \fancyhead[RO]{\textsl{\rightmark}}
    \fancyfoot{}
    \fancyfoot[LE,RO]{\thepage}

    \pagestyle{fancy}

    \fancypagestyle{plain}{
    \fancyhf{}
    \fancyfoot[R]{\thepage}
    \renewcommand{\headrulewidth}{0pt}
    }

    \thispagestyle{fancy}
    \fancypagestyle{style2}{
    \fancyhead{}
    \fancyhead[L]{\textsl{DEFINIZIONI}}
    }
    \thispagestyle{fancy}
    \fancypagestyle{style1}{
    \fancyhead{}
    \fancyhead[L]{\textsl{INTRODUZIONE}}}

    \thispagestyle{fancy}
    \fancypagestyle{style3}{
    \fancyhead{}
    \fancyhead[R]{\textsl{INTRODUZIONE}}}

    \newtheorem{teo}{Teorema}[chapter]
    \newtheorem{defi}[teo]{{Definizione}}
    \newtheorem{oss}[teo]{\sc{OSSERVAZIONE}}
    \newtheorem{lemma}[teo]{{Lemma}}
    \newtheorem{prop}[teo]{{Proposizione}}
    \newtheorem{es}[teo]{Esempio}
    \newtheorem{coro}[teo]{Corollario}
    \newtheorem{ass}[teo]{Asserzione}
    \setcounter{totalnumber}{8}
    \begin{document}

    \tableofcontents*
    \thispagestyle{empty}

    \clearpage{\pagestyle{empty}\cleardoublepage}

    \chapter*{Introduzione}

Visualizzazione 4 filoni di risposte
  • Autore
    Risposte
    • #111363
      lorenzo.pantieri
      Partecipante
        Up
        0
        Down
        ::

        Fefffe95″ post=111630Ciao a tutti, sto scrivendo la mia tesi di laurea e mi sono accorta che il comando \tableofcontents inserisce automaticamente se stesso nell’indice, inserisco il codice originale così potete segnalarmi eventuali errori 🙂
        `\documentclass[a4 paper, 11pt,twoside,openright]{report}
        \usepackage[italian]{babel}

        \usepackage[UTF8]{inputenc}
        \usepackage{amsmath,amscd}
        \usepackage{wasysym}
        \usepackage{amssymb}
        \usepackage{amsfonts}
        \usepackage{eucal}
        \usepackage{amsthm}
        \usepackage[all, cmtip]{xy}
        \usepackage{tikz-cd}
        \usepackage{tocbibind}
        \usepackage{fncychap}
        \usepackage{fancyhdr}
        \usepackage{extramarks}
        \usepackage{lipsum}
        \fancyhead{}
        \fancyhead[LE]{\textsl{\leftmark}}
        \fancyhead[RO]{\textsl{\rightmark}}
        \fancyfoot{}
        \fancyfoot[LE,RO]{\thepage}

        \pagestyle{fancy}

        \fancypagestyle{plain}{
        \fancyhf{}
        \fancyfoot[R]{\thepage}
        \renewcommand{\headrulewidth}{0pt}
        }

        \thispagestyle{fancy}
        \fancypagestyle{style2}{
        \fancyhead{}
        \fancyhead[L]{\textsl{DEFINIZIONI}}
        }
        \thispagestyle{fancy}
        \fancypagestyle{style1}{
        \fancyhead{}
        \fancyhead[L]{\textsl{INTRODUZIONE}}}

        \thispagestyle{fancy}
        \fancypagestyle{style3}{
        \fancyhead{}
        \fancyhead[R]{\textsl{INTRODUZIONE}}}

        \newtheorem{teo}{Teorema}[chapter]
        \newtheorem{defi}[teo]{{Definizione}}
        \newtheorem{oss}[teo]{\sc{OSSERVAZIONE}}
        \newtheorem{lemma}[teo]{{Lemma}}
        \newtheorem{prop}[teo]{{Proposizione}}
        \newtheorem{es}[teo]{Esempio}
        \newtheorem{coro}[teo]{Corollario}
        \newtheorem{ass}[teo]{Asserzione}
        \setcounter{totalnumber}{8}
        \begin{document}

        \tableofcontents*
        \thispagestyle{empty}

        \clearpage{\pagestyle{empty}\cleardoublepage}

        \chapter*{Introduzione}`

        Il tuo codice contiene diversi errori e scelte TeXniche e tipografiche molto discutibili. Di sicuro, \tableofcontents non mette se stesso nell’indice:
        `\documentclass{book}
        \begin{document}
        \tableofcontents
        \chapter{Pippo}
        \chapter{Pluto}
        \end{document}`
        Inserisci un esempio minimo compilabile e leggi una guida di base.

      • #111364
        LuglioM26
        Partecipante
          Up
          0
          Down
          ::


          Ciao,

          poiché usi `\usepackage[italian]{babel}` inserisci nel preambolo il codice:

          `
          % per rimuovere la scritta “Indice” dall'indice
          \addto\captionsitalian{
          \renewcommand{\contentsname}{}
          }
          `

          Se usi un’altra lingua, mettila al posto di “italian” di \addto\captions.

          Stefano

        • #111365
          Up
          0
          Down
          ::


          Grazie Stefano, ho inserito il comando che mi hai suggerito ma ora no c’è più la scritta indice in generale! ti allego una foto

          Attachments:
          You must be logged in to view attached files.
        • #111366
          Up
          0
          Down
          ::


          Se sai perché stai usando il pacchetto tocbibind leggi la sua documentazione, altrimenti toglilo dal preambolo.

          Ciao
          Matteo

        • #111367
          LuglioM26
          Partecipante
            Up
            0
            Down
            ::


            Aggiungi l’opzione [nottoc] al package tocbibind

            `\usepackage[nottoc]{tocbibind}`

            Stefano

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

        Go to top