Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Based on the question on Use TikZ to draw frontpage, I have taken the liberty to create my own custom LaTeX title template for my school's reports. So far I created this.

\documentclass[paper=a4,
11pt,
DIV=14,
parskip=half]{scrartcl}

\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage{lipsum}
\usepackage{color}

%MEDTADATA ,
\def\myauthor{Author} % Author
\def\mycoauthor{} % co-author
\def\mytitle{Title} % titel van het document
\def\mydate{27 Januari 2010} % datum indien gewenst
\def\typedoc{Lab report} %type of document: lab report, article
\def\mycourse{Course Name} % gives the name of the coure

\begin{document}


\begin{titlepage}.
%Use the tikzpicture for the document banner

\begin{tikzpicture}[remember picture,overlay]

\coordinate [below=2.5cm] (midpoint) at (current page.north);

\node [name=colourbar,
anchor=base,
fill=blue!40,
text = white,
minimum width=\paperwidth,
minimum height=1cm] at (midpoint){\Large{\textsf{Departement Industriële Wetenschappen}}};

% Define the point where the logo will go
\coordinate [right=4cm] (logo) at (colourbar.west);

% Set coordinate system origin
\begin{scope}[shift=(logo)]
% Draw the outline
\filldraw [white,draw=blue!40] (2.3,0.85) -- (-2,0.85) -- (-2.8,-0.85) -- (2.3,-0.85) --cycle;
% Include the logo
\node {\includegraphics[width=4cm]{Logo_Lessius_Mechelen_colour.jpg}};
\end{scope}

\end{tikzpicture}

\vspace{3cm}
\begin{center}
\Huge
\textsf{\mytitle}
\end{center}
\begin{flushright}
\vspace{2cm}

%\LARGE
\Large
\textsf{\typedoc\\
\emph{\textcolor{gray}{door}} \\
\myauthor\\
\mycoauthor}

\vspace{1cm}
\textsf{\mycourse}

\vspace{1cm}
\textsf{\mydate}\\ %%Date - better you write it yourself.

\vspace{1cm}
\textsf{Docent:\\ % meervoud maken door middel van 
Prof. Dr..... \\
}

\vspace{1cm}
\textsf{Lessius Mechelen}

\textsf{Schakelprogramma Industrële Wetenschappen}
\end{flushright}

%Fill up the rest off the document
\vfill
%Add horizontal line
\hrule 
\end{titlepage}
\end{document}

I am very pleased with the result. There is however one small thing that bothers me. Example

In the TikZ picture, I would like to add a bit more space (1 cm) between the logo and the text (Departement Industriële Wetenschappen) written next to it.

Does anybody have a solution?

share|improve this question
1  
can't you just simply xshift=1cm the \node that contains \includegraphics? –  Martin H Jan 27 '11 at 17:11

2 Answers 2

up vote 9 down vote accepted
\node [name=colourbar,
anchor=base,
fill=blue!40,
minimum width=\paperwidth,
minimum height=1cm] at (midpoint){};

\node [
fill=blue!40,
text = white,
xshift=1cm] at (midpoint){\Large{\textsf{Departement Industriële Wetenschappen}}};

You can't use xshift=1cm directly because the rectangle is also moved.

share|improve this answer
    
Thank you. Happy TeXing ! –  Trap Jan 28 '11 at 19:18

You can add \hspace{1cm} before \Large - it's not so beautiful but works.

share|improve this answer
    
Thanx, however I prefer Altermundus his answer. It has more flexibility to it. –  Trap Jan 29 '11 at 12:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.