Problem mit Template

Vorlagen für Hausarbeiten, Diplomarbeiten, etc. von Usern für User.


al3ko

Problem mit Template

Beitrag von al3ko »

Hallo Leute,

nachdem ich bereits recht viele Seiten in meiner Abschlussarbeit geschrieben habe, habe ich nun erfahren, dass das Layout für die Titel sowie zwei andere Seiten vorgeschrieben ist. Es gibt zwar ein ganzes Template für die Abschlussarbeit, das sich inhaltlich allerdings sehr von meinem unterscheidet (Ich muss gestehen, meine Kenntnisse reichen nur für Standardsachen und ein riesen Template durcharbeiten und verstehen ist zu viel für mich momentan).

Nichts desto trotz konnte ich herausfinden, wo in diesem Wus von Befehlen und Definitionen die Einstellungen für die Titelseite sind. Anbei der Code:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Setup front- and back matter and info-pages about the project
%
\newcommand{\makefrontpage}
{\begin{titlepage}%
    \begin{pspicture}(0cm,0cm)(\textwidth,\textheight)
      %\psgrid

      \rput[bl](-1cm,-1cm){\includegraphics{figure/dtu_elektro_A_UK}}
      \rput[tr](15,24){\includegraphics{figure/dtu_A1_UK}}


      \rput[tl](0.08\textwidth,0.85\textheight){
        \begin{minipage}[t]{14cm}
          
          \textit{\textsf{\Large{
                \begingroup
                \tabcolsep -2mm
                \begin{tabular}{l}
                  \ThesisAuthor
                \end{tabular}
                \endgroup }}}
          
          \vspace*{0.18\textheight}
          
          \begin{flushleft}
            \Huge{\textsf{\textbf{\ThesisTitle}}}
          \end{flushleft}
          
          \vspace*{0.05\textheight}
          
          \begin{flushleft}
            \LARGE{\textsf{\textbf{\Subtitle}}}
          \end{flushleft}
          
          \vspace*{0.05\textheight}
          \textsf{\Large{\projecttype}}
        \end{minipage}}
    \end{pspicture}
   \end{titlepage}%
  \setcounter{footnote}{0}
  % 
  \newpage\thispagestyle{empty}
 }

\newcommand{\makefrontpageempty}
{\begin{titlepage}%
    \setcounter{page}{3}%circumvent warning from hyperref about duplicate
                        %pagenumbering
\begin{pspicture}(0cm,0cm)(\textwidth,\textheight)
      %\psgrid

      \rput[tl](0.08\textwidth,0.85\textheight){
        \begin{minipage}[t]{14cm}
          
          \textit{\textsf{\Large{
                \begingroup
                \tabcolsep -2mm
                \begin{tabular}{l}
                  \ThesisAuthor
                \end{tabular}
                \endgroup }}}
          
          \vspace*{0.18\textheight}
          
          \begin{flushleft}
            \Huge{\textsf{\textbf{\ThesisTitle}}}
          \end{flushleft}
          
          \vspace*{0.05\textheight}
          
          \begin{flushleft}
            \LARGE{\textsf{\textbf{\Subtitle}}}
          \end{flushleft}
          
          \vspace*{0.05\textheight}
          \textsf{\Large{\projecttype}}
        \end{minipage}}
    \end{pspicture}
  \end{titlepage}%
  \setcounter{footnote}{0}%
  \newpage\thispagestyle{empty}
}

