% From now on: document settings. If you are not familiar with LaTeX I would not recommend to change the following settings. Exept if instructed to do so. If Something is written in CAPITAL LETTERS, you CAN change it without troubleing the document.
\documentclass[a4paper, 
halfparskip,
12pt																										% FONTSIZE %
]{article}
%
%*%*%*%*%*%*%*%				Packages				%*%*%*%*%*%*%*%
%*%*%*%*%*%*%*%%*%*%*%*%*%*%*%%*%*%*%*%*%*%*%%*%*%*%*
\usepackage{anysize} 
\usepackage[left=2cm,right=2cm,top=2.5cm,bottom=2.5cm]{geometry}
% Don't change from now on %
\usepackage[utf8]{inputenc}																% character set
\usepackage[spanish,swedish,portuges,ngerman, english]{babel}		% enables the use of these languages
\usepackage[T1]{fontenc}																	% Extendet character settings
\usepackage{fancyhdr}
\usepackage{amssymb,amsmath}														% Enable math-fuctions if needed ;-)
\usepackage[colorlinks, linkcolor = black, citecolor = black, filecolor = black, urlcolor = grey]{hyperref}							% Link from the 'question' in the table of content to the question in the text. Must be placed before nameref and url. URLCOLOR
\usepackage{nameref}																			% \nameref{abc} to refere to a \label{abc}
\usepackage{url}		 																			% Creates \url{} for links to websites
\usepackage[pdftex]{graphicx}
\usepackage{graphics} 																		% Activate the binding in of grafics
\usepackage[activate]{pdfcprot}															% Charakters which don't need much space will be written over the edge of the margin
\usepackage{tocloft}																			% Enables some features to modify the talble of contents


%*%*%*%*%*%*%*%			New commands			%*%*%*%*%*%*%*%
%*%*%*%*%*%*%*%%*%*%*%*%*%*%*%%*%*%*%*%*%*%*%%*%*%*%*%*%
\newcounter{NumberOfQuestion}															% Create a new Counter named "NumberOfQuestion"
\setcounter{NumberOfQuestion}{0}															% Set this Counter to 0

\newcommand{\question}[1]{																	% Create a new command named \question{Bla} while [1] referes to Bla.
	\addtocounter{NumberOfQuestion}{1}													% Increase the counter by 1
	\section*{Question \theNumberOfQuestion}										% Because of  * in the line above the section would not appear in the table of content but the numbering of the section in front of the section is removed.
	\label{question}																					% Label the section with the name "question"
	\fancyhead[L]{\nameref{question}}														% Question + Number of the Question written in the left header 
	\addcontentsline{toc}{section}{Question \theNumberOfQuestion}
	#1 $\phantom{.}$ 																								% Prints the Text Bla (in this example
}

\newcounter{NumberOfBonusQuestion}													% Create a new Counter named "NumberOfQuestion"
\setcounter{NumberOfBonusQuestion}{0}												% Set this Counter to 0

\newcommand{\bonusquestion}[1]{
	\addtocounter{NumberOfBonusQuestion}{1}										% IF YOU WANT TO NUMERIZE THE BONUSQUESTIONS CONTINOUSLY LIKE THE QUESTIONS, NOT SEPERATELY: NumberOfBonusQuestion ---> NumberOfQuestion
	\section*{Bonus Question \theNumberOfBonusQuestion}					% Because of  * in the line above the section would not appear in the table of content but the numbering of the section in front of the section is removed.
	\label{bonusquestion}
	\fancyhead[L]{\nameref{bonusquestion}}
		\addcontentsline{toc}{section}{Bonus question \theNumberOfQuestion}
	#1	$\phantom{.}$  
}

\newcommand{\answer}[1]{
	\section*{Answer}
	\label{answer}
	\fancyhead[R]{\nameref{answer} \theNumberOfQuestion}					% In the right header
	#1 $\phantom{.}$
}

