Inserire un indice

  • Creatore
    Topic
  • #117291
    Up
    0
    Down
    ::


    Buonasera,

    Volevo a questo template utilizzare un indice dei capitoli e paragrafi man mano che vengono creati, s’e’ possibile.

    `%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    % Journal Article
    % LaTeX Template
    % Version 1.4 (15/5/16)
    %
    % This template has been downloaded from:
    % http://www.LaTeXTemplates.com
    %
    % Original author:
    % Frits Wenneker (http://www.howtotex.com) with extensive modifications by
    % Vel (vel@LaTeXTemplates.com)
    %
    % License:
    % CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
    %
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %—————————————————————————————-
    % PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
    %—————————————————————————————-

    \documentclass[twoside,twocolumn]{article}

    \usepackage{blindtext} % Package to generate dummy text throughout this template

    \usepackage[sc]{mathpazo} % Use the Palatino font
    \usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs
    \linespread{1.05} % Line spacing – Palatino needs more space between lines
    \usepackage{microtype} % Slightly tweak font spacing for aesthetics

    \usepackage[english]{babel} % Language hyphenation and typographical rules

    \usepackage[hmarginratio=1:1,top=32mm,columnsep=20pt]{geometry} % Document margins
    \usepackage[hang, small,labelfont=bf,up,textfont=it,up]{caption} % Custom captions under/above floats in tables or figures
    \usepackage{booktabs} % Horizontal rules in tables

    \usepackage{lettrine} % The lettrine is the first enlarged letter at the beginning of the text

    \usepackage{enumitem} % Customized lists
    \setlist[itemize]{noitemsep} % Make itemize lists more compact

    \usepackage{abstract} % Allows abstract customization
    \renewcommand{\abstractnamefont}{\normalfont\bfseries} % Set the “Abstract” text to bold
    \renewcommand{\abstracttextfont}{\normalfont\small\itshape} % Set the abstract itself to small italic text

    \usepackage{titlesec} % Allows customization of titles
    \renewcommand\thesection{\Roman{section}} % Roman numerals for the sections
    \renewcommand\thesubsection{\roman{subsection}} % roman numerals for subsections
    \titleformat{\section}[block]{\large\scshape\centering}{\thesection.}{1em}{} % Change the look of the section titles
    \titleformat{\subsection}[block]{\large}{\thesubsection.}{1em}{} % Change the look of the section titles

    \usepackage{fancyhdr} % Headers and footers
    \pagestyle{fancy} % All pages have headers and footers
    \fancyhead{} % Blank out the default header
    \fancyfoot{} % Blank out the default footer
    \fancyhead[C]{Running title $\bullet$ May 2016 $\bullet$ Vol. XXI, No. 1} % Custom header text
    \fancyfoot[RO,LE]{\thepage} % Custom footer text

    \usepackage{titling} % Customizing the title section

    \usepackage{hyperref} % For hyperlinks in the PDF

    %—————————————————————————————-
    % TITLE SECTION
    %—————————————————————————————-

    \setlength{\droptitle}{-4\baselineskip} % Move the title up

    \pretitle{\begin{center}\Huge\bfseries} % Article title formatting
    \posttitle{\end{center}} % Article title closing formatting
    \title{Article Title} % Article title
    \author{%
    \textsc{John Smith}\thanks{A thank you or further information} \\[1ex] % Your name
    \normalsize University of California \\ % Your institution
    \normalsize \href{mailto:john@smith.com}{john@smith.com} % Your email address
    %\and % Uncomment if 2 authors are required, duplicate these 4 lines if more
    %\textsc{Jane Smith}\thanks{Corresponding author} \\[1ex] % Second author's name
    %\normalsize University of Utah \\ % Second author's institution
    %\normalsize \href{mailto:jane@smith.com}{jane@smith.com} % Second author's email address
    }
    \date{\today} % Leave empty to omit a date
    \renewcommand{\maketitlehookd}{%
    \begin{abstract}
    \noindent \blindtext % Dummy abstract text – replace \blindtext with your abstract text
    \end{abstract}
    }

    %—————————————————————————————-

    \begin{document}

    % Print the title
    \maketitle

    %—————————————————————————————-
    % ARTICLE CONTENTS
    %—————————————————————————————-

    \section{Introduction}

    \lettrine[nindent=0em,lines=3]{L} orem ipsum dolor sit amet, consectetur adipiscing elit.
    \blindtext % Dummy text

    \blindtext % Dummy text

    %————————————————

    \section{Methods}

    Maecenas sed ultricies felis. Sed imperdiet dictum arcu a egestas.
    \begin{itemize}
    \item Donec dolor arcu, rutrum id molestie in, viverra sed diam
    \item Curabitur feugiat
    \item turpis sed auctor facilisis
    \item arcu eros accumsan lorem, at posuere mi diam sit amet tortor
    \item Fusce fermentum, mi sit amet euismod rutrum
    \item sem lorem molestie diam, iaculis aliquet sapien tortor non nisi
    \item Pellentesque bibendum pretium aliquet
    \end{itemize}
    \blindtext % Dummy text

    Text requiring further explanation\footnote{Example footnote}.

    %————————————————

    \section{Results}

    \begin{table}
    \caption{Example table}
    \centering
    \begin{tabular}{llr}
    \toprule
    \multicolumn{2}{c}{Name} \\
    \cmidrule(r){1-2}
    First name & Last Name & Grade \\
    \midrule
    John & Doe & $7.5$ \\
    Richard & Miles & $2$ \\
    \bottomrule
    \end{tabular}
    \end{table}

    \blindtext % Dummy text

    \begin{equation}
    \label{eq:emc}
    e = mc^2
    \end{equation}

    \blindtext % Dummy text

    %————————————————

    \section{Discussion}

    \subsection{Subsection One}

    A statement requiring citation \cite{Figueredo:2009dg}.
    \blindtext % Dummy text

    \subsection{Subsection Two}

    \blindtext % Dummy text

    %—————————————————————————————-
    % REFERENCE LIST
    %—————————————————————————————-

    \begin{thebibliography}{99} % Bibliography – this is intentionally simple in this template

    \bibitem[Figueredo and Wolf, 2009]{Figueredo:2009dg}
    Figueredo, A.~J. and Wolf, P. S.~A. (2009).
    \newblock Assortative pairing and life history strategy – a cross-cultural
    study.
    \newblock {\em Human Nature}, 20:317–330.

    \end{thebibliography}

    %—————————————————————————————-

    \end{document}
    `

    Come fare grazie

