%% This is a Latex template file for articles submitted to Open Journal
%% of Mathematical Optimization.  It uses the cedram.cls class
%% file, which is available at http://www.centre-mersenne.org/texmf
%
%%  The following template indicates the main features of the class file.
%%  In order to avoid mistakes in the handling of meta-data (name, title, etc.),
%%  please use all the commands (and only those) indicated in the preamble for
%%  the title and authors.

%% If your paper uses non-ascii characters, be aware that the class
%% uses ISO-Latin-1 by default (inputenc is already loaded). You can
%% opt for UTF-8 encoding using the Unicode documentclass option.

\documentclass[OJMO,NoWriteXVIII]{cedram}

%% Authors may use other style files (e.g. to create figures), as long as
%% they do not alter the layout of the article.
\usepackage[all]{xypic}

%%  Notice that the class and the configuration file for this journal
%% already load the following packages. Don't load any conflicting
%% package like enumitem for modifying lists, or changing fonts, e.g.
%% enumerate, microtype, lmodern, textcomp, eucal, amssymb, caption,
%% amsthm, graphicx, xcolor, array, multirow, tabularx, subcaption,
%% threeparttable, listings, lineno, lastpage, etex, ifplatform,
%% amsfonts, hyperref, placeins, fontenc (T1), fancyvrb.

%% Insert here your own symbols, as the following ones:
\newcommand{\bbR}{\mathbb{R}}
\newcommand{\bbC}{\mathbb{C}}
\newcommand{\bbZ}{\mathbb{Z}}


%% Title of the article. 
%% The optional argument [] is the short version of the title,
%% and the mandatory argument {} the title itself
\title[Sample use of the OJMO class]{How to use the
  \protect\emph{\currentjournaltitle} class file\\ A sample \texorpdfstring{\LaTeX}{LaTeX}\ source
  file}


%% Authors, addresses and supports.
%% The optional argument is for shortened version appearing in the headings. Please
%% distinguish between first, middle and last names with the appropriate commands.
\author{\firstname{David} \lastname{Hilbert}}
\address{Road to the 5th problem avenue\\
Germany}
%% Support for the second author 
% \thanks{}
\email{hilbert@optimization-for-all.de}
%
%% Repeat the preceding commands for additional authors, commenting out lines
%% which should not appear
\author{\firstname{Alan} \middlename{M.} \lastname{Turing}}
\address{Center for experimental machines\\
  United Kingdom}
\email{alan.m.turing@crypto.edu.uk}
\thanks{The first author is supported by UK Research
  Council project ENIGMA through grant \#2019-\$\$55900.} 
%% The grant number can be inserted in the database
%% This won't be printed. It should be acknowledged in \thanks as above.
% \CDRGrant[UKRC]{2019-$$55900}

%% If yo have supplementary material, you can declare it this way (the
%% file will be copied and linked on the website
%% PDF is the default file type
% \CDRsupplementaryTwotypes{supplementary-material}{\cdrattach{supplement-doc.pdf}}
%% For another file type you should declare the mime-type
% \CDRsupplementaryTwotypes[application/zip]{supplementary-material}{\cdrattach{mycode.zip}}


%% Keywords
\keywords{Example, Optimization, Journal}
  
%% Mathematical classification (2010)
%% Not used by this journal, but you can still add the info to our database.
% \subjclass{00X99}

%% Abstract should be placed before \maketitle (and, in fact, before
%% \begin{document is best)
\begin{abstract} 
  This document is a short user's guide to the \LaTeX class for
  articles in \emph{\currentjournaltitle}.

%% If you want to inform the reader of the paper about your
%% supplementary material, you can refer to it this way. The file
%% itself should be placed in a directory called Attach.
Supplementary material for this article is supplied as a separate 
archive \cdrattach{mycode.zip}, the related data is displayed in the
document \cdrattach{supplement-doc.pdf}.
\end{abstract}



\begin{document}


% Use the \maketitle command after the abstract
\maketitle


%% Beginning of text

% Example of section
\section{Introduction, meta-data commands}

This is the beginning of our article.

% Example of subsection
\subsection{Title}

The command for the title is: \verb#\title#.
The \verb#\maketitle# command must be put after the abstract.


\subsection{Citations}

The bibliography must be built using bibtex. A sample of a bibtex file
\texttt{biblio.bib} is available on the OJMO website
%% see the \url command
(\url{http://ojmo.centre-mersenne.org/}).

The references must be put inside a bibtex file constructed from this sample and refereed to in the article by using the \verb#\cite# command, which produces for example \cite{KNU} or \cite{LL} (see also the comments in \texttt{biblio.bib}).


\section{Figures}

The article being compiled in pdf, the figures must also be in pdf. The inclusion
of the figure is done using the following commands.

The parameter \emph{xxx}, a real number between $0.0$ and $1.0$, indicates the
width the figure should take in the page.
One can refer to Figure~\ref{exfig}, which gives
for example: 

Figure \ref{exfig} is an example of figure.

\begin{figure}[tbp]
\includegraphics[width=0.3\linewidth]{figure-ojmo.pdf}
\caption{Example of figure.}
\label{exfig}
\end{figure}


To refer to a specific definition, theorem, etc., put \verb#\label{labelname}# inside the corresponding environment and use \verb#\ref{labelname}# in text to point to this definition, theorem, etc.

Here is an example:
\begin{theo}\label{th:true}
  Most theorems are true.
\end{theo}

\begin{proof}
  Th. \ref{th:true} is obviously true.
\end{proof}

\begin{exam}\label{ex:good}
  This should look like a good example.
\end{exam}

\begin{rema}
  Can an example like Ex.~\ref{ex:good} give some insight in
  Th.~\ref{th:true}'s proof?
\end{rema}




% The next command determines the bibliography style. Please do not
% change this.
\bibliographystyle{plain+eid}

%This calls all references from the .bib
\nocite{*}

%  This inserts the bib file
\bibliography{samplebib}


\end{document}










