Change the indent structure of a paragraph
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.
indentation
add a comment |
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.
indentation
add a comment |
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.
indentation
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.
indentation
indentation
edited Jan 18 at 14:08
user2148564
asked Jan 18 at 13:51
user2148564user2148564
454
454
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
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}
You can change the amount of hanging indentation with
begin{reversepar}[<dimen>]
add a comment |
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}
add a comment |
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:
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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}
You can change the amount of hanging indentation with
begin{reversepar}[<dimen>]
add a comment |
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}
You can change the amount of hanging indentation with
begin{reversepar}[<dimen>]
add a comment |
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}
You can change the amount of hanging indentation with
begin{reversepar}[<dimen>]
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}
You can change the amount of hanging indentation with
begin{reversepar}[<dimen>]
answered Jan 18 at 14:15
egregegreg
723k8719163219
723k8719163219
add a comment |
add a comment |
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}
add a comment |
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}
add a comment |
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}
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}
answered Jan 18 at 14:22
Ruixi ZhangRuixi Zhang
5,538322
5,538322
add a comment |
add a comment |
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:
add a comment |
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:
add a comment |
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:
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:
answered Jan 18 at 14:20
Partha D.Partha D.
1,12718
1,12718
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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