Setspace: Make only text body double-spaced and everything else single-spaced
up vote
2
down vote
favorite
For the following MWE, I would like to make only the text body double-spaced without affecting chapter titles and references environment.
begin{filecontents*}{refs.bib}
@article{someguykey2010,
author="SomeGuy",
title="A journal article",
year=2010,
journal="A Journal",
}
@article{someotherguykey2013,
author="SomeOtherGuy",
title="A journal article",
year=2013,
journal="A Journal",
}
end{filecontents*}
documentclass{scrreprt}
usepackage[doublespacing]{setspace}
usepackage{lipsum}
begin{document}
chapter{Chapter\Title}
lipsum[1]
nocite{*}
bibliographystyle{plainnat}
bibliography{refs}
end{document}
koma-script line-spacing setspace
|
show 4 more comments
up vote
2
down vote
favorite
For the following MWE, I would like to make only the text body double-spaced without affecting chapter titles and references environment.
begin{filecontents*}{refs.bib}
@article{someguykey2010,
author="SomeGuy",
title="A journal article",
year=2010,
journal="A Journal",
}
@article{someotherguykey2013,
author="SomeOtherGuy",
title="A journal article",
year=2013,
journal="A Journal",
}
end{filecontents*}
documentclass{scrreprt}
usepackage[doublespacing]{setspace}
usepackage{lipsum}
begin{document}
chapter{Chapter\Title}
lipsum[1]
nocite{*}
bibliographystyle{plainnat}
bibliography{refs}
end{document}
koma-script line-spacing setspace
1
Remove the option when loading the package and instead adddoublespacing
when you really want to start double spacing. Usesinglespacing
to stop double.
– Johannes_B
Aug 2 '16 at 11:27
1
addtokomafont{disposition}{singlespacing}
or betteraddtokomafont{disposition}{linespread{1}}
– Johannes_B
Aug 2 '16 at 11:36
2
As far as i know, setspace does the job best :-)
– Johannes_B
Aug 2 '16 at 11:50
1
@OP It is worth reading the comments provided with thesetspace
package for a sense of why the solution is likely to be less than ideal. @Johannes_B Thesinglespace
environment would be more appropriate thansinglespacing
as the adjustments made are different. I don't know howlinespread
compares, butsinglespacing
is intended for use in the preamble and adds abaselineskip
.singlespace
adds and then subtracts abaselineskip
and is intended for use within the document for portions of text.
– cfr
Aug 2 '16 at 12:18
1
I meant the suggested solution usingsinglespacing
. And, no, I can't provide a good solution. Sorry. As I say, you should read the comments insetspace
to understand why not.
– cfr
Aug 2 '16 at 12:45
|
show 4 more comments
up vote
2
down vote
favorite
up vote
2
down vote
favorite
For the following MWE, I would like to make only the text body double-spaced without affecting chapter titles and references environment.
begin{filecontents*}{refs.bib}
@article{someguykey2010,
author="SomeGuy",
title="A journal article",
year=2010,
journal="A Journal",
}
@article{someotherguykey2013,
author="SomeOtherGuy",
title="A journal article",
year=2013,
journal="A Journal",
}
end{filecontents*}
documentclass{scrreprt}
usepackage[doublespacing]{setspace}
usepackage{lipsum}
begin{document}
chapter{Chapter\Title}
lipsum[1]
nocite{*}
bibliographystyle{plainnat}
bibliography{refs}
end{document}
koma-script line-spacing setspace
For the following MWE, I would like to make only the text body double-spaced without affecting chapter titles and references environment.
begin{filecontents*}{refs.bib}
@article{someguykey2010,
author="SomeGuy",
title="A journal article",
year=2010,
journal="A Journal",
}
@article{someotherguykey2013,
author="SomeOtherGuy",
title="A journal article",
year=2013,
journal="A Journal",
}
end{filecontents*}
documentclass{scrreprt}
usepackage[doublespacing]{setspace}
usepackage{lipsum}
begin{document}
chapter{Chapter\Title}
lipsum[1]
nocite{*}
bibliographystyle{plainnat}
bibliography{refs}
end{document}
koma-script line-spacing setspace
koma-script line-spacing setspace
edited Aug 6 '16 at 8:46
Johannes_B
20.6k249198
20.6k249198
asked Aug 2 '16 at 11:19
Diaa
2,60211644
2,60211644
1
Remove the option when loading the package and instead adddoublespacing
when you really want to start double spacing. Usesinglespacing
to stop double.
– Johannes_B
Aug 2 '16 at 11:27
1
addtokomafont{disposition}{singlespacing}
or betteraddtokomafont{disposition}{linespread{1}}
– Johannes_B
Aug 2 '16 at 11:36
2
As far as i know, setspace does the job best :-)
– Johannes_B
Aug 2 '16 at 11:50
1
@OP It is worth reading the comments provided with thesetspace
package for a sense of why the solution is likely to be less than ideal. @Johannes_B Thesinglespace
environment would be more appropriate thansinglespacing
as the adjustments made are different. I don't know howlinespread
compares, butsinglespacing
is intended for use in the preamble and adds abaselineskip
.singlespace
adds and then subtracts abaselineskip
and is intended for use within the document for portions of text.
– cfr
Aug 2 '16 at 12:18
1
I meant the suggested solution usingsinglespacing
. And, no, I can't provide a good solution. Sorry. As I say, you should read the comments insetspace
to understand why not.
– cfr
Aug 2 '16 at 12:45
|
show 4 more comments
1
Remove the option when loading the package and instead adddoublespacing
when you really want to start double spacing. Usesinglespacing
to stop double.
– Johannes_B
Aug 2 '16 at 11:27
1
addtokomafont{disposition}{singlespacing}
or betteraddtokomafont{disposition}{linespread{1}}
– Johannes_B
Aug 2 '16 at 11:36
2
As far as i know, setspace does the job best :-)
– Johannes_B
Aug 2 '16 at 11:50
1
@OP It is worth reading the comments provided with thesetspace
package for a sense of why the solution is likely to be less than ideal. @Johannes_B Thesinglespace
environment would be more appropriate thansinglespacing
as the adjustments made are different. I don't know howlinespread
compares, butsinglespacing
is intended for use in the preamble and adds abaselineskip
.singlespace
adds and then subtracts abaselineskip
and is intended for use within the document for portions of text.
– cfr
Aug 2 '16 at 12:18
1
I meant the suggested solution usingsinglespacing
. And, no, I can't provide a good solution. Sorry. As I say, you should read the comments insetspace
to understand why not.
– cfr
Aug 2 '16 at 12:45
1
1
Remove the option when loading the package and instead add
doublespacing
when you really want to start double spacing. Use singlespacing
to stop double.– Johannes_B
Aug 2 '16 at 11:27
Remove the option when loading the package and instead add
doublespacing
when you really want to start double spacing. Use singlespacing
to stop double.– Johannes_B
Aug 2 '16 at 11:27
1
1
addtokomafont{disposition}{singlespacing}
or better addtokomafont{disposition}{linespread{1}}
– Johannes_B
Aug 2 '16 at 11:36
addtokomafont{disposition}{singlespacing}
or better addtokomafont{disposition}{linespread{1}}
– Johannes_B
Aug 2 '16 at 11:36
2
2
As far as i know, setspace does the job best :-)
– Johannes_B
Aug 2 '16 at 11:50
As far as i know, setspace does the job best :-)
– Johannes_B
Aug 2 '16 at 11:50
1
1
@OP It is worth reading the comments provided with the
setspace
package for a sense of why the solution is likely to be less than ideal. @Johannes_B The singlespace
environment would be more appropriate than singlespacing
as the adjustments made are different. I don't know how linespread
compares, but singlespacing
is intended for use in the preamble and adds a baselineskip
. singlespace
adds and then subtracts a baselineskip
and is intended for use within the document for portions of text.– cfr
Aug 2 '16 at 12:18
@OP It is worth reading the comments provided with the
setspace
package for a sense of why the solution is likely to be less than ideal. @Johannes_B The singlespace
environment would be more appropriate than singlespacing
as the adjustments made are different. I don't know how linespread
compares, but singlespacing
is intended for use in the preamble and adds a baselineskip
. singlespace
adds and then subtracts a baselineskip
and is intended for use within the document for portions of text.– cfr
Aug 2 '16 at 12:18
1
1
I meant the suggested solution using
singlespacing
. And, no, I can't provide a good solution. Sorry. As I say, you should read the comments in setspace
to understand why not.– cfr
Aug 2 '16 at 12:45
I meant the suggested solution using
singlespacing
. And, no, I can't provide a good solution. Sorry. As I say, you should read the comments in setspace
to understand why not.– cfr
Aug 2 '16 at 12:45
|
show 4 more comments
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
To not use double-spacing for the headings you could add setstretch{1}
to the setting of font element disposition
:
addtokomafont{disposition}{setstretch{1}}
As alternative you also could use linespread{1}
, but in this case you should additionally append selectfont
to the font element somewhere after the linespead
command. Otherwise, if a sectioning level would not have a font setting the activation of the new line-spread would be missing.
If you want a sequence of you document without double-spacing use either environment singlespace
or command singlespacing
. But if you would use this before a chapter heading, the vertical space above the chapter head would change. So for the bibliography better use it after the heading, e.g., using AfterBibliographyPreamble
.
begin{filecontents*}{refs.bib}
@article{someguykey2010,
author="SomeGuy",
title="A journal article",
year=2010,
journal="A Journal",
}
@article{someotherguykey2013,
author="SomeOtherGuy",
title="A journal article",
year=2013,
journal="A Journal",
}
end{filecontents*}
documentclass{scrreprt}
usepackage[doublespacing]{setspace}
usepackage{lipsum}
addtokomafont{disposition}{setstretch{1}}
begin{document}
chapter{Chapter\Title}
lipsum[1]
nocite{*}
AfterBibliographyPreamble{singlespacing}
bibliographystyle{plainnat}
bibliography{refs}
end{document}
results in:
You could also use the opposite: Use doublespacing
environment only for those sequences of your document that should be double-spaced:
begin{filecontents*}{refs.bib}
@article{someguykey2010,
author="SomeGuy",
title="A journal article",
year=2010,
journal="A Journal",
}
@article{someotherguykey2013,
author="SomeOtherGuy",
title="A journal article",
year=2013,
journal="A Journal",
}
end{filecontents*}
documentclass{scrreprt}
usepackage{setspace}
usepackage{lipsum}
addtokomafont{disposition}{setstretch{1}}
begin{document}
chapter{Chapter\Title}
begin{doublespacing}
lipsum[1]
end{doublespacing}
nocite{*}
bibliographystyle{plainnat}
bibliography{refs}
end{document}
Here the space about chapter heading would be different from the example above:
Thanks for your answer. May I know what you mean by addingselectfont
in your statement"as alternative you also could use linespread{1}, but in this case you should also add selectfont"
? Where should I add it?
– Diaa
May 1 '17 at 15:40
1
@DiaaAbidou: Seefntguide
, section 2.2.
– Schweinebacke
May 2 '17 at 6:58
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
To not use double-spacing for the headings you could add setstretch{1}
to the setting of font element disposition
:
addtokomafont{disposition}{setstretch{1}}
As alternative you also could use linespread{1}
, but in this case you should additionally append selectfont
to the font element somewhere after the linespead
command. Otherwise, if a sectioning level would not have a font setting the activation of the new line-spread would be missing.
If you want a sequence of you document without double-spacing use either environment singlespace
or command singlespacing
. But if you would use this before a chapter heading, the vertical space above the chapter head would change. So for the bibliography better use it after the heading, e.g., using AfterBibliographyPreamble
.
begin{filecontents*}{refs.bib}
@article{someguykey2010,
author="SomeGuy",
title="A journal article",
year=2010,
journal="A Journal",
}
@article{someotherguykey2013,
author="SomeOtherGuy",
title="A journal article",
year=2013,
journal="A Journal",
}
end{filecontents*}
documentclass{scrreprt}
usepackage[doublespacing]{setspace}
usepackage{lipsum}
addtokomafont{disposition}{setstretch{1}}
begin{document}
chapter{Chapter\Title}
lipsum[1]
nocite{*}
AfterBibliographyPreamble{singlespacing}
bibliographystyle{plainnat}
bibliography{refs}
end{document}
results in:
You could also use the opposite: Use doublespacing
environment only for those sequences of your document that should be double-spaced:
begin{filecontents*}{refs.bib}
@article{someguykey2010,
author="SomeGuy",
title="A journal article",
year=2010,
journal="A Journal",
}
@article{someotherguykey2013,
author="SomeOtherGuy",
title="A journal article",
year=2013,
journal="A Journal",
}
end{filecontents*}
documentclass{scrreprt}
usepackage{setspace}
usepackage{lipsum}
addtokomafont{disposition}{setstretch{1}}
begin{document}
chapter{Chapter\Title}
begin{doublespacing}
lipsum[1]
end{doublespacing}
nocite{*}
bibliographystyle{plainnat}
bibliography{refs}
end{document}
Here the space about chapter heading would be different from the example above:
Thanks for your answer. May I know what you mean by addingselectfont
in your statement"as alternative you also could use linespread{1}, but in this case you should also add selectfont"
? Where should I add it?
– Diaa
May 1 '17 at 15:40
1
@DiaaAbidou: Seefntguide
, section 2.2.
– Schweinebacke
May 2 '17 at 6:58
add a comment |
up vote
2
down vote
accepted
To not use double-spacing for the headings you could add setstretch{1}
to the setting of font element disposition
:
addtokomafont{disposition}{setstretch{1}}
As alternative you also could use linespread{1}
, but in this case you should additionally append selectfont
to the font element somewhere after the linespead
command. Otherwise, if a sectioning level would not have a font setting the activation of the new line-spread would be missing.
If you want a sequence of you document without double-spacing use either environment singlespace
or command singlespacing
. But if you would use this before a chapter heading, the vertical space above the chapter head would change. So for the bibliography better use it after the heading, e.g., using AfterBibliographyPreamble
.
begin{filecontents*}{refs.bib}
@article{someguykey2010,
author="SomeGuy",
title="A journal article",
year=2010,
journal="A Journal",
}
@article{someotherguykey2013,
author="SomeOtherGuy",
title="A journal article",
year=2013,
journal="A Journal",
}
end{filecontents*}
documentclass{scrreprt}
usepackage[doublespacing]{setspace}
usepackage{lipsum}
addtokomafont{disposition}{setstretch{1}}
begin{document}
chapter{Chapter\Title}
lipsum[1]
nocite{*}
AfterBibliographyPreamble{singlespacing}
bibliographystyle{plainnat}
bibliography{refs}
end{document}
results in:
You could also use the opposite: Use doublespacing
environment only for those sequences of your document that should be double-spaced:
begin{filecontents*}{refs.bib}
@article{someguykey2010,
author="SomeGuy",
title="A journal article",
year=2010,
journal="A Journal",
}
@article{someotherguykey2013,
author="SomeOtherGuy",
title="A journal article",
year=2013,
journal="A Journal",
}
end{filecontents*}
documentclass{scrreprt}
usepackage{setspace}
usepackage{lipsum}
addtokomafont{disposition}{setstretch{1}}
begin{document}
chapter{Chapter\Title}
begin{doublespacing}
lipsum[1]
end{doublespacing}
nocite{*}
bibliographystyle{plainnat}
bibliography{refs}
end{document}
Here the space about chapter heading would be different from the example above:
Thanks for your answer. May I know what you mean by addingselectfont
in your statement"as alternative you also could use linespread{1}, but in this case you should also add selectfont"
? Where should I add it?
– Diaa
May 1 '17 at 15:40
1
@DiaaAbidou: Seefntguide
, section 2.2.
– Schweinebacke
May 2 '17 at 6:58
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
To not use double-spacing for the headings you could add setstretch{1}
to the setting of font element disposition
:
addtokomafont{disposition}{setstretch{1}}
As alternative you also could use linespread{1}
, but in this case you should additionally append selectfont
to the font element somewhere after the linespead
command. Otherwise, if a sectioning level would not have a font setting the activation of the new line-spread would be missing.
If you want a sequence of you document without double-spacing use either environment singlespace
or command singlespacing
. But if you would use this before a chapter heading, the vertical space above the chapter head would change. So for the bibliography better use it after the heading, e.g., using AfterBibliographyPreamble
.
begin{filecontents*}{refs.bib}
@article{someguykey2010,
author="SomeGuy",
title="A journal article",
year=2010,
journal="A Journal",
}
@article{someotherguykey2013,
author="SomeOtherGuy",
title="A journal article",
year=2013,
journal="A Journal",
}
end{filecontents*}
documentclass{scrreprt}
usepackage[doublespacing]{setspace}
usepackage{lipsum}
addtokomafont{disposition}{setstretch{1}}
begin{document}
chapter{Chapter\Title}
lipsum[1]
nocite{*}
AfterBibliographyPreamble{singlespacing}
bibliographystyle{plainnat}
bibliography{refs}
end{document}
results in:
You could also use the opposite: Use doublespacing
environment only for those sequences of your document that should be double-spaced:
begin{filecontents*}{refs.bib}
@article{someguykey2010,
author="SomeGuy",
title="A journal article",
year=2010,
journal="A Journal",
}
@article{someotherguykey2013,
author="SomeOtherGuy",
title="A journal article",
year=2013,
journal="A Journal",
}
end{filecontents*}
documentclass{scrreprt}
usepackage{setspace}
usepackage{lipsum}
addtokomafont{disposition}{setstretch{1}}
begin{document}
chapter{Chapter\Title}
begin{doublespacing}
lipsum[1]
end{doublespacing}
nocite{*}
bibliographystyle{plainnat}
bibliography{refs}
end{document}
Here the space about chapter heading would be different from the example above:
To not use double-spacing for the headings you could add setstretch{1}
to the setting of font element disposition
:
addtokomafont{disposition}{setstretch{1}}
As alternative you also could use linespread{1}
, but in this case you should additionally append selectfont
to the font element somewhere after the linespead
command. Otherwise, if a sectioning level would not have a font setting the activation of the new line-spread would be missing.
If you want a sequence of you document without double-spacing use either environment singlespace
or command singlespacing
. But if you would use this before a chapter heading, the vertical space above the chapter head would change. So for the bibliography better use it after the heading, e.g., using AfterBibliographyPreamble
.
begin{filecontents*}{refs.bib}
@article{someguykey2010,
author="SomeGuy",
title="A journal article",
year=2010,
journal="A Journal",
}
@article{someotherguykey2013,
author="SomeOtherGuy",
title="A journal article",
year=2013,
journal="A Journal",
}
end{filecontents*}
documentclass{scrreprt}
usepackage[doublespacing]{setspace}
usepackage{lipsum}
addtokomafont{disposition}{setstretch{1}}
begin{document}
chapter{Chapter\Title}
lipsum[1]
nocite{*}
AfterBibliographyPreamble{singlespacing}
bibliographystyle{plainnat}
bibliography{refs}
end{document}
results in:
You could also use the opposite: Use doublespacing
environment only for those sequences of your document that should be double-spaced:
begin{filecontents*}{refs.bib}
@article{someguykey2010,
author="SomeGuy",
title="A journal article",
year=2010,
journal="A Journal",
}
@article{someotherguykey2013,
author="SomeOtherGuy",
title="A journal article",
year=2013,
journal="A Journal",
}
end{filecontents*}
documentclass{scrreprt}
usepackage{setspace}
usepackage{lipsum}
addtokomafont{disposition}{setstretch{1}}
begin{document}
chapter{Chapter\Title}
begin{doublespacing}
lipsum[1]
end{doublespacing}
nocite{*}
bibliographystyle{plainnat}
bibliography{refs}
end{document}
Here the space about chapter heading would be different from the example above:
edited Nov 15 at 17:54
Loes
74
74
answered Apr 18 '17 at 11:51
Schweinebacke
20.9k4373
20.9k4373
Thanks for your answer. May I know what you mean by addingselectfont
in your statement"as alternative you also could use linespread{1}, but in this case you should also add selectfont"
? Where should I add it?
– Diaa
May 1 '17 at 15:40
1
@DiaaAbidou: Seefntguide
, section 2.2.
– Schweinebacke
May 2 '17 at 6:58
add a comment |
Thanks for your answer. May I know what you mean by addingselectfont
in your statement"as alternative you also could use linespread{1}, but in this case you should also add selectfont"
? Where should I add it?
– Diaa
May 1 '17 at 15:40
1
@DiaaAbidou: Seefntguide
, section 2.2.
– Schweinebacke
May 2 '17 at 6:58
Thanks for your answer. May I know what you mean by adding
selectfont
in your statement "as alternative you also could use linespread{1}, but in this case you should also add selectfont"
? Where should I add it?– Diaa
May 1 '17 at 15:40
Thanks for your answer. May I know what you mean by adding
selectfont
in your statement "as alternative you also could use linespread{1}, but in this case you should also add selectfont"
? Where should I add it?– Diaa
May 1 '17 at 15:40
1
1
@DiaaAbidou: See
fntguide
, section 2.2.– Schweinebacke
May 2 '17 at 6:58
@DiaaAbidou: See
fntguide
, section 2.2.– Schweinebacke
May 2 '17 at 6:58
add a comment |
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%2f322018%2fsetspace-make-only-text-body-double-spaced-and-everything-else-single-spaced%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
1
Remove the option when loading the package and instead add
doublespacing
when you really want to start double spacing. Usesinglespacing
to stop double.– Johannes_B
Aug 2 '16 at 11:27
1
addtokomafont{disposition}{singlespacing}
or betteraddtokomafont{disposition}{linespread{1}}
– Johannes_B
Aug 2 '16 at 11:36
2
As far as i know, setspace does the job best :-)
– Johannes_B
Aug 2 '16 at 11:50
1
@OP It is worth reading the comments provided with the
setspace
package for a sense of why the solution is likely to be less than ideal. @Johannes_B Thesinglespace
environment would be more appropriate thansinglespacing
as the adjustments made are different. I don't know howlinespread
compares, butsinglespacing
is intended for use in the preamble and adds abaselineskip
.singlespace
adds and then subtracts abaselineskip
and is intended for use within the document for portions of text.– cfr
Aug 2 '16 at 12:18
1
I meant the suggested solution using
singlespacing
. And, no, I can't provide a good solution. Sorry. As I say, you should read the comments insetspace
to understand why not.– cfr
Aug 2 '16 at 12:45