How to add dots in the table of contents on chapter name The 2019 Stack Overflow Developer...

Write faster on AT24C32

Where to refill my bottle in India?

Is an up-to-date browser secure on an out-of-date OS?

Loose spokes after only a few rides

What are the motivations for publishing new editions of an existing textbook, beyond new discoveries in a field?

Why not take a picture of a closer black hole?

How technical should a Scrum Master be to effectively remove impediments?

Is flight data recorder erased after every flight?

Why hard-Brexiteers don't insist on a hard border to prevent illegal immigration after Brexit?

Why is the maximum length of OpenWrt’s root password 8 characters?

Lightning Grid - Columns and Rows?

Return to UK after being refused entry years previously

How to support a colleague who finds meetings extremely tiring?

Why can Shazam fly?

Is bread bad for ducks?

What is the accessibility of a package's `Private` context variables?

Have you ever entered Singapore using a different passport or name?

Why was M87 targetted for the Event Horizon Telescope instead of Sagittarius A*?

If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?

Is this app Icon Browser Safe/Legit?

Why isn't the circumferential light around the M87 black hole's event horizon symmetric?

How to notate time signature switching consistently every measure

Deal with toxic manager when you can't quit

How to save as into a customized destination on macOS?



How to add dots in the table of contents on chapter name



The 2019 Stack Overflow Developer Survey Results Are InHow to get the chapter name and other TOC data in the table of contents?Line of dots in Table of Contents?Table of Contents with ChapterCenter chapter name in the table of contentsPage number on the left with book classHow to show Mini table only sections in a chapter not other chapter?Remove “name of chapter” in the chapter but keeping the table-of-contents entranceTable of Contents dotsAdding dots in the Table Of ContentsAdd words to chapter numbering in table of contents












1















I have a probleme with table of contents. The chapter's dots didn't work. How to fix it. This is my code



documentclass[a5paper,11pt]{book}
usepackage[a5paper,hmargin={2.5cm,1.5cm},vmargin={1.5cm,1.5cm}]{geometry}
usepackage{times}
usepackage[indonesian]{babel}
usepackage{graphicx}
usepackage{graphics}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{amsmath}
usepackage{indentfirst}
usepackage{titlesec}
usepackage{mathrsfs}
%usepackage{enumitem}
usepackage{fancyhdr}
usepackage{fancyvrb}
usepackage{natbib}
usepackage{titletoc}
usepackage[titles]{tocloft}
usepackage{ragged2e}
usepackage{amsthm}
usepackage{tikz}
usetikzlibrary{shapes.geometric,arrows}
usepackage{caption}
usepackage{lscape}
usepackage{afterpage}
usepackage{tocbasic}
usepackage{setspace}
usepackage{hyperref}
usepackage{listings}
%usepackage[utf8]{inputenc}
usepackage{placeins}
allowdisplaybreaks

tolerance=1
emergencystretch=maxdimen
hyphenpenalty=10000
hbadness=10000



