# Prevent newline in title of beamer presentation

How can I prevent the new line indicated in the picture below?

Here is a MWE:

\documentclass[svgnames,9pt]{beamer}
\usepackage[latin1]{inputenc}
\usetheme{Warsaw}
\setbeamerfont{footline}{size=\fontsize{6}{8}\selectfont}
\makeatletter
\setbeamertemplate{frametitle}
{%
\nointerlineskip%
\vskip-2pt%
\hbox{\leavevmode
\beamer@tempdim=\textwidth%
\hskip-\Gm@lmargin\hbox{%
\setbox\beamer@tempbox=\hbox{\begin{minipage}[b]{\paperwidth}%
\vbox{}\vskip.50ex% NEW: original \vskip-.75ex
\leftskip0.3cm%
\rightskip0.3cm plus1fil\leavevmode
\insertframetitle%
\ifx\insertframesubtitle\@empty%
\strut\par%
\else
\fi%
\nointerlineskip
\vbox{}%
\end{minipage}}%
\beamer@tempdim=\ht\beamer@tempbox%
\begin{pgfpicture}{0pt}{0pt}{\paperwidth}{\beamer@tempdim}
\usebeamercolor{frametitle right}
\pgfpathrectangle{\pgfpointorigin}{\pgfpoint{\paperwidth}{\beamer@tempdim}}
\pgfusepath{clip}
\end{pgfpicture}
\hskip-\paperwidth%
\box\beamer@tempbox%
}%
\hskip-\Gm@rmargin%
}%
\nointerlineskip
\vskip-0.2pt
\vskip-2pt
}
\makeatother

\title[short title]{\huge \textbf{Long Title}}
\author[Me]{}
\date{}

\begin{document}
\begin{frame}

\begin{figure}[h!]
\includegraphics[scale=0.2]{../Thesis/images/Logo_Unisi_2012.jpg}
\end{figure}

\begin{center}
\begin{minipage}[b]{0.5\textwidth}
\centering
University of Siena\\Master Thesis in Computer Science Engineering
\end{minipage}%
\end{center}

\titlepage

\begin{minipage}[t]{0.5\textwidth}
\vspace{-2cm}
\begin{flushleft}
{ \textit{Author}:\vspace*{0.1cm} \\ Me }
\end{flushleft}
\end{minipage}%
%
\begin{minipage}[t]{0.5\textwidth}
\vspace{-2cm}
\begin{flushright}
{\textit{Supervisor}:\vspace*{0.1cm} \\ Prof. Him \\}
\end{flushright}
\end{minipage}%

\vspace{-0.7cm}
\begin{center}
\begin{minipage}[b]{0.5\textwidth}
\centering
\small
\end{minipage}%
\end{center}

\end{frame}
\end{document}

-
Sorry, but I don't understand why you don't customize the title page with the apposite title page template. An example: How to customize \titlepage in beamer?. BTW: you might be interested in an italian guide called Introduzione alla personalizzazione di Beamer. –  Claudio Fiandrino Dec 4 '12 at 11:19
@ClaudioFiandrino - I just wanted to use my personal layout, is it such a bad habit doing it this way?.thks for pointing out the tutorial. –  Matteo Dec 4 '12 at 11:22
@ClaudioFiandrino - BTW, I used the \mbox{} command and the line will not be broken, however it is not centred (even though I put the \centering command). How can I solve the problem? –  Matteo Dec 4 '12 at 11:24
Have you tried with Master Thesis in Computer Science~Engineering? –  Claudio Fiandrino Dec 4 '12 at 11:26
@ClaudioFiandrino - yes, but it produced the following effect: Master Thesis in Computer\\Science Engineering. (I put \\ where the new line occurs) –  Matteo Dec 4 '12 at 11:30
show 1 more comment

Change

\begin{minipage}[b]{0.5\textwidth}
\centering
University of Siena\\Master Thesis in Computer Science Engineering
\end{minipage}%


to

\begin{minipage}[b]{0.7\textwidth}
\centering
University of Siena\\Master Thesis in Computer Science Engineering
\end{minipage}%


as you do not want to force the title to fit into half the page width.

-