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
New contributor
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
New contributor
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
New contributor
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
New contributor
New contributor
edited 13 hours ago
user2148564
New contributor
asked 13 hours ago
user2148564user2148564
454
454
New contributor
New contributor
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
});
}
});
user2148564 is a new contributor. Be nice, and check out our Code of Conduct.
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 13 hours ago
egregegreg
713k8618943182
713k8618943182
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 13 hours ago
Ruixi ZhangRuixi Zhang
5,253321
5,253321
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 13 hours ago
Partha D.Partha D.
46816
46816
add a comment |
add a comment |
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.
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.
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