Visualizzazione 13 filoni di risposte
  • Autore
    Risposte
    • #117292
      OldClaudio
      Partecipante
        Up
        0
        Down
        ::


        È possibile ma dev usare ei leggere la documentazione del pacchetto minitoc.

      • #117293
        Up
        0
        Down
        ::


        Ho visto velocemente

        Ho aggiunto:
        \usepackage{minitoc} prima di \begin{document}

        \dominitoc \tableofcontents
        \dominilof \

        \minitoc \mtcskip \minilof

        ma si blocca la compilazione e devo dare invio

        In rosso sono evidenziati nel documento.

        `
        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        % Journal Article
        % LaTeX Template
        % Version 1.4 (15/5/16)
        %
        % This template has been downloaded from:
        % http://www.LaTeXTemplates.com
        %
        % Original author:
        % Frits Wenneker (http://www.howtotex.com) with extensive modifications by
        % Vel (vel@LaTeXTemplates.com)
        %
        % License:
        % CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
        %
        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

        %—————————————————————————————-
        % PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
        %—————————————————————————————-

        \documentclass[twoside,twocolumn]{article}
        \usepackage{minitoc}

        \usepackage{blindtext} % Package to generate dummy text throughout this template

        \usepackage[sc]{mathpazo} % Use the Palatino font
        \usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs
        \linespread{1.05} % Line spacing – Palatino needs more space between lines
        \usepackage{microtype} % Slightly tweak font spacing for aesthetics

        \usepackage[english]{babel} % Language hyphenation and typographical rules

        \usepackage[hmarginratio=1:1,top=32mm,columnsep=20pt]{geometry} % Document margins
        \usepackage[hang, small,labelfont=bf,up,textfont=it,up]{caption} % Custom captions under/above floats in tables or figures
        \usepackage{booktabs} % Horizontal rules in tables

        \usepackage{lettrine} % The lettrine is the first enlarged letter at the beginning of the text

        \usepackage{enumitem} % Customized lists
        \setlist[itemize]{noitemsep} % Make itemize lists more compact

        \usepackage{abstract} % Allows abstract customization
        \renewcommand{\abstractnamefont}{\normalfont\bfseries} % Set the “Abstract” text to bold
        \renewcommand{\abstracttextfont}{\normalfont\small\itshape} % Set the abstract itself to small italic text

        \usepackage{titlesec} % Allows customization of titles
        \renewcommand\thesection{\Roman{section}} % Roman numerals for the sections
        \renewcommand\thesubsection{\roman{subsection}} % roman numerals for subsections
        \titleformat{\section}[block]{\large\scshape\centering}{\thesection.}{1em}{} % Change the look of the section titles
        \titleformat{\subsection}[block]{\large}{\thesubsection.}{1em}{} % Change the look of the section titles

        \usepackage{fancyhdr} % Headers and footers
        \pagestyle{fancy} % All pages have headers and footers
        \fancyhead{} % Blank out the default header
        \fancyfoot{} % Blank out the default footer
        \fancyhead[C]{Running title $\bullet$ May 2016 $\bullet$ Vol. XXI, No. 1} % Custom header text
        \fancyfoot[RO,LE]{\thepage} % Custom footer text

        \usepackage{titling} % Customizing the title section

        \usepackage{hyperref} % For hyperlinks in the PDF

        %—————————————————————————————-
        % TITLE SECTION
        %—————————————————————————————-

        \setlength{\droptitle}{-4\baselineskip} % Move the title up

        \pretitle{\begin{center}\Huge\bfseries} % Article title formatting
        \posttitle{\end{center}} % Article title closing formatting
        \title{Article Title} % Article title
        \author{%
        \textsc{John Smith}\thanks{A thank you or further information} \\[1ex] % Your name
        \normalsize University of California \\ % Your institution
        \normalsize \href{mailto:john@smith.com}{john@smith.com} % Your email address
        %\and % Uncomment if 2 authors are required, duplicate these 4 lines if more
        %\textsc{Jane Smith}\thanks{Corresponding author} \\[1ex] % Second author's name
        %\normalsize University of Utah \\ % Second author's institution
        %\normalsize \href{mailto:jane@smith.com}{jane@smith.com} % Second author's email address
        }
        \date{\today} % Leave empty to omit a date
        \renewcommand{\maketitlehookd}{%
        \begin{abstract}
        \noindent \blindtext % Dummy abstract text – replace \blindtext with your abstract text
        \end{abstract}
        }

        %—————————————————————————————-

        \begin{document}

        \dominitoc
        \tableofcontents
        \dominilof

        % Print the title
        \maketitle

        %—————————————————————————————-
        % ARTICLE CONTENTS
        %—————————————————————————————-

        \section{Introduction}

        \lettrine[nindent=0em,lines=3]{L} orem ipsum dolor sit amet, consectetur adipiscing elit.
        \blindtext % Dummy text

        \blindtext % Dummy text

        %————————————————

        \section{Methods}

        Maecenas sed ultricies felis. Sed imperdiet dictum arcu a egestas.
        \begin{itemize}
        \item Donec dolor arcu, rutrum id molestie in, viverra sed diam
        \item Curabitur feugiat
        \item turpis sed auctor facilisis
        \item arcu eros accumsan lorem, at posuere mi diam sit amet tortor
        \item Fusce fermentum, mi sit amet euismod rutrum
        \item sem lorem molestie diam, iaculis aliquet sapien tortor non nisi
        \item Pellentesque bibendum pretium aliquet
        \end{itemize}
        \blindtext % Dummy text

        Text requiring further explanation\footnote{Example footnote}.

        %————————————————

        \section{Results}

        \begin{table}
        \caption{Example table}
        \centering
        \begin{tabular}{llr}
        \toprule
        \multicolumn{2}{c}{Name} \\
        \cmidrule(r){1-2}
        First name & Last Name & Grade \\
        \midrule
        John & Doe & $7.5$ \\
        Richard & Miles & $2$ \\
        \bottomrule
        \end{tabular}
        \end{table}

        \blindtext % Dummy text

        \begin{equation}
        \label{eq:emc}
        e = mc^2
        \end{equation}

        \blindtext % Dummy text

        %————————————————

        \section{Discussion}

        \subsection{Subsection One}

        A statement requiring citation \cite{Figueredo:2009dg}.
        \blindtext % Dummy text

        \subsection{Subsection Two}

        \blindtext % Dummy text

        %—————————————————————————————-
        % REFERENCE LIST
        %—————————————————————————————-

        \begin{thebibliography}{99} % Bibliography – this is intentionally simple in this template

        \bibitem[Figueredo and Wolf, 2009]{Figueredo:2009dg}
        Figueredo, A.~J. and Wolf, P. S.~A. (2009).
        \newblock Assortative pairing and life history strategy – a cross-cultural
        study.
        \newblock {\em Human Nature}, 20:317–330.

        \end{thebibliography}

        %—————————————————————————————-

        \end{document}`

      • #117294
        OldClaudio
        Partecipante
          Up
          0
          Down
          ::


          Certo che non funziona; usi una classe article che non dispone del comando di seionamento \chapter.

          A parte l’opportunità di mettere dei miniindici all’inizio dei capitoli o, nel caso di articoli, delle sezioni (cosa di cui nutro i più seri dubbi…) hai letto la documentazione fino alla pagina 25/26? dove c’è scritto esattamente che cosa si deve fare con la classe article?

        • #117295
          Up
          0
          Down
          ::

          OldClaudio” post=117697Certo che non funziona; usi una classe article che non dispone del comando di seionamento \chapter.

          A parte l’opportunità di mettere dei miniindici all’inizio dei capitoli o, nel caso di articoli, delle sezioni (cosa di cui nutro i più seri dubbi…) hai letto la documentazione fino alla pagina 25/26? dove c’è scritto esattamente che cosa si deve fare con la classe article?

          Buongiorno,

          Riporto come da testo:

          This package creates a mini-table of contents (a “minitoc” 1) at the beginning of each chapter of a document. It is also possible to have a mini-list of figures (a “minilof”) and a mini-list of tables (a “minilot”).
          The document class should of course define chapters (classes like book or report [282]) or sections (classes like article 2) [282]. Thus, this package should not be used with document classes without standard sectionning commands (like letter). When the document class defines a “part” sectionning level (i.e., classes like book, report and article), you can create a “partial” table of contents (a “parttoc”) at the beginning of each part of a document. It is also possible to have a partial list of figures (a “partlof”) and a partial list of tables (a “partlot”). When the document class has no \chapter command but has a \section command, you may use

          [1] — The minitoc package section level tables of contents (“secttocs”) at the beginning of each section; and you can also have section level lists of figures (“sectlofs”) or of tables (“sectlots”).
          All these tables (“minitocs”, “partlots”, “sectlofs”, etc.) are collectively referenced as “mini-tables” (or sometimes “mini-lists”).

          1.1.1 Important restrictions
          Note: you cannot use chapter level and section level mini-tables in the same document. This restriction is intented to avoid documents with full of local tables of contents, lists of figures and tables at every sectionning level.
          Note: the commands relative to the part level are defined only if the document class defines \part. The commands relative to the section level are defined only if the document class defines \section but does not define \chapter.

          Il mio intento e’ di poter scrivere un documento magari a due colonne, come nel template, che mantenga un indice, nel modo piu’ semplice possibile. Sto traducendo delle cose dall’inglese in italiano e mi serverebbe solo organizzarle su un documento e non vorrei utilizzare il pacchetto Office perche’ non mi piace la formattazione.


          @OldClaudio
          , se conosci altri modi per generare tale documento mi va bene uguale.

        • #117296
          OldClaudio
          Partecipante
            Up
            0
            Down
            ::


            Ma al fondo della pagina 25 e all’inizio della pagina 26 c’è scritto:

            … When the document class has no \chapter command but has a \section command, you may use
            section level tables of contents (“secttocs”) at the beginning of each section; and you can also
            have section level lists of figures (“sectlofs”) or of tables (“sectlots”).

          • #117297
            Up
            0
            Down
            ::

            OldClaudio” post=117700Ma al fondo della pagina 25 e all’inizio della pagina 26 c’è scritto:

            … When the document class has no \chapter command but has a \section command, you may use
            section level tables of contents (“secttocs”) at the beginning of each section; and you can also
            have section level lists of figures (“sectlofs”) or of tables (“sectlots”).

            Grazie per l’indicazione precisa. Non potendo eseguire ora il comando, perche’ al lavoro, ho solo riportato le pagine inerenti da te indicate.
            Stasera ti diro’ come e’ andata.

            Vorrei ringraziarti perche’ sei sempre gentile e paziente.
            Mi prometto sempre di studiare un po’ di LaTeX, grazie a voi ho eseguito la tesi, curriculum ed ora qualche documento.

            Potresti cortesemente linkarmi il manuale base in italiano o inglese, magari ci do una letta ben approfondita per essere un po’ piu’ pratico.
            Grazie 🙂

            Edit: http://www.lorenzopantieri.net/LaTeX_files/ArteLaTeX.pdf inteso da qui 🙂

          • #117298
            Up
            0
            Down
            ::

            OldClaudio” post=117700Ma al fondo della pagina 25 e all’inizio della pagina 26 c’è scritto:

            … When the document class has no \chapter command but has a \section command, you may use
            section level tables of contents (“secttocs”) at the beginning of each section; and you can also
            have section level lists of figures (“sectlofs”) or of tables (“sectlots”).

          • #117299
            OldClaudio
            Partecipante
              Up
              0
              Down
              ::


              Sono contento che ti piaccia lavorare con LaTeX.
              Vedo che hai già scaricato e probabilmente anche eltto L’Arte di scrivere con LaTeX.
              Qui nel forum, nella sezione Documentazione, da dove probabilmente hai cliccato per scaricare quel testo di Lorenzo Pantieri, ci sono altre guide, alcune generali, altre tematiche. Proseguendo con i testi di Pantieri dovresti poter scaricare il testo LaTeXpedia, che approfondisce ed estende L’Arte. Ma c’è anche L’arte della composizione tipografica con LaTeX, decisamente più avanzata, o almeno così mi sembra; poi ci sono una quindicina di guide tematiche un po’ su tutto il mondo di LaTeX; io ti consiglierei fra le altre: Il LaTeX Reference Manual commentato; Comporre in italiano; Comporre matematica, Le tabelle; le altre servono per gestire problemi talvolta specifici ma meno fondamentali. Quelle che ti ho indicato sono forse le più importanti; ma certe volte conviene approfondire alcuni argomenti speciali.

            • #117300
              Up
              0
              Down
              ::

              OldClaudio” post=117703Sono contento che ti piaccia lavorare con LaTeX.
              Vedo che hai già scaricato e probabilmente anche eltto L’Arte di scrivere con LaTeX.
              Qui nel forum, nella sezione Documentazione, da dove probabilmente hai cliccato per scaricare quel testo di Lorenzo Pantieri, ci sono altre guide, alcune generali, altre tematiche. Proseguendo con i testi di Pantieri dovresti poter scaricare il testo LaTeXpedia, che approfondisce ed estende L’Arte. Ma c’è anche L’arte della composizione tipografica con LaTeX, decisamente più avanzata, o almeno così mi sembra; poi ci sono una quindicina di guide tematiche un po’ su tutto il mondo di LaTeX; io ti consiglierei fra le altre: Il LaTeX Reference Manual commentato; Comporre in italiano; Comporre matematica, Le tabelle; le altre servono per gestire problemi talvolta specifici ma meno fondamentali. Quelle che ti ho indicato sono forse le più importanti; ma certe volte conviene approfondire alcuni argomenti speciali.

              Ho provato a seguire i suggerimenti ma si blocca proprio alle righe con il comando` \secttocs`

              Segue un esempio:

              `
              \usepackage{minitoc}

              \begin{document}
              \secttocs

              \tableofcontents

              % Print the title
              \maketitle

              %—————————————————————————————-
              % ARTICLE CONTENTS
              %—————————————————————————————-
              \secttocs
              \section{Introduction}

              \lettrine[nindent=0em,lines=3]{L} orem ipsum dolor sit amet, consectetur adipiscing elit.
              \blindtext % Dummy text

              \blindtext % Dummy text

              %————————————————

              \secttocs
              \section{Methods}
              `

            • #117301
              Up
              0
              Down
              ::


              Sembra funzionare senza il pacchetto minitoc e togliendo \secttocs, cosi’:

              `

              \begin{document}

              \tableofcontents

              % Print the title
              \maketitle

              %—————————————————————————————-
              % ARTICLE CONTENTS
              %—————————————————————————————-
              \section{Introduction}`

              Non so se sia una buona idea. Attendo eventualmente una rettifica.

              Sono contento che ti piaccia lavorare con LaTeX.
              Vedo che hai già scaricato e probabilmente anche eltto L’Arte di scrivere con LaTeX.
              Qui nel forum, nella sezione Documentazione, da dove probabilmente hai cliccato per scaricare quel testo di Lorenzo Pantieri, ci sono altre guide, alcune generali, altre tematiche. Proseguendo con i testi di Pantieri dovresti poter scaricare il testo LaTeXpedia, che approfondisce ed estende L’Arte. Ma c’è anche L’arte della composizione tipografica con LaTeX, decisamente più avanzata, o almeno così mi sembra; poi ci sono una quindicina di guide tematiche un po’ su tutto il mondo di LaTeX; io ti consiglierei fra le altre: Il LaTeX Reference Manual commentato; Comporre in italiano; Comporre matematica, Le tabelle; le altre servono per gestire problemi talvolta specifici ma meno fondamentali. Quelle che ti ho indicato sono forse le più importanti; ma certe volte conviene approfondire alcuni argomenti speciali.

              Tornando al tuo commento. Certo che mi piace LaTeX, altrimenti non avrei questi commenti qui sul forum.
              Mi avete aiutato con tesi, curriculum ed ora per un semplice documento di appunti.
              Lo ammetto, avevo letto il pdf 7-8 anni fa poi piu’ toccato. Leggendo anche su forum in lingua anglosassone, in molti preferiscono questo strumento a Word Office. Anche per me vale la stessa cosa, la qualita’ dell’impaginazione non ha confronti. Il problema e’ che si vuole qualcosa di veloce si fa molte volte riferimento a Office, forze perche’ piu’ pratico. Ma vorrei come detto un paio di post fa, prendimi il tempo per capire questo software per fare documenti semplici, come scrivere note, e riferire alle cose giornaliere che potrebbero tornarmi utili in ambito lavorativo come a casa quando studio o preparo del materiale.

              Grazie dei bei consigli propinati.
              Hai la mia stima.

            • #117302
              OldClaudio
              Partecipante
                Up
                0
                Down
                ::


                O io non capisco quello che vuoi fare, o tu ti spighi male.

                Nel tuo ultimo posto dici che funziona tutto come ti aspetti; ci credo, fai un unico indice per tutto il documento usando il solito comando standard \tableofcontents. Ricorda che “toc” non solo è l’estensione del file che contiene le informazioni per comporre l’indice ma è anche l’acronimo di “table of contents”

                Ma nel tuo primo posto dicevi si voler comporre un indice parziale per ciascun sezionamento maggiore; parlavi di capitoli, ma usavi una classe article che non è divisibile in capitoli, quindi ti ho detto di usare minitoc e di usare i comandi per mettere i mini-indici in un articolo.

                Nel tuo penultimo messaggio usi \secttoc ma lo usi nei posti sbagliati; \secttoc va usato dopo il comando di sezionamento, non prima. È logico che sia così anche se non è detto esplicitamente nella documentazione di minitoc, non riesco a capire come ti sia venuto in mente di metterlo prima.

                In ogni caso, capisci bene che fare un solo indice generale, o fare indici perziali per ogni sezione sono due cose completamente diverse e che si ottengono con comandi diversi.

              • #117303
                Up
                0
                Down
                ::


                Caro Claudio ho fatto un po’ di confusione e sicuramente sono io a spiegarmi male.

                Inizialmente ho usato un template per creare un documento. Questo documento e’ diviso in sezioni e volevo semplicemente l’indice di ogni sezione o eventuale sottosezione all’interno del documento.

                Seguendo il tuo suggerimento anche se inserisco dopo la \section{Introduction} \secttocs ho degli errori. L’ho visto su internet ed ho copiato.

                `\usepackage{minitoc}

                \begin{document}

                \tableofcontents

                % Print the title
                \maketitle

                %—————————————————————————————-
                % ARTICLE CONTENTS
                %—————————————————————————————-
                \section{Introduction}
                \secttocs

                \lettrine[nindent=0em,lines=3]{L} orem ipsum dolor sit amet, consectetur adipiscing elit.
                \blindtext % Dummy text

                \blindtext % Dummy text

                %————————————————

                \section{Methods}
                \secttocs`

                Questo il log
                [attachment=2372]ScreenShot2020-02-19at00.10.26.png[/attachment]

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


                  \quote]Inizialmente ho usato un template per creare un documento. Questo documento e’ diviso in sezioni e volevo semplicemente l’indice di ogni sezione o eventuale sottosezione all’interno del documento.[/quote]

                  Vedi che continui a spiegarti male?

                  Tu vuoi semplicemente un solo indice che contenga l’indicazione delle pagne dove si trovano le sezioni e sottosezioni. \tableofcontents fa al caso tuo e non hai nessun bisogno di minitoc né di altri pacchetti che creano indici parziali relativi solo a ciascuna sezione di alto livello.

                  Punto.

                  E siccome l’uso di \tableofcontents è descritto in ogni guida, dalla più elementare alla più avanzata, non vedo perché hai posto questa domanda sul forum.

                • #117305
                  Up
                  0
                  Down
                  ::

                  Vedi che continui a spiegarti male?

                  Tu vuoi semplicemente un solo indice che contenga l’indicazione delle pagne dove si trovano le sezioni e sottosezioni. \tableofcontents fa al caso tuo e non hai nessun bisogno di minitoc né di altri pacchetti che creano indici parziali relativi solo a ciascuna sezione di alto livello.

                  Punto.

                  E siccome l’uso di \tableofcontents è descritto in ogni guida, dalla più elementare alla più avanzata, non vedo perché hai posto questa domanda sul forum.

                  Buongiorno,

                  Grazie per la risposta. Ammetto di aver trovato il template su internet il quale mancava dell’indice. Ho chiesto qui perche’ credevo fosse una cosa piu’ complessa non avendo aperto la documentazione.
                  Chiedo venia.

                  Saro’ piu’ accorto nel prossimo intervento, scusate.

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

              Go to top