Add a space between image and line in headerAdd Table in Header with imageProblem with headingsHow can I make...

What is this waxed root vegetable?

Why do members of Congress in committee hearings ask witnesses the same question multiple times?

Make me a metasequence

Reason why dimensional travelling would be restricted

Graphing random points on the XY-plane

Why do phishing e-mails use faked e-mail addresses instead of the real one?

VAT refund for a conference ticket in Sweden

Pure Functions: Does "No Side Effects" Imply "Always Same Output, Given Same Input"?

In iTunes 12 on macOS, how can I reset the skip count of a song?

When an experienced monk meditates how much does their mind wander?

Giving a talk in my old university, how prominently should I tell students my salary?

Can two networks with the same subnet be connected to the same router in different VRF?

Citing contemporaneous (interlaced?) preprints

Six real numbers so that product of any five is the sixth one

If nine coins are tossed, what is the probability that the number of heads is even?

Is the Bnei Brak of the Hagada and Megila the same as modern-day Bnei Brak?

Why is s'abonner reflexive?

Where is the fallacy here?

Test pad's ESD protection

How to lift/raise/repair a segment of concrete slab?

Traversing Africa: A Cryptic Journey

Practical reasons to have both a large police force and bounty hunting network?

Did Amazon pay $0 in taxes last year?

If a set is open, does that imply that it has no boundary points?



Add a space between image and line in header


Add Table in Header with imageProblem with headingsHow can I make pages after the first come out correctly with fancyhdr?Problem with Fancyhdr, doesn't shows headers at any pageAdd image in the header of a model CV (Carmine Benedetto)How do I use colorbox to make the a black box header with white text with different alignmentInsert the number and name of the section in the header, (including on a chapter's opening page)Header on odd pagesHeader and footer bar with an image?Job aborted when changing headers using renewcommand{chaptermark} in memoir













3















--- EDIT 2 ---



I've created the following header using an image editor to help you guys understand what I'm trying to do.
This is what I'm trying to do.



--- End of EDIT 2 ---



--- EDIT 1 ---



This is closer to what I have in my header. Only instead of actually writing "Chapter 1" and "Subsection", I'm using rightmark and leftmark, but the result is basically the same. And, of course, I'm using a different image.
The problem is with the line crossing the image. Or maybe with the length of the header line.



--- End of EDIT 1 ---



Ok, I think I've searched for this everywhere and I can't come up with an answer. Does anybody know how to put a space between the image and the header line, so that the line doesn't cross the image?
This is what I have so far.



documentclass[12pt,twoside]{report}
usepackage{graphicx}
usepackage{fancyhdr}
usepackage{blindtext}
pagestyle{fancy}
% ---------------------------- Header ---------------------------- %
fancyhead{}
fancyhead[RE,RO]{nouppercase{Subsection 1.1}}
fancyhead[CO,CE]{MakeUppercase{Chapter 1}}
fancyhead[L]{raisebox{-.6height}[0pt][0pt]{includegraphics[width=1cm]{example-image-a}}}
% ---------------------------- Footer ---------------------------- %
fancyfoot{}
fancyfoot[RE,RO]{thepage}
renewcommand{headrulewidth}{0.4pt}
renewcommand{footrulewidth}{0.4pt}
begin{document}
blindtext
end{document}









share|improve this question









New contributor




