What is the simplest way to typeset an entire document in sans-serif?












80















How do I typeset an entire document in sans-serif, e.g. Helvetica, without littering the document with font changes for every heading/paragraph, etc.? Like in How to set the font for a section title (and chapter etc), but with the paragraphs all in sans-serif.



For example, I've seen documents typeset in Computer Modern and then switched to Palatino, but can I do the same with Helvetica with a few commands at the beginning?



(And please don't tell me to use a serif font for body copy / paragraphs. I know. I'm trying to use latex to typeset my resume to look like the one I've created in a word processor, which is hard to maintain but looks good. I'm hoping latex will let me do more advanced formatting/layout, separating content from form.)










share|improve this question





























    80















    How do I typeset an entire document in sans-serif, e.g. Helvetica, without littering the document with font changes for every heading/paragraph, etc.? Like in How to set the font for a section title (and chapter etc), but with the paragraphs all in sans-serif.



    For example, I've seen documents typeset in Computer Modern and then switched to Palatino, but can I do the same with Helvetica with a few commands at the beginning?



    (And please don't tell me to use a serif font for body copy / paragraphs. I know. I'm trying to use latex to typeset my resume to look like the one I've created in a word processor, which is hard to maintain but looks good. I'm hoping latex will let me do more advanced formatting/layout, separating content from form.)










    share|improve this question



























      80












      80








      80


      30






      How do I typeset an entire document in sans-serif, e.g. Helvetica, without littering the document with font changes for every heading/paragraph, etc.? Like in How to set the font for a section title (and chapter etc), but with the paragraphs all in sans-serif.



      For example, I've seen documents typeset in Computer Modern and then switched to Palatino, but can I do the same with Helvetica with a few commands at the beginning?



      (And please don't tell me to use a serif font for body copy / paragraphs. I know. I'm trying to use latex to typeset my resume to look like the one I've created in a word processor, which is hard to maintain but looks good. I'm hoping latex will let me do more advanced formatting/layout, separating content from form.)










      share|improve this question
















      How do I typeset an entire document in sans-serif, e.g. Helvetica, without littering the document with font changes for every heading/paragraph, etc.? Like in How to set the font for a section title (and chapter etc), but with the paragraphs all in sans-serif.



      For example, I've seen documents typeset in Computer Modern and then switched to Palatino, but can I do the same with Helvetica with a few commands at the beginning?



      (And please don't tell me to use a serif font for body copy / paragraphs. I know. I'm trying to use latex to typeset my resume to look like the one I've created in a word processor, which is hard to maintain but looks good. I'm hoping latex will let me do more advanced formatting/layout, separating content from form.)







      fonts sans-serif






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 6 mins ago









      Henri Menke

      70.7k8157264




      70.7k8157264










      asked Aug 20 '10 at 16:17









      Jared UpdikeJared Updike

      553158




      553158






















          2 Answers
          2






          active

          oldest

          votes


















          97














          renewcommand{familydefault}{sfdefault} will switch to using sans-serif for everything except mathematics. The sans-serif will be computer modern sans unless you also put usepackage{helvet} in the preamble in order to make the default sans be Helvetica (or usepackage{avant} for Avant-Garde, etc.






          share|improve this answer



















          • 4





            Usually yes, although it's possible that a particular distribution has been installed so that that isn't the default. For most standardly installed distributions, though, font embedding is enabled by default, AFAIK.

            – Alan Munn
            Jul 5 '11 at 18:40






          • 5





            @Lev, Is there a package that does this automatically?, that is, without the ugly renewcommand{familydefault}{sfdefault} code. (Nothing against it, but this is the kind of code makes me embarrassed to explain to newcomers)

            – alfC
            Mar 22 '13 at 20:50








          • 11





            The command usepackage{helvet} does not provide Helvetica font, but an Helvetica clone called Nimbus Sans L.

            – user34087
            Jul 24 '13 at 8:09








          • 1





            @alfC: some packages (eg: sourcesanspro, cabin) provide an option. The LaTeX Font Catalogue will show this in the code example for most (but not all) packages.

            – Silke
            Jul 24 '13 at 21:46








          • 1





            @alfC haha. ok ;) I definitely sympathise with the idea that TeX/LaTeX is the opposite of newbie-friendly (user-friendly, even).

            – isomorphismes
            Jun 4 '14 at 4:25





















          4














          In ConTeXt you obviously use setupbodyfont. This will not affect math mode.



          setupbodyfont[ss]

          starttext

          Sans-Serif

          stoptext


          enter image description here






          share|improve this answer























            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%2f2095%2fwhat-is-the-simplest-way-to-typeset-an-entire-document-in-sans-serif%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            97














            renewcommand{familydefault}{sfdefault} will switch to using sans-serif for everything except mathematics. The sans-serif will be computer modern sans unless you also put usepackage{helvet} in the preamble in order to make the default sans be Helvetica (or usepackage{avant} for Avant-Garde, etc.






            share|improve this answer



















            • 4





              Usually yes, although it's possible that a particular distribution has been installed so that that isn't the default. For most standardly installed distributions, though, font embedding is enabled by default, AFAIK.

              – Alan Munn
              Jul 5 '11 at 18:40






            • 5





              @Lev, Is there a package that does this automatically?, that is, without the ugly renewcommand{familydefault}{sfdefault} code. (Nothing against it, but this is the kind of code makes me embarrassed to explain to newcomers)

              – alfC
              Mar 22 '13 at 20:50








            • 11





              The command usepackage{helvet} does not provide Helvetica font, but an Helvetica clone called Nimbus Sans L.

              – user34087
              Jul 24 '13 at 8:09








            • 1





              @alfC: some packages (eg: sourcesanspro, cabin) provide an option. The LaTeX Font Catalogue will show this in the code example for most (but not all) packages.

              – Silke
              Jul 24 '13 at 21:46








            • 1





              @alfC haha. ok ;) I definitely sympathise with the idea that TeX/LaTeX is the opposite of newbie-friendly (user-friendly, even).

              – isomorphismes
              Jun 4 '14 at 4:25


















            97














            renewcommand{familydefault}{sfdefault} will switch to using sans-serif for everything except mathematics. The sans-serif will be computer modern sans unless you also put usepackage{helvet} in the preamble in order to make the default sans be Helvetica (or usepackage{avant} for Avant-Garde, etc.






            share|improve this answer



















            • 4





              Usually yes, although it's possible that a particular distribution has been installed so that that isn't the default. For most standardly installed distributions, though, font embedding is enabled by default, AFAIK.

              – Alan Munn
              Jul 5 '11 at 18:40






            • 5





              @Lev, Is there a package that does this automatically?, that is, without the ugly renewcommand{familydefault}{sfdefault} code. (Nothing against it, but this is the kind of code makes me embarrassed to explain to newcomers)

              – alfC
              Mar 22 '13 at 20:50








            • 11





              The command usepackage{helvet} does not provide Helvetica font, but an Helvetica clone called Nimbus Sans L.

              – user34087
              Jul 24 '13 at 8:09








            • 1





              @alfC: some packages (eg: sourcesanspro, cabin) provide an option. The LaTeX Font Catalogue will show this in the code example for most (but not all) packages.

              – Silke
              Jul 24 '13 at 21:46








            • 1





              @alfC haha. ok ;) I definitely sympathise with the idea that TeX/LaTeX is the opposite of newbie-friendly (user-friendly, even).

              – isomorphismes
              Jun 4 '14 at 4:25
















            97












            97








            97







            renewcommand{familydefault}{sfdefault} will switch to using sans-serif for everything except mathematics. The sans-serif will be computer modern sans unless you also put usepackage{helvet} in the preamble in order to make the default sans be Helvetica (or usepackage{avant} for Avant-Garde, etc.






            share|improve this answer













            renewcommand{familydefault}{sfdefault} will switch to using sans-serif for everything except mathematics. The sans-serif will be computer modern sans unless you also put usepackage{helvet} in the preamble in order to make the default sans be Helvetica (or usepackage{avant} for Avant-Garde, etc.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Aug 20 '10 at 16:42









            Lev BishopLev Bishop

            36.7k693150




            36.7k693150








            • 4





              Usually yes, although it's possible that a particular distribution has been installed so that that isn't the default. For most standardly installed distributions, though, font embedding is enabled by default, AFAIK.

              – Alan Munn
              Jul 5 '11 at 18:40






            • 5





              @Lev, Is there a package that does this automatically?, that is, without the ugly renewcommand{familydefault}{sfdefault} code. (Nothing against it, but this is the kind of code makes me embarrassed to explain to newcomers)

              – alfC
              Mar 22 '13 at 20:50








            • 11





              The command usepackage{helvet} does not provide Helvetica font, but an Helvetica clone called Nimbus Sans L.

              – user34087
              Jul 24 '13 at 8:09








            • 1





              @alfC: some packages (eg: sourcesanspro, cabin) provide an option. The LaTeX Font Catalogue will show this in the code example for most (but not all) packages.

              – Silke
              Jul 24 '13 at 21:46








            • 1





              @alfC haha. ok ;) I definitely sympathise with the idea that TeX/LaTeX is the opposite of newbie-friendly (user-friendly, even).

              – isomorphismes
              Jun 4 '14 at 4:25
















            • 4





              Usually yes, although it's possible that a particular distribution has been installed so that that isn't the default. For most standardly installed distributions, though, font embedding is enabled by default, AFAIK.

              – Alan Munn
              Jul 5 '11 at 18:40






            • 5





              @Lev, Is there a package that does this automatically?, that is, without the ugly renewcommand{familydefault}{sfdefault} code. (Nothing against it, but this is the kind of code makes me embarrassed to explain to newcomers)

              – alfC
              Mar 22 '13 at 20:50








            • 11





              The command usepackage{helvet} does not provide Helvetica font, but an Helvetica clone called Nimbus Sans L.

              – user34087
              Jul 24 '13 at 8:09








            • 1





              @alfC: some packages (eg: sourcesanspro, cabin) provide an option. The LaTeX Font Catalogue will show this in the code example for most (but not all) packages.

              – Silke
              Jul 24 '13 at 21:46








            • 1





              @alfC haha. ok ;) I definitely sympathise with the idea that TeX/LaTeX is the opposite of newbie-friendly (user-friendly, even).

              – isomorphismes
              Jun 4 '14 at 4:25










            4




            4





            Usually yes, although it's possible that a particular distribution has been installed so that that isn't the default. For most standardly installed distributions, though, font embedding is enabled by default, AFAIK.

            – Alan Munn
            Jul 5 '11 at 18:40





            Usually yes, although it's possible that a particular distribution has been installed so that that isn't the default. For most standardly installed distributions, though, font embedding is enabled by default, AFAIK.

            – Alan Munn
            Jul 5 '11 at 18:40




            5




            5





            @Lev, Is there a package that does this automatically?, that is, without the ugly renewcommand{familydefault}{sfdefault} code. (Nothing against it, but this is the kind of code makes me embarrassed to explain to newcomers)

            – alfC
            Mar 22 '13 at 20:50







            @Lev, Is there a package that does this automatically?, that is, without the ugly renewcommand{familydefault}{sfdefault} code. (Nothing against it, but this is the kind of code makes me embarrassed to explain to newcomers)

            – alfC
            Mar 22 '13 at 20:50






            11




            11





            The command usepackage{helvet} does not provide Helvetica font, but an Helvetica clone called Nimbus Sans L.

            – user34087
            Jul 24 '13 at 8:09







            The command usepackage{helvet} does not provide Helvetica font, but an Helvetica clone called Nimbus Sans L.

            – user34087
            Jul 24 '13 at 8:09






            1




            1





            @alfC: some packages (eg: sourcesanspro, cabin) provide an option. The LaTeX Font Catalogue will show this in the code example for most (but not all) packages.

            – Silke
            Jul 24 '13 at 21:46







            @alfC: some packages (eg: sourcesanspro, cabin) provide an option. The LaTeX Font Catalogue will show this in the code example for most (but not all) packages.

            – Silke
            Jul 24 '13 at 21:46






            1




            1





            @alfC haha. ok ;) I definitely sympathise with the idea that TeX/LaTeX is the opposite of newbie-friendly (user-friendly, even).

            – isomorphismes
            Jun 4 '14 at 4:25







            @alfC haha. ok ;) I definitely sympathise with the idea that TeX/LaTeX is the opposite of newbie-friendly (user-friendly, even).

            – isomorphismes
            Jun 4 '14 at 4:25













            4














            In ConTeXt you obviously use setupbodyfont. This will not affect math mode.



            setupbodyfont[ss]

            starttext

            Sans-Serif

            stoptext


            enter image description here






            share|improve this answer




























              4














              In ConTeXt you obviously use setupbodyfont. This will not affect math mode.



              setupbodyfont[ss]

              starttext

              Sans-Serif

              stoptext


              enter image description here






              share|improve this answer


























                4












                4








                4







                In ConTeXt you obviously use setupbodyfont. This will not affect math mode.



                setupbodyfont[ss]

                starttext

                Sans-Serif

                stoptext


                enter image description here






                share|improve this answer













                In ConTeXt you obviously use setupbodyfont. This will not affect math mode.



                setupbodyfont[ss]

                starttext

                Sans-Serif

                stoptext


                enter image description here







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jul 11 '16 at 14:18









                Henri MenkeHenri Menke

                70.7k8157264




                70.7k8157264






























                    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%2f2095%2fwhat-is-the-simplest-way-to-typeset-an-entire-document-in-sans-serif%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