Change the indent structure of a paragraph












5















Is there way to change the indent structure of a specific paragraph like shown in the picture?



All the paragraphs begin with indent and no indent afterwards but the third paragraph begins with no indent and then the new lines are indented.



enter image description here










share|improve this question





























    5















    Is there way to change the indent structure of a specific paragraph like shown in the picture?



    All the paragraphs begin with indent and no indent afterwards but the third paragraph begins with no indent and then the new lines are indented.



    enter image description here










    share|improve this question



























      5












      5








      5


      1






      Is there way to change the indent structure of a specific paragraph like shown in the picture?



      All the paragraphs begin with indent and no indent afterwards but the third paragraph begins with no indent and then the new lines are indented.



      enter image description here










      share|improve this question
















      Is there way to change the indent structure of a specific paragraph like shown in the picture?



      All the paragraphs begin with indent and no indent afterwards but the third paragraph begins with no indent and then the new lines are indented.



      enter image description here







      indentation






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 18 at 14:08







      user2148564

















      asked Jan 18 at 13:51









      user2148564user2148564

      454




      454






















          3 Answers
          3






          active

          oldest

          votes


















          5














          For a single paragraph not containing lists or other list based objects such as enumerate or center, you can use the primitives hangindent and hangafter:



          documentclass{article}
          usepackage{lipsum}

          newenvironment{reversepar}[1][parindent]
          {paraddvspace{topsep}hangindent=#1hangafter=1parindent=0ptrelax}
          {paraddvspace{topsep}}

          begin{document}

          lipsum[4]

          begin{reversepar}
          lipsum[4]
          end{reversepar}

          lipsum[4]

          end{document}


          enter image description here



          You can change the amount of hanging indentation with



          begin{reversepar}[<dimen>]





          share|improve this answer































            3














            How about a enumitem-based solution?



            documentclass{article}
            usepackage{enumitem}
            newlist{weirdparagraph}{itemize}{1}
            setlist[weirdparagraph]{
            label=,
            leftmargin=2.5em,
            itemindent=-leftmargin,
            listparindent=-leftmargin,
            partopsep=0pt,
            topsep=0pt,
            itemsep=0pt,
            parsep=parskip
            }

            newcommandtest{%
            Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis
            facilisis sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet
            mi nec ante. Donec ullamcorper, felis non sodales commodo, lectus velit ultrices
            augue, a dignissim nibh lectus placerat pede.%
            }

            setlengthparindent{3.5em}
            setlengthparskip{5pt plus 1pt minus 1pt}

            begin{document}
            test

            test

            begin{weirdparagraph}
            item testpartest
            end{weirdparagraph}

            test
            end{document}


            enumitem






            share|improve this answer































              0














              The hanging package also does it:



              documentclass{article}
              usepackage{lipsum, hanging}

              begin{document}
              lipsum[1]
              hangpara{2em}{1}lipsum[2]
              lipsum[3]
              end{document}


              as:



              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%2f470696%2fchange-the-indent-structure-of-a-paragraph%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









                5














                For a single paragraph not containing lists or other list based objects such as enumerate or center, you can use the primitives hangindent and hangafter:



                documentclass{article}
                usepackage{lipsum}

                newenvironment{reversepar}[1][parindent]
                {paraddvspace{topsep}hangindent=#1hangafter=1parindent=0ptrelax}
                {paraddvspace{topsep}}

                begin{document}

                lipsum[4]

                begin{reversepar}
                lipsum[4]
                end{reversepar}

                lipsum[4]

                end{document}


                enter image description here



                You can change the amount of hanging indentation with



                begin{reversepar}[<dimen>]





                share|improve this answer




























                  5














                  For a single paragraph not containing lists or other list based objects such as enumerate or center, you can use the primitives hangindent and hangafter:



                  documentclass{article}
                  usepackage{lipsum}

                  newenvironment{reversepar}[1][parindent]
                  {paraddvspace{topsep}hangindent=#1hangafter=1parindent=0ptrelax}
                  {paraddvspace{topsep}}

                  begin{document}

                  lipsum[4]

                  begin{reversepar}
                  lipsum[4]
                  end{reversepar}

                  lipsum[4]

                  end{document}


                  enter image description here



                  You can change the amount of hanging indentation with



                  begin{reversepar}[<dimen>]





                  share|improve this answer


























                    5












                    5








                    5







                    For a single paragraph not containing lists or other list based objects such as enumerate or center, you can use the primitives hangindent and hangafter:



                    documentclass{article}
                    usepackage{lipsum}

                    newenvironment{reversepar}[1][parindent]
                    {paraddvspace{topsep}hangindent=#1hangafter=1parindent=0ptrelax}
                    {paraddvspace{topsep}}

                    begin{document}

                    lipsum[4]

                    begin{reversepar}
                    lipsum[4]
                    end{reversepar}

                    lipsum[4]

                    end{document}


                    enter image description here



                    You can change the amount of hanging indentation with



                    begin{reversepar}[<dimen>]





                    share|improve this answer













                    For a single paragraph not containing lists or other list based objects such as enumerate or center, you can use the primitives hangindent and hangafter:



                    documentclass{article}
                    usepackage{lipsum}

                    newenvironment{reversepar}[1][parindent]
                    {paraddvspace{topsep}hangindent=#1hangafter=1parindent=0ptrelax}
                    {paraddvspace{topsep}}

                    begin{document}

                    lipsum[4]

                    begin{reversepar}
                    lipsum[4]
                    end{reversepar}

                    lipsum[4]

                    end{document}


                    enter image description here



                    You can change the amount of hanging indentation with



                    begin{reversepar}[<dimen>]






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jan 18 at 14:15









                    egregegreg

                    723k8719163219




                    723k8719163219























                        3














                        How about a enumitem-based solution?



                        documentclass{article}
                        usepackage{enumitem}
                        newlist{weirdparagraph}{itemize}{1}
                        setlist[weirdparagraph]{
                        label=,
                        leftmargin=2.5em,
                        itemindent=-leftmargin,
                        listparindent=-leftmargin,
                        partopsep=0pt,
                        topsep=0pt,
                        itemsep=0pt,
                        parsep=parskip
                        }

                        newcommandtest{%
                        Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis
                        facilisis sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet
                        mi nec ante. Donec ullamcorper, felis non sodales commodo, lectus velit ultrices
                        augue, a dignissim nibh lectus placerat pede.%
                        }

                        setlengthparindent{3.5em}
                        setlengthparskip{5pt plus 1pt minus 1pt}

                        begin{document}
                        test

                        test

                        begin{weirdparagraph}
                        item testpartest
                        end{weirdparagraph}

                        test
                        end{document}


                        enumitem






                        share|improve this answer




























                          3














                          How about a enumitem-based solution?



                          documentclass{article}
                          usepackage{enumitem}
                          newlist{weirdparagraph}{itemize}{1}
                          setlist[weirdparagraph]{
                          label=,
                          leftmargin=2.5em,
                          itemindent=-leftmargin,
                          listparindent=-leftmargin,
                          partopsep=0pt,
                          topsep=0pt,
                          itemsep=0pt,
                          parsep=parskip
                          }

                          newcommandtest{%
                          Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis
                          facilisis sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet
                          mi nec ante. Donec ullamcorper, felis non sodales commodo, lectus velit ultrices
                          augue, a dignissim nibh lectus placerat pede.%
                          }

                          setlengthparindent{3.5em}
                          setlengthparskip{5pt plus 1pt minus 1pt}

                          begin{document}
                          test

                          test

                          begin{weirdparagraph}
                          item testpartest
                          end{weirdparagraph}

                          test
                          end{document}


                          enumitem






                          share|improve this answer


























                            3












                            3








                            3







                            How about a enumitem-based solution?



                            documentclass{article}
                            usepackage{enumitem}
                            newlist{weirdparagraph}{itemize}{1}
                            setlist[weirdparagraph]{
                            label=,
                            leftmargin=2.5em,
                            itemindent=-leftmargin,
                            listparindent=-leftmargin,
                            partopsep=0pt,
                            topsep=0pt,
                            itemsep=0pt,
                            parsep=parskip
                            }

                            newcommandtest{%
                            Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis
                            facilisis sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet
                            mi nec ante. Donec ullamcorper, felis non sodales commodo, lectus velit ultrices
                            augue, a dignissim nibh lectus placerat pede.%
                            }

                            setlengthparindent{3.5em}
                            setlengthparskip{5pt plus 1pt minus 1pt}

                            begin{document}
                            test

                            test

                            begin{weirdparagraph}
                            item testpartest
                            end{weirdparagraph}

                            test
                            end{document}


                            enumitem






                            share|improve this answer













                            How about a enumitem-based solution?



                            documentclass{article}
                            usepackage{enumitem}
                            newlist{weirdparagraph}{itemize}{1}
                            setlist[weirdparagraph]{
                            label=,
                            leftmargin=2.5em,
                            itemindent=-leftmargin,
                            listparindent=-leftmargin,
                            partopsep=0pt,
                            topsep=0pt,
                            itemsep=0pt,
                            parsep=parskip
                            }

                            newcommandtest{%
                            Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis
                            facilisis sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet
                            mi nec ante. Donec ullamcorper, felis non sodales commodo, lectus velit ultrices
                            augue, a dignissim nibh lectus placerat pede.%
                            }

                            setlengthparindent{3.5em}
                            setlengthparskip{5pt plus 1pt minus 1pt}

                            begin{document}
                            test

                            test

                            begin{weirdparagraph}
                            item testpartest
                            end{weirdparagraph}

                            test
                            end{document}


                            enumitem







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jan 18 at 14:22









                            Ruixi ZhangRuixi Zhang

                            5,538322




                            5,538322























                                0














                                The hanging package also does it:



                                documentclass{article}
                                usepackage{lipsum, hanging}

                                begin{document}
                                lipsum[1]
                                hangpara{2em}{1}lipsum[2]
                                lipsum[3]
                                end{document}


                                as:



                                enter image description here






                                share|improve this answer




























                                  0














                                  The hanging package also does it:



                                  documentclass{article}
                                  usepackage{lipsum, hanging}

                                  begin{document}
                                  lipsum[1]
                                  hangpara{2em}{1}lipsum[2]
                                  lipsum[3]
                                  end{document}


                                  as:



                                  enter image description here






                                  share|improve this answer


























                                    0












                                    0








                                    0







                                    The hanging package also does it:



                                    documentclass{article}
                                    usepackage{lipsum, hanging}

                                    begin{document}
                                    lipsum[1]
                                    hangpara{2em}{1}lipsum[2]
                                    lipsum[3]
                                    end{document}


                                    as:



                                    enter image description here






                                    share|improve this answer













                                    The hanging package also does it:



                                    documentclass{article}
                                    usepackage{lipsum, hanging}

                                    begin{document}
                                    lipsum[1]
                                    hangpara{2em}{1}lipsum[2]
                                    lipsum[3]
                                    end{document}


                                    as:



                                    enter image description here







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Jan 18 at 14:20









                                    Partha D.Partha D.

                                    1,12718




                                    1,12718






























                                        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%2f470696%2fchange-the-indent-structure-of-a-paragraph%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

                                        'app-layout' is not a known element: how to share Component with different Modules

                                        android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

                                        WPF add header to Image with URL pettitions [duplicate]