Adding image to every page of a letter created with scrlttr2












0















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?










share|improve this question




















  • 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
















0















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?










share|improve this question




















  • 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














0












0








0








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?










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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














  • 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










2 Answers
2






active

oldest

votes


















2














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



resulting pdf






share|improve this answer































    2














    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}


    enter image description here






    share|improve this answer























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


      }
      });














      draft saved

      draft discarded


















      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









      2














      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



      resulting pdf






      share|improve this answer




























        2














        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



        resulting pdf






        share|improve this answer


























          2












          2








          2







          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



          resulting pdf






          share|improve this answer













          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



          resulting pdf







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 26 at 4:35









          KurtKurt

          36.8k847162




          36.8k847162























              2














              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}


              enter image description here






              share|improve this answer




























                2














                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}


                enter image description here






                share|improve this answer


























                  2












                  2








                  2







                  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}


                  enter image description here






                  share|improve this answer













                  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}


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 26 at 12:34









                  esddesdd

                  59k34590




                  59k34590






























                      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.




                      draft saved


                      draft discarded














                      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





















































                      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?

                      Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

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