Point in table of contents with titletoc and indents











up vote
1
down vote

favorite












It would be nice if someone can teach me how to get a point behind the section numbers in the table of contents. I use the package titletoc.



Besides I have two questions concerning the indents. How could I get one at the very first line after a section title? And how could I (globally) define a space between two paragraphs (without losing the indent)?



documentclass[a4paper,10pt]{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[english]{babel}
usepackage{titlesec}
titleformat{section}{largescshape}{thesection.}{0.5em}{}
usepackage{titletoc}
titlecontents{section}[1.5em]{large}{contentslabel{1.5em}}{hspace*{-1.5em}}{titlerule*[1pc]{.}contentspage}[vspace*{0.3em}]
begin{document}
renewcommandcontentsname{normalfontlargetextsc{Contents}}
tableofcontents
section{The first section}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
section{The second section}
end{document}









share|improve this question














bumped to the homepage by Community 1 hour ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.



















    up vote
    1
    down vote

    favorite












    It would be nice if someone can teach me how to get a point behind the section numbers in the table of contents. I use the package titletoc.



    Besides I have two questions concerning the indents. How could I get one at the very first line after a section title? And how could I (globally) define a space between two paragraphs (without losing the indent)?



    documentclass[a4paper,10pt]{article}
    usepackage[utf8]{inputenc}
    usepackage[T1]{fontenc}
    usepackage[english]{babel}
    usepackage{titlesec}
    titleformat{section}{largescshape}{thesection.}{0.5em}{}
    usepackage{titletoc}
    titlecontents{section}[1.5em]{large}{contentslabel{1.5em}}{hspace*{-1.5em}}{titlerule*[1pc]{.}contentspage}[vspace*{0.3em}]
    begin{document}
    renewcommandcontentsname{normalfontlargetextsc{Contents}}
    tableofcontents
    section{The first section}
    Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
    At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
    consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.

    Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
    At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
    consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
    section{The second section}
    end{document}









    share|improve this question














    bumped to the homepage by Community 1 hour ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      It would be nice if someone can teach me how to get a point behind the section numbers in the table of contents. I use the package titletoc.



      Besides I have two questions concerning the indents. How could I get one at the very first line after a section title? And how could I (globally) define a space between two paragraphs (without losing the indent)?



      documentclass[a4paper,10pt]{article}
      usepackage[utf8]{inputenc}
      usepackage[T1]{fontenc}
      usepackage[english]{babel}
      usepackage{titlesec}
      titleformat{section}{largescshape}{thesection.}{0.5em}{}
      usepackage{titletoc}
      titlecontents{section}[1.5em]{large}{contentslabel{1.5em}}{hspace*{-1.5em}}{titlerule*[1pc]{.}contentspage}[vspace*{0.3em}]
      begin{document}
      renewcommandcontentsname{normalfontlargetextsc{Contents}}
      tableofcontents
      section{The first section}
      Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
      At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
      consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.

      Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
      At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
      consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
      section{The second section}
      end{document}









      share|improve this question













      It would be nice if someone can teach me how to get a point behind the section numbers in the table of contents. I use the package titletoc.



      Besides I have two questions concerning the indents. How could I get one at the very first line after a section title? And how could I (globally) define a space between two paragraphs (without losing the indent)?



      documentclass[a4paper,10pt]{article}
      usepackage[utf8]{inputenc}
      usepackage[T1]{fontenc}
      usepackage[english]{babel}
      usepackage{titlesec}
      titleformat{section}{largescshape}{thesection.}{0.5em}{}
      usepackage{titletoc}
      titlecontents{section}[1.5em]{large}{contentslabel{1.5em}}{hspace*{-1.5em}}{titlerule*[1pc]{.}contentspage}[vspace*{0.3em}]
      begin{document}
      renewcommandcontentsname{normalfontlargetextsc{Contents}}
      tableofcontents
      section{The first section}
      Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
      At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
      consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.

      Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
      At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
      consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
      section{The second section}
      end{document}






      table-of-contents formatting






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 16 at 16:46







      user115202












      bumped to the homepage by Community 1 hour ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 1 hour ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Here you are: you have to use the optional argument of contentslabel. Note you don't need to re-dsefine contentsname.



           documentclass[a4paper,10pt]{article}
          usepackage[utf8]{inputenc}
          usepackage[T1]{fontenc}
          usepackage[english]{babel}
          usepackage[indentafter]{titlesec}
          titleformat{section}{largescshape}{thesection.}{0.5em}{}
          usepackage{titletoc}
          titlecontents{section}[1.5em]{large}{contentslabel[thecontentslabel.]{1.5em}}{hspace*{-1.5em}}{titlerule*[1pc]{.}contentspage}[vspace*{0.3em}]

          begin{document}

          {titleformat*{section}{centeringlargescshape}tableofcontents}

          section{The first section}
          Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
          At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
          consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.

          Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
          At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
          consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
          section{The second section}

          end{document}


          enter image description here






          share|improve this answer























          • Thank you very much. You also have an idea about my "indent" problems?
            – user115202
            Feb 16 at 17:27










          • Sorry, I forgot that (Freudian slip? I think it's a typographical heresy). It's just an option in titlesec, see my updated answer. As to the spacing between paragraphs, set parskip to some small (rubber) length. But you shouldn't use both paragraph indentation and paragraph spacing without very serious reasons.
            – Bernard
            Feb 16 at 17:43












          • Alright, then I won't use parskip. Do you know how I could get the wort 'Contens' centered? With centering from my MWE it doesn't work and with begin{center}...end{center} there is a huge space to the first entry of the Toc.
            – user115202
            Feb 16 at 18:01










          • @user372565: you can use the {titleformat*{section}{...}} command (between braces, to make it local. See my updated answer. However if you also have a bibliography or an index, and want their titles to be centred, you'd better declare titleformat {name=section, numberless}{largescshapefilcenter}{}{0pt} {} in the preamble.
            – Bernard
            Feb 16 at 19:48











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f415688%2fpoint-in-table-of-contents-with-titletoc-and-indents%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown
























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          Here you are: you have to use the optional argument of contentslabel. Note you don't need to re-dsefine contentsname.



           documentclass[a4paper,10pt]{article}
          usepackage[utf8]{inputenc}
          usepackage[T1]{fontenc}
          usepackage[english]{babel}
          usepackage[indentafter]{titlesec}
          titleformat{section}{largescshape}{thesection.}{0.5em}{}
          usepackage{titletoc}
          titlecontents{section}[1.5em]{large}{contentslabel[thecontentslabel.]{1.5em}}{hspace*{-1.5em}}{titlerule*[1pc]{.}contentspage}[vspace*{0.3em}]

          begin{document}

          {titleformat*{section}{centeringlargescshape}tableofcontents}

          section{The first section}
          Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
          At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
          consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.

          Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
          At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
          consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
          section{The second section}

          end{document}


          enter image description here






          share|improve this answer























          • Thank you very much. You also have an idea about my "indent" problems?
            – user115202
            Feb 16 at 17:27










          • Sorry, I forgot that (Freudian slip? I think it's a typographical heresy). It's just an option in titlesec, see my updated answer. As to the spacing between paragraphs, set parskip to some small (rubber) length. But you shouldn't use both paragraph indentation and paragraph spacing without very serious reasons.
            – Bernard
            Feb 16 at 17:43












          • Alright, then I won't use parskip. Do you know how I could get the wort 'Contens' centered? With centering from my MWE it doesn't work and with begin{center}...end{center} there is a huge space to the first entry of the Toc.
            – user115202
            Feb 16 at 18:01










          • @user372565: you can use the {titleformat*{section}{...}} command (between braces, to make it local. See my updated answer. However if you also have a bibliography or an index, and want their titles to be centred, you'd better declare titleformat {name=section, numberless}{largescshapefilcenter}{}{0pt} {} in the preamble.
            – Bernard
            Feb 16 at 19:48















          up vote
          0
          down vote













          Here you are: you have to use the optional argument of contentslabel. Note you don't need to re-dsefine contentsname.



           documentclass[a4paper,10pt]{article}
          usepackage[utf8]{inputenc}
          usepackage[T1]{fontenc}
          usepackage[english]{babel}
          usepackage[indentafter]{titlesec}
          titleformat{section}{largescshape}{thesection.}{0.5em}{}
          usepackage{titletoc}
          titlecontents{section}[1.5em]{large}{contentslabel[thecontentslabel.]{1.5em}}{hspace*{-1.5em}}{titlerule*[1pc]{.}contentspage}[vspace*{0.3em}]

          begin{document}

          {titleformat*{section}{centeringlargescshape}tableofcontents}

          section{The first section}
          Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
          At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
          consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.

          Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
          At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
          consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
          section{The second section}

          end{document}


          enter image description here






          share|improve this answer























          • Thank you very much. You also have an idea about my "indent" problems?
            – user115202
            Feb 16 at 17:27










          • Sorry, I forgot that (Freudian slip? I think it's a typographical heresy). It's just an option in titlesec, see my updated answer. As to the spacing between paragraphs, set parskip to some small (rubber) length. But you shouldn't use both paragraph indentation and paragraph spacing without very serious reasons.
            – Bernard
            Feb 16 at 17:43












          • Alright, then I won't use parskip. Do you know how I could get the wort 'Contens' centered? With centering from my MWE it doesn't work and with begin{center}...end{center} there is a huge space to the first entry of the Toc.
            – user115202
            Feb 16 at 18:01










          • @user372565: you can use the {titleformat*{section}{...}} command (between braces, to make it local. See my updated answer. However if you also have a bibliography or an index, and want their titles to be centred, you'd better declare titleformat {name=section, numberless}{largescshapefilcenter}{}{0pt} {} in the preamble.
            – Bernard
            Feb 16 at 19:48













          up vote
          0
          down vote










          up vote
          0
          down vote









          Here you are: you have to use the optional argument of contentslabel. Note you don't need to re-dsefine contentsname.



           documentclass[a4paper,10pt]{article}
          usepackage[utf8]{inputenc}
          usepackage[T1]{fontenc}
          usepackage[english]{babel}
          usepackage[indentafter]{titlesec}
          titleformat{section}{largescshape}{thesection.}{0.5em}{}
          usepackage{titletoc}
          titlecontents{section}[1.5em]{large}{contentslabel[thecontentslabel.]{1.5em}}{hspace*{-1.5em}}{titlerule*[1pc]{.}contentspage}[vspace*{0.3em}]

          begin{document}

          {titleformat*{section}{centeringlargescshape}tableofcontents}

          section{The first section}
          Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
          At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
          consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.

          Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
          At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
          consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
          section{The second section}

          end{document}


          enter image description here






          share|improve this answer














          Here you are: you have to use the optional argument of contentslabel. Note you don't need to re-dsefine contentsname.



           documentclass[a4paper,10pt]{article}
          usepackage[utf8]{inputenc}
          usepackage[T1]{fontenc}
          usepackage[english]{babel}
          usepackage[indentafter]{titlesec}
          titleformat{section}{largescshape}{thesection.}{0.5em}{}
          usepackage{titletoc}
          titlecontents{section}[1.5em]{large}{contentslabel[thecontentslabel.]{1.5em}}{hspace*{-1.5em}}{titlerule*[1pc]{.}contentspage}[vspace*{0.3em}]

          begin{document}

          {titleformat*{section}{centeringlargescshape}tableofcontents}

          section{The first section}
          Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
          At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
          consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.

          Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
          At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
          consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
          section{The second section}

          end{document}


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 16 at 19:41

























          answered Feb 16 at 17:14









          Bernard

          164k769192




          164k769192












          • Thank you very much. You also have an idea about my "indent" problems?
            – user115202
            Feb 16 at 17:27










          • Sorry, I forgot that (Freudian slip? I think it's a typographical heresy). It's just an option in titlesec, see my updated answer. As to the spacing between paragraphs, set parskip to some small (rubber) length. But you shouldn't use both paragraph indentation and paragraph spacing without very serious reasons.
            – Bernard
            Feb 16 at 17:43












          • Alright, then I won't use parskip. Do you know how I could get the wort 'Contens' centered? With centering from my MWE it doesn't work and with begin{center}...end{center} there is a huge space to the first entry of the Toc.
            – user115202
            Feb 16 at 18:01










          • @user372565: you can use the {titleformat*{section}{...}} command (between braces, to make it local. See my updated answer. However if you also have a bibliography or an index, and want their titles to be centred, you'd better declare titleformat {name=section, numberless}{largescshapefilcenter}{}{0pt} {} in the preamble.
            – Bernard
            Feb 16 at 19:48


















          • Thank you very much. You also have an idea about my "indent" problems?
            – user115202
            Feb 16 at 17:27










          • Sorry, I forgot that (Freudian slip? I think it's a typographical heresy). It's just an option in titlesec, see my updated answer. As to the spacing between paragraphs, set parskip to some small (rubber) length. But you shouldn't use both paragraph indentation and paragraph spacing without very serious reasons.
            – Bernard
            Feb 16 at 17:43












          • Alright, then I won't use parskip. Do you know how I could get the wort 'Contens' centered? With centering from my MWE it doesn't work and with begin{center}...end{center} there is a huge space to the first entry of the Toc.
            – user115202
            Feb 16 at 18:01










          • @user372565: you can use the {titleformat*{section}{...}} command (between braces, to make it local. See my updated answer. However if you also have a bibliography or an index, and want their titles to be centred, you'd better declare titleformat {name=section, numberless}{largescshapefilcenter}{}{0pt} {} in the preamble.
            – Bernard
            Feb 16 at 19:48
















          Thank you very much. You also have an idea about my "indent" problems?
          – user115202
          Feb 16 at 17:27




          Thank you very much. You also have an idea about my "indent" problems?
          – user115202
          Feb 16 at 17:27












          Sorry, I forgot that (Freudian slip? I think it's a typographical heresy). It's just an option in titlesec, see my updated answer. As to the spacing between paragraphs, set parskip to some small (rubber) length. But you shouldn't use both paragraph indentation and paragraph spacing without very serious reasons.
          – Bernard
          Feb 16 at 17:43






          Sorry, I forgot that (Freudian slip? I think it's a typographical heresy). It's just an option in titlesec, see my updated answer. As to the spacing between paragraphs, set parskip to some small (rubber) length. But you shouldn't use both paragraph indentation and paragraph spacing without very serious reasons.
          – Bernard
          Feb 16 at 17:43














          Alright, then I won't use parskip. Do you know how I could get the wort 'Contens' centered? With centering from my MWE it doesn't work and with begin{center}...end{center} there is a huge space to the first entry of the Toc.
          – user115202
          Feb 16 at 18:01




          Alright, then I won't use parskip. Do you know how I could get the wort 'Contens' centered? With centering from my MWE it doesn't work and with begin{center}...end{center} there is a huge space to the first entry of the Toc.
          – user115202
          Feb 16 at 18:01












          @user372565: you can use the {titleformat*{section}{...}} command (between braces, to make it local. See my updated answer. However if you also have a bibliography or an index, and want their titles to be centred, you'd better declare titleformat {name=section, numberless}{largescshapefilcenter}{}{0pt} {} in the preamble.
          – Bernard
          Feb 16 at 19:48




          @user372565: you can use the {titleformat*{section}{...}} command (between braces, to make it local. See my updated answer. However if you also have a bibliography or an index, and want their titles to be centred, you'd better declare titleformat {name=section, numberless}{largescshapefilcenter}{}{0pt} {} in the preamble.
          – Bernard
          Feb 16 at 19:48


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f415688%2fpoint-in-table-of-contents-with-titletoc-and-indents%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Contact image not getting when fetch all contact list from iPhone by CNContact

          count number of partitions of a set with n elements into k subsets

          A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks