Changing the font in the ToC?












8














I am using the package memoir and I redefined the fonts related to the chapters headings:



renewcommandchapnamefont{normalfontLargesffamilyscshaperaggedleftso} 
renewcommandchaptitlefont{normalfonthugesffamilybfseriesscshapecolor{darkBlue}}


But altough I am using a sans-serif font for the chapters, the ToC use a serif version of LM. That's not a major problem except that I have this warning:



LaTeX Font Warning: Font shape `T1/lmss/bx/sc' undefined


So Latex is complaining that it can't find a small-caps and bold version of LM sans-serif.



alt text



And the table of content:



alt text



So I am a bit confused:




  • My chapters appear as I want (sans serif font)

  • The ToC looks like it is using serifed fonts

  • Yet it is complaining not to find a SS font

  • I have this strange problem with viii

  • LM SS seems to have a SC bold version: Latex font catalogue


It seems that I don't know enough about Latex and fonts ...










share|improve this question




















  • 1




    Very nice chapter headings by the way. What do you use for that?
    – ℝaphink
    Sep 2 '11 at 13:53










  • It's one of the available style in memoir
    – Cedric H.
    Oct 12 '11 at 7:10
















8














I am using the package memoir and I redefined the fonts related to the chapters headings:



renewcommandchapnamefont{normalfontLargesffamilyscshaperaggedleftso} 
renewcommandchaptitlefont{normalfonthugesffamilybfseriesscshapecolor{darkBlue}}


But altough I am using a sans-serif font for the chapters, the ToC use a serif version of LM. That's not a major problem except that I have this warning:



LaTeX Font Warning: Font shape `T1/lmss/bx/sc' undefined


So Latex is complaining that it can't find a small-caps and bold version of LM sans-serif.



alt text



And the table of content:



alt text



So I am a bit confused:




  • My chapters appear as I want (sans serif font)

  • The ToC looks like it is using serifed fonts

  • Yet it is complaining not to find a SS font

  • I have this strange problem with viii

  • LM SS seems to have a SC bold version: Latex font catalogue


It seems that I don't know enough about Latex and fonts ...










share|improve this question




















  • 1




    Very nice chapter headings by the way. What do you use for that?
    – ℝaphink
    Sep 2 '11 at 13:53










  • It's one of the available style in memoir
    – Cedric H.
    Oct 12 '11 at 7:10














8












8








8


1





I am using the package memoir and I redefined the fonts related to the chapters headings:



renewcommandchapnamefont{normalfontLargesffamilyscshaperaggedleftso} 
renewcommandchaptitlefont{normalfonthugesffamilybfseriesscshapecolor{darkBlue}}


But altough I am using a sans-serif font for the chapters, the ToC use a serif version of LM. That's not a major problem except that I have this warning:



LaTeX Font Warning: Font shape `T1/lmss/bx/sc' undefined


So Latex is complaining that it can't find a small-caps and bold version of LM sans-serif.



alt text



And the table of content:



alt text



So I am a bit confused:




  • My chapters appear as I want (sans serif font)

  • The ToC looks like it is using serifed fonts

  • Yet it is complaining not to find a SS font

  • I have this strange problem with viii

  • LM SS seems to have a SC bold version: Latex font catalogue


It seems that I don't know enough about Latex and fonts ...










share|improve this question















I am using the package memoir and I redefined the fonts related to the chapters headings:



renewcommandchapnamefont{normalfontLargesffamilyscshaperaggedleftso} 
renewcommandchaptitlefont{normalfonthugesffamilybfseriesscshapecolor{darkBlue}}


But altough I am using a sans-serif font for the chapters, the ToC use a serif version of LM. That's not a major problem except that I have this warning:



LaTeX Font Warning: Font shape `T1/lmss/bx/sc' undefined


So Latex is complaining that it can't find a small-caps and bold version of LM sans-serif.



alt text



And the table of content:



alt text



So I am a bit confused:




  • My chapters appear as I want (sans serif font)

  • The ToC looks like it is using serifed fonts

  • Yet it is complaining not to find a SS font

  • I have this strange problem with viii

  • LM SS seems to have a SC bold version: Latex font catalogue


It seems that I don't know enough about Latex and fonts ...







fonts table-of-contents






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 15 mins ago









Saphar Koshet

1021215




1021215










asked Nov 24 '10 at 16:22









Cedric H.

1,87831629




1,87831629








  • 1




    Very nice chapter headings by the way. What do you use for that?
    – ℝaphink
    Sep 2 '11 at 13:53










  • It's one of the available style in memoir
    – Cedric H.
    Oct 12 '11 at 7:10














  • 1




    Very nice chapter headings by the way. What do you use for that?
    – ℝaphink
    Sep 2 '11 at 13:53










  • It's one of the available style in memoir
    – Cedric H.
    Oct 12 '11 at 7:10








1




1




Very nice chapter headings by the way. What do you use for that?
– ℝaphink
Sep 2 '11 at 13:53




Very nice chapter headings by the way. What do you use for that?
– ℝaphink
Sep 2 '11 at 13:53












It's one of the available style in memoir
– Cedric H.
Oct 12 '11 at 7:10




It's one of the available style in memoir
– Cedric H.
Oct 12 '11 at 7:10










3 Answers
3






active

oldest

votes


















6














LaTeX tells you that it is find a font. It also tells you which font it uses instead:



 LaTeX Font Warning: Font shape `T1/lmss/bx/sc' undefined
(Font) using `T1/lmss/bx/n' instead on input line 8.


Substituations are normal. As you can see here a sans serif font is used as substitute.



chapnamefont defines the font of the vertical chapter beside the large "2" not the font in the toc.



For the problem with "viii": http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tocloft






