Adding image to every page of a letter created with scrlttr2
I created a letter using scrlttr2
package from KOMA-Script. I'd like to add an image at the bottom of each of its pages. Here is what I have for this purpose:
AddToShipoutPictureBG{%
AtPageLowerLeft{
hspace*{1.5in}includegraphics{Logo_unten.eps}
}
}
which works, but if I print the result, the half of the image will be cut off. So, how can I elevate the image something like 1 cm?
koma-script letters scrlttr2 eso-pic
add a comment |
I created a letter using scrlttr2
package from KOMA-Script. I'd like to add an image at the bottom of each of its pages. Here is what I have for this purpose:
AddToShipoutPictureBG{%
AtPageLowerLeft{
hspace*{1.5in}includegraphics{Logo_unten.eps}
}
}
which works, but if I print the result, the half of the image will be cut off. So, how can I elevate the image something like 1 cm?
koma-script letters scrlttr2 eso-pic
1
AddToShipoutPictureBG{% AtPageLowerLeft{ raisebox{1cm}{hspace*{1.5in}includegraphics{Logo_unten.eps}} } }
– Hafid Boukhoulda
Jan 25 at 19:48
Your code should place the image on the baseline, which should be at the lower left of the page. As such, the entire image should be visible. If this is not the case (as you state, "half of the image [is] cut off"), then the image must have a different bounding box, or you're doing something completely different to what you've posted.
– Werner
Jan 26 at 6:00
add a comment |
I created a letter using scrlttr2
package from KOMA-Script. I'd like to add an image at the bottom of each of its pages. Here is what I have for this purpose:
AddToShipoutPictureBG{%
AtPageLowerLeft{
hspace*{1.5in}includegraphics{Logo_unten.eps}
}
}
which works, but if I print the result, the half of the image will be cut off. So, how can I elevate the image something like 1 cm?
koma-script letters scrlttr2 eso-pic
I created a letter using scrlttr2
package from KOMA-Script. I'd like to add an image at the bottom of each of its pages. Here is what I have for this purpose:
AddToShipoutPictureBG{%
AtPageLowerLeft{
hspace*{1.5in}includegraphics{Logo_unten.eps}
}
}
which works, but if I print the result, the half of the image will be cut off. So, how can I elevate the image something like 1 cm?
koma-script letters scrlttr2 eso-pic
koma-script letters scrlttr2 eso-pic
edited Jan 26 at 4:57
Kurt
36.8k847162
36.8k847162
asked Jan 25 at 18:36
user39063user39063
31
31
1
AddToShipoutPictureBG{% AtPageLowerLeft{ raisebox{1cm}{hspace*{1.5in}includegraphics{Logo_unten.eps}} } }
– Hafid Boukhoulda
Jan 25 at 19:48
Your code should place the image on the baseline, which should be at the lower left of the page. As such, the entire image should be visible. If this is not the case (as you state, "half of the image [is] cut off"), then the image must have a different bounding box, or you're doing something completely different to what you've posted.
– Werner
Jan 26 at 6:00
add a comment |
1
AddToShipoutPictureBG{% AtPageLowerLeft{ raisebox{1cm}{hspace*{1.5in}includegraphics{Logo_unten.eps}} } }
– Hafid Boukhoulda
Jan 25 at 19:48
Your code should place the image on the baseline, which should be at the lower left of the page. As such, the entire image should be visible. If this is not the case (as you state, "half of the image [is] cut off"), then the image must have a different bounding box, or you're doing something completely different to what you've posted.
– Werner
Jan 26 at 6:00
1
1
AddToShipoutPictureBG{% AtPageLowerLeft{ raisebox{1cm}{hspace*{1.5in}includegraphics{Logo_unten.eps}} } }
– Hafid Boukhoulda
Jan 25 at 19:48
AddToShipoutPictureBG{% AtPageLowerLeft{ raisebox{1cm}{hspace*{1.5in}includegraphics{Logo_unten.eps}} } }
– Hafid Boukhoulda
Jan 25 at 19:48
Your code should place the image on the baseline, which should be at the lower left of the page. As such, the entire image should be visible. If this is not the case (as you state, "half of the image [is] cut off"), then the image must have a different bounding box, or you're doing something completely different to what you've posted.
– Werner
Jan 26 at 6:00
Your code should place the image on the baseline, which should be at the lower left of the page. As such, the entire image should be visible. If this is not the case (as you state, "half of the image [is] cut off"), then the image must have a different bounding box, or you're doing something completely different to what you've posted.
– Werner
Jan 26 at 6:00
add a comment |
2 Answers
2
active
oldest
votes
Because you give us not an compilable example of your letter but only a code snippet I have to guess what you are doing :-(
Please next question add an complete, short and compilable example
that we have not to guess what you are doing ...
Because you added not your image Logo_unten.eps
I used instead image example-image
from package mwe
. Please see that the size of this image may differ to yours so I had to add the option width=2cm
to avoid overlapping text of the letter ...
To simply move the image 1 cm higher you can use command raisebox
...
Please see the following compiling code
documentclass[%
paper=a4,
backaddress=off,
foldmarks=false,
parskip=half,
addrfield=false,
]{scrlttr2}
usepackage[english]{babel} % <=========================================
letraggedsignatureraggedright
setkomavar{fromname}{john doe}
setkomavar{fromaddress}{street number\ plz place}
setkomavar{fromphone}{+43 1234 567890}
setkomavar{fromemail}{jdoe@posteo.net}
setkomavar{place}{place}
%setkomavar{signature}{john doe\trainer}
renewcaptionname{english}emailname{Letter}% orig: Email <===========
renewcaptionname{english}phonename{Mobilefone}% orig: Telefon <=====
usepackage{blindtext}% <============================= to get dummy text
usepackage{showframe}% <============ to visualize text area and margins
usepackage{graphicx}
usepackage{eso-pic}
AddToShipoutPictureBG{%
AtPageLowerLeft{%
raisebox{1cm}{% <========================= shift image 1cm higher
hspace*{1.5in}includegraphics[width=2cm]{example-image}
}
}
}
begin{document}
begin{letter}{Company\Address\City}
setkomavar{subject}{Position Title}
opening{Dear Recruiter,}
Content goes here.
Blindtext
closing{Sincerely yours,}
end{letter}
end{document}
resulting in
add a comment |
You can load package scrlayer-scrpage
which is part of the KOMA-Script bundle. Then you can declare a new layer for the image and add this layer to every pagestyle (including empty
):
usepackage{scrlayer-scrpage}
DeclareNewLayer[
background,
align=bl,
hoffset=1.5in,
voffset=paperheight,
addvoffset=-.3in,% <- adjust this value to your needs
mode=picture,
contents=putLL{includegraphics[width=2cm]{example-image}}
]{letterimage}
AddLayersToPageStyle{@everystyle@}{letterimage}
Example:
documentclass{scrlttr2}
setkomavar{fromname}{Name}
setkomavar{fromaddress}{Address}
usepackage{lipsum}% <- only for dummy text
usepackage{graphicx}
usepackage{scrlayer-scrpage}
DeclareNewLayer[
background,
align=bl,
hoffset=1.5in,
voffset=paperheight,
addvoffset=-.3in,% <- adjust this value to your needs
mode=picture,
contents=putLL{includegraphics[width=2cm]{example-image}}
]{letterimage}
AddLayersToPageStyle{@everystyle@}{letterimage}
begin{document}
begin{letter}{Recipient\Address}
opening{Hallo,}
lipsum[1-10]
closing{Best regards}
end{letter}
end{document}
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f471878%2fadding-image-to-every-page-of-a-letter-created-with-scrlttr2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Because you give us not an compilable example of your letter but only a code snippet I have to guess what you are doing :-(
Please next question add an complete, short and compilable example
that we have not to guess what you are doing ...
Because you added not your image Logo_unten.eps
I used instead image example-image
from package mwe
. Please see that the size of this image may differ to yours so I had to add the option width=2cm
to avoid overlapping text of the letter ...
To simply move the image 1 cm higher you can use command raisebox
...
Please see the following compiling code
documentclass[%
paper=a4,
backaddress=off,
foldmarks=false,
parskip=half,
addrfield=false,
]{scrlttr2}
usepackage[english]{babel} % <=========================================
letraggedsignatureraggedright
setkomavar{fromname}{john doe}
setkomavar{fromaddress}{street number\ plz place}
setkomavar{fromphone}{+43 1234 567890}
setkomavar{fromemail}{jdoe@posteo.net}
setkomavar{place}{place}
%setkomavar{signature}{john doe\trainer}
renewcaptionname{english}emailname{Letter}% orig: Email <===========
renewcaptionname{english}phonename{Mobilefone}% orig: Telefon <=====
usepackage{blindtext}% <============================= to get dummy text
usepackage{showframe}% <============ to visualize text area and margins
usepackage{graphicx}
usepackage{eso-pic}
AddToShipoutPictureBG{%
AtPageLowerLeft{%
raisebox{1cm}{% <========================= shift image 1cm higher
hspace*{1.5in}includegraphics[width=2cm]{example-image}
}
}
}
begin{document}
begin{letter}{Company\Address\City}
setkomavar{subject}{Position Title}
opening{Dear Recruiter,}
Content goes here.
Blindtext
closing{Sincerely yours,}
end{letter}
end{document}
resulting in
add a comment |
Because you give us not an compilable example of your letter but only a code snippet I have to guess what you are doing :-(
Please next question add an complete, short and compilable example
that we have not to guess what you are doing ...
Because you added not your image Logo_unten.eps
I used instead image example-image
from package mwe
. Please see that the size of this image may differ to yours so I had to add the option width=2cm
to avoid overlapping text of the letter ...
To simply move the image 1 cm higher you can use command raisebox
...
Please see the following compiling code
documentclass[%
paper=a4,
backaddress=off,
foldmarks=false,
parskip=half,
addrfield=false,
]{scrlttr2}
usepackage[english]{babel} % <=========================================
letraggedsignatureraggedright
setkomavar{fromname}{john doe}
setkomavar{fromaddress}{street number\ plz place}
setkomavar{fromphone}{+43 1234 567890}
setkomavar{fromemail}{jdoe@posteo.net}
setkomavar{place}{place}
%setkomavar{signature}{john doe\trainer}
renewcaptionname{english}emailname{Letter}% orig: Email <===========
renewcaptionname{english}phonename{Mobilefone}% orig: Telefon <=====
usepackage{blindtext}% <============================= to get dummy text
usepackage{showframe}% <============ to visualize text area and margins
usepackage{graphicx}
usepackage{eso-pic}
AddToShipoutPictureBG{%
AtPageLowerLeft{%
raisebox{1cm}{% <========================= shift image 1cm higher
hspace*{1.5in}includegraphics[width=2cm]{example-image}
}
}
}
begin{document}
begin{letter}{Company\Address\City}
setkomavar{subject}{Position Title}
opening{Dear Recruiter,}
Content goes here.
Blindtext
closing{Sincerely yours,}
end{letter}
end{document}
resulting in
add a comment |
Because you give us not an compilable example of your letter but only a code snippet I have to guess what you are doing :-(
Please next question add an complete, short and compilable example
that we have not to guess what you are doing ...
Because you added not your image Logo_unten.eps
I used instead image example-image
from package mwe
. Please see that the size of this image may differ to yours so I had to add the option width=2cm
to avoid overlapping text of the letter ...
To simply move the image 1 cm higher you can use command raisebox
...
Please see the following compiling code
documentclass[%
paper=a4,
backaddress=off,
foldmarks=false,
parskip=half,
addrfield=false,
]{scrlttr2}
usepackage[english]{babel} % <=========================================
letraggedsignatureraggedright
setkomavar{fromname}{john doe}
setkomavar{fromaddress}{street number\ plz place}
setkomavar{fromphone}{+43 1234 567890}
setkomavar{fromemail}{jdoe@posteo.net}
setkomavar{place}{place}
%setkomavar{signature}{john doe\trainer}
renewcaptionname{english}emailname{Letter}% orig: Email <===========
renewcaptionname{english}phonename{Mobilefone}% orig: Telefon <=====
usepackage{blindtext}% <============================= to get dummy text
usepackage{showframe}% <============ to visualize text area and margins
usepackage{graphicx}
usepackage{eso-pic}
AddToShipoutPictureBG{%
AtPageLowerLeft{%
raisebox{1cm}{% <========================= shift image 1cm higher
hspace*{1.5in}includegraphics[width=2cm]{example-image}
}
}
}
begin{document}
begin{letter}{Company\Address\City}
setkomavar{subject}{Position Title}
opening{Dear Recruiter,}
Content goes here.
Blindtext
closing{Sincerely yours,}
end{letter}
end{document}
resulting in
Because you give us not an compilable example of your letter but only a code snippet I have to guess what you are doing :-(
Please next question add an complete, short and compilable example
that we have not to guess what you are doing ...
Because you added not your image Logo_unten.eps
I used instead image example-image
from package mwe
. Please see that the size of this image may differ to yours so I had to add the option width=2cm
to avoid overlapping text of the letter ...
To simply move the image 1 cm higher you can use command raisebox
...
Please see the following compiling code
documentclass[%
paper=a4,
backaddress=off,
foldmarks=false,
parskip=half,
addrfield=false,
]{scrlttr2}
usepackage[english]{babel} % <=========================================
letraggedsignatureraggedright
setkomavar{fromname}{john doe}
setkomavar{fromaddress}{street number\ plz place}
setkomavar{fromphone}{+43 1234 567890}
setkomavar{fromemail}{jdoe@posteo.net}
setkomavar{place}{place}
%setkomavar{signature}{john doe\trainer}
renewcaptionname{english}emailname{Letter}% orig: Email <===========
renewcaptionname{english}phonename{Mobilefone}% orig: Telefon <=====
usepackage{blindtext}% <============================= to get dummy text
usepackage{showframe}% <============ to visualize text area and margins
usepackage{graphicx}
usepackage{eso-pic}
AddToShipoutPictureBG{%
AtPageLowerLeft{%
raisebox{1cm}{% <========================= shift image 1cm higher
hspace*{1.5in}includegraphics[width=2cm]{example-image}
}
}
}
begin{document}
begin{letter}{Company\Address\City}
setkomavar{subject}{Position Title}
opening{Dear Recruiter,}
Content goes here.
Blindtext
closing{Sincerely yours,}
end{letter}
end{document}
resulting in
answered Jan 26 at 4:35
KurtKurt
36.8k847162
36.8k847162
add a comment |
add a comment |
You can load package scrlayer-scrpage
which is part of the KOMA-Script bundle. Then you can declare a new layer for the image and add this layer to every pagestyle (including empty
):
usepackage{scrlayer-scrpage}
DeclareNewLayer[
background,
align=bl,
hoffset=1.5in,
voffset=paperheight,
addvoffset=-.3in,% <- adjust this value to your needs
mode=picture,
contents=putLL{includegraphics[width=2cm]{example-image}}
]{letterimage}
AddLayersToPageStyle{@everystyle@}{letterimage}
Example:
documentclass{scrlttr2}
setkomavar{fromname}{Name}
setkomavar{fromaddress}{Address}
usepackage{lipsum}% <- only for dummy text
usepackage{graphicx}
usepackage{scrlayer-scrpage}
DeclareNewLayer[
background,
align=bl,
hoffset=1.5in,
voffset=paperheight,
addvoffset=-.3in,% <- adjust this value to your needs
mode=picture,
contents=putLL{includegraphics[width=2cm]{example-image}}
]{letterimage}
AddLayersToPageStyle{@everystyle@}{letterimage}
begin{document}
begin{letter}{Recipient\Address}
opening{Hallo,}
lipsum[1-10]
closing{Best regards}
end{letter}
end{document}
add a comment |
You can load package scrlayer-scrpage
which is part of the KOMA-Script bundle. Then you can declare a new layer for the image and add this layer to every pagestyle (including empty
):
usepackage{scrlayer-scrpage}
DeclareNewLayer[
background,
align=bl,
hoffset=1.5in,
voffset=paperheight,
addvoffset=-.3in,% <- adjust this value to your needs
mode=picture,
contents=putLL{includegraphics[width=2cm]{example-image}}
]{letterimage}
AddLayersToPageStyle{@everystyle@}{letterimage}
Example:
documentclass{scrlttr2}
setkomavar{fromname}{Name}
setkomavar{fromaddress}{Address}
usepackage{lipsum}% <- only for dummy text
usepackage{graphicx}
usepackage{scrlayer-scrpage}
DeclareNewLayer[
background,
align=bl,
hoffset=1.5in,
voffset=paperheight,
addvoffset=-.3in,% <- adjust this value to your needs
mode=picture,
contents=putLL{includegraphics[width=2cm]{example-image}}
]{letterimage}
AddLayersToPageStyle{@everystyle@}{letterimage}
begin{document}
begin{letter}{Recipient\Address}
opening{Hallo,}
lipsum[1-10]
closing{Best regards}
end{letter}
end{document}
add a comment |
You can load package scrlayer-scrpage
which is part of the KOMA-Script bundle. Then you can declare a new layer for the image and add this layer to every pagestyle (including empty
):
usepackage{scrlayer-scrpage}
DeclareNewLayer[
background,
align=bl,
hoffset=1.5in,
voffset=paperheight,
addvoffset=-.3in,% <- adjust this value to your needs
mode=picture,
contents=putLL{includegraphics[width=2cm]{example-image}}
]{letterimage}
AddLayersToPageStyle{@everystyle@}{letterimage}
Example:
documentclass{scrlttr2}
setkomavar{fromname}{Name}
setkomavar{fromaddress}{Address}
usepackage{lipsum}% <- only for dummy text
usepackage{graphicx}
usepackage{scrlayer-scrpage}
DeclareNewLayer[
background,
align=bl,
hoffset=1.5in,
voffset=paperheight,
addvoffset=-.3in,% <- adjust this value to your needs
mode=picture,
contents=putLL{includegraphics[width=2cm]{example-image}}
]{letterimage}
AddLayersToPageStyle{@everystyle@}{letterimage}
begin{document}
begin{letter}{Recipient\Address}
opening{Hallo,}
lipsum[1-10]
closing{Best regards}
end{letter}
end{document}
You can load package scrlayer-scrpage
which is part of the KOMA-Script bundle. Then you can declare a new layer for the image and add this layer to every pagestyle (including empty
):
usepackage{scrlayer-scrpage}
DeclareNewLayer[
background,
align=bl,
hoffset=1.5in,
voffset=paperheight,
addvoffset=-.3in,% <- adjust this value to your needs
mode=picture,
contents=putLL{includegraphics[width=2cm]{example-image}}
]{letterimage}
AddLayersToPageStyle{@everystyle@}{letterimage}
Example:
documentclass{scrlttr2}
setkomavar{fromname}{Name}
setkomavar{fromaddress}{Address}
usepackage{lipsum}% <- only for dummy text
usepackage{graphicx}
usepackage{scrlayer-scrpage}
DeclareNewLayer[
background,
align=bl,
hoffset=1.5in,
voffset=paperheight,
addvoffset=-.3in,% <- adjust this value to your needs
mode=picture,
contents=putLL{includegraphics[width=2cm]{example-image}}
]{letterimage}
AddLayersToPageStyle{@everystyle@}{letterimage}
begin{document}
begin{letter}{Recipient\Address}
opening{Hallo,}
lipsum[1-10]
closing{Best regards}
end{letter}
end{document}
answered Jan 26 at 12:34
esddesdd
59k34590
59k34590
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f471878%2fadding-image-to-every-page-of-a-letter-created-with-scrlttr2%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
AddToShipoutPictureBG{% AtPageLowerLeft{ raisebox{1cm}{hspace*{1.5in}includegraphics{Logo_unten.eps}} } }
– Hafid Boukhoulda
Jan 25 at 19:48
Your code should place the image on the baseline, which should be at the lower left of the page. As such, the entire image should be visible. If this is not the case (as you state, "half of the image [is] cut off"), then the image must have a different bounding box, or you're doing something completely different to what you've posted.
– Werner
Jan 26 at 6:00