\documentclass[a4paper,12pt,leqno]{article}

\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage[bulgarian,english]{babel}

\usepackage{amssymb}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{color}
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage{sansmath}
%\usepackage{pgf,tikz}

\voffset=-1in
\hoffset=-1in
\topmargin=7mm \headheight=15mm \headsep=0mm \topskip=14mm
\oddsidemargin=25mm \evensidemargin=25mm
\textheight=248mm \textwidth=160mm
\linespread{1.15}
\parindent=0pt
\parskip=1.3ex

\definecolor{darkgreen}{rgb}{0,.5,0}

\renewcommand{\familydefault}{\sfdefault}
%\sansmath

%\titlecontents{ section }[ left ]{ above-code } { numbered-entry-format } { numberless-entry-format } { filler-page-format } [ below-code ]
\titleformat{\section}[block]{\large\bfseries\color{darkgreen}}{}{0pt}{}
\titleformat{\subsection}[block]{\bfseries}{}{0pt}{}
%\titlespacing*{ command }{ left }{ before-sep }{ after-sep }[ right-sep ]
\titlespacing{\section}{0pt}{1.7ex}{.5ex}
\titlespacing{\subsection}{0pt}{1.5ex}{0ex}

\pagestyle{fancyplain}
\renewcommand{\headrulewidth}{.7pt}
\renewcommand{\footrulewidth}{.7pt}
\lhead{\small\itshape\color{darkgreen}{}Institute of Mathematics and Informatics, BAS}
\chead{}
\rhead{\small\color{darkgreen}Didactical Modeling -- Volume 5}
\lfoot{\small\itshape\color{darkgreen}Author1, Author2 (or Author1 et al.\ in case of more than 2 authors)}
\cfoot{}
\rfoot{\small\color{darkgreen}\thepage}

\hypersetup{colorlinks=true,linkcolor=darkgreen,urlcolor=darkgreen,pdfhighlight=/O}

\def\hr#1#2{\href{#1}{\textcolor{darkgreen}{#2}}}
\def\aref#1{\hr{#1}{\texttt{#1}}}