\newcommand{\infopage}
 {\begin{titlepage}%
     \setcounter{page}{5}%circumvent warning from hyperref about duplicate
                         %pagenumbering
     \begin{pspicture}(0cm,0cm)(\textwidth,\textheight)
       \rput[tl](0,\textheight){
         \begin{minipage}[t]{14cm}
          \textsf{\ThesisTitle ,\Subtitle}
          \vspace*{0.11\textheight}
          

          \ifx\thesislanguage\danishlang
          \textsf{\textbf{Rapporten er udarbejdet af}}
          \else
          \textsf{\textbf{This report was prepared by}}
          \fi
          
          \textsf{
            \begin{tabular}[t]{l}
              \ThesisAuthor
            \end{tabular}}
          
          \vspace*{0.08\textheight}
          
          \ifx\thesislanguage\danishlang          
          \textsf{\textbf{Vejledere}}
          \else
          \textsf{\textbf{Supervisors}}
          \fi
          
          \textsf{
            \begin{tabular}[t]{l}
              \Supervisor
            \end{tabular}}
          \vspace*{0.15\textheight}
          
        
        \ifx\thesislanguage\danishlang
          \textsf{
            \begin{tabular}{ l l l}
              \hline\\
              Udgivelsesdato:&\quad &   \DatePublished      \\
              \vspace{0.2cm} Klasse:        &      &   \Klasse      \\
              \vspace{0.2cm} Udgave:        &      &   \Udgave      \\
              \vspace{0.2cm} Bemærkninger:  &      &   \begin{minipage}[t]{10cm}
                Denne rapport er indleveret som led i opfyldelse af kravene for
                opnåelse af \Degree{} på Danmarks Tekniske Universitet. 
                Rapporten repræsenterer \ECTSpoints{}~ECTS~point.
              \end{minipage} \\
              \vspace{0.2cm} Rettigheder:    &      &  \copyright\Owner \\
            \end{tabular}}     
          \else
          \textsf{
            \begin{tabular}{ l l l}
              \hline\\
              Release date:&\quad &   \DatePublished      \\
              \vspace{0.2cm} Category:        &      &   \Klasse      \\
              \vspace{0.2cm} Edition:        &      &   \Udgave      \\
              \vspace{0.2cm} Comments:  &      &   \begin{minipage}[t]{10cm}
                This report is part of the requirements to achieve the
                \Degree{} at the Technical University of Denmark. 
                This report represents \ECTSpoints{} ECTS points.
              \end{minipage} \\
              \vspace{0.2cm} Rights:    &      &  \copyright\Owner \\
            \end{tabular}}          
          \fi
        \end{minipage}}
       
          \rput[tl](-0.08\textwidth,0.2\textheight){
            \begin{minipage}[t]{14cm}
              \ifx\thesislanguage\danishlang
              \textsf{
                \begin{tabular}{l}                
                  Institut for Elektroteknologi\\
                  Center for Elteknologi (CET)\\
                  Danmarks Tekniske Universitet\\
                  Elektrovej bygning 325\\
                  2800 Kgs. Lyngby\\
                  \vspace*{0.3cm}  Danmark\\
                  www.elektro.dtu.dk/cet\\
                  \hspace*{-0.3cm}
                  \begin{tabular}{l l l}
                    Tel:& \quad   &(+45) 45 25 35 00\\
                    Fax:& \quad   &(+45) 45 88 61 11\\
                  \end{tabular}\\
                  E-mail: cet@elektro.dtu.dk\\
                \end{tabular}
              }          
              \else       
              \textsf{
                \begin{tabular}{l}                
                  Department of Electrical Engineering\\
                  Centre for Electric Technology (CET)\\
                  Technical University of Denmark\\
                  Elektrovej building 325\\
                  DK-2800 Kgs. Lyngby\\
                  \vspace*{0.3cm}  Denmark\\
                  www.elektro.dtu.dk/cet\\
                  \hspace*{-0.3cm}
                  \begin{tabular}{l l l}
                    Tel:& \quad   &(+45) 45 25 35 00\\
                    Fax:& \quad   &(+45) 45 88 61 11\\
                  \end{tabular}\\
                  E-mail: cet@elektro.dtu.dk\\
                \end{tabular}
              }
              \fi
              %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
              % Use this if more than one institute is involved with the 
              % project. Adjust the coordinates for \rput to fit those of the 
              % first partner
              % 
              % \rput[tl](7,10){
              %   \begin{minipage}[t]{14cm}
              %     \textsf{
              %       \begin{tabular}{l}
              %         Department of Electrical Engineering\\
              %         Automation (AU)\\
              %         Technical University of Denmark \\
              %         Elektrovej building 326 \\
              %         DK-2800 Kgs. Lyngby \\
              %         \vspace*{0.3cm}  Denmark \\
              %         www.elektro.dtu.dk/au\\
              %         \hspace*{-0.3cm}
              %         \begin{tabular}{l l l}
              %           Tel:& \quad   &(+45) 45 25 35 50\\
              %           Fax:& \quad   &(+45) 45 88 12 95\\
              %         \end{tabular}\\
              %         E-mail: bkp@oersted.dtu.dk\\
              %       \end{tabular}
              %     }
              %   } 
              % 
              %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
            \end{minipage}
          }
          
          
        \end{pspicture}
      \end{titlepage}%
      \setcounter{footnote}{0}%
      \newpage\thispagestyle{empty}
    }


