# I'm trying to include a title.tex file in my other tex file, but I keep getting an error [closed]

I am a latex newbie and working on my PhD thesis. Someone told me I could use his template. This means you have a master' file that codes it includes all other files (title, chapter1, chapter2, acknowledgments, ...).

I am not using this template, but i did find the title-generator very pretty. When i try to include it into my latex-file, it gives an error on something about \resizebox.

I was wondering if there is a way to include this into my phd-tex file (by means of \include{title}).

This is the title file:

 \thispagestyle{empty}

\begin{center}
~\\
\vspace{3em}
\Large{My title}
\end{center}

\cleardoublepage

\thispagestyle{empty}
\begin{center}
%\rule{\textwidth}{1pt}\par
%\vspace{2pt}\vspace{-\baselineskip}
%\rule{\textwidth}{0.4pt}\par
~\\
\vspace{1cm}

%\resizebox{5em}{!}{On}\par
%
%\vspace{1.3cm}

\resizebox{20em}{!}{my title}\par

%\vspace{3.3em}
%\resizebox{4em}{!}{and}\par
%%{\Huge and}\par
%\vspace{3em}
%\resizebox{23em}{!}{Perception}\par

%\vspace{2em}
%\rule{0.50\textwidth}{0.4pt}\par

%\rule{\textwidth}{1pt}\par
%\vspace{2pt}\vspace{-\baselineskip}
%\rule{\textwidth}{0.4pt}\par
%\vspace{\baselineskip}
%    {\HUGE \textbf{INTUITION}}\par
%    %{\HUGE \textbf{THE METAPHYSICS}}\par
%    \vspace{2em} {\Large \emph{and}}\par
%   \vspace{2em}{\HUGE \textbf{PERCEPTION}}\par
%%\rule{0.35\textwidth}{0.4pt}\par %=== use with non-bold
%\rule{0.42\textwidth}{0.4pt}\par
%
%%\rule{0.37\textwidth}{0.4pt}\par %for metaphysics of intuition title

\vspace{0.8cm}%old is 0.5
%\includegraphics[clip=true,trim= 27mm 0mm 137mm 00mm, scale=0.05]{ding2}
\includegraphics[clip=true,%
angle=180,
trim= 25mm 0mm 165mm 00mm, scale=0.12]{ding6}
%\includegraphics{ding}[width=1cm]

\vspace{3em}
{\large\textsc{my name}}\\
%\textsc{M.A.}\\
%\vspace{5em}
%{\large November 2011}
\longpg
\longpg
\vfill

\small
\emph{A thesis submitted for the degree of\\
Doctor of Philosophy of\\
The Australian National University\\
Insert Correct Date Here}\\
\bigskip \bigskip \longpg \longpg \longpg
}
\end{center}

%~
%\thispagestyle{empty}
%\vfill
%\begin{center}
%  {\small Ole Koksvik 2011}
%\end{center}

-
Do you have the ding file to be used here: \includegraphics[clip=true,angle=180,trim= 25mm 0mm 165mm 00mm, scale=0.12]{ding6}? – Sigur Jan 8 at 17:57
Welcome to TeX.sx! – texenthusiast Jan 8 at 18:00
I guess you didn't copy the definition of macro \longpgfrom the template into your tex file ... – Kurt Jan 8 at 18:18
you might want to consider using \input{title} rather than \include{title}. they should actually produce the same output, since they're starting at the beginning of the document, but if something accidentally comes before \include, you could end up with a blank page at the beginning. (of course, you should get rid of the errors first.) – barbara beeton Jan 8 at 18:42
The template you have copied has some examples of very bad coding style, don't use ~\\\vspace{3em} which makes a blank line followed by e3m of space just use \vspace*{1.5\baselineskip} or similar to make 1.5 lines worth of space. \Large does not take an argument so use \Large My title not \Large{My title} It's generally better to choose a font of the appropriate size rather than just scaling text via \resizebox{20em}{!}{my title}` (some font families do just scale linearly but others have designed fonts for each size which will not be used if you use resizebox) – David Carlisle Jan 8 at 20:16
show 1 more comment

## closed as too localized by lockstep, Claudio Fiandrino, Marco Daniel, Stefan Kottwitz♦Feb 16 at 12:35

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.