\documentclass[10pt, a4paper]{article} % 10pt font size (11 and 12 also possible), A4 paper (letterpaper for US letter) and two column layout (remove for one column)
\usepackage[english]{babel} % English language hyphenation
\usepackage{microtype} % Better typography
\usepackage{amsmath,amsfonts,amsthm} % Math packages for equations
\usepackage[svgnames]{xcolor} % Enabling colors by their 'svgnames'
\usepackage[hang, small, labelfont=bf, up, textfont=it]{caption} % Custom captions under/above tables and figures
\usepackage{booktabs} % Horizontal rules in tables
\usepackage{lastpage} % Used to determine the number of pages in the document (for "Page X of Total")
\usepackage{graphicx} % Required for adding images
\usepackage{enumitem} % Required for customising lists
\setlist{noitemsep} % Remove spacing between bullet/numbered list elements
\usepackage{sectsty} % Enables custom section titles
\allsectionsfont{\usefont{OT1}{phv}{b}{n}} % Change the font of all section commands (Helvetica)

\usepackage{geometry} % Required for adjusting page dimensions
\geometry{
	top=1cm, % Top margin
	bottom=1.5cm, % Bottom margin
	left=2cm, % Left margin
	right=2cm, % Right margin
	includehead, % Include space for a header
	includefoot, % Include space for a footer
	%showframe, % Uncomment to show how the type block is set on the page
}

\usepackage[T1]{fontenc} % Output font encoding for international characters
\usepackage[utf8]{inputenc} % Required for inputting international characters
\usepackage{XCharter} % Use the XCharter font