\renewcommand{\title}[1]{\vglue-2ex{\renewcommand{\baselinestretch}{.95}\Large\bfseries\MakeUppercase{#1}\par}}
\newcommand{\authors}[1]{\par\smallskip{\bfseries\itshape#1}}
\newcommand{\affiliations}[1]{\par\kern-1.8ex#1}
\newcommand{\emails}[1]{\par\kern-1.5ex#1\par}
\renewenvironment{abstract}{\par\bigskip\smallskip\small\renewcommand{\baselinestretch}{1}\itshape\everypar{\hangindent=10mm\hangafter=0\hsize=150mm}\textbf{Abstract:}}{\par}
\renewenvironment{bibliography}{\section*{Bibliography}\everypar{\parskip=1.1ex\hangindent=5mm\hangafter=1\small\renewcommand{\baselinestretch}{1}}}{\par}

\begin{document}

\begin{centering}
\title{Didactical modeling -- template for preparing manuscripts in English}
\authors{Name1 Surname1$^*$, Name2 Surname2$^{**}$, \dots}
\affiliations{$^*$Centre for Global Research, $^{**}$Academy of Wisdom, \dots}
\emails{$^*$\texttt{author1@mail1.com}, $^{**}$\texttt{author2@mail2.com}, \dots}
\end{centering}

\begin{abstract}
The rules for preparing the manuscripts for the \textbf{Didactical Modeling} electronic journal are outlined.
The template for the papers is shown by this document.
Please read the instructions carefully and follow them accordingly.

\textbf{Keywords:}
Your own designated keywords.
\end{abstract}

\section*{Introduction}

We ask authors to follow some simple guidelines.

\textbf{Generally, we ask authors to make papers look exactly like this document.}

This text is a sample for preparing the manuscripts for publishing in the electronic journal \emph{Didactical Modeling}.

All \LaTeX{} commands and environments needed for formatting the papers are included.
Please apply them accordingly.

The easiest way to prepare your manuscript in accordance to these rules is simply to replace the content of this sample document with your own material.

Please send the formatted manuscripts to \aref{byl@abv.bg}.

Responsibility for papers published in the \emph{Didactical Modeling} electronic journal belongs to the authors.

Please get permission to reprint any copyrighted material.

Manuscripts will be evaluated for originality, significance, clarity, and soundness, and will be reviewed by at least two independent reviewers.

The authors of the accepted manuscripts will be allowed to make corrections in accordance with the suggestions of the reviewers and to submit final manuscripts within the stipulated deadline.

Papers should be organized so as to accommodate abstract, introduction, state-of-the-art, objective, used methodology, obtained results and comparing them with similar results in the world, and references.

\section*{Instructions for Preparation of Manuscripts}

This text is a sample for preparing the articles in \LaTeX.

Please do not make any changes in the text before \verb.\begin{document}..

Place the title of the article, the authors' names, affiliations, and emails \emph{in this order} within the \verb.centering. environment immediately after \verb.\begin{document}., as follows:
\begin{itemize}
\item use the \verb.\title. command for the title;
\item use the \verb.\authors. command for the authors' names; for each author, write his/hers whole first and family names;
\item use the \verb.\affiliations. command for the authors' affiliations;
\item use the \verb.\email. command for the authors' emails.
\end{itemize}

After that use the \verb.abstract. environment for \textbf{Abstract} and \textbf{Keywords}.

The abstract needs to be up to 500 words long.

Include up to 5 keywords.

Note that the abstract is important for directing the paper to the right reviewers.

\subsection*{Structure and layout}

The paper has to be well structured.
Using sections \textbf{Introduction}, \textbf{Conclusion}, \textbf{Acknowledgements}, and \textbf{Bibliography} is strongly recommended.

Use the \verb.\section*. command for section headings.

Use the \verb.\subsection*. command for subsection headings.

The normal text should be 12pt, left and right justified, without paragraph indentation, with a vertical space before each paragraph.
These settings are provided in the preamble of the document and you should not change them.

\subsection*{Formulae}

Formulae should be positioned in the body of the text (inline formulae) or, for display or numbered formulae, as a new paragraph as close as possible to the relevant text.

Ensure all formulae are numbered \emph{manually} and numbers are placed at the \emph{left} text margin.
If you use \verb.equation. or \verb.eqnarray. environments for numbered formulae, set the \verb.equation. counter to \emph{one less the number you want to be associated with the formula} immediately before the corresponding command.

E.\,g., type \verb.\setcounter{equation}{4}. in order to number a formula with (5):
\setcounter{equation}{4}
\begin{equation}
x_{1,2} = \frac{-b\pm\sqrt{b^2-4ac}}{2a}\,,
\end{equation}
and type \verb.\setcounter{equation}{11}. in order to number an array of formulae starting with (12):
\setcounter{equation}{11}
\begin{eqnarray}
e&=&1+\frac{x}{1!}+\frac{x^2}{2!}+\frac{x^3}{3!}+\cdots  \\
\pi&=&\frac{\log_e({-}1)}i
\end{eqnarray}

\subsection*{Figures and tables}

Figures and tables should be positioned in the body of the text, centred, as close as possible to the relevant text.
Captions for figures and tables should be put right after the relevant figure or table and should be numbered \emph{manually}.
Use these numbers to refer to them in the text.
Colour figures are acceptable.

If figures are provided as external files, these should be either EPS or PDF.
If possible, make sure all such external files are in just one of these formats -- all EPS or all PDF.

Within the text, include each figure using \verb.\includegraphics. as usual in \LaTeX:

\begin{centering}
\includegraphics[width=.4\textwidth,clip]{fig1}
\par
Figure 1. Imported graphical file.
\par
\end{centering}



\subsection*{Internet links}

If you need to include live Internet (such as WWW, email etc.) links in the text, use either of the  \\
\hphantom{MMMMM}\verb.\hr{.\emph{url}\verb.}{.\emph{text}\verb.}.  \\
or  \\
\hphantom{MMMMM}\verb.\aref{.\emph{url}\verb.}.  \\
commands.
The first assigns a URL to a text, so that \hr{http://google.com}{clicking the text} would ensure following the link with a corresponding program.
The second command can be used when the text is the URL itself, such as e.\,g.\ \aref{http://www.math.bas.bg/omi/didmod}.

\subsection*{Bibliography}

Use the \verb.bibliography. environment for typing the bibliography.

Please keep in mind that there is no special designation for titles other than separating them by paragraphs.
Within the \verb.bibliography. environment, each paragraph corresponds to a separate title.

Arrange the bibliography items in alphabetic order and then in chronologic order.

See the examples of bibliography items below.

References in the text should be keyed with the name(s) and year of the referred material -- for instance [Baptist et al, 2011-В, p.\,25], [Jeris\&Johnson, 2004, pp.\,17-19], [Вербицкий, А. (2004), с.\,48-49].

\section*{Conclusion}

This exemplar is meant to be a model for manuscript format.
Please make your manuscript look as much like this exemplar as possible.
In case of serious deviations from the format, the paper will be returned for reformatting.

Submitted manuscripts should be original and should contain contributions of theoretical, experimental or application nature, or be unique experience reports.

\section*{Acknowledgments}

Please insert your acknowledgments here.

\begin{bibliography}
\emph{(A sample list of bibliography items follows.)}

(Baptist et al, 2011-А) Baptist, P., Miller, C., Raab, D. (eds.). Towards new teaching in mathematics, Part I. University of Bayreuth, 2011.

(Baptist et al, 2011-В) Baptist, P., Miller, C., Raab, D. (eds.). Towards new teaching in mathematics, Part II. University of Bayreuth, 2011.

(Jeris\&Johnson, 2004) Jeris, L.; Johnson, K. Speaking of competence: toward a cross-translation for human resource development and continuing professional education. Academy of Human Resource Development Annual Conference: proceedings, Vol.\,2.

(Lemke,1996) Lemke, J. Cognition, context, and learning: a social semiotic perspective.  \\
\aref{http://www.jaylemke.com/storage/cognition-context-learning-sitcog.pdf} (active in Nov 2012)

(NCES, 1993) National Center for Education Statistics. Adult Literacy in America. Report of the National Adult Literacy Survey, Washington, DC: U.S. Department of Education, 1993.

(Вербицкий, 2004) Вербицкий А. Компетентностный подход и теория контекстного обучения.  ИЦ ПКПС, Москва, 2004.  \\
\aref{http://ootkaf.ru/files/oot/competence\_approach\_learning\_context.pdf}

(ЦКОКУО, 2012). ЦКОКУО. Национално външно оценяване по математика VII клас, 23 май 2012\,г.
\end{bibliography}

\end{document}
