Properly placing an institution logo without messing the layout












1















I am writing my lab report in LaTeX with class article and I don't know how to properly put the university logo in the right side of the paper. As you see on the screenshot below, the logo creates additional blank spaces on the left.



screenshot1



documentclass[11pt]{article}
usepackage{graphicx}
usepackage[utf8]{inputenc}
usepackage[left=2cm,right=2cm,top=1cm,bottom=2cm,a4paper]{geometry}
pagestyle{empty}

begin{document}
pagestyle{plain}
begin{flushleft}
{bf EEM 238 Digital Systems}\
par
First name textsc{Surname}
hfill includegraphics[height=1.5cm]{logo.png}\
underline{ID Number:} 09XXXX76
end{flushleft}

begin{center}%vspace{1cm}
textbf{ large Karnaugh tables}\
Experiment 1
end{center}

rule{linewidth}{0.1mm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

bigskip

end{document}


I wish to obtain the kind of output below but I don't know how to properly put the logo there in the right side:



screenshot2










share|improve this question





























    1















    I am writing my lab report in LaTeX with class article and I don't know how to properly put the university logo in the right side of the paper. As you see on the screenshot below, the logo creates additional blank spaces on the left.



    screenshot1



    documentclass[11pt]{article}
    usepackage{graphicx}
    usepackage[utf8]{inputenc}
    usepackage[left=2cm,right=2cm,top=1cm,bottom=2cm,a4paper]{geometry}
    pagestyle{empty}

    begin{document}
    pagestyle{plain}
    begin{flushleft}
    {bf EEM 238 Digital Systems}\
    par
    First name textsc{Surname}
    hfill includegraphics[height=1.5cm]{logo.png}\
    underline{ID Number:} 09XXXX76
    end{flushleft}

    begin{center}%vspace{1cm}
    textbf{ large Karnaugh tables}\
    Experiment 1
    end{center}

    rule{linewidth}{0.1mm}
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    bigskip

    end{document}


    I wish to obtain the kind of output below but I don't know how to properly put the logo there in the right side:



    screenshot2










    share|improve this question



























      1












      1








      1








      I am writing my lab report in LaTeX with class article and I don't know how to properly put the university logo in the right side of the paper. As you see on the screenshot below, the logo creates additional blank spaces on the left.



      screenshot1



      documentclass[11pt]{article}
      usepackage{graphicx}
      usepackage[utf8]{inputenc}
      usepackage[left=2cm,right=2cm,top=1cm,bottom=2cm,a4paper]{geometry}
      pagestyle{empty}

      begin{document}
      pagestyle{plain}
      begin{flushleft}
      {bf EEM 238 Digital Systems}\
      par
      First name textsc{Surname}
      hfill includegraphics[height=1.5cm]{logo.png}\
      underline{ID Number:} 09XXXX76
      end{flushleft}

      begin{center}%vspace{1cm}
      textbf{ large Karnaugh tables}\
      Experiment 1
      end{center}

      rule{linewidth}{0.1mm}
      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

      bigskip

      end{document}


      I wish to obtain the kind of output below but I don't know how to properly put the logo there in the right side:



      screenshot2










      share|improve this question
















      I am writing my lab report in LaTeX with class article and I don't know how to properly put the university logo in the right side of the paper. As you see on the screenshot below, the logo creates additional blank spaces on the left.



      screenshot1



      documentclass[11pt]{article}
      usepackage{graphicx}
      usepackage[utf8]{inputenc}
      usepackage[left=2cm,right=2cm,top=1cm,bottom=2cm,a4paper]{geometry}
      pagestyle{empty}

      begin{document}
      pagestyle{plain}
      begin{flushleft}
      {bf EEM 238 Digital Systems}\
      par
      First name textsc{Surname}
      hfill includegraphics[height=1.5cm]{logo.png}\
      underline{ID Number:} 09XXXX76
      end{flushleft}

      begin{center}%vspace{1cm}
      textbf{ large Karnaugh tables}\
      Experiment 1
      end{center}

      rule{linewidth}{0.1mm}
      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

      bigskip

      end{document}


      I wish to obtain the kind of output below but I don't know how to properly put the logo there in the right side:



      screenshot2







      graphics templates includegraphics logos






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 13 at 4:03









      Kurt

      38k847162




      38k847162










      asked Feb 12 at 21:29









      mandresybillymandresybilly

      15112




      15112






















          1 Answer
          1






          active

          oldest

          votes


















          1














          There are several posibilities to get your wanted result.



          One possibility is to use a tabularx environment. It creates a table, where we can write your text into the first column and keep the image/logo in the second column. With multirow we can build one cell going over two rows for the image.



          Please see the following MWE



          documentclass[11pt]{article}

          usepackage[utf8]{inputenc}
          usepackage[%
          left=2cm,right=2cm,top=1cm,bottom=2cm,a4paper,
          showframe % <================================== visualize typing area and margins
          ]{geometry}

          usepackage{graphicx}
          usepackage{tabularx}
          usepackage{multirow}

          pagestyle{empty}


          begin{document}
          pagestyle{plain}

          noindentbegin{tabularx}{textwidth}[t]{@{}Xr@{}} % <============================
          textbf{EEM 238 Digital Systems} & multirow{2}{*}{includegraphics[height=1.5cm]{example-image-duck}} \
          underline{ID Number:} 09XXXX76 & \
          end{tabularx}

          %vspace{1cm}
          begin{center}
          textbf{large Karnaugh tables}\
          Experiment 1
          end{center}

          noindentrule{linewidth}{0.1mm}


          bigskip

          end{document}


          Please note that I added command noindent to get rid of the leading space for table and rule. Now table and rule stayed inside the typing area, as you can see with option showframe for package geometry.



          The result is:



          resulting pdf






          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%2f474586%2fproperly-placing-an-institution-logo-without-messing-the-layout%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









            1














            There are several posibilities to get your wanted result.



            One possibility is to use a tabularx environment. It creates a table, where we can write your text into the first column and keep the image/logo in the second column. With multirow we can build one cell going over two rows for the image.



            Please see the following MWE



            documentclass[11pt]{article}

            usepackage[utf8]{inputenc}
            usepackage[%
            left=2cm,right=2cm,top=1cm,bottom=2cm,a4paper,
            showframe % <================================== visualize typing area and margins
            ]{geometry}

            usepackage{graphicx}
            usepackage{tabularx}
            usepackage{multirow}

            pagestyle{empty}


            begin{document}
            pagestyle{plain}

            noindentbegin{tabularx}{textwidth}[t]{@{}Xr@{}} % <============================
            textbf{EEM 238 Digital Systems} & multirow{2}{*}{includegraphics[height=1.5cm]{example-image-duck}} \
            underline{ID Number:} 09XXXX76 & \
            end{tabularx}

            %vspace{1cm}
            begin{center}
            textbf{large Karnaugh tables}\
            Experiment 1
            end{center}

            noindentrule{linewidth}{0.1mm}


            bigskip

            end{document}


            Please note that I added command noindent to get rid of the leading space for table and rule. Now table and rule stayed inside the typing area, as you can see with option showframe for package geometry.



            The result is:



            resulting pdf






            share|improve this answer




























              1














              There are several posibilities to get your wanted result.



              One possibility is to use a tabularx environment. It creates a table, where we can write your text into the first column and keep the image/logo in the second column. With multirow we can build one cell going over two rows for the image.



              Please see the following MWE



              documentclass[11pt]{article}

              usepackage[utf8]{inputenc}
              usepackage[%
              left=2cm,right=2cm,top=1cm,bottom=2cm,a4paper,
              showframe % <================================== visualize typing area and margins
              ]{geometry}

              usepackage{graphicx}
              usepackage{tabularx}
              usepackage{multirow}

              pagestyle{empty}


              begin{document}
              pagestyle{plain}

              noindentbegin{tabularx}{textwidth}[t]{@{}Xr@{}} % <============================
              textbf{EEM 238 Digital Systems} & multirow{2}{*}{includegraphics[height=1.5cm]{example-image-duck}} \
              underline{ID Number:} 09XXXX76 & \
              end{tabularx}

              %vspace{1cm}
              begin{center}
              textbf{large Karnaugh tables}\
              Experiment 1
              end{center}

              noindentrule{linewidth}{0.1mm}


              bigskip

              end{document}


              Please note that I added command noindent to get rid of the leading space for table and rule. Now table and rule stayed inside the typing area, as you can see with option showframe for package geometry.



              The result is:



              resulting pdf






              share|improve this answer


























                1












                1








                1







                There are several posibilities to get your wanted result.



                One possibility is to use a tabularx environment. It creates a table, where we can write your text into the first column and keep the image/logo in the second column. With multirow we can build one cell going over two rows for the image.



                Please see the following MWE



                documentclass[11pt]{article}

                usepackage[utf8]{inputenc}
                usepackage[%
                left=2cm,right=2cm,top=1cm,bottom=2cm,a4paper,
                showframe % <================================== visualize typing area and margins
                ]{geometry}

                usepackage{graphicx}
                usepackage{tabularx}
                usepackage{multirow}

                pagestyle{empty}


                begin{document}
                pagestyle{plain}

                noindentbegin{tabularx}{textwidth}[t]{@{}Xr@{}} % <============================
                textbf{EEM 238 Digital Systems} & multirow{2}{*}{includegraphics[height=1.5cm]{example-image-duck}} \
                underline{ID Number:} 09XXXX76 & \
                end{tabularx}

                %vspace{1cm}
                begin{center}
                textbf{large Karnaugh tables}\
                Experiment 1
                end{center}

                noindentrule{linewidth}{0.1mm}


                bigskip

                end{document}


                Please note that I added command noindent to get rid of the leading space for table and rule. Now table and rule stayed inside the typing area, as you can see with option showframe for package geometry.



                The result is:



                resulting pdf






                share|improve this answer













                There are several posibilities to get your wanted result.



                One possibility is to use a tabularx environment. It creates a table, where we can write your text into the first column and keep the image/logo in the second column. With multirow we can build one cell going over two rows for the image.



                Please see the following MWE



                documentclass[11pt]{article}

                usepackage[utf8]{inputenc}
                usepackage[%
                left=2cm,right=2cm,top=1cm,bottom=2cm,a4paper,
                showframe % <================================== visualize typing area and margins
                ]{geometry}

                usepackage{graphicx}
                usepackage{tabularx}
                usepackage{multirow}

                pagestyle{empty}


                begin{document}
                pagestyle{plain}

                noindentbegin{tabularx}{textwidth}[t]{@{}Xr@{}} % <============================
                textbf{EEM 238 Digital Systems} & multirow{2}{*}{includegraphics[height=1.5cm]{example-image-duck}} \
                underline{ID Number:} 09XXXX76 & \
                end{tabularx}

                %vspace{1cm}
                begin{center}
                textbf{large Karnaugh tables}\
                Experiment 1
                end{center}

                noindentrule{linewidth}{0.1mm}


                bigskip

                end{document}


                Please note that I added command noindent to get rid of the leading space for table and rule. Now table and rule stayed inside the typing area, as you can see with option showframe for package geometry.



                The result is:



                resulting pdf







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 13 at 4:00









                KurtKurt

                38k847162




                38k847162






























                    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%2f474586%2fproperly-placing-an-institution-logo-without-messing-the-layout%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

                    mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

                    How to change which sound is reproduced for terminal bell?

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