Adding sectioning support in scrlttr2 class












5














It seems like by default the scrlttr2 class doesn't support sectioning, that is the command section or paragraph returns errors.



How can one add sectioning support to a latter basing on scrlttr2?










share|improve this question



























    5














    It seems like by default the scrlttr2 class doesn't support sectioning, that is the command section or paragraph returns errors.



    How can one add sectioning support to a latter basing on scrlttr2?










    share|improve this question

























      5












      5








      5







      It seems like by default the scrlttr2 class doesn't support sectioning, that is the command section or paragraph returns errors.



      How can one add sectioning support to a latter basing on scrlttr2?










      share|improve this question













      It seems like by default the scrlttr2 class doesn't support sectioning, that is the command section or paragraph returns errors.



      How can one add sectioning support to a latter basing on scrlttr2?







      sectioning letters scrlttr2






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 12 '12 at 18:32









      Dror

      11.1k1872150




      11.1k1872150






















          2 Answers
          2






          active

          oldest

          votes


















          4














          One solution is hinted in this answer. In particular, download the file sectionslco.zip and unzip it to the directory containing the letter. Finally, add the class option sections. Now you can use all sectioning macros, e.g. section, as usual.






          share|improve this answer































            0














            I would recommend using an scrartcl document together with the scrletter package which comes with Koma-Script for a few years now. It allows you to put a letter environment into any document, effectively enabling sections inside and after your main letter.



            Example:



            documentclass{scrartcl}
            usepackage{scrletter} % You can put most scrlttr2 options here.
            usepackage{lipsum}
            begin{document}
            date{today}
            setkomavar{fromname}{My Name}
            setkomavar{fromaddress}{My address\My City}
            setkomavar{fromphone}{Phone Number}
            setkomavar{fromemail}{mail@example.com}
            setkomavar{place}{City}
            setkomavar{signature}{My name again}

            setkomavar{subject}{Hello World}
            begin{letter}[fontsize=14pt]{%
            To:\ You
            }
            opening{Hello there!}

            Hello dear world.

            section{Oh wow!}

            This is another section.

            closing{CU later}
            ps{PS: Forgot anything?}
            encl{A bottle of beer}
            end{letter}

            tableofcontents % Even hyperrefs into the main letter work.
            section{Another section}
            With content.
            end{document}





            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%2f63085%2fadding-sectioning-support-in-scrlttr2-class%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









              4














              One solution is hinted in this answer. In particular, download the file sectionslco.zip and unzip it to the directory containing the letter. Finally, add the class option sections. Now you can use all sectioning macros, e.g. section, as usual.






              share|improve this answer




























                4














                One solution is hinted in this answer. In particular, download the file sectionslco.zip and unzip it to the directory containing the letter. Finally, add the class option sections. Now you can use all sectioning macros, e.g. section, as usual.






                share|improve this answer


























                  4












                  4








                  4






                  One solution is hinted in this answer. In particular, download the file sectionslco.zip and unzip it to the directory containing the letter. Finally, add the class option sections. Now you can use all sectioning macros, e.g. section, as usual.






                  share|improve this answer














                  One solution is hinted in this answer. In particular, download the file sectionslco.zip and unzip it to the directory containing the letter. Finally, add the class option sections. Now you can use all sectioning macros, e.g. section, as usual.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Apr 13 '17 at 12:35









                  Community

                  1




                  1










                  answered Jul 12 '12 at 18:35









                  Dror

                  11.1k1872150




                  11.1k1872150























                      0














                      I would recommend using an scrartcl document together with the scrletter package which comes with Koma-Script for a few years now. It allows you to put a letter environment into any document, effectively enabling sections inside and after your main letter.



                      Example:



                      documentclass{scrartcl}
                      usepackage{scrletter} % You can put most scrlttr2 options here.
                      usepackage{lipsum}
                      begin{document}
                      date{today}
                      setkomavar{fromname}{My Name}
                      setkomavar{fromaddress}{My address\My City}
                      setkomavar{fromphone}{Phone Number}
                      setkomavar{fromemail}{mail@example.com}
                      setkomavar{place}{City}
                      setkomavar{signature}{My name again}

                      setkomavar{subject}{Hello World}
                      begin{letter}[fontsize=14pt]{%
                      To:\ You
                      }
                      opening{Hello there!}

                      Hello dear world.

                      section{Oh wow!}

                      This is another section.

                      closing{CU later}
                      ps{PS: Forgot anything?}
                      encl{A bottle of beer}
                      end{letter}

                      tableofcontents % Even hyperrefs into the main letter work.
                      section{Another section}
                      With content.
                      end{document}





                      share|improve this answer


























                        0














                        I would recommend using an scrartcl document together with the scrletter package which comes with Koma-Script for a few years now. It allows you to put a letter environment into any document, effectively enabling sections inside and after your main letter.



                        Example:



                        documentclass{scrartcl}
                        usepackage{scrletter} % You can put most scrlttr2 options here.
                        usepackage{lipsum}
                        begin{document}
                        date{today}
                        setkomavar{fromname}{My Name}
                        setkomavar{fromaddress}{My address\My City}
                        setkomavar{fromphone}{Phone Number}
                        setkomavar{fromemail}{mail@example.com}
                        setkomavar{place}{City}
                        setkomavar{signature}{My name again}

                        setkomavar{subject}{Hello World}
                        begin{letter}[fontsize=14pt]{%
                        To:\ You
                        }
                        opening{Hello there!}

                        Hello dear world.

                        section{Oh wow!}

                        This is another section.

                        closing{CU later}
                        ps{PS: Forgot anything?}
                        encl{A bottle of beer}
                        end{letter}

                        tableofcontents % Even hyperrefs into the main letter work.
                        section{Another section}
                        With content.
                        end{document}





                        share|improve this answer
























                          0












                          0








                          0






                          I would recommend using an scrartcl document together with the scrletter package which comes with Koma-Script for a few years now. It allows you to put a letter environment into any document, effectively enabling sections inside and after your main letter.



                          Example:



                          documentclass{scrartcl}
                          usepackage{scrletter} % You can put most scrlttr2 options here.
                          usepackage{lipsum}
                          begin{document}
                          date{today}
                          setkomavar{fromname}{My Name}
                          setkomavar{fromaddress}{My address\My City}
                          setkomavar{fromphone}{Phone Number}
                          setkomavar{fromemail}{mail@example.com}
                          setkomavar{place}{City}
                          setkomavar{signature}{My name again}

                          setkomavar{subject}{Hello World}
                          begin{letter}[fontsize=14pt]{%
                          To:\ You
                          }
                          opening{Hello there!}

                          Hello dear world.

                          section{Oh wow!}

                          This is another section.

                          closing{CU later}
                          ps{PS: Forgot anything?}
                          encl{A bottle of beer}
                          end{letter}

                          tableofcontents % Even hyperrefs into the main letter work.
                          section{Another section}
                          With content.
                          end{document}





                          share|improve this answer












                          I would recommend using an scrartcl document together with the scrletter package which comes with Koma-Script for a few years now. It allows you to put a letter environment into any document, effectively enabling sections inside and after your main letter.



                          Example:



                          documentclass{scrartcl}
                          usepackage{scrletter} % You can put most scrlttr2 options here.
                          usepackage{lipsum}
                          begin{document}
                          date{today}
                          setkomavar{fromname}{My Name}
                          setkomavar{fromaddress}{My address\My City}
                          setkomavar{fromphone}{Phone Number}
                          setkomavar{fromemail}{mail@example.com}
                          setkomavar{place}{City}
                          setkomavar{signature}{My name again}

                          setkomavar{subject}{Hello World}
                          begin{letter}[fontsize=14pt]{%
                          To:\ You
                          }
                          opening{Hello there!}

                          Hello dear world.

                          section{Oh wow!}

                          This is another section.

                          closing{CU later}
                          ps{PS: Forgot anything?}
                          encl{A bottle of beer}
                          end{letter}

                          tableofcontents % Even hyperrefs into the main letter work.
                          section{Another section}
                          With content.
                          end{document}






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Dec 13 '18 at 15:19









                          quazgar

                          6511819




                          6511819






























                              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%2f63085%2fadding-sectioning-support-in-scrlttr2-class%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

                              How to change which sound is reproduced for terminal bell?

                              Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                              Can I use Tabulator js library in my java Spring + Thymeleaf project?