% ##################################################################################
%
%             LATEX PAPER TEMPLATE for NOT Workshop 2022 
%
%        Template file taken from Creative Commons and modified.
% ##################################################################################
\documentclass[a4paper,11pt]{article}

\usepackage[colorlinks=true,linkcolor=black,citecolor=black,urlcolor=blue]{hyperref}
\usepackage{geometry}
\geometry{top=1cm,left=2cm,right=2cm,bottom=1.5cm,includeheadfoot,headheight=42pt}
\usepackage{fancyhdr}
\renewcommand{\headrulewidth}{0pt}

\usepackage{array}
\usepackage{graphicx} 
\usepackage{multirow} 
\usepackage{dcolumn}
\newcolumntype{.}{D{.}{.}{-1}}

\usepackage{natbib}
\bibliographystyle{plainnat}
\bibpunct{(}{)}{;}{a}{,}{,}

\usepackage{amsmath, amssymb, amsfonts, bm}
\usepackage{enumitem}
\usepackage{calc}

% narrow caption margins
\usepackage[margin=30pt]{caption}

\usepackage[table]{xcolor}
%% section headers
\usepackage{titlesec}
\titleformat{\subsection}
            {\bfseries}{\thesection.\thesubsection.}{1em}{}
\renewcommand{\labelitemi}{\textendash}
\renewcommand{\labelitemii}{\textendash}

\setlength{\emergencystretch}{3em}

\columnsep 1cm

\setlength{\parindent}{0pt}
\setlength{\parskip}{3pt}

\titlespacing*{\subsection}{0pt}{1.5em}{0.2em}