Kahlil Salome is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Welcome to TeX SX! Just use raisebox{0pt}[0pt][0pt].

    – Bernard
    yesterday











  • @Bernard... Is there a rasebox needed at all for this purpose? I didn't used one for my answer but I am not really good on fancyhdr usage... So, I would like to know if I should use a raisebox and why. (If you think that a comment on that is related to the question and thus good to be provided here)

    – koleygr
    yesterday











  • For me, raisebox` is here to have the possibility to use the height and depth optional arguments, but there are of course other possibilities. However beware not to have warning abou headheight.

    – Bernard
    yesterday













  • Thanks @Bernard.... I thought it would possibly help elsewhere too... But of course this could be help in other header commands... Thanks!

    – koleygr
    yesterday











  • The raisebox is there to put the image in the same line as the header, not above it. But thanks anyway for all the answers so far!!

    – Kahlil Salome
    yesterday


















3















--- EDIT 2 ---



I've created the following header using an image editor to help you guys understand what I'm trying to do.
This is what I'm trying to do.



--- End of EDIT 2 ---



--- EDIT 1 ---



This is closer to what I have in my header. Only instead of actually writing "Chapter 1" and "Subsection", I'm using rightmark and leftmark, but the result is basically the same. And, of course, I'm using a different image.
The problem is with the line crossing the image. Or maybe with the length of the header line.



--- End of EDIT 1 ---



Ok, I think I've searched for this everywhere and I can't come up with an answer. Does anybody know how to put a space between the image and the header line, so that the line doesn't cross the image?
This is what I have so far.



documentclass[12pt,twoside]{report}
usepackage{graphicx}
usepackage{fancyhdr}
usepackage{blindtext}
pagestyle{fancy}
% ---------------------------- Header ---------------------------- %
fancyhead{}
fancyhead[RE,RO]{nouppercase{Subsection 1.1}}
fancyhead[CO,CE]{MakeUppercase{Chapter 1}}
fancyhead[L]{raisebox{-.6height}[0pt][0pt]{includegraphics[width=1cm]{example-image-a}}}
% ---------------------------- Footer ---------------------------- %
fancyfoot{}
fancyfoot[RE,RO]{thepage}
renewcommand{headrulewidth}{0.4pt}
renewcommand{footrulewidth}{0.4pt}
begin{document}
blindtext
end{document}









share|improve this question









New contributor




Kahlil Salome is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Welcome to TeX SX! Just use raisebox{0pt}[0pt][0pt].

    – Bernard
    yesterday











  • @Bernard... Is there a rasebox needed at all for this purpose? I didn't used one for my answer but I am not really good on fancyhdr usage... So, I would like to know if I should use a raisebox and why. (If you think that a comment on that is related to the question and thus good to be provided here)

    – koleygr
    yesterday











  • For me, raisebox` is here to have the possibility to use the height and depth optional arguments, but there are of course other possibilities. However beware not to have warning abou headheight.

    – Bernard
    yesterday













  • Thanks @Bernard.... I thought it would possibly help elsewhere too... But of course this could be help in other header commands... Thanks!

    – koleygr
    yesterday











  • The raisebox is there to put the image in the same line as the header, not above it. But thanks anyway for all the answers so far!!

    – Kahlil Salome
    yesterday
















3












3








3








--- EDIT 2 ---



I've created the following header using an image editor to help you guys understand what I'm trying to do.
This is what I'm trying to do.



--- End of EDIT 2 ---



--- EDIT 1 ---



This is closer to what I have in my header. Only instead of actually writing "Chapter 1" and "Subsection", I'm using rightmark and leftmark, but the result is basically the same. And, of course, I'm using a different image.
The problem is with the line crossing the image. Or maybe with the length of the header line.



--- End of EDIT 1 ---



Ok, I think I've searched for this everywhere and I can't come up with an answer. Does anybody know how to put a space between the image and the header line, so that the line doesn't cross the image?
This is what I have so far.



documentclass[12pt,twoside]{report}
usepackage{graphicx}
usepackage{fancyhdr}
usepackage{blindtext}
pagestyle{fancy}
% ---------------------------- Header ---------------------------- %
fancyhead{}
fancyhead[RE,RO]{nouppercase{Subsection 1.1}}
fancyhead[CO,CE]{MakeUppercase{Chapter 1}}
fancyhead[L]{raisebox{-.6height}[0pt][0pt]{includegraphics[width=1cm]{example-image-a}}}
% ---------------------------- Footer ---------------------------- %
fancyfoot{}
fancyfoot[RE,RO]{thepage}
renewcommand{headrulewidth}{0.4pt}
renewcommand{footrulewidth}{0.4pt}
begin{document}
blindtext
end{document}









share|improve this question









New contributor




Kahlil Salome is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












--- EDIT 2 ---



I've created the following header using an image editor to help you guys understand what I'm trying to do.
This is what I'm trying to do.



--- End of EDIT 2 ---



--- EDIT 1 ---



This is closer to what I have in my header. Only instead of actually writing "Chapter 1" and "Subsection", I'm using rightmark and leftmark, but the result is basically the same. And, of course, I'm using a different image.
The problem is with the line crossing the image. Or maybe with the length of the header line.



--- End of EDIT 1 ---



Ok, I think I've searched for this everywhere and I can't come up with an answer. Does anybody know how to put a space between the image and the header line, so that the line doesn't cross the image?
This is what I have so far.



