Thursday, 31 March 2011

Add multiple logos in LaTex

Now we can easily add multiple logos in any Tex file. The following code is to be included before your document block, if you want to include the logos throughout your document.

\logo{\includegraphics[height=1cm]{i2.png}
  \hspace{4.2 in}
    \includegraphics[height=1cm]{i3.png}}

If not, then you can write this code with logos of your choice wherever you want to include them or from where you want the particular logos to be!

For this you need to  add the graphicx package by means of putting the command  \usepackage{graphicx}  near the top of the LaTeX file, just after the documentclass command. 


The \hspace command adds horizontal space. 

\hspace[*]{length}
 
The length of the space can be expressed in any terms that LaTeX understands, i.e., points, inches, etc. You can add negative as well as positive space with an \hspace command. Adding negative space is like backspacing. 

LaTeX removes horizontal space that comes at the end of a line. If you don't want LaTeX to remove this space, include the optional * argument. Then the space is never removed. 

The output pdf file looks like this :

Add Logos in Latex.




No comments:

Post a Comment