\usepackage{fancyhdr} % Needed to define custom headers/footers
\pagestyle{fancy} % Enables the custom headers/footers
\renewcommand{\headrulewidth}{0.5pt} % Thin header rule
\renewcommand{\footrulewidth}{0.0pt} % No footer rule
\renewcommand{\sectionmark}[1]{\markboth{#1}{}} % Removes the section number from the header when \leftmark is used

% Headers
\lhead{} % Left header
\chead{\textit{\thetitle}} % Center header - currently printing the article title
\rhead{} % Right header

% Footers
\lfoot{} % Left footer
\cfoot{} % Center footer
\rfoot{} % Right footer

\fancypagestyle{firstpage}{ % Page style for the first page with the title
	\fancyhf{}
%	\renewcommand{\footrulewidth}{0pt} % Suppress footer rule
	\renewcommand{\headrulewidth}{0pt} % Suppress header rule
}

\newcommand{\authorstyle}[1]{{\large\usefont{OT1}{phv}{b}{n}\color{DarkRed}#1}} % Authors style (Helvetica)
\newcommand{\institution}[1]{{\footnotesize\usefont{OT1}{phv}{m}{sl}\color{Black}#1}} % Institutions style (Helvetica)
\usepackage{titling} % Allows custom title configuration
\newcommand{\HorRule}{\color{DarkRed}\hspace{-13pt}\rule{\linewidth}{1pt}} % Defines the red horizontal rule around the title

\pretitle{
	\HorRule\vspace{10pt} % Horizontal rule before the title
	\fontsize{20}{24}\usefont{OT1}{phv}{b}{n}\selectfont % Helvetica
	\color{DarkRed} % Text colour for the title and author(s)
}

\posttitle{\par\vskip 15pt} % Whitespace under the title
\preauthor{} % Anything that will appear before \author is printed
\postauthor{ % Anything that will appear after \author is printed
	\par\HorRule % Horizontal rule after the title
}

\usepackage{lettrine} % Package to accentuate the first letter of the text (lettrine)
\usepackage{fix-cm}	% Fixes the height of the lettrine

\newcommand{\initial}[1]{ % Defines the command and style for the lettrine
	\lettrine[lines=3,findent=4pt,nindent=0pt]{% Lettrine takes up 3 lines, the text to the right of it is indented 4pt and further indenting of lines 2+ is stopped
		\color{DarkRed}% Lettrine colour
		{#1}% The letter
	}{}%
}

\usepackage{scrextend}
\usepackage{xstring} % Required for string manipulation
\newcommand{\lettrineabstract}[1]{
\begin{addmargin}[1cm]{1cm}
	\centerline{\textbf{Abstract}}
	\par\vskip 5pt
	\StrLeft{#1}{1}[\firstletter] % Capture the first letter of the abstract for the lettrine
	\initial{\firstletter}\emph{\StrGobbleLeft{#1}{1}} % Print the abstract with the first letter as a lettrine and the rest in bold
\end{addmargin}
}

\providecommand{\keywords}[1]{\par\vskip 12pt\noindent\textbf{\textit{Keywords:}} #1}

\date{} % Add a date here if you would like one to appear underneath the title block, use \today for the current date, leave empty for no date

%----------------------------------------------------------------------------------------
%	ABSTRACT INFORMATION
%----------------------------------------------------------------------------------------

\title{Proposed template for the ICSAAM 2018 Conference in Tarbes} % The article title

\author{
	\authorstyle{Olivier Pantalé\textsuperscript{1} and Olivier Dalverny\textsuperscript{1}} % Authors
	\newline\newline % Space before institutions
	\textsuperscript{1}\institution{Laboratoire Génie de Production, ENI de Tarbes, France}\\ % Institution 1
%	\textsuperscript{2}\institution{University of Texas at Austin, Texas, United States of America}\\ % Institution 2
%	\textsuperscript{3}\institution{\texttt{LaTeXTemplates.com}} % Institution 3
}

%----------------------------------------------------------------------------------------
%	ABSTRACT CONTENT
%----------------------------------------------------------------------------------------

\begin{document}

\maketitle % Print the title

\thispagestyle{firstpage} % Apply the page style for the first page (no headers and footers)

\lettrineabstract{This is a template for the submission of an abstract for participation in the ICSAAM 2018 conference ($8^{th}$ Intenational Conference on Structural Analysis of Advanced Materials) to be held from 28 to 31 August 2018 at the "Ecole Nationale d'Ingénieurs de Tarbes" in France. This sample document contains the main lines of the author's instructions. The abstract length must be $2$ to $3$ pages length, including figures, tables and references.}
\keywords{Mechanics, Finite Element Method, Computational Mechanics}

\section{Format of the abstract} % You can include section if you want or even a subsection

The abstract format corresponds to this document. Templates are available on the conference website in two different formats: a Latex template (in the form of an editable \emph{.tex} file) and a Microsoft Word document (\emph{.docx} file). The submission of an abstract on the site is done only in PDF format, whatever the initial file used. No other document format will be accepted.\\

In the submission of the document, it is requested to respect the proposed template, and in particular, the blank area at the top of the first page of the document (in which the conference logo will be added at the time of publication of the abstract collection). Likewise, it is important not to number the pages as page numbers will be added when creating the abstract collection.\\

Equations present in the document should be inserted using the following formalism:

\begin{equation} 
 f(x)=\int_x{\left[ (x+a)(x+b)\right] }dx
\end{equation}

Tables and figures in the document should be inserted using formalism presented in Table \ref{tab:example} and Figure \ref{fig:example}. Bibliographical references \cite{lamport,key} (limited to a maximum of 5 references) should be referenced in the text using the formalism used in this sentence and included at the end of the document in accordance with the format proposed in this document.

\begin{table}
	\caption{Example of a table\label{tab:example}}
	\centering
	\begin{tabular}{l|c|c|c}
		&Early registration&After 1st June 2018&Friday visit\\
		\hline
		Delegate&$500$€&$600$€&$60$€\\
		Student&$300$€&$400$€&$60$€\\
		Accompanying person&$150$€&$150$€&$60$€\\
		One day registration&$150$€&$150$€\\	
		Exhibitor&$1000$€		

	\end{tabular}
\end{table}

\begin{figure}
	\centering{}\includegraphics[width=0.75\columnwidth]{Figure.png}\caption{Example of figure\label{fig:example}}
\end{figure}


\section{Submission of the abstract} % You can include section if you want or even a subsection

Abstract submission is via the online website, in PDF format only.

\begin{thebibliography}{9}

\bibitem{lamport} Leslie Lamport, \emph{\LaTeX: A Document Preparation System}. Addison Wesley, Massachusetts, 2nd Edition, 1994.
\bibitem{key} John Doe \emph{A completely unknown publication}, Never published, 2018.

\end{thebibliography}

\end{document}