documentclass[12pt,twoside]{report}
usepackage{graphicx}
usepackage{fancyhdr}
usepackage{blindtext}
pagestyle{fancy}
% ---------------------------- Header ---------------------------- %
fancyhead{}
fancyhead[RE,RO]{nouppercase{Subsection 1.1}}
fancyhead[CO,CE]{MakeUppercase{Chapter 1}}
fancyhead[L]{raisebox{-.6height}[0pt][0pt]{includegraphics[width=1cm]{example-image-a}}}
% ---------------------------- Footer ---------------------------- %
fancyfoot{}
fancyfoot[RE,RO]{thepage}
renewcommand{headrulewidth}{0.4pt}
renewcommand{footrulewidth}{0.4pt}
begin{document}
blindtext
end{document}






graphics header-footer






share|improve this question









New contributor




Kahlil Salome is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Kahlil Salome is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 23 hours ago







Kahlil Salome













New contributor




Kahlil Salome is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









Kahlil SalomeKahlil Salome

186




186




New contributor




Kahlil Salome is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Kahlil Salome is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Kahlil Salome is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • Welcome to TeX SX! Just use raisebox{0pt}[0pt][0pt].

    – Bernard
    yesterday











  • @Bernard... Is there a rasebox needed at all for this purpose? I didn't used one for my answer but I am not really good on fancyhdr usage... So, I would like to know if I should use a raisebox and why. (If you think that a comment on that is related to the question and thus good to be provided here)

    – koleygr
    yesterday











  • For me, raisebox` is here to have the possibility to use the height and depth optional arguments, but there are of course other possibilities. However beware not to have warning abou headheight.

    – Bernard
    yesterday













  • Thanks @Bernard.... I thought it would possibly help elsewhere too... But of course this could be help in other header commands... Thanks!

    – koleygr
    yesterday











  • The raisebox is there to put the image in the same line as the header, not above it. But thanks anyway for all the answers so far!!

    – Kahlil Salome
    yesterday





















  • Welcome to TeX SX! Just use raisebox{0pt}[0pt][0pt].

    – Bernard
    yesterday











  • @Bernard... Is there a rasebox needed at all for this purpose? I didn't used one for my answer but I am not really good on fancyhdr usage... So, I would like to know if I should use a raisebox and why. (If you think that a comment on that is related to the question and thus good to be provided here)

    – koleygr
    yesterday











  • For me, raisebox` is here to have the possibility to use the height and depth optional arguments, but there are of course other possibilities. However beware not to have warning abou headheight.

    – Bernard
    yesterday













  • Thanks @Bernard.... I thought it would possibly help elsewhere too... But of course this could be help in other header commands... Thanks!

    – koleygr
    yesterday











  • The raisebox is there to put the image in the same line as the header, not above it. But thanks anyway for all the answers so far!!

    – Kahlil Salome
    yesterday



















Welcome to TeX SX! Just use raisebox{0pt}[0pt][0pt].

– Bernard
yesterday





Welcome to TeX SX! Just use raisebox{0pt}[0pt][0pt].

– Bernard
yesterday













@Bernard... Is there a rasebox needed at all for this purpose? I didn't used one for my answer but I am not really good on fancyhdr usage... So, I would like to know if I should use a raisebox and why. (If you think that a comment on that is related to the question and thus good to be provided here)

– koleygr
yesterday





@Bernard... Is there a rasebox needed at all for this purpose? I didn't used one for my answer but I am not really good on fancyhdr usage... So, I would like to know if I should use a raisebox and why. (If you think that a comment on that is related to the question and thus good to be provided here)

– koleygr
yesterday













For me, raisebox` is here to have the possibility to use the height and depth optional arguments, but there are of course other possibilities. However beware not to have warning abou headheight.

– Bernard
yesterday







For me, raisebox` is here to have the possibility to use the height and depth optional arguments, but there are of course other possibilities. However beware not to have warning abou headheight.

– Bernard
yesterday















Thanks @Bernard.... I thought it would possibly help elsewhere too... But of course this could be help in other header commands... Thanks!

– koleygr
yesterday





Thanks @Bernard.... I thought it would possibly help elsewhere too... But of course this could be help in other header commands... Thanks!

– koleygr
yesterday