\newcommand{\emptypage}
{\begin{titlepage}%
    \begin{pspicture}(0cm,0cm)(\textwidth,\textheight)
    \end{pspicture}
   \end{titlepage}%
  \setcounter{footnote}{0}%
 }


\newcommand{\makebackpage}{
  %disable header for the backmatter
  \pagestyle{empty}
   
  % insert empty page
  \begin{pspicture}(0cm,0cm)(\textwidth,\textheight)
  \end{pspicture}
  
  %print backmatter
  \begin{pspicture}(0cm,0cm)(\textwidth,\textheight)

   \rput[t1](5.5cm,4cm){
	\begin{minipage}[t]{14cm}
           \textsf{
        \ifx\thesislanguage\danishlang             
		\begin{tabular}{l}
            \LARGE{\textbf{www.elektro.dtu.dk}}\\
            \\
            \large Institut for Elektroteknologi\\
            \large Center for Elteknologi (CET)\\ 
            \large Danmarks Tekniske Universitet\\
            \large Elektrovej bygning 325\\
            \large 2800 Kgs. Lyngby\\
            \large Danmark\\
            \hspace*{-0.2cm}\large \begin{tabular}{l l l}
              Tel:& \quad   &(+45) 45 25 38 00\\
              Fax:& \quad   &(+45) 45 93 16 34\\
            \end{tabular}\\
            \large Email: info@elektro.dtu.dk\\
            \\
            \\
            \ISBNNUMBER \\
          \end{tabular}                      
        \else 
          \begin{tabular}{l}
            \LARGE{\textbf{www.elektro.dtu.dk}}\\
            \\
            \large Department of Electrical Engineering\\
            \large Centre for Electric Technology (CET)\\
            \large Technical University of Denmark\\
            \large Elektrovej building 325\\
            \large DK-2800 Kgs. Lyngby\\
            \large Denmark\\
            \hspace*{-0.2cm}\large \begin{tabular}{l l l}
              Tel:& \quad   &(+45) 45 25 38 00\\
              Fax:& \quad   &(+45) 45 93 16 34\\
            \end{tabular}\\
            \large Email: info@elektro.dtu.dk\\
            \\
            \\
            \ISBNNUMBER \\
          \end{tabular}
         \fi }
        \end{minipage}}
  \end{pspicture}
}

\newcommand*{\coverpages}{\makefrontpage \makefrontpageempty \infopage \clearpage{\thispagestyle{empty}\cleardoublepage}}
%
% END - Setup front- and back matter and info-pages about the project
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%% TeX-master: "master"
%%% End:
Das Problem ist, dass ich nicht weiß, wo und wie ich es einfügen kann/muss, denn im Template ist es als eine .sty Datei definiert.

Unter diesem Link findet ihr das komplette Template.
http://www.dtu.dk/upload/centre/cet/ska ... _uk_dk.zip

