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









New contributor




user2148564 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    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









    New contributor




    user2148564 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      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









      New contributor




      user2148564 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      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









      New contributor




      user2148564 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      user2148564 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 13 hours ago







      user2148564













      New contributor




      user2148564 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 13 hours ago









      user2148564user2148564

      454




      454




      New contributor




      user2148564 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      user2148564 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      user2148564 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          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































            2














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


                }
                });






                user2148564 is a new contributor. Be nice, and check out our Code of Conduct.










                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 13 hours ago









                    egregegreg

                    713k8618943182




                    713k8618943182























                        2














                        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




























                          2














                          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


























                            2












                            2








                            2







                            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 13 hours ago









                            Ruixi ZhangRuixi Zhang

                            5,253321




                            5,253321























                                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 13 hours ago









                                    Partha D.Partha D.

                                    46816




                                    46816






















                                        user2148564 is a new contributor. Be nice, and check out our Code of Conduct.










                                        draft saved

                                        draft discarded


















                                        user2148564 is a new contributor. Be nice, and check out our Code of Conduct.













                                        user2148564 is a new contributor. Be nice, and check out our Code of Conduct.












                                        user2148564 is a new contributor. Be nice, and check out our Code of Conduct.
















                                        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

                                        SQL Server 17 - Attemping to backup to remote NAS but Access is denied

                                        Always On Availability groups resolving state after failover - Remote harden of transaction...

                                        Restoring from pg_dump with foreign key constraints