Page LayoutLogo Alignment on Title Page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
astrak
Posts: 10
Joined: Mon Oct 29, 2012 8:00 pm

Logo Alignment on Title Page

Post by astrak »

Hello!

I wrote nice seminar work in LaTeX but I have two problems with a title page and I can’t find solution.

My source for the title page is:

Code: Select all

\documentclass[a4paper,11pt]{article}

\usepackage[czech]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{amsmath}

\begin{document}
\begin{titlepage}
\center

\textsc{\LARGE Name of the university}\\[0.5cm]
\textsc{\Large Address of the university.}\\[1.5cm]

\begin{figure}
\includegraphics[width=9.27cm,height=4cm]{logo}\\[2cm]
\end{figure}

\textsc{\large Branch}\\[1cm]
{ \huge \bfseries Name of the work}\\[0.3cm]
{ \huge \bfseries Second name of the work}\\[3cm]

\begin{minipage}{1.5\textwidth}
\begin{flushleft} \large
\emph{Autor:}\\
\textsc{Name}\\
\textsc{Mail}\\
\textsc{text}\\
\textsc{text}\\
\textsc{text2}\\[2cm]
\end{flushleft}
\end{minipage}

\Large 3. prosinec 2012
\end{titlepage}
Final alignment is the logo on the top and date is immediately another line after the “text2”. But, how to replace logo between “Address of the university.” and “Branch”? In the source it’s in correct form. And second thing – how to put more space between “text2” and “date” (2 cm doesn’t work…)?

p.s.: it’s my first task in LaTeX so if my question will be stupid I apologize for that.

Thank you in advance!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Logo Alignment on Title Page

Post by localghost »

Drop the {figure} environment. Or do you want the logo to float?

And perhaps you should replace \center by \centering.


Best regards and welcome to the board
Thorsten
astrak
Posts: 10
Joined: Mon Oct 29, 2012 8:00 pm

Logo Alignment on Title Page

Post by astrak »

localghost wrote:Drop the {figure} environment. Or do you want the logo to float?
I only want to replace position of this logo. I try to check {figure} environment - thank you for recomandation.

Could you help me also with second problem?
astrak wrote: ... how to put more space between “text2” and “date” (2 cm doesn’t work…)?
I've tried more possibilities for more space but it still doesn't work and on the title page is still enough space.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Logo Alignment on Title Page

Post by localghost »

astrak wrote:I only want to replace position of this logo. […]
What do you mean with "replace position"? If you want to maintain the position of the logo where you declared it in the source, just drop the float environment (as already mentioned). That would also center the logo.
astrak wrote:[…] I've tried more possibilities for more space but it still doesn't work and on the title page is still enough space.
Try something like this.

Code: Select all

\documentclass[11pt,a4paper,czech]{article}
\usepackage[T1]{fontenc}
\usepackage{selinput}
\SelectInputMappings{     % semi-automatice determination
  aacute={á},             % of input encoding
  ecaron={ě},             % by a list of selcted glyphs
  Euro={€}                % see: http://partners.adobe.com/public/developer/en/opentype/glyphlist.txt
}
\usepackage{babel}
\usepackage{graphicx}

\begin{document}
  \begin{titlepage}
    \centering

    \textsc{\LARGE Name of the university}\\[0.5cm]
    \textsc{\Large Address of the university.}\\[2cm]
    \includegraphics[width=9.27cm,height=4cm]{logo}\\[2cm]
    \textsc{\large Branch}\\[1cm]
    \textbf{\huge Name of the work}\\[0.3cm]
    \textbf{\huge Second name of the work}\\[3cm]

    \raggedright
    \emph{Autor:}\\
    \textsc{Name}\\
    \texttt{Mail}\\
    \textsc{text}\\
    \textsc{text}\\
    \textsc{text2}\\

    \centering
    \vfill
    \Large
    3.\ prosinec 2012
  \end{titlepage}
\end{document}
By the way, for a document like a thesis you will probably need a class that supports chapters like report, the equivalent scrreprt (from KOMA-Script) or the memoir class.
Post Reply