0

Hello I'm trying to insert to logos of my university and work at the upper part of my thesis on the title page, I would like to place them on the header area but just for this page. Below my cod, result and desire result. Does someone know how to achieve this?

enter image description here

\usepackage[T1]{fontenc}
\usepackage{xltabular} % for 'xltabular' environment
\usepackage{booktabs}  % for well-spaced horizontal rules
\usepackage{amsmath}% for \smash[b] macro
\usepackage[skip=0.333\baselineskip]{caption}
\usepackage{ragged2e}  % \Centering & \RaggedRight macros

\newcolumntype{Y}{>{\centering\arraybackslash}X} % \newcolumntype{P}{>{\centering\arraybackslash}p{\hsize}} % \newcolumntype{Z}{>{\raggedright\arraybackslash}X} % \newcolumntype{Q}{>{\Centering}p{\hsize}} \usepackage{adjustbox}

\begin{document}

\title{xxxxxxx} \author{{Submitted by\ \large xxxx}} %\parbox{7cm} \date{\normalsize xxx, \\today}

\makeatletter \begin{titlepage}

\begin{minipage}[l]{0.45\textwidth}
\includegraphics[width=\linewidth]{xx.png}
\end{minipage}
    \begin{minipage}[l][5cm]{1\textwidth}   
    \end{minipage}
\begin{minipage}[r]{0.45\textwidth}
\includegraphics[width=\linewidth]{xx.png}
\end{minipage}

    \begin{center}

    {\LARGE \bfseries \@title }\\[8ex] 
    {\normalsize Master's thesis for the award of the academic degree}\\[2ex]
    {\normalsize "Master of Science"}\\[5ex]
    {\normalsize \@author}\\[5ex]
    {\normalsize \@date}\\[15ex]
    \end{center}

\noindent       
{\normalsize\textbf{ Matriculation No.:} xxxxx}\\[2ex]
{\normalsize \textbf{Examiner(s):}}\\[2ex]
{\normalsize \textbf{Supervisor:}}\\ 

\end{titlepage}

\newpage

\end{document}

  • 1
    I did something similar using te fancyhdr package and defining a new header for the first page. In your case it would mean including (and scaling) the two logo's on the left resp. right handed side and defining a new headrule. See for example pages 22-23 in the manual. – alchemist Feb 27 '23 at 13:01

1 Answers1

3

I added an example of a custom header to your code example based on the image you provided. It uses the packages fancyhdr and dashrule. Adjustment of the \rule is restricted by the line height. So maybe you need to use tikz to create the correct headlines and separation. I didn't alter any other aspect of your code.

\documentclass[11pt]{article}

\usepackage[a4paper,margin=2cm]{geometry} \usepackage[demo]{graphicx}

%\usepackage[T1]{fontenc} \usepackage{xltabular} % for 'xltabular' environment \usepackage{booktabs} % for well-spaced horizontal rules \usepackage{amsmath}% for \smash[b] macro \usepackage[skip=0.333\baselineskip]{caption} \usepackage{ragged2e} % \Centering & \RaggedRight macros

\newcolumntype{Y}{>{\centering\arraybackslash}X} % \newcolumntype{P}{>{\centering\arraybackslash}p{\hsize}} % \newcolumntype{Z}{>{\raggedright\arraybackslash}X} % \newcolumntype{Q}{>{\Centering}p{\hsize}} \usepackage{adjustbox}

% ===== adding custom header and headrule to title page \usepackage{dashrule} \usepackage{fancyhdr}

\fancypagestyle{title}{ \fancyhf{} \setlength{\headheight}{40pt} \setlength{\headsep}{18pt} \fancyhead[L]{\setlength{\unitlength}{5pt} \begin{picture}(6,4) \put(-1,0){\includegraphics[height=30pt]{example-a.png}} \end{picture}} \fancyhead[R]{\setlength{\unitlength}{5pt} \begin{picture}(6,4) \put(-24,0){\includegraphics[height=30pt]{example-b.png}} \end{picture}} \fancyhead[C]{Title} \renewcommand{\headrule}{\hfill \rule{14cm}{2pt} \par \hfill \color{blue}\rule[6pt]{6cm}{2pt} \par \hfill \color{red}\rule[12pt]{2cm}{2pt}} \renewcommand{\footrulewidth}{0pt} } % =====

\begin{document}

\title{xxxxxxx}
\author{{Submitted by\\  \large xxxx}}
%\parbox{7cm}
\date{\normalsize xxx, \\\today}

\makeatletter
\begin{titlepage}
    \thispagestyle{title}   %   <- use the new header template (no footer)

    \begin{minipage}[l]{0.45\textwidth}
        \includegraphics[width=\linewidth]{xx.png}
    \end{minipage}
    \begin{minipage}[l][5cm]{1\textwidth}   
    \end{minipage}
    \begin{minipage}[r]{0.45\textwidth}
        \includegraphics[width=\linewidth]{xx.png}
    \end{minipage}

    \begin{center}

        {\LARGE \bfseries \@title }\\[8ex] 
        {\normalsize Master's thesis for the award of the academic degree}\\[2ex]
        {\normalsize "Master of Science"}\\[5ex]
        {\normalsize \@author}\\[5ex]
        {\normalsize \@date}\\[15ex]
    \end{center}

    \noindent       
    {\normalsize\textbf{Matriculation No.:} xxxxx}\\[2ex]
    {\normalsize \textbf{Examiner(s):}}\\[2ex]
    {\normalsize \textbf{Supervisor:}}\\ 

\end{titlepage}

\newpage

\end{document}

headsample

Replace the example.png with your logo (png or jpg) and adjust the dimensions of the \picture so they fit.

alchemist
  • 1,761