Setting TOC page number font optionsAdjusting spaces for the ToCHow to revert changes made with...

Removing whitespace between consecutive numbers

Why maximum length of IP, TCP, UDP packet is not suit?

Citing paid articles from illegal web sharing

The probability of reaching the absorbing states from a particular transient state?

Does Skippy chunky peanut butter contain trans fat?

How do you funnel food off a cutting board?

Has any human ever had the choice to leave Earth permanently?

Why is Agricola named as such?

Why avoid shared user accounts?

Why don't key signatures indicate the tonic?

A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?

How do you voice extended chords?

Is there a lava-breathing lizard creature (that could be worshipped by a cult) in 5e?

Updating Statistics: Estimated Number of Rows not equal to Actual for Index Scan. Why?

Can the "Friends" spell be used without making the target hostile?

Cryptic with some cross words

Boss asked me to sign a resignation paper without a date on it along with my new contract

Treasure Hunt Riddle

Count repetitions of an array

Definition of "atomic object"

Eww, those bytes are gross

How does Leonard in "Memento" remember reading and writing?

In Linux what happens if 1000 files in a directory are moved to another location while another 300 files were added to the source directory?

Does the ditching switch allow an A320 to float indefinitely?



Setting TOC page number font options


Adjusting spaces for the ToCHow to revert changes made with titletocProblems with sectioning / tocRedefine internal toc levelHow to customize the chapter in front of figure page in listoffigures?Page number on the left with book classHow to control spacing in toc for different sections?How to remove the dots in a certain section of the table of contents?Entry in table of content and page number overlapTOC space after number always equal?













2















I have a latex document that looks something like this



documentclass{report}

usepackage[activate={true,nocompatibility},final,tracking=true,kerning=true,spacing=true,factor=1100,stretch=10,shrink=10]{microtype}
usepackage[default,osf]{sourcesanspro}

begin{document}

tableofcontents

chapter{Introduction} This chapter's content... clearpage
section{Structure} This section's content... clearpage
subsection{Top Matter} This subsection's content... clearpage
section{More Structure} This section's content... clearpage
subsection{More Top Matter} This subsection's content... clearpage

chapter{Chapter} This chapter's content... clearpage
section{Structure} This section's content... clearpage
subsection{Top Matter} This subsection's content... clearpage
section{More Structure} This section's content... clearpage
subsection{More Top Matter} This subsection's content... clearpage

chapter{Chapter} This chapter's content... clearpage
section{Structure} This section's content... clearpage
subsection{Top Matter} This subsection's content... clearpage
section{More Structure} This section's content... clearpage
subsection{More Top Matter} This subsection's content... clearpage

chapter{Chapter} This chapter's content... clearpage
section{Structure} This section's content... clearpage
subsection{Top Matter} This subsection's content... clearpage
section{More Structure} This section's content... clearpage
subsection{More Top Matter} This subsection's content... clearpage

end{document}


Resulting in a TOC that looks like this:



TOC



The alignment of the page numbers looks pretty bad:



pagenumbers



As you can see I've defaulted the document to oldstyle figures but that doesn't look good in the TOC. I'd prefer to using tabular lining (or perhaps tabular oldstyle) figures for the TOC page numbers.



How can I set the TOC to use tabular lining figures?



One wrinkle ... I believe there might be a way to do this with fontspec but my microtype options don't seem to work with XeLaTeX or LuaLaTeX










share|improve this question























  • It looks OK to me with the page numbers matching the entry titles (bold chapter name and bold page number). The tocloft package may be of assistance; perhaps I'll look at that at some time.

    – Peter Wilson
    2 days ago











  • The issue is the alignment of the numbers. Currently the numerals are proportional old style. I’m trying to figure out how to change them to lining tabular just for the TOC.

    – agf1997
    yesterday
















2















I have a latex document that looks something like this



documentclass{report}

usepackage[activate={true,nocompatibility},final,tracking=true,kerning=true,spacing=true,factor=1100,stretch=10,shrink=10]{microtype}
usepackage[default,osf]{sourcesanspro}

begin{document}

tableofcontents

chapter{Introduction} This chapter's content... clearpage
section{Structure} This section's content... clearpage
subsection{Top Matter} This subsection's content... clearpage
section{More Structure} This section's content... clearpage
subsection{More Top Matter} This subsection's content... clearpage

chapter{Chapter} This chapter's content... clearpage
section{Structure} This section's content... clearpage
subsection{Top Matter} This subsection's content... clearpage
section{More Structure} This section's content... clearpage
subsection{More Top Matter} This subsection's content... clearpage

