How can I change the margins for only part of the text?Text left spacing (local “margin”)How to have two...
When and why was runway 07/25 at Kai Tak removed?
What is the smallest number n> 5 so that 5 ^ n ends with "3125"?
Difference between shutdown options
Should I assume I have passed probation?
How to test the sharpness of a knife?
Do I have to know the General Relativity theory to understand the concept of inertial frame?
Has the laser at Magurele, Romania reached a tenth of the Sun's power?
Can I say "fingers" when referring to toes?
Why is the sun approximated as a black body at ~ 5800 K?
Is there a reason to prefer HFS+ over APFS for disk images in High Sierra and/or Mojave?
Possible Eco thriller, man invents a device to remove rain from glass
Identifying "long and narrow" polygons in with PostGIS
If Captain Marvel (MCU) were to have a child with a human male, would the child be human or Kree?
"Oh no!" in Latin
How to preserve electronics (computers, iPads and phones) for hundreds of years
El Dorado Word Puzzle II: Videogame Edition
Animation: customize bounce interpolation
Can I run 125kHz RF circuit on a breadboard?
Can you identify this lizard-like creature I observed in the UK?
The Digit Triangles
Air travel with refrigerated insulin
Deciphering cause of death?
Do I have to take mana from my deck or hand when tapping a dual land?
Ways of geometrical multiplication
How can I change the margins for only part of the text?
Text left spacing (local “margin”)How to have two left margins at different points on one page?Change text width in a specific part of a chapter or sectionChanging the textwidthIndenting and justifying a paragraphMinipage that allows page breaks?“Bleed” text into the page margins?Two-colum task list with status informationLaTeX equivalent of MS Word StylesHow to make fbox fit automatically around wide equations using empheq packagefullwidth: Trying to change paragraph margins doesn't work as expectedEnvironment for text to run into marginsChanging top, bottom, left & right margins on the flyIndentation for quotes in LaTeXChange margins of quotation environment asymmetricallyMargin adjustment for section textGlobal setting of adjustwidth is ignored by figuresNegative indentation for beamer bibliographyAbstract same indentation as rest of sectionsHow can I ensure paragraph text in a figure has no side effects?
Sometimes the margins need to be changed for a particular page, paragraph, or other section of text. For example, if I'm writing a letter and want the left margin to be almost at the right side of the page for the four lines of my address, or if I am combining prose with poetry and want the poems to be indented relative to the rest of the work.
What is the best way to change both left and right margins on the fly?
indentation
add a comment |
Sometimes the margins need to be changed for a particular page, paragraph, or other section of text. For example, if I'm writing a letter and want the left margin to be almost at the right side of the page for the four lines of my address, or if I am combining prose with poetry and want the poems to be indented relative to the rest of the work.
What is the best way to change both left and right margins on the fly?
indentation
add a comment |
Sometimes the margins need to be changed for a particular page, paragraph, or other section of text. For example, if I'm writing a letter and want the left margin to be almost at the right side of the page for the four lines of my address, or if I am combining prose with poetry and want the poems to be indented relative to the rest of the work.
What is the best way to change both left and right margins on the fly?
indentation
Sometimes the margins need to be changed for a particular page, paragraph, or other section of text. For example, if I'm writing a letter and want the left margin to be almost at the right side of the page for the four lines of my address, or if I am combining prose with poetry and want the poems to be indented relative to the rest of the work.
What is the best way to change both left and right margins on the fly?
indentation
indentation
edited Dec 17 '11 at 12:20
lockstep
192k53593723
192k53593723
asked Jul 29 '10 at 16:13
Michael UnderwoodMichael Underwood
10.7k104440
10.7k104440
add a comment |
add a comment |
6 Answers
6
active
oldest
votes
There are several packages available on CTAN to do this. changepage
looks promising but you can find other alternatives by searching for "margins" or "changepage" on ctan search.
With the changepage
package, you can use the adjustwidth
environment as follows:
begin{adjustwidth}{left amount}{right amount}
lipsum[2]
end{adjustwidth}
For example, to remove 100pt from the margin on both sides, you would use
begin{adjustwidth}{100pt}{100pt}
7
changepage
seems to do just what I'm after, through thebegin{adjustwidth}{left change length}{right change length}
environment. Thanks!
– Michael Underwood
Jul 29 '10 at 17:49
1
A little more specifically,begin{adjustwidth}{50pt}{-200pt} XXX end{adjustwidth}
adds 50pt to the left margin and subtracts 200pt from the right margin.
– Kenny LJ
May 14 '18 at 5:20
add a comment |
Here is how you can do it. Put the following in the preamble (before begin{document}
)
defchangemargin#1#2{list{}{rightmargin#2leftmargin#1}item[]}
letendchangemargin=endlist
then in the text you can use
begin{changemargin}{<arg>}{<arg>}
end{changemargin}
where <arg>
is the distance you want to include on the margin (the first one defines the right-hand side margin, and the second defines the left-hand side one).
So, for example, to add 0.5 cm to the margins on either side, you would have:
begin{changemargin}{0.5cm}{0.5cm}
%your text here
end{changemargin}
This is exactly how the command
begin{quote}
end{quote}
is defined, but with the set to 1cm. The command quote can be used without having to load any packages, by the way.
Thanks Vivi. I take it you mean "where <arg> is the distance...", right? Are there any advantages to this version over using a package such aschangepage
?
– Michael Underwood
Jul 30 '10 at 22:32
@Michael: Sorry, because of html the <arg> was not showing (though it was written). About the advantages over changepage, I really don't know. I have never used changepage and didn't even know it existed. I guess I need to try it out :) Have you tried the package yet? Is it good and straightforward?
– Vivi
Jul 30 '10 at 22:39
I haven't used it for a specific purpose yet, but was able to figure out how to do what I asked for and test it out within minutes of seeing David's suggestion. Some advantages claimed in the documentation that I haven't tested are: Correctly identifying left- and right-side pages if they are different; working inside floats; being able to change the top and bottom margins as well as left and right.
– Michael Underwood
Jul 30 '10 at 22:58
This is a very elegant solution. Works perfectly, even inside a float (which is where i needed it).
– Trevor
Oct 22 '12 at 22:17
The command dont works if you use it with a long text running across pages in a document definided with not equals inner and outer margins.
– Raffaele Santoro
Dec 28 '13 at 3:44
|
show 1 more comment
With either one of the KOMA-Script
classes or the package scrextend
(which is part of KOMA-Script
), you can use the addmargin
environment.
documentclass{article}
usepackage{scrextend}
usepackage[english]{babel}
usepackage{blindtext}
begin{document}
blindtext
% Syntax: begin{addmargin}[<left indentation>]{<indentation>}
begin{addmargin}[4em]{1em}
blindtext
end{addmargin}
blindtext
end{document}
1
thanks for that, that's exactly what i've been looking for for a while now.
– David Wright
Apr 21 '13 at 12:55
N.B. If used within an enumerated environment, this will remove the enumeration, i.e. you can't use it to adjust the margin of enumerated items.
– Rax Adaam
Apr 10 '18 at 15:47
add a comment |
what about the narrower
(TeX?) command? Is it ok to use even though it does not offer a very precise control?
documentclass[11pt]{book}
usepackage[latin1]{inputenc}
usepackage[a4paper,top=3.5cm,bottom=3cm,left=3.6cm,right=3.6cm]{geometry}
usepackage{lipsum}
begin{document}
lipsum[4]
{narrowerlipsum[4]
par}
lipsum[4]
lipsum[4]
lipsum[4]
lipsum[4]
{narrowernarrowernarrower lipsum[4]
par}
lipsum[4]
end{document}
1
narrower will indent the text by one parindent. For more precise control one can also use hskip 10pt etc. Of course is ok if you only want to indent once. narrowernarrower will indent both left and right.
– Yiannis Lazarides
Sep 30 '10 at 1:47
add a comment |
It might not answer the question directly, but:
There is a letter
class:
documentclass{letter}
for writing letters.
And for verse there is a package called...wait for it...verse:
usepackage{verse}
As I said, it doesn't answer the specific question, but it might solve the two applications you want the solution for.
add a comment |
Earlier versions of the geometry
package did not allow to change the margins inside the document. The package gmeometric
could help then.
Today geometry
supports changing the margin inside the document by its commands newgeometry{...}
accepting the same key=value
arguments and by restoregeometry
, see the manual of the current package version.
3
FYI: thenewgeometry
andrestoregeometry
commands cause a page break.
– cjm
Apr 26 '16 at 4:24
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%2f588%2fhow-can-i-change-the-margins-for-only-part-of-the-text%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
There are several packages available on CTAN to do this. changepage
looks promising but you can find other alternatives by searching for "margins" or "changepage" on ctan search.
With the changepage
package, you can use the adjustwidth
environment as follows:
begin{adjustwidth}{left amount}{right amount}
lipsum[2]
end{adjustwidth}
For example, to remove 100pt from the margin on both sides, you would use
begin{adjustwidth}{100pt}{100pt}
7
changepage
seems to do just what I'm after, through thebegin{adjustwidth}{left change length}{right change length}
environment. Thanks!
– Michael Underwood
Jul 29 '10 at 17:49
1
A little more specifically,begin{adjustwidth}{50pt}{-200pt} XXX end{adjustwidth}
adds 50pt to the left margin and subtracts 200pt from the right margin.
– Kenny LJ
May 14 '18 at 5:20
add a comment |
There are several packages available on CTAN to do this. changepage
looks promising but you can find other alternatives by searching for "margins" or "changepage" on ctan search.
With the changepage
package, you can use the adjustwidth
environment as follows:
begin{adjustwidth}{left amount}{right amount}
lipsum[2]
end{adjustwidth}
For example, to remove 100pt from the margin on both sides, you would use
begin{adjustwidth}{100pt}{100pt}
7
changepage
seems to do just what I'm after, through thebegin{adjustwidth}{left change length}{right change length}
environment. Thanks!
– Michael Underwood
Jul 29 '10 at 17:49
1
A little more specifically,begin{adjustwidth}{50pt}{-200pt} XXX end{adjustwidth}
adds 50pt to the left margin and subtracts 200pt from the right margin.
– Kenny LJ
May 14 '18 at 5:20
add a comment |
There are several packages available on CTAN to do this. changepage
looks promising but you can find other alternatives by searching for "margins" or "changepage" on ctan search.
With the changepage
package, you can use the adjustwidth
environment as follows:
begin{adjustwidth}{left amount}{right amount}
lipsum[2]
end{adjustwidth}
For example, to remove 100pt from the margin on both sides, you would use
begin{adjustwidth}{100pt}{100pt}
There are several packages available on CTAN to do this. changepage
looks promising but you can find other alternatives by searching for "margins" or "changepage" on ctan search.
With the changepage
package, you can use the adjustwidth
environment as follows:
begin{adjustwidth}{left amount}{right amount}
lipsum[2]
end{adjustwidth}
For example, to remove 100pt from the margin on both sides, you would use
begin{adjustwidth}{100pt}{100pt}
edited 36 secs ago
inavda
3
3
answered Jul 29 '10 at 17:34
David ZDavid Z
8,37013956
8,37013956
7
changepage
seems to do just what I'm after, through thebegin{adjustwidth}{left change length}{right change length}
environment. Thanks!
– Michael Underwood
Jul 29 '10 at 17:49
1
A little more specifically,begin{adjustwidth}{50pt}{-200pt} XXX end{adjustwidth}
adds 50pt to the left margin and subtracts 200pt from the right margin.
– Kenny LJ
May 14 '18 at 5:20
add a comment |
7
changepage
seems to do just what I'm after, through thebegin{adjustwidth}{left change length}{right change length}
environment. Thanks!
– Michael Underwood
Jul 29 '10 at 17:49
1
A little more specifically,begin{adjustwidth}{50pt}{-200pt} XXX end{adjustwidth}
adds 50pt to the left margin and subtracts 200pt from the right margin.
– Kenny LJ
May 14 '18 at 5:20
7
7
changepage
seems to do just what I'm after, through the begin{adjustwidth}{left change length}{right change length}
environment. Thanks!– Michael Underwood
Jul 29 '10 at 17:49
changepage
seems to do just what I'm after, through the begin{adjustwidth}{left change length}{right change length}
environment. Thanks!– Michael Underwood
Jul 29 '10 at 17:49
1
1
A little more specifically,
begin{adjustwidth}{50pt}{-200pt} XXX end{adjustwidth}
adds 50pt to the left margin and subtracts 200pt from the right margin.– Kenny LJ
May 14 '18 at 5:20
A little more specifically,
begin{adjustwidth}{50pt}{-200pt} XXX end{adjustwidth}
adds 50pt to the left margin and subtracts 200pt from the right margin.– Kenny LJ
May 14 '18 at 5:20
add a comment |
Here is how you can do it. Put the following in the preamble (before begin{document}
)
defchangemargin#1#2{list{}{rightmargin#2leftmargin#1}item[]}
letendchangemargin=endlist
then in the text you can use
begin{changemargin}{<arg>}{<arg>}
end{changemargin}
where <arg>
is the distance you want to include on the margin (the first one defines the right-hand side margin, and the second defines the left-hand side one).
So, for example, to add 0.5 cm to the margins on either side, you would have:
begin{changemargin}{0.5cm}{0.5cm}
%your text here
end{changemargin}
This is exactly how the command
begin{quote}
end{quote}
is defined, but with the set to 1cm. The command quote can be used without having to load any packages, by the way.
Thanks Vivi. I take it you mean "where <arg> is the distance...", right? Are there any advantages to this version over using a package such aschangepage
?
– Michael Underwood
Jul 30 '10 at 22:32
@Michael: Sorry, because of html the <arg> was not showing (though it was written). About the advantages over changepage, I really don't know. I have never used changepage and didn't even know it existed. I guess I need to try it out :) Have you tried the package yet? Is it good and straightforward?
– Vivi
Jul 30 '10 at 22:39
I haven't used it for a specific purpose yet, but was able to figure out how to do what I asked for and test it out within minutes of seeing David's suggestion. Some advantages claimed in the documentation that I haven't tested are: Correctly identifying left- and right-side pages if they are different; working inside floats; being able to change the top and bottom margins as well as left and right.
– Michael Underwood
Jul 30 '10 at 22:58
This is a very elegant solution. Works perfectly, even inside a float (which is where i needed it).
– Trevor
Oct 22 '12 at 22:17
The command dont works if you use it with a long text running across pages in a document definided with not equals inner and outer margins.
– Raffaele Santoro
Dec 28 '13 at 3:44
|
show 1 more comment
Here is how you can do it. Put the following in the preamble (before begin{document}
)
defchangemargin#1#2{list{}{rightmargin#2leftmargin#1}item[]}
letendchangemargin=endlist
then in the text you can use
begin{changemargin}{<arg>}{<arg>}
end{changemargin}
where <arg>
is the distance you want to include on the margin (the first one defines the right-hand side margin, and the second defines the left-hand side one).
So, for example, to add 0.5 cm to the margins on either side, you would have:
begin{changemargin}{0.5cm}{0.5cm}
%your text here
end{changemargin}
This is exactly how the command
begin{quote}
end{quote}
is defined, but with the set to 1cm. The command quote can be used without having to load any packages, by the way.
Thanks Vivi. I take it you mean "where <arg> is the distance...", right? Are there any advantages to this version over using a package such aschangepage
?
– Michael Underwood
Jul 30 '10 at 22:32
@Michael: Sorry, because of html the <arg> was not showing (though it was written). About the advantages over changepage, I really don't know. I have never used changepage and didn't even know it existed. I guess I need to try it out :) Have you tried the package yet? Is it good and straightforward?
– Vivi
Jul 30 '10 at 22:39
I haven't used it for a specific purpose yet, but was able to figure out how to do what I asked for and test it out within minutes of seeing David's suggestion. Some advantages claimed in the documentation that I haven't tested are: Correctly identifying left- and right-side pages if they are different; working inside floats; being able to change the top and bottom margins as well as left and right.
– Michael Underwood
Jul 30 '10 at 22:58
This is a very elegant solution. Works perfectly, even inside a float (which is where i needed it).
– Trevor
Oct 22 '12 at 22:17
The command dont works if you use it with a long text running across pages in a document definided with not equals inner and outer margins.
– Raffaele Santoro
Dec 28 '13 at 3:44
|
show 1 more comment
Here is how you can do it. Put the following in the preamble (before begin{document}
)
defchangemargin#1#2{list{}{rightmargin#2leftmargin#1}item[]}
letendchangemargin=endlist
then in the text you can use
begin{changemargin}{<arg>}{<arg>}
end{changemargin}
where <arg>
is the distance you want to include on the margin (the first one defines the right-hand side margin, and the second defines the left-hand side one).
So, for example, to add 0.5 cm to the margins on either side, you would have:
begin{changemargin}{0.5cm}{0.5cm}
%your text here
end{changemargin}
This is exactly how the command
begin{quote}
end{quote}
is defined, but with the set to 1cm. The command quote can be used without having to load any packages, by the way.
Here is how you can do it. Put the following in the preamble (before begin{document}
)
defchangemargin#1#2{list{}{rightmargin#2leftmargin#1}item[]}
letendchangemargin=endlist
then in the text you can use
begin{changemargin}{<arg>}{<arg>}
end{changemargin}
where <arg>
is the distance you want to include on the margin (the first one defines the right-hand side margin, and the second defines the left-hand side one).
So, for example, to add 0.5 cm to the margins on either side, you would have:
begin{changemargin}{0.5cm}{0.5cm}
%your text here
end{changemargin}
This is exactly how the command
begin{quote}
end{quote}
is defined, but with the set to 1cm. The command quote can be used without having to load any packages, by the way.
edited Jul 24 '13 at 12:49
lockstep
192k53593723
192k53593723
answered Jul 29 '10 at 19:12
ViviVivi
14.2k296677
14.2k296677
Thanks Vivi. I take it you mean "where <arg> is the distance...", right? Are there any advantages to this version over using a package such aschangepage
?
– Michael Underwood
Jul 30 '10 at 22:32
@Michael: Sorry, because of html the <arg> was not showing (though it was written). About the advantages over changepage, I really don't know. I have never used changepage and didn't even know it existed. I guess I need to try it out :) Have you tried the package yet? Is it good and straightforward?
– Vivi
Jul 30 '10 at 22:39
I haven't used it for a specific purpose yet, but was able to figure out how to do what I asked for and test it out within minutes of seeing David's suggestion. Some advantages claimed in the documentation that I haven't tested are: Correctly identifying left- and right-side pages if they are different; working inside floats; being able to change the top and bottom margins as well as left and right.
– Michael Underwood
Jul 30 '10 at 22:58
This is a very elegant solution. Works perfectly, even inside a float (which is where i needed it).
– Trevor
Oct 22 '12 at 22:17
The command dont works if you use it with a long text running across pages in a document definided with not equals inner and outer margins.
– Raffaele Santoro
Dec 28 '13 at 3:44
|
show 1 more comment
Thanks Vivi. I take it you mean "where <arg> is the distance...", right? Are there any advantages to this version over using a package such aschangepage
?
– Michael Underwood
Jul 30 '10 at 22:32
@Michael: Sorry, because of html the <arg> was not showing (though it was written). About the advantages over changepage, I really don't know. I have never used changepage and didn't even know it existed. I guess I need to try it out :) Have you tried the package yet? Is it good and straightforward?
– Vivi
Jul 30 '10 at 22:39
I haven't used it for a specific purpose yet, but was able to figure out how to do what I asked for and test it out within minutes of seeing David's suggestion. Some advantages claimed in the documentation that I haven't tested are: Correctly identifying left- and right-side pages if they are different; working inside floats; being able to change the top and bottom margins as well as left and right.
– Michael Underwood
Jul 30 '10 at 22:58
This is a very elegant solution. Works perfectly, even inside a float (which is where i needed it).
– Trevor
Oct 22 '12 at 22:17
The command dont works if you use it with a long text running across pages in a document definided with not equals inner and outer margins.
– Raffaele Santoro
Dec 28 '13 at 3:44
Thanks Vivi. I take it you mean "where <arg> is the distance...", right? Are there any advantages to this version over using a package such as
changepage
?– Michael Underwood
Jul 30 '10 at 22:32
Thanks Vivi. I take it you mean "where <arg> is the distance...", right? Are there any advantages to this version over using a package such as
changepage
?– Michael Underwood
Jul 30 '10 at 22:32
@Michael: Sorry, because of html the <arg> was not showing (though it was written). About the advantages over changepage, I really don't know. I have never used changepage and didn't even know it existed. I guess I need to try it out :) Have you tried the package yet? Is it good and straightforward?
– Vivi
Jul 30 '10 at 22:39
@Michael: Sorry, because of html the <arg> was not showing (though it was written). About the advantages over changepage, I really don't know. I have never used changepage and didn't even know it existed. I guess I need to try it out :) Have you tried the package yet? Is it good and straightforward?
– Vivi
Jul 30 '10 at 22:39
I haven't used it for a specific purpose yet, but was able to figure out how to do what I asked for and test it out within minutes of seeing David's suggestion. Some advantages claimed in the documentation that I haven't tested are: Correctly identifying left- and right-side pages if they are different; working inside floats; being able to change the top and bottom margins as well as left and right.
– Michael Underwood
Jul 30 '10 at 22:58
I haven't used it for a specific purpose yet, but was able to figure out how to do what I asked for and test it out within minutes of seeing David's suggestion. Some advantages claimed in the documentation that I haven't tested are: Correctly identifying left- and right-side pages if they are different; working inside floats; being able to change the top and bottom margins as well as left and right.
– Michael Underwood
Jul 30 '10 at 22:58
This is a very elegant solution. Works perfectly, even inside a float (which is where i needed it).
– Trevor
Oct 22 '12 at 22:17
This is a very elegant solution. Works perfectly, even inside a float (which is where i needed it).
– Trevor
Oct 22 '12 at 22:17
The command dont works if you use it with a long text running across pages in a document definided with not equals inner and outer margins.
– Raffaele Santoro
Dec 28 '13 at 3:44
The command dont works if you use it with a long text running across pages in a document definided with not equals inner and outer margins.
– Raffaele Santoro
Dec 28 '13 at 3:44
|
show 1 more comment
With either one of the KOMA-Script
classes or the package scrextend
(which is part of KOMA-Script
), you can use the addmargin
environment.
documentclass{article}
usepackage{scrextend}
usepackage[english]{babel}
usepackage{blindtext}
begin{document}
blindtext
% Syntax: begin{addmargin}[<left indentation>]{<indentation>}
begin{addmargin}[4em]{1em}
blindtext
end{addmargin}
blindtext
end{document}
1
thanks for that, that's exactly what i've been looking for for a while now.
– David Wright
Apr 21 '13 at 12:55
N.B. If used within an enumerated environment, this will remove the enumeration, i.e. you can't use it to adjust the margin of enumerated items.
– Rax Adaam
Apr 10 '18 at 15:47
add a comment |
With either one of the KOMA-Script
classes or the package scrextend
(which is part of KOMA-Script
), you can use the addmargin
environment.
documentclass{article}
usepackage{scrextend}
usepackage[english]{babel}
usepackage{blindtext}
begin{document}
blindtext
% Syntax: begin{addmargin}[<left indentation>]{<indentation>}
begin{addmargin}[4em]{1em}
blindtext
end{addmargin}
blindtext
end{document}
1
thanks for that, that's exactly what i've been looking for for a while now.
– David Wright
Apr 21 '13 at 12:55
N.B. If used within an enumerated environment, this will remove the enumeration, i.e. you can't use it to adjust the margin of enumerated items.
– Rax Adaam
Apr 10 '18 at 15:47
add a comment |
With either one of the KOMA-Script
classes or the package scrextend
(which is part of KOMA-Script
), you can use the addmargin
environment.
documentclass{article}
usepackage{scrextend}
usepackage[english]{babel}
usepackage{blindtext}
begin{document}
blindtext
% Syntax: begin{addmargin}[<left indentation>]{<indentation>}
begin{addmargin}[4em]{1em}
blindtext
end{addmargin}
blindtext
end{document}
With either one of the KOMA-Script
classes or the package scrextend
(which is part of KOMA-Script
), you can use the addmargin
environment.
documentclass{article}
usepackage{scrextend}
usepackage[english]{babel}
usepackage{blindtext}
begin{document}
blindtext
% Syntax: begin{addmargin}[<left indentation>]{<indentation>}
begin{addmargin}[4em]{1em}
blindtext
end{addmargin}
blindtext
end{document}
edited Jul 24 '13 at 12:45
answered Aug 12 '10 at 22:10
locksteplockstep
192k53593723
192k53593723
1
thanks for that, that's exactly what i've been looking for for a while now.
– David Wright
Apr 21 '13 at 12:55
N.B. If used within an enumerated environment, this will remove the enumeration, i.e. you can't use it to adjust the margin of enumerated items.
– Rax Adaam
Apr 10 '18 at 15:47
add a comment |
1
thanks for that, that's exactly what i've been looking for for a while now.
– David Wright
Apr 21 '13 at 12:55
N.B. If used within an enumerated environment, this will remove the enumeration, i.e. you can't use it to adjust the margin of enumerated items.
– Rax Adaam
Apr 10 '18 at 15:47
1
1
thanks for that, that's exactly what i've been looking for for a while now.
– David Wright
Apr 21 '13 at 12:55
thanks for that, that's exactly what i've been looking for for a while now.
– David Wright
Apr 21 '13 at 12:55
N.B. If used within an enumerated environment, this will remove the enumeration, i.e. you can't use it to adjust the margin of enumerated items.
– Rax Adaam
Apr 10 '18 at 15:47
N.B. If used within an enumerated environment, this will remove the enumeration, i.e. you can't use it to adjust the margin of enumerated items.
– Rax Adaam
Apr 10 '18 at 15:47
add a comment |
what about the narrower
(TeX?) command? Is it ok to use even though it does not offer a very precise control?
documentclass[11pt]{book}
usepackage[latin1]{inputenc}
usepackage[a4paper,top=3.5cm,bottom=3cm,left=3.6cm,right=3.6cm]{geometry}
usepackage{lipsum}
begin{document}
lipsum[4]
{narrowerlipsum[4]
par}
lipsum[4]
lipsum[4]
lipsum[4]
lipsum[4]
{narrowernarrowernarrower lipsum[4]
par}
lipsum[4]
end{document}
1
narrower will indent the text by one parindent. For more precise control one can also use hskip 10pt etc. Of course is ok if you only want to indent once. narrowernarrower will indent both left and right.
– Yiannis Lazarides
Sep 30 '10 at 1:47
add a comment |
what about the narrower
(TeX?) command? Is it ok to use even though it does not offer a very precise control?
documentclass[11pt]{book}
usepackage[latin1]{inputenc}
usepackage[a4paper,top=3.5cm,bottom=3cm,left=3.6cm,right=3.6cm]{geometry}
usepackage{lipsum}
begin{document}
lipsum[4]
{narrowerlipsum[4]
par}
lipsum[4]
lipsum[4]
lipsum[4]
lipsum[4]
{narrowernarrowernarrower lipsum[4]
par}
lipsum[4]
end{document}
1
narrower will indent the text by one parindent. For more precise control one can also use hskip 10pt etc. Of course is ok if you only want to indent once. narrowernarrower will indent both left and right.
– Yiannis Lazarides
Sep 30 '10 at 1:47
add a comment |
what about the narrower
(TeX?) command? Is it ok to use even though it does not offer a very precise control?
documentclass[11pt]{book}
usepackage[latin1]{inputenc}
usepackage[a4paper,top=3.5cm,bottom=3cm,left=3.6cm,right=3.6cm]{geometry}
usepackage{lipsum}
begin{document}
lipsum[4]
{narrowerlipsum[4]
par}
lipsum[4]
lipsum[4]
lipsum[4]
lipsum[4]
{narrowernarrowernarrower lipsum[4]
par}
lipsum[4]
end{document}
what about the narrower
(TeX?) command? Is it ok to use even though it does not offer a very precise control?
documentclass[11pt]{book}
usepackage[latin1]{inputenc}
usepackage[a4paper,top=3.5cm,bottom=3cm,left=3.6cm,right=3.6cm]{geometry}
usepackage{lipsum}
begin{document}
lipsum[4]
{narrowerlipsum[4]
par}
lipsum[4]
lipsum[4]
lipsum[4]
lipsum[4]
{narrowernarrowernarrower lipsum[4]
par}
lipsum[4]
end{document}
edited Jul 24 '13 at 12:49
lockstep
192k53593723
192k53593723
answered Sep 30 '10 at 1:21
plutonpluton
8,029960133
8,029960133
1
narrower will indent the text by one parindent. For more precise control one can also use hskip 10pt etc. Of course is ok if you only want to indent once. narrowernarrower will indent both left and right.
– Yiannis Lazarides
Sep 30 '10 at 1:47
add a comment |
1
narrower will indent the text by one parindent. For more precise control one can also use hskip 10pt etc. Of course is ok if you only want to indent once. narrowernarrower will indent both left and right.
– Yiannis Lazarides
Sep 30 '10 at 1:47
1
1
narrower will indent the text by one parindent. For more precise control one can also use hskip 10pt etc. Of course is ok if you only want to indent once. narrowernarrower will indent both left and right.
– Yiannis Lazarides
Sep 30 '10 at 1:47
narrower will indent the text by one parindent. For more precise control one can also use hskip 10pt etc. Of course is ok if you only want to indent once. narrowernarrower will indent both left and right.
– Yiannis Lazarides
Sep 30 '10 at 1:47
add a comment |
It might not answer the question directly, but:
There is a letter
class:
documentclass{letter}
for writing letters.
And for verse there is a package called...wait for it...verse:
usepackage{verse}
As I said, it doesn't answer the specific question, but it might solve the two applications you want the solution for.
add a comment |
It might not answer the question directly, but:
There is a letter
class:
documentclass{letter}
for writing letters.
And for verse there is a package called...wait for it...verse:
usepackage{verse}
As I said, it doesn't answer the specific question, but it might solve the two applications you want the solution for.
add a comment |
It might not answer the question directly, but:
There is a letter
class:
documentclass{letter}
for writing letters.
And for verse there is a package called...wait for it...verse:
usepackage{verse}
As I said, it doesn't answer the specific question, but it might solve the two applications you want the solution for.
It might not answer the question directly, but:
There is a letter
class:
documentclass{letter}
for writing letters.
And for verse there is a package called...wait for it...verse:
usepackage{verse}
As I said, it doesn't answer the specific question, but it might solve the two applications you want the solution for.
answered Jul 29 '10 at 17:07
Yossi FarjounYossi Farjoun
8,09696090
8,09696090
add a comment |
add a comment |
Earlier versions of the geometry
package did not allow to change the margins inside the document. The package gmeometric
could help then.
Today geometry
supports changing the margin inside the document by its commands newgeometry{...}
accepting the same key=value
arguments and by restoregeometry
, see the manual of the current package version.
3
FYI: thenewgeometry
andrestoregeometry
commands cause a page break.
– cjm
Apr 26 '16 at 4:24
add a comment |
Earlier versions of the geometry
package did not allow to change the margins inside the document. The package gmeometric
could help then.
Today geometry
supports changing the margin inside the document by its commands newgeometry{...}
accepting the same key=value
arguments and by restoregeometry
, see the manual of the current package version.
3
FYI: thenewgeometry
andrestoregeometry
commands cause a page break.
– cjm
Apr 26 '16 at 4:24
add a comment |
Earlier versions of the geometry
package did not allow to change the margins inside the document. The package gmeometric
could help then.
Today geometry
supports changing the margin inside the document by its commands newgeometry{...}
accepting the same key=value
arguments and by restoregeometry
, see the manual of the current package version.
Earlier versions of the geometry
package did not allow to change the margins inside the document. The package gmeometric
could help then.
Today geometry
supports changing the margin inside the document by its commands newgeometry{...}
accepting the same key=value
arguments and by restoregeometry
, see the manual of the current package version.
edited Jul 24 '13 at 12:48
lockstep
192k53593723
192k53593723
answered Aug 2 '10 at 1:48
Stefan Kottwitz♦Stefan Kottwitz
178k65572761
178k65572761
3
FYI: thenewgeometry
andrestoregeometry
commands cause a page break.
– cjm
Apr 26 '16 at 4:24
add a comment |
3
FYI: thenewgeometry
andrestoregeometry
commands cause a page break.
– cjm
Apr 26 '16 at 4:24
3
3
FYI: the
newgeometry
and restoregeometry
commands cause a page break.– cjm
Apr 26 '16 at 4:24
FYI: the
newgeometry
and restoregeometry
commands cause a page break.– cjm
Apr 26 '16 at 4:24
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%2f588%2fhow-can-i-change-the-margins-for-only-part-of-the-text%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