Change line spacing inside the document











up vote
85
down vote

favorite
29












This is my code



documentclass[12pt,a4paper]{book} 
renewcommand{baselinestretch}{1.5}
begin{document}
include{Chapter1}
end{document}


I have please a question:



I would change the line spacing (1.5 --> 1.0) of a page inside the document and not the entire document and the size of the words, how can I do please?










share|improve this question
























  • after using your code my chapters start being displayed on the left side (which is odd and wrong) - how can I make latex display them on the right (also known as the right) side again? I'm using the {book} class.
    – TheChymera
    Nov 14 '13 at 19:19















up vote
85
down vote

favorite
29












This is my code



documentclass[12pt,a4paper]{book} 
renewcommand{baselinestretch}{1.5}
begin{document}
include{Chapter1}
end{document}


I have please a question:



I would change the line spacing (1.5 --> 1.0) of a page inside the document and not the entire document and the size of the words, how can I do please?










share|improve this question
























  • after using your code my chapters start being displayed on the left side (which is odd and wrong) - how can I make latex display them on the right (also known as the right) side again? I'm using the {book} class.
    – TheChymera
    Nov 14 '13 at 19:19













up vote
85
down vote

favorite
29









up vote
85
down vote

favorite
29






29





This is my code



documentclass[12pt,a4paper]{book} 
renewcommand{baselinestretch}{1.5}
begin{document}
include{Chapter1}
end{document}


I have please a question:



I would change the line spacing (1.5 --> 1.0) of a page inside the document and not the entire document and the size of the words, how can I do please?










share|improve this question















This is my code



documentclass[12pt,a4paper]{book} 
renewcommand{baselinestretch}{1.5}
begin{document}
include{Chapter1}
end{document}


I have please a question:



I would change the line spacing (1.5 --> 1.0) of a page inside the document and not the entire document and the size of the words, how can I do please?







line-spacing






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 21 '12 at 21:52

























asked Nov 22 '12 at 21:27









researcher

1,53062739




1,53062739












  • after using your code my chapters start being displayed on the left side (which is odd and wrong) - how can I make latex display them on the right (also known as the right) side again? I'm using the {book} class.
    – TheChymera
    Nov 14 '13 at 19:19


















  • after using your code my chapters start being displayed on the left side (which is odd and wrong) - how can I make latex display them on the right (also known as the right) side again? I'm using the {book} class.
    – TheChymera
    Nov 14 '13 at 19:19
















after using your code my chapters start being displayed on the left side (which is odd and wrong) - how can I make latex display them on the right (also known as the right) side again? I'm using the {book} class.
– TheChymera
Nov 14 '13 at 19:19




after using your code my chapters start being displayed on the left side (which is odd and wrong) - how can I make latex display them on the right (also known as the right) side again? I'm using the {book} class.
– TheChymera
Nov 14 '13 at 19:19










1 Answer
1






active

oldest

votes

















up vote
93
down vote



accepted










You can use setstretch{}. If you want to only affect a certain content you can use it with a group.



enter image description here



You can also apply any size changing switches such as small or tiny inside the {} group as well.



Code



documentclass[12pt,a4paper]{book} 
usepackage{xcolor}
usepackage{lipsum}
usepackage{setspace}

renewcommand{baselinestretch}{1.5}

begin{document}
lipsum[1]
{setstretch{1.0}color{blue}
lipsum[2]
}
lipsum[3]
end{document}