chapter{Chapter} This chapter's content... clearpage
section{Structure} This section's content... clearpage
subsection{Top Matter} This subsection's content... clearpage
section{More Structure} This section's content... clearpage
subsection{More Top Matter} This subsection's content... clearpage

chapter{Chapter} This chapter's content... clearpage
section{Structure} This section's content... clearpage
subsection{Top Matter} This subsection's content... clearpage
section{More Structure} This section's content... clearpage
subsection{More Top Matter} This subsection's content... clearpage

end{document}


Resulting in a TOC that looks like this:



TOC



The alignment of the page numbers looks pretty bad:



pagenumbers



As you can see I've defaulted the document to oldstyle figures but that doesn't look good in the TOC. I'd prefer to using tabular lining (or perhaps tabular oldstyle) figures for the TOC page numbers.



How can I set the TOC to use tabular lining figures?



One wrinkle ... I believe there might be a way to do this with fontspec but my microtype options don't seem to work with XeLaTeX or LuaLaTeX










share|improve this question























  • It looks OK to me with the page numbers matching the entry titles (bold chapter name and bold page number). The tocloft package may be of assistance; perhaps I'll look at that at some time.

    – Peter Wilson
    2 days ago











  • The issue is the alignment of the numbers. Currently the numerals are proportional old style. I’m trying to figure out how to change them to lining tabular just for the TOC.

    – agf1997
    yesterday














2












2








2








I have a latex document that looks something like this



documentclass{report}

usepackage[activate={true,nocompatibility},final,tracking=true,kerning=true,spacing=true,factor=1100,stretch=10,shrink=10]{microtype}
usepackage[default,osf]{sourcesanspro}

begin{document}

tableofcontents

chapter{Introduction} This chapter's content... clearpage
section{Structure} This section's content... clearpage
subsection{Top Matter} This subsection's content... clearpage
section{More Structure} This section's content... clearpage
subsection{More Top Matter} This subsection's content... clearpage

chapter{Chapter} This chapter's content... clearpage
section{Structure} This section's content... clearpage
subsection{Top Matter} This subsection's content... clearpage
section{More Structure} This section's content... clearpage
subsection{More Top Matter} This subsection's content... clearpage

chapter{Chapter} This chapter's content... clearpage
section{Structure} This section's content... clearpage
subsection{Top Matter} This subsection's content... clearpage
section{More Structure} This section's content... clearpage
subsection{More Top Matter} This subsection's content... clearpage

chapter{Chapter} This chapter's content... clearpage
section{Structure} This section's content... clearpage
subsection{Top Matter} This subsection's content... clearpage
section{More Structure} This section's content... clearpage
subsection{More Top Matter} This subsection's content... clearpage

end{document}


Resulting in a TOC that looks like this:



TOC



The alignment of the page numbers looks pretty bad:



pagenumbers



As you can see I've defaulted the document to oldstyle figures but that doesn't look good in the TOC. I'd prefer to using tabular lining (or perhaps tabular oldstyle) figures for the TOC page numbers.



How can I set the TOC to use tabular lining figures?



One wrinkle ... I believe there might be a way to do this with fontspec but my microtype options don't seem to work with XeLaTeX or LuaLaTeX










share|improve this question














I have a latex document that looks something like this



documentclass{report}

usepackage[activate={true,nocompatibility},final,tracking=true,kerning=true,spacing=true,factor=1100,stretch=10,shrink=10]{microtype}
usepackage[default,osf]{sourcesanspro}

begin{document}

tableofcontents

chapter{Introduction} This chapter's content... clearpage
section{Structure} This section's content... clearpage
subsection{Top Matter} This subsection's content... clearpage
section{More Structure} This section's content... clearpage
subsection{More Top Matter} This subsection's content... clearpage

chapter{Chapter} This chapter's content... clearpage
section{Structure} This section's content... clearpage
subsection{Top Matter} This subsection's content... clearpage
section{More Structure} This section's content... clearpage
subsection{More Top Matter} This subsection's content... clearpage

chapter{Chapter} This chapter's content... clearpage
section{Structure} This section's content... clearpage
subsection{Top Matter} This subsection's content... clearpage
section{More Structure} This section's content... clearpage
subsection{More Top Matter} This subsection's content... clearpage

chapter{Chapter} This chapter's content... clearpage
section{Structure} This section's content... clearpage
subsection{Top Matter} This subsection's content... clearpage
section{More Structure} This section's content... clearpage
subsection{More Top Matter} This subsection's content... clearpage

end{document}


Resulting in a TOC that looks like this:



TOC



The alignment of the page numbers looks pretty bad:



pagenumbers



As you can see I've defaulted the document to oldstyle figures but that doesn't look good in the TOC. I'd prefer to using tabular lining (or perhaps tabular oldstyle) figures for the TOC page numbers.