The raisebox is there to put the image in the same line as the header, not above it. But thanks anyway for all the answers so far!!

– Kahlil Salome
yesterday







The raisebox is there to put the image in the same line as the header, not above it. But thanks anyway for all the answers so far!!

– Kahlil Salome
yesterday












2 Answers
2






active

oldest

votes


















2














A simple solution redefines headrule to fine-tune its placement:



documentclass[12pt,twoside]{report}
usepackage{graphicx}
usepackage{fancyhdr}
usepackage{blindtext}
pagestyle{fancy}
% ---------------------------- Header ---------------------------- %
fancyhead{}
fancyhead[RE,RO]{nouppercase{Subsection 1.1}}
fancyhead[CO,CE]{MakeUppercase{Chapter 1}}
fancyhead[L]{raisebox{-.7height}[0pt][0pt]{includegraphics[width=1cm]{example-image-a}}}
% ---------------------------- Footer ---------------------------- %
fancyfoot{}
fancyfoot[RE,RO]{thepage}
renewcommand{headrulewidth}{0.4pt}
renewcommand{footrulewidth}{0.4pt}
renewcommand{headrule}{hspace*{1.2cm}rule[2ex]{dimexprtextwidth-1.2cm}{0.4pt}}

begin{document}

blindtext

end{document}


enter image description here