share|improve this answer





























    11














    The commands for the TOC entries are different to the commands for the headings. To get sans serif fonts in the TOC, redefine the cftXfont commands, where X stands for chapter, section etc.



    This will achieve sans serif chapter and section entries in the TOC:



    usepackage{tocloft}
    renewcommand{cftchapfont}{normalfontsffamily}
    renewcommand{cftsecfont}{normalfontsffamily}





    share|improve this answer



















    • 1




      For whatever reason, I get a cftsectionfont undefined error when using renewcommand{cftsectionfont}{normalfontsffamily} . If I change cftsectionfont to cftsecfont, everything works as intended.
      – user697473
      Feb 27 '17 at 20:35



















    1














    To make the TOC sans serif, just add the command textsf, like this:
    textsf{tableofcontents}}






    share|improve this answer



















    • 2




      The font might be reset inside tableofcontents by memoir. Anyway, I would recommend to use {sffamilytableofcontents}` instead.
      – Martin Scharrer
      Oct 12 '11 at 0:21






    • 2




      @MartinScharrer @Andre Using either textsf{tableofcontents} or sffamilytableofcontents makes the entries sans serif but NOT the page numbers. Any solution for this?
      – Dominik
      Nov 28 '15 at 16:58











    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%2f5905%2fchanging-the-font-in-the-toc%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    6














    LaTeX tells you that it is find a font. It also tells you which font it uses instead:



     LaTeX Font Warning: Font shape `T1/lmss/bx/sc' undefined
    (Font) using `T1/lmss/bx/n' instead on input line 8.


    Substituations are normal. As you can see here a sans serif font is used as substitute.



    chapnamefont defines the font of the vertical chapter beside the large "2" not the font in the toc.



    For the problem with "viii": http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tocloft






    share|improve this answer


























      6














      LaTeX tells you that it is find a font. It also tells you which font it uses instead:



       LaTeX Font Warning: Font shape `T1/lmss/bx/sc' undefined
      (Font) using `T1/lmss/bx/n' instead on input line 8.


      Substituations are normal. As you can see here a sans serif font is used as substitute.



      chapnamefont defines the font of the vertical chapter beside the large "2" not the font in the toc.



      For the problem with "viii": http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tocloft






      share|improve this answer
























        6












        6








        6






        LaTeX tells you that it is find a font. It also tells you which font it uses instead:



         LaTeX Font Warning: Font shape `T1/lmss/bx/sc' undefined
        (Font) using `T1/lmss/bx/n' instead on input line 8.


        Substituations are normal. As you can see here a sans serif font is used as substitute.



        chapnamefont defines the font of the vertical chapter beside the large "2" not the font in the toc.



        For the problem with "viii": http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tocloft






        share|improve this answer












        LaTeX tells you that it is find a font. It also tells you which font it uses instead:



         LaTeX Font Warning: Font shape `T1/lmss/bx/sc' undefined
        (Font) using `T1/lmss/bx/n' instead on input line 8.


        Substituations are normal. As you can see here a sans serif font is used as substitute.



        chapnamefont defines the font of the vertical chapter beside the large "2" not the font in the toc.



        For the problem with "viii": http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tocloft







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 24 '10 at 17:36









        Ulrike Fischer

        185k7289666




        185k7289666























            11














            The commands for the TOC entries are different to the commands for the headings. To get sans serif fonts in the TOC, redefine the cftXfont commands, where X stands for chapter, section etc.



            This will achieve sans serif chapter and section entries in the TOC:



            usepackage{tocloft}
            renewcommand{cftchapfont}{normalfontsffamily}
            renewcommand{cftsecfont}{normalfontsffamily}





            share|improve this answer



















            • 1




              For whatever reason, I get a cftsectionfont undefined error when using renewcommand{cftsectionfont}{normalfontsffamily} . If I change cftsectionfont to cftsecfont, everything works as intended.
              – user697473
              Feb 27 '17 at 20:35
















            11














            The commands for the TOC entries are different to the commands for the headings. To get sans serif fonts in the TOC, redefine the cftXfont commands, where X stands for chapter, section etc.



            This will achieve sans serif chapter and section entries in the TOC:



            usepackage{tocloft}
            renewcommand{cftchapfont}{normalfontsffamily}
            renewcommand{cftsecfont}{normalfontsffamily}





            share|improve this answer



















            • 1




              For whatever reason, I get a cftsectionfont undefined error when using renewcommand{cftsectionfont}{normalfontsffamily} . If I change cftsectionfont to cftsecfont, everything works as intended.
              – user697473
              Feb 27 '17 at 20:35














            11












            11








            11






            The commands for the TOC entries are different to the commands for the headings. To get sans serif fonts in the TOC, redefine the cftXfont commands, where X stands for chapter, section etc.



            This will achieve sans serif chapter and section entries in the TOC:



            usepackage{tocloft}
            renewcommand{cftchapfont}{normalfontsffamily}
            renewcommand{cftsecfont}{normalfontsffamily}





            share|improve this answer














            The commands for the TOC entries are different to the commands for the headings. To get sans serif fonts in the TOC, redefine the cftXfont commands, where X stands for chapter, section etc.



            This will achieve sans serif chapter and section entries in the TOC:



            usepackage{tocloft}
            renewcommand{cftchapfont}{normalfontsffamily}
            renewcommand{cftsecfont}{normalfontsffamily}






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Aug 27 '17 at 18:17









            Alberto

            279112




            279112










            answered Nov 24 '10 at 18:08









            Stefan Kottwitz

            175k63567757




            175k63567757








            • 1




              For whatever reason, I get a cftsectionfont undefined error when using renewcommand{cftsectionfont}{normalfontsffamily} . If I change cftsectionfont to cftsecfont, everything works as intended.
              – user697473
              Feb 27 '17 at 20:35














            • 1




              For whatever reason, I get a cftsectionfont undefined error when using renewcommand{cftsectionfont}{normalfontsffamily} . If I change cftsectionfont to cftsecfont, everything works as intended.
              – user697473
              Feb 27 '17 at 20:35








            1




            1




            For whatever reason, I get a cftsectionfont undefined error when using renewcommand{cftsectionfont}{normalfontsffamily} . If I change cftsectionfont to cftsecfont, everything works as intended.
            – user697473
            Feb 27 '17 at 20:35




            For whatever reason, I get a cftsectionfont undefined error when using renewcommand{cftsectionfont}{normalfontsffamily} . If I change cftsectionfont to cftsecfont, everything works as intended.
            – user697473
            Feb 27 '17 at 20:35











            1














            To make the TOC sans serif, just add the command textsf, like this:
            textsf{tableofcontents}}






            share|improve this answer



















            • 2




              The font might be reset inside tableofcontents by memoir. Anyway, I would recommend to use {sffamilytableofcontents}` instead.
              – Martin Scharrer
              Oct 12 '11 at 0:21






            • 2




              @MartinScharrer @Andre Using either textsf{tableofcontents} or sffamilytableofcontents makes the entries sans serif but NOT the page numbers. Any solution for this?
              – Dominik
              Nov 28 '15 at 16:58
















            1














            To make the TOC sans serif, just add the command textsf, like this:
            textsf{tableofcontents}}






            share|improve this answer



















            • 2




              The font might be reset inside tableofcontents by memoir. Anyway, I would recommend to use {sffamilytableofcontents}` instead.
              – Martin Scharrer
              Oct 12 '11 at 0:21






            • 2




              @MartinScharrer @Andre Using either textsf{tableofcontents} or sffamilytableofcontents makes the entries sans serif but NOT the page numbers. Any solution for this?
              – Dominik
              Nov 28 '15 at 16:58














            1












            1








            1






            To make the TOC sans serif, just add the command textsf, like this:
            textsf{tableofcontents}}






            share|improve this answer














            To make the TOC sans serif, just add the command textsf, like this:
            textsf{tableofcontents}}







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Oct 12 '11 at 0:19









            Martin Scharrer

            198k45632813




            198k45632813










            answered Oct 11 '11 at 22:21









            Andre

            111




            111








            • 2




              The font might be reset inside tableofcontents by memoir. Anyway, I would recommend to use {sffamilytableofcontents}` instead.
              – Martin Scharrer
              Oct 12 '11 at 0:21






            • 2




              @MartinScharrer @Andre Using either textsf{tableofcontents} or sffamilytableofcontents makes the entries sans serif but NOT the page numbers. Any solution for this?
              – Dominik
              Nov 28 '15 at 16:58














            • 2




              The font might be reset inside tableofcontents by memoir. Anyway, I would recommend to use {sffamilytableofcontents}` instead.
              – Martin Scharrer
              Oct 12 '11 at 0:21






            • 2




              @MartinScharrer @Andre Using either textsf{tableofcontents} or sffamilytableofcontents makes the entries sans serif but NOT the page numbers. Any solution for this?
              – Dominik
              Nov 28 '15 at 16:58








            2




            2




            The font might be reset inside tableofcontents by memoir. Anyway, I would recommend to use {sffamilytableofcontents}` instead.
            – Martin Scharrer
            Oct 12 '11 at 0:21




            The font might be reset inside tableofcontents by memoir. Anyway, I would recommend to use {sffamilytableofcontents}` instead.
            – Martin Scharrer
            Oct 12 '11 at 0:21




            2




            2




            @MartinScharrer @Andre Using either textsf{tableofcontents} or sffamilytableofcontents makes the entries sans serif but NOT the page numbers. Any solution for this?
            – Dominik
            Nov 28 '15 at 16:58




            @MartinScharrer @Andre Using either textsf{tableofcontents} or sffamilytableofcontents makes the entries sans serif but NOT the page numbers. Any solution for this?
            – Dominik
            Nov 28 '15 at 16:58


















            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%2f5905%2fchanging-the-font-in-the-toc%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

            Lallio

            Futebolista

            Jornalista