\newcommand{\name}[1]{																		% Creates \name{} and that it prints the name properly. Some tricks used here ($\phantom{.}) to avoide some issues with other commands.
	$\phantom{.}$	\bigskip \\  
	$\phantom{.....}$
	\textit{#1}
	}

\newcommand{\names}[1]{		
	\textit{#1}
	}


\newcommand{\toc}[1]{\addcontentsline{toc}{subsection}{\textnormal{#1}}}						% Creates \toc{} and makes that text in {} will be printed in the Table of Contens.
\newcommand{\tocbonus}[1]{\addcontentsline{toc}{subsection}{\textnormal{#1}}}			% Same for bonusquestions.



%%%%%%%%%%%%%%%%      If DESIRED or SPECIALLY NEEDED you can change the language      %%%%%%%%%%%%%%%
% You will then write with the encoding of the keyboard and typesetting of the foreign language
% Available: english, german, spanish, swedish, portugese
\selectlanguage{english}
% use the command 
% \foreignlanguage{german}{bla}		Only the text in {} is in german
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\begin{document}																			%******  The document starts from here.	

%*%*%*%*%*%*%*%			Titlepage				%*%*%*%*%*%*%*%*%*%*
%*%*%*%*%*%*%*%%*%*%*%*%*%*%*%%*%*%*%*%*%*%*%%*%*%*%*%*%	
\begin{titlepage}
\renewcommand{\headheight}{2cm} 
	\begin{center}
		\renewcommand{\baselinestretch}{1}\normalsize
		\includegraphics[width=0.5\textwidth]{Logo}\\[2cm]		
		\renewcommand{\baselinestretch}{3}\normalsize
		\vspace{1cm}
		{\Huge \textbf{Question and Answer Series}} 			\\
		{\Huge \textbf{by Grandmaster Wong Kiew Kit}} 	\\
		\vspace{0.7cm}
		{\Huge \textbf{on}}\\
		\vspace{0.7cm}
		{\Huge \textbf{Zen Intensive Course in Hawaii}}																% ENTER THE TOPIC HERE %
	\end{center}
\end{titlepage}

%*%*%*%*%*%*%			Table of Contents				%*%*%*%*%*%*%*%*%*
%*%*%*%*%*%*%*%%*%*%*%*%*%*%*%%*%*%*%*%*%*%*%%*%*%*%*%*%*%*%	
\addtocontents{toc}{\cftpagenumbersoff{subsection}}					% No pagenumbering for subsections
\setcounter{tocdepth}{2}   																% 1: Sections = questions appear in the Toc, 2: Sections and subsections appear
\pagenumbering{Roman}																	% Roman letters
\setcounter{page}{1}
\renewcommand{\contentsname}{Table of Contents}						% Renames the Table of Contents from "Contents" to "Table of Contents"
		\tableofcontents																		% Print the table of contents
\clearpage																						%  Ends the page and clears the page, which means force all floating objects like pictures to be printed at least till here, if not earlier. \newpage only end the page 
\pagenumbering{arabic}																	% Arabic numbers
\setcounter{page}{1}
\pagestyle{fancy}																				% Enables headers and footers
%
\renewcommand{\baselinestretch}{1.25}\normalsize						% LINE SPACING
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%% 			HERE BEGINS THE TEXT PART. FROM NOW ON PLEASE FILL IN and read the following comments. 		%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Instructions:
% The normal %-symbol puts you into comment mode. To print the %-symbol use \%. Same for &, because it is a delimiter in LaTeX.
% \\														Breaks the line
%\begin{enumerate} 
%	\item a  
%	\item ab 
%	\item abc 
%\end{enumerate}			This command creates a list, in which every \item is listed by a number.  Eumerate is valid for everything written between \begin{enumerate} and \end{enumerate}. 
%\begin{itemize} \item a \item b \end{itemize}			does the same but instead of a number a it uses a blob.
%
%
% If the last entry in \question{} is \end{itemize} or \end{enumerate}, instead of \name{} use \names{}
%
%% To create tables use
%\begin{tabular}{|c|l|}					% | stands for a vertical line, c for a column in which the content is centered, l for a column where the content is leftbound
%	column 1		&	column 2 \\		% Separate the coulumns with & and end a row by \\ which is a linebreak
%	\hline 										%horizontal line
%	content 1		&	content 2			% At the end of the table don't use \\
%\end{tabular}			
%
% !!!!!!
% You need to compile twice to create the table of contents or update it, as well if you added/changed some \label{} or \ref{} or \nameref{} stuff, because in the first run LaTeX sets the labels and in the second run places the references!					
% !!!!!!
	
\question{XX}						 					% Question number 1. Replace XX with the question. Bonusquestion as followed: \bonusquestion{}
\toc{XXX}													% Replace XXX with the text which should appear in the table of content for this question (to shorten long questions) 
\toc{XXX}													% If there are subquestions in the question asked by a person, you need to do a single \toc{} for every one of those.
\name{XXXX}											% Name of the akser
\answer{XXXXX}
%
%
\question{XX}						 					% Question number 2
\toc{XXX}									
\name{XXXX}											
\answer{XXXXX}	
%
\question{XX}						 					% Question number 3
\toc{XXX}									
\name{XXXX}											
\answer{XXXXX}	
%
\question{XX}						 					% Question number 4
\toc{XXX}									
\name{XXXX}											
\answer{XXXXX}	
%
\question{XX}						 					% Question number 5
\toc{XXX}									
\name{XXXX}											
\answer{XXXXX}	
%
\question{XX}						 					% Question number 6
\toc{XXX}									
\name{XXXX}											
\answer{XXXXX}	
%
\question{XX}						 					% Question number 7
\toc{XXX}									
\name{XXXX}											
\answer{XXXXX}	
%
\question{XX}						 					% Question number 8
\toc{XXX}									
\name{XXXX}											
\answer{XXXXX}	
%
\question{XX}						 					% Question number 9
\toc{XXX}									
\name{XXXX}											
\answer{XXXXX}	
%
\question{XX}						 					% Question number 10
\toc{XXX}									
\name{XXXX}											
\answer{XXXXX}	
%
\question{XX}						 					% Question number 11
\toc{XXX}									
\name{XXXX}											
\answer{XXXXX}	
%
\question{XX}						 					% Question number 12
\toc{XXX}									
\name{XXXX}											
\answer{XXXXX}	
%
\question{XX}						 					% Question number 13
\toc{XXX}									
\name{XXXX}											
\answer{XXXXX}	
%
\question{XX}						 					% Question number 14
\toc{XXX}									
\name{XXXX}											
\answer{XXXXX}	
%
\bonusquestion{XX}						 					% BONUSQUESTION 1
\tocbonus{XXX}									
\name{XXXX}											
\answer{XXXXX}	
%
\end{document}


% Further Eplanations:
% \\														Breaks the line
% \begin{itemize} \item a  \item ab \item abc \end{itemize}			Itemize is valid for everything written between \begin{itemize} and \end{itemize}. Lists the Items with a point
% \begin{enumerate} \item bla \item bla \end{enumerate}				The same, but listed with numbers.
% \footnote[number]{Text}					Place where you wanna make a footnote. Use [number] to set the footnote to a special number. Otherwise it will be enumerated continously and automatically.
% \url{www.google.de}							Link to google if you click on the printed link: www.google.de.
% \url{www.google.de}{google}			It will print the word "google" and links to www.google.de if you click on the word.

% \nameref{abc} to refere to a \label{abc}. The Output will be the word abc which is linked to the place where you placed the \label{abc}
% \newline											Forces a new line
% \hspace{xyz cm}								Creates a blank space of xyz cm horizontally
% \vspace{xyz cm}								Creates a blank space of xyz cm vertically
%	\textwidth										The width of the complete text
%	\baselineskip									Height of a baselineskip
%
% 	To include Images:
	%	Begin{center}									% Everything between begin and end will be centered
	%	\includegraphics[with=0.5\textwidth]{Name_of_the_picture}		% name_of_the_picture needs to be in the same folder as this .tex-file. The printed picture occupie 50% of the with of the text. Heigt is scaled automatically.
	%	\captionof{figure}{Blablabla}			% Creates the caption for this image (special command).
	%	\label{Blabliblub}							
	% \end{center}


%
%The Q&A is now ready for mass production ;-) I finished a LaTeX-template so that one easily fill in the text and don't need to worry about formatting any more. If you want LaTeX to do something you like and don't know how: Ask google ;-)