share|improve this answer































    2














    Adding a vspace after your includegraphics should do the trick. No razebox needed:



    documentclass[12pt,twoside]{report}
    usepackage{graphicx}
    usepackage{fancyhdr}
    usepackage{blindtext}
    pagestyle{fancy}
    % ---------------------------- Header ---------------------------- %
    fancyhead{} % blank fancyhead command which clears all the header fields.%
    % --------- The lines below are commented because I'm using in the original file, but I think that there is no need for it in here. ---------
    % fancyhead[RE,RO]{nouppercase{rightmark}}
    % renewcommand{chaptermark}[1]{%
    % markboth{#1}{}}
    % fancyhead[CO,CE]{MakeUppercase{leftmark}}
    fancyhead[L]{includegraphics[width=1cm]{example-image-a}vspace{3pt}}
    % ---------------------------- Footer ---------------------------- %
    fancyfoot{} %Clears the footer fields using a blank fancyfoot command.%
    fancyfoot[RE,RO]{thepage} % makes the page number appear on the right of the footer for an even page and the right for an odd. The thepage command returns the page number of the page it's used on.
    renewcommand{headrulewidth}{0.4pt}
    renewcommand{footrulewidth}{0.4pt}
    begin{document}
    blindtext
    end{document}





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


      }
      });






      Kahlil Salome is a new contributor. Be nice, and check out our Code of Conduct.










      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477761%2fadd-a-space-between-image-and-line-in-header%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














      A simple solution redefines headrule to fine-tune its placement:



      documentclass[12pt,twoside]{report}
      usepackage{graphicx}
      usepackage{fancyhdr}
      usepackage{blindtext}
      pagestyle{fancy}
      % ---------------------------- Header ---------------------------- %
      fancyhead{}
      fancyhead[RE,RO]{nouppercase{Subsection 1.1}}
      fancyhead[CO,CE]{MakeUppercase{Chapter 1}}
      fancyhead[L]{raisebox{-.7height}[0pt][0pt]{includegraphics[width=1cm]{example-image-a}}}
      % ---------------------------- Footer ---------------------------- %
      fancyfoot{}
      fancyfoot[RE,RO]{thepage}
      renewcommand{headrulewidth}{0.4pt}
      renewcommand{footrulewidth}{0.4pt}
      renewcommand{headrule}{hspace*{1.2cm}rule[2ex]{dimexprtextwidth-1.2cm}{0.4pt}}

      begin{document}

      blindtext

      end{document}


      enter image description here






      share|improve this answer




























        2














        A simple solution redefines headrule to fine-tune its placement:



        documentclass[12pt,twoside]{report}
        usepackage{graphicx}
        usepackage{fancyhdr}
        usepackage{blindtext}
        pagestyle{fancy}
        % ---------------------------- Header ---------------------------- %
        fancyhead{}
        fancyhead[RE,RO]{nouppercase{Subsection 1.1}}
        fancyhead[CO,CE]{MakeUppercase{Chapter 1}}
        fancyhead[L]{raisebox{-.7height}[0pt][0pt]{includegraphics[width=1cm]{example-image-a}}}
        % ---------------------------- Footer ---------------------------- %
        fancyfoot{}
        fancyfoot[RE,RO]{thepage}
        renewcommand{headrulewidth}{0.4pt}
        renewcommand{footrulewidth}{0.4pt}
        renewcommand{headrule}{hspace*{1.2cm}rule[2ex]{dimexprtextwidth-1.2cm}{0.4pt}}

        begin{document}

        blindtext

        end{document}


        enter image description here






        share|improve this answer


























          2












          2








          2







          A simple solution redefines headrule to fine-tune its placement:



          documentclass[12pt,twoside]{report}
          usepackage{graphicx}
          usepackage{fancyhdr}
          usepackage{blindtext}
          pagestyle{fancy}
          % ---------------------------- Header ---------------------------- %
          fancyhead{}
          fancyhead[RE,RO]{nouppercase{Subsection 1.1}}
          fancyhead[CO,CE]{MakeUppercase{Chapter 1}}
          fancyhead[L]{raisebox{-.7height}[0pt][0pt]{includegraphics[width=1cm]{example-image-a}}}
          % ---------------------------- Footer ---------------------------- %
          fancyfoot{}
          fancyfoot[RE,RO]{thepage}
          renewcommand{headrulewidth}{0.4pt}
          renewcommand{footrulewidth}{0.4pt}
          renewcommand{headrule}{hspace*{1.2cm}rule[2ex]{dimexprtextwidth-1.2cm}{0.4pt}}

          begin{document}

          blindtext

          end{document}


          enter image description here






          share|improve this answer













          A simple solution redefines headrule to fine-tune its placement:



          documentclass[12pt,twoside]{report}
          usepackage{graphicx}
          usepackage{fancyhdr}
          usepackage{blindtext}
          pagestyle{fancy}
          % ---------------------------- Header ---------------------------- %
          fancyhead{}
          fancyhead[RE,RO]{nouppercase{Subsection 1.1}}
          fancyhead[CO,CE]{MakeUppercase{Chapter 1}}
          fancyhead[L]{raisebox{-.7height}[0pt][0pt]{includegraphics[width=1cm]{example-image-a}}}
          % ---------------------------- Footer ---------------------------- %
          fancyfoot{}
          fancyfoot[RE,RO]{thepage}
          renewcommand{headrulewidth}{0.4pt}
          renewcommand{footrulewidth}{0.4pt}
          renewcommand{headrule}{hspace*{1.2cm}rule[2ex]{dimexprtextwidth-1.2cm}{0.4pt}}

          begin{document}

          blindtext

          end{document}


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 20 hours ago









          BernardBernard

          172k776204




          172k776204























              2














              Adding a vspace after your includegraphics should do the trick. No razebox needed:



              documentclass[12pt,twoside]{report}
              usepackage{graphicx}
              usepackage{fancyhdr}
              usepackage{blindtext}
              pagestyle{fancy}
              % ---------------------------- Header ---------------------------- %
              fancyhead{} % blank fancyhead command which clears all the header fields.%
              % --------- The lines below are commented because I'm using in the original file, but I think that there is no need for it in here. ---------
              % fancyhead[RE,RO]{nouppercase{rightmark}}
              % renewcommand{chaptermark}[1]{%
              % markboth{#1}{}}
              % fancyhead[CO,CE]{MakeUppercase{leftmark}}
              fancyhead[L]{includegraphics[width=1cm]{example-image-a}vspace{3pt}}
              % ---------------------------- Footer ---------------------------- %
              fancyfoot{} %Clears the footer fields using a blank fancyfoot command.%
              fancyfoot[RE,RO]{thepage} % makes the page number appear on the right of the footer for an even page and the right for an odd. The thepage command returns the page number of the page it's used on.
              renewcommand{headrulewidth}{0.4pt}
              renewcommand{footrulewidth}{0.4pt}
              begin{document}
              blindtext
              end{document}





              share|improve this answer




























                2














                Adding a vspace after your includegraphics should do the trick. No razebox needed:



                documentclass[12pt,twoside]{report}
                usepackage{graphicx}
                usepackage{fancyhdr}
                usepackage{blindtext}
                pagestyle{fancy}
                % ---------------------------- Header ---------------------------- %
                fancyhead{} % blank fancyhead command which clears all the header fields.%
                % --------- The lines below are commented because I'm using in the original file, but I think that there is no need for it in here. ---------
                % fancyhead[RE,RO]{nouppercase{rightmark}}
                % renewcommand{chaptermark}[1]{%
                % markboth{#1}{}}
                % fancyhead[CO,CE]{MakeUppercase{leftmark}}
                fancyhead[L]{includegraphics[width=1cm]{example-image-a}vspace{3pt}}
                % ---------------------------- Footer ---------------------------- %
                fancyfoot{} %Clears the footer fields using a blank fancyfoot command.%
                fancyfoot[RE,RO]{thepage} % makes the page number appear on the right of the footer for an even page and the right for an odd. The thepage command returns the page number of the page it's used on.
                renewcommand{headrulewidth}{0.4pt}
                renewcommand{footrulewidth}{0.4pt}
                begin{document}
                blindtext
                end{document}





                share|improve this answer


























                  2












                  2








                  2







                  Adding a vspace after your includegraphics should do the trick. No razebox needed:



                  documentclass[12pt,twoside]{report}
                  usepackage{graphicx}
                  usepackage{fancyhdr}
                  usepackage{blindtext}
                  pagestyle{fancy}
                  % ---------------------------- Header ---------------------------- %
                  fancyhead{} % blank fancyhead command which clears all the header fields.%
                  % --------- The lines below are commented because I'm using in the original file, but I think that there is no need for it in here. ---------
                  % fancyhead[RE,RO]{nouppercase{rightmark}}
                  % renewcommand{chaptermark}[1]{%
                  % markboth{#1}{}}
                  % fancyhead[CO,CE]{MakeUppercase{leftmark}}
                  fancyhead[L]{includegraphics[width=1cm]{example-image-a}vspace{3pt}}
                  % ---------------------------- Footer ---------------------------- %
                  fancyfoot{} %Clears the footer fields using a blank fancyfoot command.%
                  fancyfoot[RE,RO]{thepage} % makes the page number appear on the right of the footer for an even page and the right for an odd. The thepage command returns the page number of the page it's used on.
                  renewcommand{headrulewidth}{0.4pt}
                  renewcommand{footrulewidth}{0.4pt}
                  begin{document}
                  blindtext
                  end{document}





                  share|improve this answer













                  Adding a vspace after your includegraphics should do the trick. No razebox needed:



                  documentclass[12pt,twoside]{report}
                  usepackage{graphicx}
                  usepackage{fancyhdr}
                  usepackage{blindtext}
                  pagestyle{fancy}
                  % ---------------------------- Header ---------------------------- %
                  fancyhead{} % blank fancyhead command which clears all the header fields.%
                  % --------- The lines below are commented because I'm using in the original file, but I think that there is no need for it in here. ---------
                  % fancyhead[RE,RO]{nouppercase{rightmark}}
                  % renewcommand{chaptermark}[1]{%
                  % markboth{#1}{}}
                  % fancyhead[CO,CE]{MakeUppercase{leftmark}}
                  fancyhead[L]{includegraphics[width=1cm]{example-image-a}vspace{3pt}}
                  % ---------------------------- Footer ---------------------------- %
                  fancyfoot{} %Clears the footer fields using a blank fancyfoot command.%
                  fancyfoot[RE,RO]{thepage} % makes the page number appear on the right of the footer for an even page and the right for an odd. The thepage command returns the page number of the page it's used on.
                  renewcommand{headrulewidth}{0.4pt}
                  renewcommand{footrulewidth}{0.4pt}
                  begin{document}
                  blindtext
                  end{document}






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered yesterday









                  koleygrkoleygr

                  11.8k11038




                  11.8k11038






















                      Kahlil Salome is a new contributor. Be nice, and check out our Code of Conduct.










                      draft saved

                      draft discarded


















                      Kahlil Salome is a new contributor. Be nice, and check out our Code of Conduct.













                      Kahlil Salome is a new contributor. Be nice, and check out our Code of Conduct.












                      Kahlil Salome is a new contributor. Be nice, and check out our Code of Conduct.
















                      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%2f477761%2fadd-a-space-between-image-and-line-in-header%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

                      El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

                      Castillo d'Acher Características Menú de navegación

                      Connecting two nodes from the same mother node horizontallyTikZ: What EXACTLY does the the |- notation for...