share|improve this answer



















  • 9




    Just remember to end the paragraph before the final } (lipsum adds a par at its end). Using linespread{1.5} (or some command of setspace) is better than redefining baselinestretch.
    – egreg
    Nov 22 '12 at 21:47












  • @Peter Thank you so much :) Please i have another question: i have used documentclass[12pt,a4paper]{book} and i'd like to change the size 12 to 10 of one paragraph inside the document, Have you an idea please ?
    – researcher
    Dec 21 '12 at 13:25






  • 1




    @researcher: You could try using the answers from LaTeX — specify font point size? and keep the change to be within a group (either inside a brace group {}, or within begingroup, endgroup pair. If that does not help you achieve the desired results you should post a separate question. Also, please note that you should use the full username with the @ syntax. I was only notified of this as it was a comment to an answer of mine.
    – Peter Grill
    Dec 21 '12 at 19:01












  • i set fontsize{10} just before the text ?
    – researcher
    Dec 21 '12 at 19:19










  • @researcher: fontsize has two parameters, not one.
    – Peter Grill
    Dec 21 '12 at 19:20













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


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f83855%2fchange-line-spacing-inside-the-document%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
93
down vote



accepted










You can use setstretch{}. If you want to only affect a certain content you can use it with a group.



enter image description here



You can also apply any size changing switches such as small or tiny inside the {} group as well.



Code



documentclass[12pt,a4paper]{book} 
usepackage{xcolor}
usepackage{lipsum}
usepackage{setspace}

renewcommand{baselinestretch}{1.5}

begin{document}
lipsum[1]
{setstretch{1.0}color{blue}
lipsum[2]
}
lipsum[3]
end{document}





share|improve this answer



















  • 9




    Just remember to end the paragraph before the final } (lipsum adds a par at its end). Using linespread{1.5} (or some command of setspace) is better than redefining baselinestretch.
    – egreg
    Nov 22 '12 at 21:47












  • @Peter Thank you so much :) Please i have another question: i have used documentclass[12pt,a4paper]{book} and i'd like to change the size 12 to 10 of one paragraph inside the document, Have you an idea please ?
    – researcher
    Dec 21 '12 at 13:25






  • 1




    @researcher: You could try using the answers from LaTeX — specify font point size? and keep the change to be within a group (either inside a brace group {}, or within begingroup, endgroup pair. If that does not help you achieve the desired results you should post a separate question. Also, please note that you should use the full username with the @ syntax. I was only notified of this as it was a comment to an answer of mine.
    – Peter Grill
    Dec 21 '12 at 19:01












  • i set fontsize{10} just before the text ?
    – researcher
    Dec 21 '12 at 19:19










  • @researcher: fontsize has two parameters, not one.
    – Peter Grill
    Dec 21 '12 at 19:20

















up vote
93
down vote



accepted










You can use setstretch{}. If you want to only affect a certain content you can use it with a group.



enter image description here



You can also apply any size changing switches such as small or tiny inside the {} group as well.



Code



documentclass[12pt,a4paper]{book} 
usepackage{xcolor}
usepackage{lipsum}
usepackage{setspace}

renewcommand{baselinestretch}{1.5}

begin{document}
lipsum[1]
{setstretch{1.0}color{blue}
lipsum[2]
}
lipsum[3]
end{document}





share|improve this answer



















  • 9




    Just remember to end the paragraph before the final } (lipsum adds a par at its end). Using linespread{1.5} (or some command of setspace) is better than redefining baselinestretch.
    – egreg
    Nov 22 '12 at 21:47












  • @Peter Thank you so much :) Please i have another question: i have used documentclass[12pt,a4paper]{book} and i'd like to change the size 12 to 10 of one paragraph inside the document, Have you an idea please ?
    – researcher
    Dec 21 '12 at 13:25






  • 1




    @researcher: You could try using the answers from LaTeX — specify font point size? and keep the change to be within a group (either inside a brace group {}, or within begingroup, endgroup pair. If that does not help you achieve the desired results you should post a separate question. Also, please note that you should use the full username with the @ syntax. I was only notified of this as it was a comment to an answer of mine.
    – Peter Grill
    Dec 21 '12 at 19:01












  • i set fontsize{10} just before the text ?
    – researcher
    Dec 21 '12 at 19:19










  • @researcher: fontsize has two parameters, not one.
    – Peter Grill
    Dec 21 '12 at 19:20















up vote
93
down vote



accepted







up vote
93
down vote



accepted






You can use setstretch{}. If you want to only affect a certain content you can use it with a group.



enter image description here



You can also apply any size changing switches such as small or tiny inside the {} group as well.



Code



documentclass[12pt,a4paper]{book} 
usepackage{xcolor}
usepackage{lipsum}
usepackage{setspace}

renewcommand{baselinestretch}{1.5}

begin{document}
lipsum[1]
{setstretch{1.0}color{blue}
lipsum[2]
}
lipsum[3]
end{document}





share|improve this answer














You can use setstretch{}. If you want to only affect a certain content you can use it with a group.



enter image description here



You can also apply any size changing switches such as small or tiny inside the {} group as well.



Code



documentclass[12pt,a4paper]{book} 
usepackage{xcolor}
usepackage{lipsum}
usepackage{setspace}

renewcommand{baselinestretch}{1.5}

begin{document}
lipsum[1]
{setstretch{1.0}color{blue}
lipsum[2]
}
lipsum[3]
end{document}






share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 22 '12 at 21:50

























answered Nov 22 '12 at 21:29









Peter Grill

163k24432744




163k24432744








  • 9




    Just remember to end the paragraph before the final } (lipsum adds a par at its end). Using linespread{1.5} (or some command of setspace) is better than redefining baselinestretch.
    – egreg
    Nov 22 '12 at 21:47












  • @Peter Thank you so much :) Please i have another question: i have used documentclass[12pt,a4paper]{book} and i'd like to change the size 12 to 10 of one paragraph inside the document, Have you an idea please ?
    – researcher
    Dec 21 '12 at 13:25






  • 1




    @researcher: You could try using the answers from LaTeX — specify font point size? and keep the change to be within a group (either inside a brace group {}, or within begingroup, endgroup pair. If that does not help you achieve the desired results you should post a separate question. Also, please note that you should use the full username with the @ syntax. I was only notified of this as it was a comment to an answer of mine.
    – Peter Grill
    Dec 21 '12 at 19:01












  • i set fontsize{10} just before the text ?
    – researcher
    Dec 21 '12 at 19:19










  • @researcher: fontsize has two parameters, not one.
    – Peter Grill
    Dec 21 '12 at 19:20
















  • 9




    Just remember to end the paragraph before the final } (lipsum adds a par at its end). Using linespread{1.5} (or some command of setspace) is better than redefining baselinestretch.
    – egreg
    Nov 22 '12 at 21:47












  • @Peter Thank you so much :) Please i have another question: i have used documentclass[12pt,a4paper]{book} and i'd like to change the size 12 to 10 of one paragraph inside the document, Have you an idea please ?
    – researcher
    Dec 21 '12 at 13:25






  • 1




    @researcher: You could try using the answers from LaTeX — specify font point size? and keep the change to be within a group (either inside a brace group {}, or within begingroup, endgroup pair. If that does not help you achieve the desired results you should post a separate question. Also, please note that you should use the full username with the @ syntax. I was only notified of this as it was a comment to an answer of mine.
    – Peter Grill
    Dec 21 '12 at 19:01












  • i set fontsize{10} just before the text ?
    – researcher
    Dec 21 '12 at 19:19










  • @researcher: fontsize has two parameters, not one.
    – Peter Grill
    Dec 21 '12 at 19:20










9




9




Just remember to end the paragraph before the final } (lipsum adds a par at its end). Using linespread{1.5} (or some command of setspace) is better than redefining baselinestretch.
– egreg
Nov 22 '12 at 21:47






