%%%%%%%%%%%%%%%%%%%
%   DYMAMESIEN.TEX
%%%%%%%%%%%%%%%%%%%
\documentclass[12pt]{article}
%============================
%
%   Here is the place for including additional packages but
%   fancyhdr, amsbsy, array, geometry and graphics,
%   which are already included in DYMAMESIEN.sty:
%
\usepackage[cp1250]{inputenc}%      for Widows
\usepackage{wrapfig}
\usepackage{DYMAMESI}%      !!! should stay here as the last one !!!

\def \emarg#1{\lb \emph{#1}\rb}

\begin{document}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\HEAD
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \begin{center}
    \PaperTitle{A sample of the use of DYMAMESIEN.txt template \nl%
                 for preparing a contribution in \LaTeX}
    \Author{prof. Ing.}{Adam}{First}{DrSc.,}
      {CDM ÚT AV ÈR, Veleslavínova 11, 301 00 \ Plzeò, \ first@cdm.it.cas.cz}
% In case of other author(s) repeat the command \Author:
    \Author{mgr.}{Eve}{Second}{}{second@cdm.it.cas.cz}
    \Abstract
     {%\textup{DEMONSTRATION OF THE TEMPLATE USE.}
      The sample contains information on the DYMAMESIEN.txt
      template  application for generating a contribution to the
      Colloquium ``Dynamics of Machines and Mechanical Systems with Interactions''.
      The resulting manuscript in Czech or English languages should be translated
      by pdf\LaTeX. The formats of included figures may be in
      $*$.png\,,  $*$.jpg\,, or $*$.pdf formats, possibly in a mixture.
      The contribution must not exceed eight pages.
      }
%            {Key words, more important first}:
    \KeyWords{Template, demonstration, rules of filling}
  \end{center}
%
  \INTRO
  %%%%%%
  The sample serves as a brief guide for application of the \verb|DYMAMESIEN.txt|
  template. The template should be copied into a new file the name of which
  will be composed of the first author name complemented by a letter of his
  first name and by extension \verb|tex|. In our sample it would be
  \verb|FirstA.tex|. Afterwards we proceed under the template keeping in mind
  that the contribution {\em must not} overcome 8 (eight) pages, and that the
  number of them should be {\em even}.

  The template is prepared for pdf\LaTeX\ in Czech an English
  versions.
  Commands predefined by the template should be used due to paper formatting.
  The command  \verb|\INTRO| generates this introductory section. The author
  may use also other \LaTeX\ commands.
%
  \SECTION{Structuring the contribution}%
%         %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  The command \verb|\SECTION{...}| is devoted for formatting and numbering sections.
  The author may use also commands listed in table \ref{T1}.
  If necessary, the contribution may be structured into subsections in a single level by means of \verb|\SUBSECTION{...}|.
%
%
  \SECTION{Figures and tables}%
%         %%%%%%%%%%%%%%%%%%%%
%
  Figures are imported by means of the command
%  \verb|\includegraphics[|\emph{options}\verb|]|\lb{\em figure\_name}\rb, where
  \verb|\includegraphics[|\emph{options}\verb|]|\emarg{figure\_name}, where
  {\em figure\_name}
  is a name of a file (without extension) containing the required figure.
  The figure may be put on almost arbitrary place of the contribution. If necessary, it may be wrapped by a text.

  \begin{wrapfigure}[5]{r}{35mm}%
    \lines{-1.5}
    %    [# of skipped lines] {l or r or i or o} [overhang] {figure width}
    \h \includegraphics[width=18mm]{logoIT}\h%
    \cfig{Logo IT}{F1}%    {Caption},{figure label}
  \end{wrapfigure}
%
  If the wrapping text contains an equation, first optional parameter of the
  \verb|wrapfigure| environment should be set manually.
%
  \begin{equation}\label{R1}
    G_{ij}(p_k) = \sum_{\nu=0}^N \frac{a_{ij\nu}}{p_k - s_\nu}
  \end{equation}
%

  \newpage
  \noindent
  It is just the case of equation \Reqn{R1} and \rfig{F1}.

  Captions of figures
  have the form  \verb|\cfig{caption}|\emarg{figure\_label}.
  Tables may be wrapped in a
  similar way by using the environment \verb|wraptable| with the same parameters.
  Only a table caption command has the form
  \verb|\ctab{caption}|\emarg{table\_label}. Captions are centered in both cases.
%
  \SUBSECTION{References to figures, tables and equations}%
%            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  All defined labels may be referenced in a common way by the command
  \verb|\ref|\emarg{label}, eg. see figure \ref{F1}, or by
  \verb|\rfig|\emarg{label} resulting in \rfig{F1}. A similar situation takes
  place in case of equations when using  command \verb|\reqn|\emarg{label} or
  \verb|\Reqn|\emarg{label}. The number of equation in brackets is than
  displayed, eg. \reqn{R1}. The references are cited in the common way by
  \verb|\cite|\emarg{ref\_label}, eg. see \cite{First}. An equation (in a
  matrix form here)
%
  \begin{equation}\label{R2}
    \mx x = \mx A^+\mx y\,,
  \end{equation}
%
  is referenced by \verb|\reqn{R2}|.
%
  \SUBSECTION{Formatting}%
%            ~~~~~~~~~~~~~
  Commands from \verb|DYMAMESIEN.sty|are built in such a way that they make almost
  all the formatting. This is the reason why the template is rather simple. Let
  us note that no where are free lines between sections , subsections and
  equations which generate big vertical gaps. Free lines should be inserted {\em only}
  round environments  \verb|array| and \verb|tabular| and between paragraphs.
  The only exception may raise, if a necessity of a text break occurs. It may
  be ensured by a free line or in a limiting case a command  \verb|\newpage|,
  should an interference of the text with a footnote be encountered.

  A gentle tuning of the manuscript vertical gaps may be reached using
  \verb|\lines|\emarg{number} command, where {\em number} declares (possibly not
  integer) number of {\em free} lines.
%
\begin{table}[h]
  \h \ctab{New commnads defined in \texttt{DYMAMESIEN.sty} to be used in the
  manuscript\h}{T1}
%
  \small
  \begin{tabular}[t]{ll}
    \verb|\h|           & horizontal ``rubber´´ space           \\
    \verb|\nl|          & new line (eg. in a title)             \\
    \verb|\lines{v}|    & vertical gap, where \verb|v| is a number of free lines \\
    \verb|\cfig|\emarg{caption\rb\lb label} & caption bellow a figure with a label \\
    \verb|\ctab|\emarg{caption\rb\lb label} & caption for a table with a label \\
    \verb|\rfig|\emarg{label} & figure reference in a text            \\
    \verb|\Rfig|\emarg{label} & figure reference at the beginning of a sentence  \\
    \verb|\rtab|\emarg{label} & table reference in a text             \\
    \verb|\Rtab|\emarg{label} & table reference  at the beginning of a sentence  \\
    \verb|\reqn|\emarg{label} & equation reference                    \\
    \verb|\Reqn|\emarg{label} & equation reference (the same as \verb|\reqn{label}|)    \\
    \verb|\INTRO|       & Introduction section                  \\
    \verb|\SECTION|\emarg{name} & section and its name                \\
    \verb|\SUBSECTION|\emarg{name} &  subsection and its name        \\
    \verb|\CONCL|       & Section of conclusions                \\
    \verb|\Acknowledge| & Acknowledgement paragraph             \\
    \verb|\REFER|       & Section of references                 \\
    \verb|\mx|\emarg{arg} & {\em arg} in bold mathematical italics (matrices, vectors) \\
    \verb|\lb, \rb, \bs|& output characters \ \lb \ \rb \ \bs    \\
    \verb|\ds|          & abbreviation for \verb|\displaystyle|       \\
  \end{tabular}
\end{table}
%
  \CONCL%
  %%%%%%
  This is the place, where conclusions are to be put like important information
  on the new results, which may be exploited in practice, and the perspectives
  of the continuing investigations. It's length is not prescribed, nevertheless,
  it may be used also for trimming a blank space at the last page of the
  contribution.

  Since this sample contains odd number of pages, it would not be included in the
  Conference proceedings.
%
  \Acknowledge%
  %%%%%%%%%%%%%
  Here is the place for acknowledgments.
%
  \REFER%                       REFERENCES
  %%%%%%%
  \begin{thebibliography}{99}
    \bibitem{Second}
      Second E.: Name of a paper, In: where published, Publisher, Year, Vol. number, Pages
    \bibitem{First}
      První A.: Monography name, Publisher, Place, Year
  \end{thebibliography}
  \vfill\strut
\end{document}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
