Put the encl at the bottom of the page (lettre class)
Using the lettre
document class, I want to place the enclosures automatically at the bottom of the page, like this :
This is the default behavior :
This is the code I used to get the first picture (with the enclosures at the bottom) :
documentclass[romand]{lettre}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage[francais]{babel}
name{Mister Z}
begin{document}
begin{letter}{Company X\
Mister Y\
Address\
Town}
conc{Business contract}
opening{Dear Sir,}
Lorem ipsum dolor sit amet, % and so on..
closing{Kind regards,}
vspace{60mm} % This is what I want to be automatic (adaptative)
encl{Contract}
end{letter}
end{document}
I'd like to replace vspace{60mm}
by something which would automatically take all free space like vfill
. But vfill
does not do what I want here, I think this is because the letter is written inside the letter environment, which probably does not take the whole page. I tried to find a solution by looking at the lettre.cls
file, but with no success.
vertical-alignment letters lettre
add a comment |
Using the lettre
document class, I want to place the enclosures automatically at the bottom of the page, like this :
This is the default behavior :
This is the code I used to get the first picture (with the enclosures at the bottom) :
documentclass[romand]{lettre}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage[francais]{babel}
name{Mister Z}
begin{document}
begin{letter}{Company X\
Mister Y\
Address\
Town}
conc{Business contract}
opening{Dear Sir,}
Lorem ipsum dolor sit amet, % and so on..
closing{Kind regards,}
vspace{60mm} % This is what I want to be automatic (adaptative)
encl{Contract}
end{letter}
end{document}
I'd like to replace vspace{60mm}
by something which would automatically take all free space like vfill
. But vfill
does not do what I want here, I think this is because the letter is written inside the letter environment, which probably does not take the whole page. I tried to find a solution by looking at the lettre.cls
file, but with no success.
vertical-alignment letters lettre
Welcome to TeX.SX. A tip: If you indent lines by 4 spaces, then they're marked as a code sample. You can also highlight the code and click the "code" button ({}
).
– Claudio Fiandrino
Oct 17 '12 at 9:33
add a comment |
Using the lettre
document class, I want to place the enclosures automatically at the bottom of the page, like this :
This is the default behavior :
This is the code I used to get the first picture (with the enclosures at the bottom) :
documentclass[romand]{lettre}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage[francais]{babel}
name{Mister Z}
begin{document}
begin{letter}{Company X\
Mister Y\
Address\
Town}
conc{Business contract}
opening{Dear Sir,}
Lorem ipsum dolor sit amet, % and so on..
closing{Kind regards,}
vspace{60mm} % This is what I want to be automatic (adaptative)
encl{Contract}
end{letter}
end{document}
I'd like to replace vspace{60mm}
by something which would automatically take all free space like vfill
. But vfill
does not do what I want here, I think this is because the letter is written inside the letter environment, which probably does not take the whole page. I tried to find a solution by looking at the lettre.cls
file, but with no success.
vertical-alignment letters lettre
Using the lettre
document class, I want to place the enclosures automatically at the bottom of the page, like this :
This is the default behavior :
This is the code I used to get the first picture (with the enclosures at the bottom) :
documentclass[romand]{lettre}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage[francais]{babel}
name{Mister Z}
begin{document}
begin{letter}{Company X\
Mister Y\
Address\
Town}
conc{Business contract}
opening{Dear Sir,}
Lorem ipsum dolor sit amet, % and so on..
closing{Kind regards,}
vspace{60mm} % This is what I want to be automatic (adaptative)
encl{Contract}
end{letter}
end{document}
I'd like to replace vspace{60mm}
by something which would automatically take all free space like vfill
. But vfill
does not do what I want here, I think this is because the letter is written inside the letter environment, which probably does not take the whole page. I tried to find a solution by looking at the lettre.cls
file, but with no success.
vertical-alignment letters lettre
vertical-alignment letters lettre
edited Feb 5 at 12:43
Glorfindel
215129
215129
asked Oct 17 '12 at 9:29
BenBen
2314
2314
Welcome to TeX.SX. A tip: If you indent lines by 4 spaces, then they're marked as a code sample. You can also highlight the code and click the "code" button ({}
).
– Claudio Fiandrino
Oct 17 '12 at 9:33
add a comment |
Welcome to TeX.SX. A tip: If you indent lines by 4 spaces, then they're marked as a code sample. You can also highlight the code and click the "code" button ({}
).
– Claudio Fiandrino
Oct 17 '12 at 9:33
Welcome to TeX.SX. A tip: If you indent lines by 4 spaces, then they're marked as a code sample. You can also highlight the code and click the "code" button (
{}
).– Claudio Fiandrino
Oct 17 '12 at 9:33
Welcome to TeX.SX. A tip: If you indent lines by 4 spaces, then they're marked as a code sample. You can also highlight the code and click the "code" button (
{}
).– Claudio Fiandrino
Oct 17 '12 at 9:33
add a comment |
1 Answer
1
active
oldest
votes
Your strategy is correct, but the lettre
class does a couple of tricky/not nice things. The class adds stopletter
(defined as vskip0ptplus1filll
) at the end of the letter. That is a filll
with 3 l's which swamps all the other stretchable glue. If you replace vspace{60mm}
with vskip0ptplus1filll
then you enclosure will be halfway to the bottom of the page since you add some 3-l stretch instead of the 2-l stretch of vfill
. If you also redefine stopletter
to not add space, then the enclosure will be at the bottom of the page. Putting it all together gives
documentclass[romand]{lettre}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage[francais]{babel}
name{Mister Z}
defstopletter{}%
begin{document}
begin{letter}{Company X\
Mister Y\
Address\
Town}
conc{Business contract}
opening{Dear Sir,}
Lorem ipsum dolor sit amet, % and so on..
closing{Kind regards,}
vskip0ptplus1filll
encl{Contract}
end{letter}
end{document}
In order to not having to add this in each letter, I added these 3 lines in my "institute" (.ins) file (the one called byinstitute{}
) :defstopletter{} letencloldencl renewcommandencl[1]{vskip0ptplus1filllenclold{#1}}
– Ben
Oct 18 '12 at 6:48
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%2f77991%2fput-the-encl-at-the-bottom-of-the-page-lettre-class%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
Your strategy is correct, but the lettre
class does a couple of tricky/not nice things. The class adds stopletter
(defined as vskip0ptplus1filll
) at the end of the letter. That is a filll
with 3 l's which swamps all the other stretchable glue. If you replace vspace{60mm}
with vskip0ptplus1filll
then you enclosure will be halfway to the bottom of the page since you add some 3-l stretch instead of the 2-l stretch of vfill
. If you also redefine stopletter
to not add space, then the enclosure will be at the bottom of the page. Putting it all together gives
documentclass[romand]{lettre}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage[francais]{babel}
name{Mister Z}
defstopletter{}%
begin{document}
begin{letter}{Company X\
Mister Y\
Address\
Town}
conc{Business contract}
opening{Dear Sir,}
Lorem ipsum dolor sit amet, % and so on..
closing{Kind regards,}
vskip0ptplus1filll
encl{Contract}
end{letter}
end{document}
In order to not having to add this in each letter, I added these 3 lines in my "institute" (.ins) file (the one called byinstitute{}
) :defstopletter{} letencloldencl renewcommandencl[1]{vskip0ptplus1filllenclold{#1}}
– Ben
Oct 18 '12 at 6:48
add a comment |
Your strategy is correct, but the lettre
class does a couple of tricky/not nice things. The class adds stopletter
(defined as vskip0ptplus1filll
) at the end of the letter. That is a filll
with 3 l's which swamps all the other stretchable glue. If you replace vspace{60mm}
with vskip0ptplus1filll
then you enclosure will be halfway to the bottom of the page since you add some 3-l stretch instead of the 2-l stretch of vfill
. If you also redefine stopletter
to not add space, then the enclosure will be at the bottom of the page. Putting it all together gives
documentclass[romand]{lettre}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage[francais]{babel}
name{Mister Z}
defstopletter{}%
begin{document}
begin{letter}{Company X\
Mister Y\
Address\
Town}
conc{Business contract}
opening{Dear Sir,}
Lorem ipsum dolor sit amet, % and so on..
closing{Kind regards,}
vskip0ptplus1filll
encl{Contract}
end{letter}
end{document}
In order to not having to add this in each letter, I added these 3 lines in my "institute" (.ins) file (the one called byinstitute{}
) :defstopletter{} letencloldencl renewcommandencl[1]{vskip0ptplus1filllenclold{#1}}
– Ben
Oct 18 '12 at 6:48
add a comment |
Your strategy is correct, but the lettre
class does a couple of tricky/not nice things. The class adds stopletter
(defined as vskip0ptplus1filll
) at the end of the letter. That is a filll
with 3 l's which swamps all the other stretchable glue. If you replace vspace{60mm}
with vskip0ptplus1filll
then you enclosure will be halfway to the bottom of the page since you add some 3-l stretch instead of the 2-l stretch of vfill
. If you also redefine stopletter
to not add space, then the enclosure will be at the bottom of the page. Putting it all together gives
documentclass[romand]{lettre}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage[francais]{babel}
name{Mister Z}
defstopletter{}%
begin{document}
begin{letter}{Company X\
Mister Y\
Address\
Town}
conc{Business contract}
opening{Dear Sir,}
Lorem ipsum dolor sit amet, % and so on..
closing{Kind regards,}
vskip0ptplus1filll
encl{Contract}
end{letter}
end{document}
Your strategy is correct, but the lettre
class does a couple of tricky/not nice things. The class adds stopletter
(defined as vskip0ptplus1filll
) at the end of the letter. That is a filll
with 3 l's which swamps all the other stretchable glue. If you replace vspace{60mm}
with vskip0ptplus1filll
then you enclosure will be halfway to the bottom of the page since you add some 3-l stretch instead of the 2-l stretch of vfill
. If you also redefine stopletter
to not add space, then the enclosure will be at the bottom of the page. Putting it all together gives
documentclass[romand]{lettre}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage[francais]{babel}
name{Mister Z}
defstopletter{}%
begin{document}
begin{letter}{Company X\
Mister Y\
Address\
Town}
conc{Business contract}
opening{Dear Sir,}
Lorem ipsum dolor sit amet, % and so on..
closing{Kind regards,}
vskip0ptplus1filll
encl{Contract}
end{letter}
end{document}
edited Jul 15 '17 at 16:23
David Carlisle
490k4111321881
490k4111321881
answered Oct 17 '12 at 12:44
StrongBadStrongBad
13.3k647104
13.3k647104
In order to not having to add this in each letter, I added these 3 lines in my "institute" (.ins) file (the one called byinstitute{}
) :defstopletter{} letencloldencl renewcommandencl[1]{vskip0ptplus1filllenclold{#1}}
– Ben
Oct 18 '12 at 6:48
add a comment |
In order to not having to add this in each letter, I added these 3 lines in my "institute" (.ins) file (the one called byinstitute{}
) :defstopletter{} letencloldencl renewcommandencl[1]{vskip0ptplus1filllenclold{#1}}
– Ben
Oct 18 '12 at 6:48
In order to not having to add this in each letter, I added these 3 lines in my "institute" (.ins) file (the one called by
institute{}
) : defstopletter{} letencloldencl renewcommandencl[1]{vskip0ptplus1filllenclold{#1}}
– Ben
Oct 18 '12 at 6:48
In order to not having to add this in each letter, I added these 3 lines in my "institute" (.ins) file (the one called by
institute{}
) : defstopletter{} letencloldencl renewcommandencl[1]{vskip0ptplus1filllenclold{#1}}
– Ben
Oct 18 '12 at 6:48
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%2f77991%2fput-the-encl-at-the-bottom-of-the-page-lettre-class%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
Welcome to TeX.SX. A tip: If you indent lines by 4 spaces, then they're marked as a code sample. You can also highlight the code and click the "code" button (
{}
).– Claudio Fiandrino
Oct 17 '12 at 9:33