Just remember to end the paragraph before the final } (lipsum adds a par at its end). Using linespread{1.5} (or some command of setspace) is better than redefining baselinestretch.
– egreg
Nov 22 '12 at 21:47














@Peter Thank you so much :) Please i have another question: i have used documentclass[12pt,a4paper]{book} and i'd like to change the size 12 to 10 of one paragraph inside the document, Have you an idea please ?
– researcher
Dec 21 '12 at 13:25




@Peter Thank you so much :) Please i have another question: i have used documentclass[12pt,a4paper]{book} and i'd like to change the size 12 to 10 of one paragraph inside the document, Have you an idea please ?
– researcher
Dec 21 '12 at 13:25




1




1




@researcher: You could try using the answers from LaTeX — specify font point size? and keep the change to be within a group (either inside a brace group {}, or within begingroup, endgroup pair. If that does not help you achieve the desired results you should post a separate question. Also, please note that you should use the full username with the @ syntax. I was only notified of this as it was a comment to an answer of mine.
– Peter Grill
Dec 21 '12 at 19:01






@researcher: You could try using the answers from LaTeX — specify font point size? and keep the change to be within a group (either inside a brace group {}, or within begingroup, endgroup pair. If that does not help you achieve the desired results you should post a separate question. Also, please note that you should use the full username with the @ syntax. I was only notified of this as it was a comment to an answer of mine.
– Peter Grill
Dec 21 '12 at 19:01














i set fontsize{10} just before the text ?
– researcher
Dec 21 '12 at 19:19




i set fontsize{10} just before the text ?
– researcher
Dec 21 '12 at 19:19












@researcher: fontsize has two parameters, not one.
– Peter Grill
Dec 21 '12 at 19:20






@researcher: fontsize has two parameters, not one.
– Peter Grill
Dec 21 '12 at 19:20




















draft saved

draft discarded




















































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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2f83855%2fchange-line-spacing-inside-the-document%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

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents