%%%%%%%%%%%%%%%%%%%%%%%%%%  Input Preamble files  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Files are located in the "LaTeX" folder along side the .tex files:
\newcommand{\LaTeXPath}{LaTeX/} 

\input{\LaTeXPath article}  %  article   book
\input{\LaTeXPath packages}
\input{\LaTeXPath portrait} %  portrait  landscape
% \usepackage[french]{babel} 

\renewcommand{\baselinestretch}{1}  % 2 = double space etc.

\begin{document}
\input{template_title}


%%%%%%%%%%%%%%%%%%%%%%%%%%   Begin Document  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\section*{Introduction}

\section{Numbered Section}
\subsection{subsection}
\subsubsection{subsub}

%%%  1
\question{This is a numbered question with the number of points at the end.  It is in a box that is formated for portrait view.}{10}
\vfill

The following drawing is a piece of \LaTeX{} code exported from Dia. Text doesn't wrap around it. Instead, it follows at the end of the text like a character. \input{figures/box}
\vfill




% b)
\begin{wrapfigure}[12]{r}{0.55\textwidth}
\flushright
\input{figures/box}
\flushleft
%   \includegraphics[scale=1]{figures/miracle.jpg} 
%   \includegraphics[width=0.6\textwidth]{figures2/miracle.jpg
%   \caption{caption} 
\end{wrapfigure}

To wrap text around the same box by using \verb+ wrapfigure +.  The text must be placed after the figure.  Watch the number of lines to be wrapped in \verb+ [ ] + after \verb+{wrapfigure}+ is the number of lines of text.

lkje ae;le a;elja e;lkejf oiefja ;flksjea fosi;ejf sa;lefkja s;foijsa ;lfkdsjf ;saoifej a;elfkjd fls;adkfj ;aseoifja se;flkjd f ;lksjdf ;sldkfj sd;fljfd l;kj ;lsdkfj sd ;laskdjf ;salkdfj sa;ldkf jsa ;dlfkjsa df ;lkasdjf ;asdlkfj as;ldkf j asd ;las kdjf ;asldkfj asd;lkfjsa ;dflksj ;lkajsd f;lkjasd f;lkajsd f;lkjasd f;lkjas df;lkjas df;lkj asd;flkj asd;flkj asd;flkj asd;flkj
\vfill


%\newpage  % why is this causing an error message?



Equations lined up in columns:
\begin{align*}
x &= x    &     y =& y      &      z &=z \\
x &= x    &     y =& y      &      z &=z \\
\end{align*}
\vfill



Inline equations: \quad $\displaystyle f(x) = \int_a^x \frac{1}{\sqrt{x'}} \ud x'$
\quad vs  \quad   $ f(x) = \int_a^x \frac{1}{\sqrt{x'}} \ud x'$
\vfill



Two tables:

\begin{tabularx}{\textwidth}{ |l| X| X| }
\hline
$x$    & a & b\\
\hline
$A(x)$ & a & b\\
\hline
\end{tabularx}
\vspace{1cm}

\begin{center}
\begin{tabular}{|l | *{2}{r}|}
\hline
$x$    & a & b\\
\hline
$A(x)$ & a & b\\
\hline
\end{tabular}
\end{center}
\vfill


Some constumed lists

\begin{enumerate}[i)]  % [1)]  [a)]  [i)]  [I)]
\item test
\item test
\end{enumerate}
\vfill



\begin{thebibliography}{99} \label{biblio}

\bibitem{Lamport} Leslie Lamport,
    \emph{LaTeX: A document preparation system},
    Addison-Wesley, 1994.

\bibitem{NotSoShort} T.~Oetiker, 
\emph{The Not So Short Introduction to \LaTeX},
    \url{https://tobi.oetiker.ch/lshort/lshort.pdf}
    (2.2 MB)
    
\bibitem{WikibooksLaTeX} Wikibooks, 
\emph{LaTeX/Mathematics},
	\url{https://en.wikibooks.org/wiki/LaTeX/Mathematics}
\end{thebibliography}



\end{document}