How can I set the TOC to use tabular lining figures?



One wrinkle ... I believe there might be a way to do this with fontspec but my microtype options don't seem to work with XeLaTeX or LuaLaTeX







table-of-contents microtype sourcesanspro






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 22 at 18:57









agf1997agf1997

1325




1325













  • It looks OK to me with the page numbers matching the entry titles (bold chapter name and bold page number). The tocloft package may be of assistance; perhaps I'll look at that at some time.

    – Peter Wilson
    2 days ago











  • The issue is the alignment of the numbers. Currently the numerals are proportional old style. I’m trying to figure out how to change them to lining tabular just for the TOC.

    – agf1997
    yesterday



















  • It looks OK to me with the page numbers matching the entry titles (bold chapter name and bold page number). The tocloft package may be of assistance; perhaps I'll look at that at some time.

    – Peter Wilson
    2 days ago











  • The issue is the alignment of the numbers. Currently the numerals are proportional old style. I’m trying to figure out how to change them to lining tabular just for the TOC.

    – agf1997
    yesterday

















It looks OK to me with the page numbers matching the entry titles (bold chapter name and bold page number). The tocloft package may be of assistance; perhaps I'll look at that at some time.

– Peter Wilson
2 days ago





It looks OK to me with the page numbers matching the entry titles (bold chapter name and bold page number). The tocloft package may be of assistance; perhaps I'll look at that at some time.

– Peter Wilson
2 days ago













The issue is the alignment of the numbers. Currently the numerals are proportional old style. I’m trying to figure out how to change them to lining tabular just for the TOC.

– agf1997
yesterday





The issue is the alignment of the numbers. Currently the numerals are proportional old style. I’m trying to figure out how to change them to lining tabular just for the TOC.

– agf1997
yesterday










1 Answer
1






active

oldest

votes


















0














The sourcesanspro package doesn't provide a command to change to tabular numbers, but you can easily create one:



newcommandtabularnums{%
defsourcesanspro@figurealign{T}%
deffamilydefault{SourceSansPro-Tsourcesanspro@figurestyle}%
fontfamily{SourceSansPro-Tsourcesanspro@figurestyle}%
selectfont
}


Then



{tabularnums
tableofcontents
}


will yield:



TOC





share























    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
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476213%2fsetting-toc-page-number-font-options%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









    0














    The sourcesanspro package doesn't provide a command to change to tabular numbers, but you can easily create one:



    newcommandtabularnums{%
    defsourcesanspro@figurealign{T}%
    deffamilydefault{SourceSansPro-Tsourcesanspro@figurestyle}%
    fontfamily{SourceSansPro-Tsourcesanspro@figurestyle}%
    selectfont
    }


    Then



    {tabularnums
    tableofcontents
    }


    will yield:



    TOC





    share




























      0














      The sourcesanspro package doesn't provide a command to change to tabular numbers, but you can easily create one:



      newcommandtabularnums{%
      defsourcesanspro@figurealign{T}%
      deffamilydefault{SourceSansPro-Tsourcesanspro@figurestyle}%
      fontfamily{SourceSansPro-Tsourcesanspro@figurestyle}%
      selectfont
      }


      Then



      {tabularnums
      tableofcontents
      }


      will yield:



      TOC





      share


























        0












        0








        0







        The sourcesanspro package doesn't provide a command to change to tabular numbers, but you can easily create one:



        newcommandtabularnums{%
        defsourcesanspro@figurealign{T}%
        deffamilydefault{SourceSansPro-Tsourcesanspro@figurestyle}%
        fontfamily{SourceSansPro-Tsourcesanspro@figurestyle}%
        selectfont
        }


        Then



        {tabularnums
        tableofcontents
        }


        will yield:



        TOC





        share













        The sourcesanspro package doesn't provide a command to change to tabular numbers, but you can easily create one:



        newcommandtabularnums{%
        defsourcesanspro@figurealign{T}%
        deffamilydefault{SourceSansPro-Tsourcesanspro@figurestyle}%
        fontfamily{SourceSansPro-Tsourcesanspro@figurestyle}%
        selectfont
        }


        Then



        {tabularnums
        tableofcontents
        }


        will yield:



        TOC






        share











        share


        share










        answered 8 mins ago









        RobertRobert

        11.5k13963




        11.5k13963






























            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476213%2fsetting-toc-page-number-font-options%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

            Can't compile dgruyter and caption packagesLaTeX templates/packages for writing a patent specificationLatex...

            Schneeberg (Smreczany) Bibliografia | Menu...

            Hans Bellmer Spis treści Życiorys | Upamiętnienie | Przypisy | Bibliografia | Linki zewnętrzne |...