Edit: My problem arises in creating those blank space for "Name", "signature" and "Date" and putting the respective title(like "advisor") at the bottom of the first line.
Best Answer
Here's a tabularx approach to distribute the empty space between the lines nicely (can be done with tabular as well, with more work however)
There are 5 tabular(x) columns, the the 1st, 3rd and 5th one are restricted to a certain length, in the next line two table columns are squeezed together with \multicolumn to provide enough space for the 'name' of the person.
Use the 2nd solution to change the parameters such as vertical spacing etc. more easily!
\\ and certainly \\\\ do not create a paragraph break, the first forces a line break and the second should never be used. To make a paragraph break just use a blank line in the source.
You do not say the intention of the noindent environment but it is very weird, relying on the fact that latex environments call the underlying command form.
\begin{noindent}
\end{noindent}
is the same as
{\noindent
}
So it starts a paragraph with no indentation but no visible text?
\begin{noindent}
aaaa
\end{noindent}
would have a blank line with a spurious paragraph made by \noindent with no text, then a paragraph, then a new indented paragraph with aaaa.
First \center is wrong. Use \centering. And change the title command like this:
% ------------------------------------------------
{\setstretch{1.5} \Huge\bfseries \nameJojo \par\vspace{\baselineskip}} % the name of the class %% or \onehalfspacing or \doublespacing
% ------------------------------------------------
Full code:
\documentclass[12pt,a4paper]{report}
%\usepackage{setupJojo}
%----your package here ----------------
\ProvidesPackage{setupJojo}[2015/04/11 v0.1 Setup]
% Language, character and typeset setup
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage[german]{babel}
\RequirePackage{lmodern}
% Maths setup
\RequirePackage[intlimits]{amsmath}
\RequirePackage{amsfonts}
\RequirePackage{amssymb}
% Formating
\RequirePackage{parskip}
\RequirePackage{setspace}
\RequirePackage[hidelinks]{hyperref}
% Custom commands
\newcommand*{\newWord}[1]{\textit{#1}}
% Title page
\newcommand*{\titleJojo}{
\pagestyle{empty}
\begingroup
\centering %%% \center is wrong
\vspace*{2\baselineskip}
{\LARGE A summary of}\\[\baselineskip]
% ------------------------------------------------
{\setstretch{1.5} \Huge\bfseries \nameJojo \par} % the name of the class %% or \onehalfspacing or \doublespacing
% ------------------------------------------------
\vspace{\baselineskip}
{held by}\\[0.25\baselineskip]
{\large \textsc{\dozentJojo}} % name of the lecturer
\vfill
{\textsc{J0hj0h}}\par
\endgroup}
%--------------------------------------
\newcommand*{\nameJojo}{The name of the class just more text to show the line spacing just more text to show the line spacing just more text to show the line spacing just more text to show the line spacing just more text to show the line spacing }
\newcommand*{\dozentJojo}{The professor's name}
\begin{document}
\titleJojo
\tableofcontents
% all my stuff...
\end{document}
Also, you can get rid of setspace package by using \linespread{1.5}\selectfont instead of \setstretch{1.5} (Thanks to egreg).
Best Answer
Here's a
tabularx
approach to distribute the empty space between the lines nicely (can be done withtabular
as well, with more work however)There are 5
tabular(x)
columns, the the 1st, 3rd and 5th one are restricted to a certain length, in the next line two table columns are squeezed together with\multicolumn
to provide enough space for the 'name' of the person.Use the 2nd solution to change the parameters such as vertical spacing etc. more easily!
A better variant (Easier to configure)