Meine Preambel sieht so aus:
\documentclass[numbers=noenddot,a4paper,12pt,listof=totoc,bibliography=totoc]{scrreprt}
%\setkomafont{disposition}{\normalcolor\bfseries}
%\renewcommand{\familydefault}{\sfdefault}
\usepackage[USenglish]{babel}
\usepackage[font=footnotesize]{caption}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fancyvrb} %Needed for matlab code in appendix
\usepackage{color}
\usepackage{url}
\usepackage{graphicx} %Graphiken
\usepackage{epstopdf}
\usepackage{appendix}
\usepackage{subfigure}
\usepackage{nomencl} % Abkürzungen
\usepackage{todonotes} % Enables ToDo List
\usepackage{amssymb, amsmath, mathcomp} %Mathe
\usepackage{setspace} %Seitenlayout
\onehalfspacing %1.5 Zeilenabstand. Vorteil: Fußnoten haben normalen Zeilenabstand
\usepackage{tocstyle}
\usetocstyle{allwithdot}%\usetocstyle{noonewithdot}
\usepackage[breaklinks]{hyperref} %Makes hyperreferences and bookmark
\usepackage[none]{hyphenat} % No hyphenations / Keine Silbentrennung
\usepackage{pdfpages} % Includes pdf documents
%\pdfminorversion=5
\newenvironment{packed_item}{
\begin{itemize}
  \setlength{\itemsep}{1pt}
  \setlength{\parskip}{0pt}
  \setlength{\parsep}{0pt}
}{\end{itemize}}
\hypersetup{
pdfstartview={Fit},
colorlinks=true,
linkcolor=black,
citecolor=black,
pdftitle={Boost Converter with SiC based Components},    % title
pdfauthor={Jeremy Alexander Anthon},     % author
%pdfsubject={Bla blubb},   % subject of the document
}
%------------------Anfang Header-----------------
%\usepackage[]{scrpage2}
%\clearscrheadings
%\pagestyle{scrheadings}
%\setlength{\headheight}{1.1\baselineskip}
%\ihead[31910 Synthesis in electrotechnology]{31910 Synthesis in electrotechnology}
%\cfoot{\pagemark}

%------------------Befehle für Tabellen, Gleichungen- und Bildreferencen-----------------
\newcommand{\tblref}[1]{Table~\ref{#1}}
\newcommand{\equref}[1]{Eq.~(\ref{#1})}
\newcommand{\figref}[1]{Fig.~\ref{#1}}
\newcommand{\secref}[1]{Sec.~\ref{#1}}
\newcommand{\chapref}[1]{Chap.~\ref{#1}}
%\newcommand{\subfigref}[1]{Fig.~\subref{#1}}


%\renewcommand{\theequation}{\section.\arabic{equation}} %Fängt in jedem Abschnitt bei 0 an
%\numberwithin{equation}{section} %Nummeriert Gleichungen entsprechend der Abschnitte
%\numberwithin{equation}{subsection} %Nummeriert Gleichungen entsprechend der Unterabschnitte. Vorsicht: Gibts keine Unterabschnitte, steht eine 0 in der Nummerierung!
%\renewcommand{\thefigure}{\thesection.\arabic{figure}} %Fängt in jedem Abschnitt bei 0 an
%\numberwithin{figure}{section} %Nummeriert Graphiken entsprechend der Abschnitte
%\renewcommand{\thetable}{\thesection.\arabic{table}} %Fängt in jedem Abschnitt bei 0 an
\usepackage{chngcntr} %Counter für Fußnoten
\counterwithout{footnote}{chapter} %Managed den fortlaufenden Counter über die Kapitel hinaus

%------------------Anfang Nummerierung Anhang-----------------
\renewcommand\appendix{\par 
\setcounter{section}{0}% 
\setcounter{subsection}{0}% 
\setcounter{figure}{0}%
\setcounter{equation}{0}
\renewcommand\thesection{\Alph{section}}% 
\renewcommand\thefigure{\Alph{section}.\arabic{figure}}
\renewcommand\thetable{\Alph{section}.\arabic{table}}}

\begin{document}
%\input{Titlepage}
\nocite{*}
\pagenumbering{Roman}
%\input{Eid}
\pdfbookmark[1]{Table of contents}{toc}
\tableofcontents
\setcounter{tocdepth}{5} 
%\printglossaries %Creates a glossary
\listoffigures %Creates a list of figures
\listoftables %Creates a list of tables
%\input{Preface}
%\input{Introduction}
\pagenumbering{arabic}
\input{Main}
%\input{Conclusion}
\bibliography{Bibliography}
%\bibliographystyle{alphadin}
\bibliographystyle{plain}
\newpage
\appendix
\numberwithin{equation}{section}
\addchap{Appendix}
\setcounter{chapter}{1}
\addtocontents{toc}{\protect\setcounter{tocdepth}{-1}} 
\input{Appendix}
\end{document}
Was muss ich machen, damit ich das vorgeschriebene Titelblatt in meine Präambel adaptieren kann?

Ich weiß, ich bitte euch um viel. Ich fühle mich gerade aber ziemlich überfordert mit dem ganzen :/


Vielen Dank.

Gruß