TeXnik - Tips TeX and LaTeX


Welcome to the TeXnik website (under construction)

Background images
TUG logo

Main page

Index
UK FAQ
Documentation
Software
CTAN
Search CTAN:

Statistics

Google c.t.t.

Google d.c.t.t.

 


 


bar on left side |  header or footer |  with picture environment |  with text  | 


Bar on left side
logo1.png

A logo in the header or footer

for textclass komascript
    a logo in the upper right
    \titlehead{\hfill \includegraphics[clip=,scale=.4]{logo.eps}}%  Logo
for all classes with fancyhdr
    an example for a footer:
    \usepackage{fancyhdr}
    \newsavebox{\mylogo}
    \savebox{\mylogo}{\includegraphics[width=mm]{/..the path.../logo}}
    \cfoot{\rm\thepage~\usebox{\mylogo}}
    an example for a header:
    \headsep 2cm
    \hoffset -1.5cm
    \textwidth 15cm
    \setlength{\headwidth}{\textwidth}
    %right empty
    \fancyhead[R]{}
    % left
    \fancyhead[L]{
       \includegraphics*[width=1.5cm]{pics/logo.pdf}
       \raisebox{5mm}{
          \begin{tabular}{l}
             \large Technical University of Berlin\\
             \small{Department of ..................}\\
           \end{tabular}
       }
    }

A Logo with the picture environment

in preamble \usepackage{graphicx}:
    \begin{picture}(0,0)(-150,-200)
    \includegraphics[scale=2]{Logo.eps}
    \end{picture}
    maybe, that you have to edit the values (-150,-200), so that the eps-file is in the right upper corner.

A Logo with Text

Write in latex preamble
\usepackage{graphicx}
\newcommand{\myLogo}[2]{%
\setlength{\unitlength}{1cm}
\begin{picture}(0,0)
\put(-8,+8.5){#1}% the logo for the left side
%\put(8,+8.5){#1}% the logo for the right side
\put(-7,9){\parbox[b]{5cm}{\Large \centering #2}}
%\put(3,9){\parbox[b]{5cm}{\Large \centering #2}}% text for the rightside
\end{picture}}
For the titlepage write the command in the same line before or behind the titletext.

The first parameter of \mylogo{}{} is the image, which can be inserted an inlined image. The second parameter is text, which is printed right or left beside the logo.

local time: Sat Dec 7 20:05:58 CET 2019 ; file is: 164.171261574074 days old
contact webmaster _at_ TeXnik.de