\renewcommand\eqref[1]{Equation~\ref{#1}}

\renewcommand{\thesection}{\arabic{section}}
\renewcommand{\thesubsection}{\arabic{subsection}}
\renewcommand{\arraystretch}{1.25}
\renewcommand{\refname}{References}

\setlength{\footnotesep}{12pt}

%Item spacing in lists, related to enumitem package.   See individual lists.
\setlist[2]{noitemsep}
\setenumerate{noitemsep}

% Sort out linespacing with references
\newlength{\bibitemsep}\setlength{\bibitemsep}{.2\baselineskip plus .05\baselineskip minus .05\baselineskip}
\newlength{\bibparskip}\setlength{\bibparskip}{0pt}
\let\oldthebibliography\thebibliography
\renewcommand\thebibliography[1]{%
  \oldthebibliography{#1}%
  \setlength{\parskip}{\bibitemsep}%
  \setlength{\itemsep}{\bibparskip}%
}

%%Page layout definitions
\fancypagestyle{firstpage} %%Title page
{
    \fancyhf{}
    \fancyhead[C]{ \includegraphics[height=2.2cm]{BANNER_A.png}}
    \fancyfoot[C]{\thepage}
}
\fancypagestyle{allotherpages} %% All other pages
{
    \fancyhf{}
    \fancyhead[R]{Nordic Optical Telescope workshop {\em NOT - a telescope for the future}, La Palma, June 2022}
    \fancyfoot[C]{\thepage}
}
%%%%%%%%%%%%%%%%%
\begin{document}
\pagestyle{allotherpages}
\thispagestyle{firstpage}
\vspace*{0.65cm} % make space for the logo

\begin{center}
{\LARGE \bf Proceedings template for NOT workshop 2022, \LaTeX~ version }
\end{center}

\vspace{4pt}
%%Authors and affiliations
%% Comma separated list of authors with numbers indicating affiliation,
%% the corresponding author is indicated with the *.
\begin{center}
{\bf A. Scientist$^{1,*}$, A. Student$^{2}$ }

\vspace{0.5cm}
{\small
$^1$Institute of NOThing, Somewhere, NOTlandia \\
$^2$University of Somecity, Somecountry \\
$^*$\href{mailto://CorrespondingAuthor@email.org}{CorrespondingAuthor@email.org}
}
\end{center}
%% Abstract.
% leave an empty line before and after the abstract text
\textbf{Abstract}

A maximum of 1000 characters should be used for the abstract, without including any equations, references or special characters. 

\textbf{Keywords}: instructions, format, rules, recommendations, maximum of 5.

% Article text starts here.
\section{Introduction}

This document defines the template to use in manuscript preparation for the proceedings
of the workshop {\bf NOT - a telescope for the future} held in La Palma, June 2022. The
authors should provide the PDF version only.

\section{Submission and format}

The proceedings papers will be reviewed by the SOC, but not refereed. The authors are responsible
for the content. The papers will be published in the e-proceedings of the workshop
\href{https://indico.not.iac.es:/e/workshop2022}{NOT - a telescope for the future} at the
\href{https://about.zenodo.org/}{Zenodo} proceedings community made for this workshop.

This ensures that each contribution is citable, because Zenodo will assign Digital Object
Identifiers (\href{http://www.doi.org}{DOI}) to all submissions. It also guarantees for a safe
archival of the files, since Zenodo stores the material permanently. The detailed instructions for
how to upload will be sent by email.

It is not necessary to have strict rules for these manuscripts, but a template is given as a guide.
No stylefile is needed, since this template makes use of standard \LaTeX~ and the standard \LaTeX~
bibliography support with the {\bf natbib} package. These are the most important specifications:

\begin{itemize}[noitemsep]
\item The manuscript should be written in English.
\item The manuscript should be submitted as a PDF files generated with {\bf pdflatex}.
\item The recommended maximum size of {\em invited talk papers} is 10 pages, {\em contributed talk papers}: 6 pages,
  and {\em poster papers}: 4 pages. No paper should exceed 10 MB.
\end{itemize}

\section{Citing references}
In the text, references are cited using the {\bf cite} command, adding a {\bf t} for {\bf textual} and
a {\bf p} for {\bf parenthesized}. As an example, a reference to the educational use of the NOT is given by
\citet{2008osa..conf...11A}. Multiple references can also be made, as in the following references related
to the NOT and its instrumentation \citep{2000SPIE.4008..714A,2014AN....335...41T,2010ASSP...14..211D}.

The bibliography file used here {\bf notref.bib} is an example with entries from the ADS. Make your own
bibliography file with BiBTeX entries and run the {\bf pdflatex} command on your source file followed by
{\bf bibtex} and again twice {\bf pdflatex}. 

\section{Tables and Figures}
Tables and figures should be centered, numbered consecutively, and a caption should be always included.
All figures and tables should be referred to from the text. See, for example, Table~\ref{Tab1} that
shows a simple table and Figure~\ref{Fig1} that shows a nice telescope. Note that for long captions with
more than one line the text should use the "Justify" alignment. If the caption is less that one line,
then it should be center aligned.

\begin{figure}[ht!]
  \centering
  \includegraphics[width=0.6\textwidth]{IMG_A720.jpg}
  \caption{This is an example of a figure.}
  \label{Fig1}
\end{figure}

\begin{table}[ht!]
\centering

\begin{tabular}{.....}
\hline\hline %inserts double horizontal lines
\multicolumn{1}{c}{\textbf{A}} & \multicolumn{1}{c}{\textbf{B}} & \multicolumn{1}{c}{\textbf{C}} & \multicolumn{1}{c}{\textbf{D}} & \multicolumn{1}{c}{\textbf{E}}   \\ [0.5ex] % inserts table%heading
\hline % inserts single horizontal line
3.5  &   7.0 &  10.5 &  14.0 &  17.5  \\
7.0  &  10.5 &  14.0 &  17.5 &   3.5  \\
10.5 &  14.0 &  17.5 &   3.5 &   7.0  \\
14.0 &  17.5 &   3.5 &   7.0 &  10.5  \\
17.5 &   3.5 &   7.0 &  10.5 &  14.0  \\ [1ex] % [1ex] adds vertical space
\hline %inserts single line
\end{tabular}

\caption{This is an example of a small table. Numbers are centered in the columns. The table caption has an extra margin of 30pt. on each side. If there is less than one line of caption then the text should be centered, if there are more than one line (as in this example), the caption should use “Justify” alignment. You can use the "." column indicator to align numerical values at the decimal point.}
\label{Tab1}
\end{table}

\section{Equations}
Equations shall be centered and identified by a number, as the following:
\begin{equation}\label{Eq1}
   \lim_{n\rightarrow a}⁡\left[\frac{1}{(x-a)^2}\right]
\end{equation}

Refer to equations as to Equation~(\ref{Eq1}) or simply (\ref{Eq1}).

\section*{Acknowledgements}

Acknowledgements to persons or institutions should be placed in this section.

\bibliography{notref}
  
\end{document}
