I am writing my master thesis on LaTeX. I should say that I had not used it before and everything is new for me. I was doing fine until I got some troubles when compiling the command \noindent and \hline.
I want my title page to end with an horizontal line at the bottom and the place where I am working and the date right above it. There is a very nice blank space from the supervisor's name to the bottom margin which the compiler just ignores and places the name of the city and the line in the next page. The frame of the page tells me that there is still space for placing text. Needless to say, I loaded the geometry with [showframe].
Moreover, I get an error message because of \hline which says >misplaced \noalign.
I had to modify the location of the vertical margin as well as the height of the body's box. Might that be the reason why the last line jumps into the next page?
%--------Code in the main.tex file, prior to any page-----------%
\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{graphicx} %loads the graphics package, necessary for pictures
%\usepackage{fancyhdr}
%\usepackage{float}
\usepackage[showframe]{geometry} %allows to change margins and distances within the page's frame
%\usepackage{wallpaper}
\usepackage{framed} %to make frames, such as in the title page and abstract
\usepackage{hyperref}
\graphicspath{{images/}} %Direction where LaTeX will look for the images.
\usepackage{tabto}
\usepackage{lipsum}
\usepackage{booktabs}
\begin{document}
%-----------Here the Title Page starts, in a different .tex file-----------%
\begin{titlepage}
%% COMMANDS DEFINED FOR THE USER
\newcommand\textline[4][t]{%
\par\smallskip\noindent\parbox[#1]{.333\textwidth}{\large\raggedright\texttt{}#2}%
\parbox[#1]{.333\textwidth}{\large\centering\textbf{#3}}%
\parbox[#1]{.333\textwidth}{\raggedleft\texttt{#4}}\par\smallskip%
}
\newcommand\specialtxtl[4][t]{%
\par\smallskip\noindent\parbox[#1]{.2\textwidth}{\large\raggedright\texttt{}#2}%
\parbox[#1]{.6\textwidth}{\LARGE\centering\textbf{#3}}%
\parbox[#1]{.2\textwidth}{\raggedleft\texttt{#4}}\par\smallskip%
}
%------------------------------------------------%
\setlength{\voffset}{-2.5cm} %---This commands here are for changing the margin of the page, so the image can be placed up there. They must be before \begin{center} otherwise they don't work.
\setlength{\textheight}{690pt} %height of the box where the text is placed.
\begin{center}
\begin{figure}[h]
\hspace*{-3.0cm}
%\includegraphics{title_header}
\end{figure}
\vspace{0.0cm}
\LARGE
\begin{framed} %----Frame around the tile-----
\vspace{1cm}
\textbf{Experimental Characterization of Steady-State Applied Field Magnetoplasmadynamic Thruster SX3}
\vspace{1cm}
\end{framed}
\LARGE
\vspace{.5cm}
\textbf{Master Thesis}
%------------------------------------------------%
\vspace{.5cm}
\textline[t]{Submitted by:}{\LARGE My Name}{}
\textline[t]{Matriculation Number:}{\LARGE 123456789}{}
\vspace{.5cm}
\specialtxtl[t]{at:}{Master's program}{}
\textbf{"Aerospace Engineering"}
\vspace{1.0cm}
\specialtxtl[t]{Supervisor:}{Name Name}{}
\textbf{\LARGE Name Name}
\vspace{\fill}
\LARGE
\raggedright Stuttgart, 19/03/2015
\rule{\textwidt}{.5pt}
\end{center}
\end{titlepage}
%-------------------------------------------------------------%
\chapter*{Abstract} %--From here is just the template of the thesis, table of content and chapters.
Standard standard standard standard standard standard standard standard standard
\chapter{Aknowledgement}
I want to thank...
\tableofcontents
\chapter{Introduction}
Standard Standard standard standard standard standard
\end{document}
I would appreciate so much some help. Thank you.
Voyager
figure
.figure
is a float. It tells LaTeX to move the contents to the 'best position' according to its algorithm. Unless you want your title graphic to be moved elsewhere if LaTeX thinks best, you don't want to make it a float.\noindent
does not take an argument\noindent{Stuttgart, 19/03/2015}
is same as\noindent Stuttgart, 19/03/2015
and it is not ignored but the effect is not visible as paragraph indentation is set to 0pt in acenter
environment.\texttt{}
selects monospace font but then always typesets nothing in that font. What was the intention there?figure
. But really, you will save time and frustration if you stop and read up on the basics.