titleformat{section}
{normalfontfontsize{11}{15}bfseries}{thesection}{1em}{}
titleformat{subsection}
{normalfontfontsize{11}{15}bfseries}{thesubsection}{1em}{}
DeclareTOCStyleEntry[
linefill=bfseriesTOCLineLeaderFill,beforeskip=2pt,entrynumberformat=chapterprefixintoc,dynnumwidth
]{tocline}{chapter}
%format daftar isi
titlecontents{chapter}% <section-type>
[0pt]% <left>
{bfseries}% <above-code>
{renewcommand{chaptername}{BAB}chaptername thecontentslabel quad}%<numbered-entry-format>
{}% <numberless-entry-format>
{hfillcontentspage}
titleformat{chapter}[hang]{centeringhugebfseries}{thechapter.}{1em}{}
titlespacing*{chapter}{0pt}{-3em}{1.1parskip}
titlelabel{thetitlequad}
renewcommand{thechapter}{Roman{chapter}}
renewcommand{thesection}{arabic{chapter}.arabic{section}}
renewcommand{theequation}{arabic{chapter}.arabic{equation}}
renewcommand{thetable}{arabic{chapter}.arabic{table}}
renewcommand{thefigure}{arabic{chapter}.arabic{figure}}
%format daftar lampiran
newcommandlistappendixname{centering normalsize DAFTAR LAMPIRAN}
newcommandappcaption[1]{%
addcontentsline{app}{chapter}{#1}}
makeatletter
newcommandlistofappendices{
chapter*{listappendixname}@starttoc{app}}
makeatother
theoremstyle{definition}
newtheorem{lemma}[subsection]{Lemma}
newtheorem{defn}[subsection]{Definisi}
newtheorem{prop}[subsection]{Proposisi}
newtheorem{exmp}[subsection]{Contoh}
newtheorem{thm}[subsection]{Teorema}

begin{document}
tableofcontents
chapter{tes}
chapter{a}
section{b}
subsection{c}

end{document}


What is the problem? Thank you.









share







New contributor




amanda dini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    1















    I have a probleme with table of contents. The chapter's dots didn't work. How to fix it. This is my code



    documentclass[a5paper,11pt]{book}
    usepackage[a5paper,hmargin={2.5cm,1.5cm},vmargin={1.5cm,1.5cm}]{geometry}
    usepackage{times}
    usepackage[indonesian]{babel}
    usepackage{graphicx}
    usepackage{graphics}
    usepackage{amsfonts}
    usepackage{amssymb}
    usepackage{amsmath}
    usepackage{indentfirst}
    usepackage{titlesec}
    usepackage{mathrsfs}
    %usepackage{enumitem}
    usepackage{fancyhdr}
    usepackage{fancyvrb}
    usepackage{natbib}
    usepackage{titletoc}
    usepackage[titles]{tocloft}
    usepackage{ragged2e}
    usepackage{amsthm}
    usepackage{tikz}
    usetikzlibrary{shapes.geometric,arrows}
    usepackage{caption}
    usepackage{lscape}
    usepackage{afterpage}
    usepackage{tocbasic}
    usepackage{setspace}
    usepackage{hyperref}
    usepackage{listings}
    %usepackage[utf8]{inputenc}
    usepackage{placeins}
    allowdisplaybreaks

    tolerance=1
    emergencystretch=maxdimen
    hyphenpenalty=10000
    hbadness=10000



    titleformat{section}
    {normalfontfontsize{11}{15}bfseries}{thesection}{1em}{}
    titleformat{subsection}
    {normalfontfontsize{11}{15}bfseries}{thesubsection}{1em}{}
    DeclareTOCStyleEntry[
    linefill=bfseriesTOCLineLeaderFill,beforeskip=2pt,entrynumberformat=chapterprefixintoc,dynnumwidth
    ]{tocline}{chapter}
    %format daftar isi
    titlecontents{chapter}% <section-type>
    [0pt]% <left>
    {bfseries}% <above-code>
    {renewcommand{chaptername}{BAB}chaptername thecontentslabel quad}%<numbered-entry-format>
    {}% <numberless-entry-format>
    {hfillcontentspage}
    titleformat{chapter}[hang]{centeringhugebfseries}{thechapter.}{1em}{}
    titlespacing*{chapter}{0pt}{-3em}{1.1parskip}
    titlelabel{thetitlequad}
    renewcommand{thechapter}{Roman{chapter}}
    renewcommand{thesection}{arabic{chapter}.arabic{section}}
    renewcommand{theequation}{arabic{chapter}.arabic{equation}}
    renewcommand{thetable}{arabic{chapter}.arabic{table}}
    renewcommand{thefigure}{arabic{chapter}.arabic{figure}}
    %format daftar lampiran
    newcommandlistappendixname{centering normalsize DAFTAR LAMPIRAN}
    newcommandappcaption[1]{%
    addcontentsline{app}{chapter}{#1}}
    makeatletter
    newcommandlistofappendices{
    chapter*{listappendixname}@starttoc{app}}
    makeatother
    theoremstyle{definition}
    newtheorem{lemma}[subsection]{Lemma}
    newtheorem{defn}[subsection]{Definisi}
    newtheorem{prop}[subsection]{Proposisi}
    newtheorem{exmp}[subsection]{Contoh}
    newtheorem{thm}[subsection]{Teorema}

    begin{document}
    tableofcontents
    chapter{tes}
    chapter{a}
    section{b}
    subsection{c}

    end{document}


    What is the problem? Thank you.









    share







    New contributor




    amanda dini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      1












      1








      1








      I have a probleme with table of contents. The chapter's dots didn't work. How to fix it. This is my code



      documentclass[a5paper,11pt]{book}
      usepackage[a5paper,hmargin={2.5cm,1.5cm},vmargin={1.5cm,1.5cm}]{geometry}
      usepackage{times}
      usepackage[indonesian]{babel}
      usepackage{graphicx}
      usepackage{graphics}
      usepackage{amsfonts}
      usepackage{amssymb}
      usepackage{amsmath}
      usepackage{indentfirst}
      usepackage{titlesec}
      usepackage{mathrsfs}
      %usepackage{enumitem}
      usepackage{fancyhdr}
      usepackage{fancyvrb}
      usepackage{natbib}
      usepackage{titletoc}
      usepackage[titles]{tocloft}
      usepackage{ragged2e}
      usepackage{amsthm}
      usepackage{tikz}
      usetikzlibrary{shapes.geometric,arrows}
      usepackage{caption}
      usepackage{lscape}
      usepackage{afterpage}
      usepackage{tocbasic}
      usepackage{setspace}
      usepackage{hyperref}
      usepackage{listings}
      %usepackage[utf8]{inputenc}
      usepackage{placeins}
      allowdisplaybreaks

      tolerance=1
      emergencystretch=maxdimen
      hyphenpenalty=10000
      hbadness=10000



      titleformat{section}
      {normalfontfontsize{11}{15}bfseries}{thesection}{1em}{}
      titleformat{subsection}
      {normalfontfontsize{11}{15}bfseries}{thesubsection}{1em}{}
      DeclareTOCStyleEntry[
      linefill=bfseriesTOCLineLeaderFill,beforeskip=2pt,entrynumberformat=chapterprefixintoc,dynnumwidth
      ]{tocline}{chapter}
      %format daftar isi
      titlecontents{chapter}% <section-type>
      [0pt]% <left>
      {bfseries}% <above-code>
      {renewcommand{chaptername}{BAB}chaptername thecontentslabel quad}%<numbered-entry-format>
      {}% <numberless-entry-format>
      {hfillcontentspage}
      titleformat{chapter}[hang]{centeringhugebfseries}{thechapter.}{1em}{}
      titlespacing*{chapter}{0pt}{-3em}{1.1parskip}
      titlelabel{thetitlequad}
      renewcommand{thechapter}{Roman{chapter}}
      renewcommand{thesection}{arabic{chapter}.arabic{section}}
      renewcommand{theequation}{arabic{chapter}.arabic{equation}}
      renewcommand{thetable}{arabic{chapter}.arabic{table}}
      renewcommand{thefigure}{arabic{chapter}.arabic{figure}}
      %format daftar lampiran
      newcommandlistappendixname{centering normalsize DAFTAR LAMPIRAN}
      newcommandappcaption[1]{%
      addcontentsline{app}{chapter}{#1}}
      makeatletter
      newcommandlistofappendices{
      chapter*{listappendixname}@starttoc{app}}
      makeatother
      theoremstyle{definition}
      newtheorem{lemma}[subsection]{Lemma}
      newtheorem{defn}[subsection]{Definisi}
      newtheorem{prop}[subsection]{Proposisi}
      newtheorem{exmp}[subsection]{Contoh}
      newtheorem{thm}[subsection]{Teorema}

      begin{document}
      tableofcontents
      chapter{tes}
      chapter{a}
      section{b}
      subsection{c}

      end{document}


      What is the problem? Thank you.









      share







      New contributor




      amanda dini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I have a probleme with table of contents. The chapter's dots didn't work. How to fix it. This is my code



      documentclass[a5paper,11pt]{book}
      usepackage[a5paper,hmargin={2.5cm,1.5cm},vmargin={1.5cm,1.5cm}]{geometry}
      usepackage{times}
      usepackage[indonesian]{babel}
      usepackage{graphicx}
      usepackage{graphics}
      usepackage{amsfonts}
      usepackage{amssymb}
      usepackage{amsmath}
      usepackage{indentfirst}
      usepackage{titlesec}
      usepackage{mathrsfs}
      %usepackage{enumitem}
      usepackage{fancyhdr}
      usepackage{fancyvrb}
      usepackage{natbib}
      usepackage{titletoc}
      usepackage[titles]{tocloft}
      usepackage{ragged2e}
      usepackage{amsthm}
      usepackage{tikz}
      usetikzlibrary{shapes.geometric,arrows}
      usepackage{caption}
      usepackage{lscape}
      usepackage{afterpage}
      usepackage{tocbasic}
      usepackage{setspace}
      usepackage{hyperref}
      usepackage{listings}
      %usepackage[utf8]{inputenc}
      usepackage{placeins}
      allowdisplaybreaks

      tolerance=1
      emergencystretch=maxdimen
      hyphenpenalty=10000
      hbadness=10000



      titleformat{section}
      {normalfontfontsize{11}{15}bfseries}{thesection}{1em}{}
      titleformat{subsection}
      {normalfontfontsize{11}{15}bfseries}{thesubsection}{1em}{}
      DeclareTOCStyleEntry[
      linefill=bfseriesTOCLineLeaderFill,beforeskip=2pt,entrynumberformat=chapterprefixintoc,dynnumwidth
      ]{tocline}{chapter}
      %format daftar isi
      titlecontents{chapter}% <section-type>
      [0pt]% <left>
      {bfseries}% <above-code>
      {renewcommand{chaptername}{BAB}chaptername thecontentslabel quad}%<numbered-entry-format>
      {}% <numberless-entry-format>
      {hfillcontentspage}
      titleformat{chapter}[hang]{centeringhugebfseries}{thechapter.}{1em}{}
      titlespacing*{chapter}{0pt}{-3em}{1.1parskip}
      titlelabel{thetitlequad}
      renewcommand{thechapter}{Roman{chapter}}
      renewcommand{thesection}{arabic{chapter}.arabic{section}}
      renewcommand{theequation}{arabic{chapter}.arabic{equation}}
      renewcommand{thetable}{arabic{chapter}.arabic{table}}
      renewcommand{thefigure}{arabic{chapter}.arabic{figure}}
      %format daftar lampiran
      newcommandlistappendixname{centering normalsize DAFTAR LAMPIRAN}
      newcommandappcaption[1]{%
      addcontentsline{app}{chapter}{#1}}
      makeatletter
      newcommandlistofappendices{
      chapter*{listappendixname}@starttoc{app}}
      makeatother
      theoremstyle{definition}
      newtheorem{lemma}[subsection]{Lemma}
      newtheorem{defn}[subsection]{Definisi}
      newtheorem{prop}[subsection]{Proposisi}
      newtheorem{exmp}[subsection]{Contoh}
      newtheorem{thm}[subsection]{Teorema}

      begin{document}
      tableofcontents
      chapter{tes}
      chapter{a}
      section{b}
      subsection{c}

      end{document}


      What is the problem? Thank you.







      table-of-contents chapters





      share







      New contributor




      amanda dini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      amanda dini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      amanda dini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 5 mins ago









      amanda diniamanda dini

      61




      61




      New contributor




      amanda dini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      amanda dini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      amanda dini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes












          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',
          autoActivateHeartbeat: false,
          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
          });


          }
          });






          amanda dini is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484235%2fhow-to-add-dots-in-the-table-of-contents-on-chapter-name%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          amanda dini is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          amanda dini is a new contributor. Be nice, and check out our Code of Conduct.













          amanda dini is a new contributor. Be nice, and check out our Code of Conduct.












          amanda dini is a new contributor. Be nice, and check out our Code of Conduct.
















          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484235%2fhow-to-add-dots-in-the-table-of-contents-on-chapter-name%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

          El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

          Castillo d'Acher Características Menú de navegación

          Connecting two nodes from the same mother node horizontallyTikZ: What EXACTLY does the the |- notation for...