Adjust starting of second line
Question: How can i push the second line in such a way that it will start exactly, where the first line started without disturbing ideal line spacing?
My MWE is:
documentclass[12pt, a4paper]{article}
usepackage[top=0.7 in,bottom=0.5 in,left=0.6 in,right=0.6 in]{geometry}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{parskip}
%line spacing
renewcommand{baselinestretch}{1.10}
%reduce top margin
addtolength{headsep}{-0.45cm}
begin{document}
(1)~This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
end{document}
line-breaking
|
show 5 more comments
Question: How can i push the second line in such a way that it will start exactly, where the first line started without disturbing ideal line spacing?
My MWE is:
documentclass[12pt, a4paper]{article}
usepackage[top=0.7 in,bottom=0.5 in,left=0.6 in,right=0.6 in]{geometry}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{parskip}
%line spacing
renewcommand{baselinestretch}{1.10}
%reduce top margin
addtolength{headsep}{-0.45cm}
begin{document}
(1)~This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
end{document}
line-breaking
3
Does this number indicate you want to enumerate?
– TeXnician
Mar 7 at 8:50
2
I suggest you usebegin{enumerate} item This is ... item This is another .... end{enumerate}
for lists. The indentation should be more visually pleasing then.
– moewe
Mar 7 at 8:50
@moewe will not enclose the counter with parentheses by default.
– Denis
Mar 7 at 8:56
@Denis Well yes, but that is something that can be configured (quite easily even with packages likeenumitem
) if so desired. The question is not so much whether or notenumerate
gives the exact expected output from the start (it can be configured quite extensively), the question is whether semantically it is the right choice here, i.e. if the OP wants to typeset a numbered list.
– moewe
Mar 7 at 8:58
@moewe Sure. This was the motivation of my obvious answer that builds on your comment.
– Denis
Mar 7 at 9:00
|
show 5 more comments
Question: How can i push the second line in such a way that it will start exactly, where the first line started without disturbing ideal line spacing?
My MWE is:
documentclass[12pt, a4paper]{article}
usepackage[top=0.7 in,bottom=0.5 in,left=0.6 in,right=0.6 in]{geometry}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{parskip}
%line spacing
renewcommand{baselinestretch}{1.10}
%reduce top margin
addtolength{headsep}{-0.45cm}
begin{document}
(1)~This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
end{document}
line-breaking
Question: How can i push the second line in such a way that it will start exactly, where the first line started without disturbing ideal line spacing?
My MWE is:
documentclass[12pt, a4paper]{article}
usepackage[top=0.7 in,bottom=0.5 in,left=0.6 in,right=0.6 in]{geometry}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{parskip}
%line spacing
renewcommand{baselinestretch}{1.10}
%reduce top margin
addtolength{headsep}{-0.45cm}
begin{document}
(1)~This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
end{document}
line-breaking
line-breaking
edited Mar 7 at 8:49
Sebastiano
11.2k42166
11.2k42166
asked Mar 7 at 8:47
SandySandy
771915
771915
3
Does this number indicate you want to enumerate?
– TeXnician
Mar 7 at 8:50
2
I suggest you usebegin{enumerate} item This is ... item This is another .... end{enumerate}
for lists. The indentation should be more visually pleasing then.
– moewe
Mar 7 at 8:50
@moewe will not enclose the counter with parentheses by default.
– Denis
Mar 7 at 8:56
@Denis Well yes, but that is something that can be configured (quite easily even with packages likeenumitem
) if so desired. The question is not so much whether or notenumerate
gives the exact expected output from the start (it can be configured quite extensively), the question is whether semantically it is the right choice here, i.e. if the OP wants to typeset a numbered list.
– moewe
Mar 7 at 8:58
@moewe Sure. This was the motivation of my obvious answer that builds on your comment.
– Denis
Mar 7 at 9:00
|
show 5 more comments
3
Does this number indicate you want to enumerate?
– TeXnician
Mar 7 at 8:50
2
I suggest you usebegin{enumerate} item This is ... item This is another .... end{enumerate}
for lists. The indentation should be more visually pleasing then.
– moewe
Mar 7 at 8:50
@moewe will not enclose the counter with parentheses by default.
– Denis
Mar 7 at 8:56
@Denis Well yes, but that is something that can be configured (quite easily even with packages likeenumitem
) if so desired. The question is not so much whether or notenumerate
gives the exact expected output from the start (it can be configured quite extensively), the question is whether semantically it is the right choice here, i.e. if the OP wants to typeset a numbered list.
– moewe
Mar 7 at 8:58
@moewe Sure. This was the motivation of my obvious answer that builds on your comment.
– Denis
Mar 7 at 9:00
3
3
Does this number indicate you want to enumerate?
– TeXnician
Mar 7 at 8:50
Does this number indicate you want to enumerate?
– TeXnician
Mar 7 at 8:50
2
2
I suggest you use
begin{enumerate} item This is ... item This is another .... end{enumerate}
for lists. The indentation should be more visually pleasing then.– moewe
Mar 7 at 8:50
I suggest you use
begin{enumerate} item This is ... item This is another .... end{enumerate}
for lists. The indentation should be more visually pleasing then.– moewe
Mar 7 at 8:50
@moewe will not enclose the counter with parentheses by default.
– Denis
Mar 7 at 8:56
@moewe will not enclose the counter with parentheses by default.
– Denis
Mar 7 at 8:56
@Denis Well yes, but that is something that can be configured (quite easily even with packages like
enumitem
) if so desired. The question is not so much whether or not enumerate
gives the exact expected output from the start (it can be configured quite extensively), the question is whether semantically it is the right choice here, i.e. if the OP wants to typeset a numbered list.– moewe
Mar 7 at 8:58
@Denis Well yes, but that is something that can be configured (quite easily even with packages like
enumitem
) if so desired. The question is not so much whether or not enumerate
gives the exact expected output from the start (it can be configured quite extensively), the question is whether semantically it is the right choice here, i.e. if the OP wants to typeset a numbered list.– moewe
Mar 7 at 8:58
@moewe Sure. This was the motivation of my obvious answer that builds on your comment.
– Denis
Mar 7 at 9:00
@moewe Sure. This was the motivation of my obvious answer that builds on your comment.
– Denis
Mar 7 at 9:00
|
show 5 more comments
2 Answers
2
active
oldest
votes
To expand on the comment by @moewe: you can use the enumerate
environment to number the lines, which aligns the text automatically. By default the numbers appear as 1.
, 2.
etc. There are several ways to change the appearance of the numbers. An easy way is to use the enumitem
package with the option shortlabels
as in https://tex.stackexchange.com/a/2294/, and specify the label as [(1)]
at the start of your enumerate
environment. MWE:
documentclass[12pt, a4paper]{article}
usepackage[top=0.7 in,bottom=0.5 in,left=0.6 in,right=0.6 in]{geometry}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{parskip}
usepackage[shortlabels]{enumitem}
%line spacing
renewcommand{baselinestretch}{1.10}
%reduce top margin
addtolength{headsep}{-0.45cm}
begin{document}
begin{enumerate}[(1)]
item This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
item This is the second line.
end{enumerate}
end{document}
Result:
Edit: if you don't want an indent then you can change the leftmargin
parameter of the enumerate
environment. If you set it to labelwidth
then the margin will be just big enough to allow the number to be printed and the indent is gone. However, the width of the label is slightly bigger than the printed number, so it still looks a little bit misaligned with regular text. This may not necessarily be bad typographically, but if you want you can shift the number further left by manually setting the labelwidth.
MWE:
blindtext
begin{enumerate}[(1),leftmargin=labelwidth]
item This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
item This is the second line.
end{enumerate}
begin{enumerate}[(1),labelwidth=7.6mm,leftmargin=labelwidth]
item This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
item This is the second line.
end{enumerate}
Result:
add a comment |
In case that you need some more that a conventional list, or you like a very simplified syntax, there are linguex
. Note that as show in the example below, it matter if there are more of one blank line between the item and a not numbered paragraph, unlike in most situations in LaTeX documents, where the number of blank lines (=par
) is irrelevant.
documentclass{book}
usepackage{linguex}
usepackage{lipsum} % for nice dummy text (always "This is the first line" is boring ...)
begin{document}
lipsum[1][1-2]
ex. lipsum[1][3-4]
ex. lipsum[1][5-6]
lipsum[6][1-3]
ex. lipsum[1][7-9]
lipsum[2][1-3]
ex. lipsum[3][1-3]
ex. lipsum[4][1-3]
lipsum[5][1-4]
end{document}
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%2f478146%2fadjust-starting-of-second-line%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
To expand on the comment by @moewe: you can use the enumerate
environment to number the lines, which aligns the text automatically. By default the numbers appear as 1.
, 2.
etc. There are several ways to change the appearance of the numbers. An easy way is to use the enumitem
package with the option shortlabels
as in https://tex.stackexchange.com/a/2294/, and specify the label as [(1)]
at the start of your enumerate
environment. MWE:
documentclass[12pt, a4paper]{article}
usepackage[top=0.7 in,bottom=0.5 in,left=0.6 in,right=0.6 in]{geometry}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{parskip}
usepackage[shortlabels]{enumitem}
%line spacing
renewcommand{baselinestretch}{1.10}
%reduce top margin
addtolength{headsep}{-0.45cm}
begin{document}
begin{enumerate}[(1)]
item This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
item This is the second line.
end{enumerate}
end{document}
Result:
Edit: if you don't want an indent then you can change the leftmargin
parameter of the enumerate
environment. If you set it to labelwidth
then the margin will be just big enough to allow the number to be printed and the indent is gone. However, the width of the label is slightly bigger than the printed number, so it still looks a little bit misaligned with regular text. This may not necessarily be bad typographically, but if you want you can shift the number further left by manually setting the labelwidth.
MWE:
blindtext
begin{enumerate}[(1),leftmargin=labelwidth]
item This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
item This is the second line.
end{enumerate}
begin{enumerate}[(1),labelwidth=7.6mm,leftmargin=labelwidth]
item This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
item This is the second line.
end{enumerate}
Result:
add a comment |
To expand on the comment by @moewe: you can use the enumerate
environment to number the lines, which aligns the text automatically. By default the numbers appear as 1.
, 2.
etc. There are several ways to change the appearance of the numbers. An easy way is to use the enumitem
package with the option shortlabels
as in https://tex.stackexchange.com/a/2294/, and specify the label as [(1)]
at the start of your enumerate
environment. MWE:
documentclass[12pt, a4paper]{article}
usepackage[top=0.7 in,bottom=0.5 in,left=0.6 in,right=0.6 in]{geometry}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{parskip}
usepackage[shortlabels]{enumitem}
%line spacing
renewcommand{baselinestretch}{1.10}
%reduce top margin
addtolength{headsep}{-0.45cm}
begin{document}
begin{enumerate}[(1)]
item This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
item This is the second line.
end{enumerate}
end{document}
Result:
Edit: if you don't want an indent then you can change the leftmargin
parameter of the enumerate
environment. If you set it to labelwidth
then the margin will be just big enough to allow the number to be printed and the indent is gone. However, the width of the label is slightly bigger than the printed number, so it still looks a little bit misaligned with regular text. This may not necessarily be bad typographically, but if you want you can shift the number further left by manually setting the labelwidth.
MWE:
blindtext
begin{enumerate}[(1),leftmargin=labelwidth]
item This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
item This is the second line.
end{enumerate}
begin{enumerate}[(1),labelwidth=7.6mm,leftmargin=labelwidth]
item This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
item This is the second line.
end{enumerate}
Result:
add a comment |
To expand on the comment by @moewe: you can use the enumerate
environment to number the lines, which aligns the text automatically. By default the numbers appear as 1.
, 2.
etc. There are several ways to change the appearance of the numbers. An easy way is to use the enumitem
package with the option shortlabels
as in https://tex.stackexchange.com/a/2294/, and specify the label as [(1)]
at the start of your enumerate
environment. MWE:
documentclass[12pt, a4paper]{article}
usepackage[top=0.7 in,bottom=0.5 in,left=0.6 in,right=0.6 in]{geometry}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{parskip}
usepackage[shortlabels]{enumitem}
%line spacing
renewcommand{baselinestretch}{1.10}
%reduce top margin
addtolength{headsep}{-0.45cm}
begin{document}
begin{enumerate}[(1)]
item This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
item This is the second line.
end{enumerate}
end{document}
Result:
Edit: if you don't want an indent then you can change the leftmargin
parameter of the enumerate
environment. If you set it to labelwidth
then the margin will be just big enough to allow the number to be printed and the indent is gone. However, the width of the label is slightly bigger than the printed number, so it still looks a little bit misaligned with regular text. This may not necessarily be bad typographically, but if you want you can shift the number further left by manually setting the labelwidth.
MWE:
blindtext
begin{enumerate}[(1),leftmargin=labelwidth]
item This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
item This is the second line.
end{enumerate}
begin{enumerate}[(1),labelwidth=7.6mm,leftmargin=labelwidth]
item This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
item This is the second line.
end{enumerate}
Result:
To expand on the comment by @moewe: you can use the enumerate
environment to number the lines, which aligns the text automatically. By default the numbers appear as 1.
, 2.
etc. There are several ways to change the appearance of the numbers. An easy way is to use the enumitem
package with the option shortlabels
as in https://tex.stackexchange.com/a/2294/, and specify the label as [(1)]
at the start of your enumerate
environment. MWE:
documentclass[12pt, a4paper]{article}
usepackage[top=0.7 in,bottom=0.5 in,left=0.6 in,right=0.6 in]{geometry}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{parskip}
usepackage[shortlabels]{enumitem}
%line spacing
renewcommand{baselinestretch}{1.10}
%reduce top margin
addtolength{headsep}{-0.45cm}
begin{document}
begin{enumerate}[(1)]
item This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
item This is the second line.
end{enumerate}
end{document}
Result:
Edit: if you don't want an indent then you can change the leftmargin
parameter of the enumerate
environment. If you set it to labelwidth
then the margin will be just big enough to allow the number to be printed and the indent is gone. However, the width of the label is slightly bigger than the printed number, so it still looks a little bit misaligned with regular text. This may not necessarily be bad typographically, but if you want you can shift the number further left by manually setting the labelwidth.
MWE:
blindtext
begin{enumerate}[(1),leftmargin=labelwidth]
item This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
item This is the second line.
end{enumerate}
begin{enumerate}[(1),labelwidth=7.6mm,leftmargin=labelwidth]
item This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
item This is the second line.
end{enumerate}
Result:
edited Mar 7 at 11:00
answered Mar 7 at 8:57
MarijnMarijn
8,479639
8,479639
add a comment |
add a comment |
In case that you need some more that a conventional list, or you like a very simplified syntax, there are linguex
. Note that as show in the example below, it matter if there are more of one blank line between the item and a not numbered paragraph, unlike in most situations in LaTeX documents, where the number of blank lines (=par
) is irrelevant.
documentclass{book}
usepackage{linguex}
usepackage{lipsum} % for nice dummy text (always "This is the first line" is boring ...)
begin{document}
lipsum[1][1-2]
ex. lipsum[1][3-4]
ex. lipsum[1][5-6]
lipsum[6][1-3]
ex. lipsum[1][7-9]
lipsum[2][1-3]
ex. lipsum[3][1-3]
ex. lipsum[4][1-3]
lipsum[5][1-4]
end{document}
add a comment |
In case that you need some more that a conventional list, or you like a very simplified syntax, there are linguex
. Note that as show in the example below, it matter if there are more of one blank line between the item and a not numbered paragraph, unlike in most situations in LaTeX documents, where the number of blank lines (=par
) is irrelevant.
documentclass{book}
usepackage{linguex}
usepackage{lipsum} % for nice dummy text (always "This is the first line" is boring ...)
begin{document}
lipsum[1][1-2]
ex. lipsum[1][3-4]
ex. lipsum[1][5-6]
lipsum[6][1-3]
ex. lipsum[1][7-9]
lipsum[2][1-3]
ex. lipsum[3][1-3]
ex. lipsum[4][1-3]
lipsum[5][1-4]
end{document}
add a comment |
In case that you need some more that a conventional list, or you like a very simplified syntax, there are linguex
. Note that as show in the example below, it matter if there are more of one blank line between the item and a not numbered paragraph, unlike in most situations in LaTeX documents, where the number of blank lines (=par
) is irrelevant.
documentclass{book}
usepackage{linguex}
usepackage{lipsum} % for nice dummy text (always "This is the first line" is boring ...)
begin{document}
lipsum[1][1-2]
ex. lipsum[1][3-4]
ex. lipsum[1][5-6]
lipsum[6][1-3]
ex. lipsum[1][7-9]
lipsum[2][1-3]
ex. lipsum[3][1-3]
ex. lipsum[4][1-3]
lipsum[5][1-4]
end{document}
In case that you need some more that a conventional list, or you like a very simplified syntax, there are linguex
. Note that as show in the example below, it matter if there are more of one blank line between the item and a not numbered paragraph, unlike in most situations in LaTeX documents, where the number of blank lines (=par
) is irrelevant.
documentclass{book}
usepackage{linguex}
usepackage{lipsum} % for nice dummy text (always "This is the first line" is boring ...)
begin{document}
lipsum[1][1-2]
ex. lipsum[1][3-4]
ex. lipsum[1][5-6]
lipsum[6][1-3]
ex. lipsum[1][7-9]
lipsum[2][1-3]
ex. lipsum[3][1-3]
ex. lipsum[4][1-3]
lipsum[5][1-4]
end{document}
edited Mar 7 at 12:30
answered Mar 7 at 10:29
FranFran
53.6k6121183
53.6k6121183
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%2f478146%2fadjust-starting-of-second-line%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
3
Does this number indicate you want to enumerate?
– TeXnician
Mar 7 at 8:50
2
I suggest you use
begin{enumerate} item This is ... item This is another .... end{enumerate}
for lists. The indentation should be more visually pleasing then.– moewe
Mar 7 at 8:50
@moewe will not enclose the counter with parentheses by default.
– Denis
Mar 7 at 8:56
@Denis Well yes, but that is something that can be configured (quite easily even with packages like
enumitem
) if so desired. The question is not so much whether or notenumerate
gives the exact expected output from the start (it can be configured quite extensively), the question is whether semantically it is the right choice here, i.e. if the OP wants to typeset a numbered list.– moewe
Mar 7 at 8:58
@moewe Sure. This was the motivation of my obvious answer that builds on your comment.
– Denis
Mar 7 at 9:00