This document provides a short introduction to the LaTeX class JoME
supporting the preparation of papers in LaTeX for a journal Strojniški vestnik – Journal of Mechanical Engineering. Its first version was produced in October-March 2017 by Vladimir Batagelj.
The class JoME
is based on LaTeX2e class article
with options twoside
and twocolumn
. To modify some article
's settings it uses packages inputenc[utf8]
, fontenc[T1]
, titlesec[pagestyles]
, helvet[scaled=0.95]
, fancybox
, float
, latexsym
, url
, caption
, mdframe
, xcolor
, crop
, and mathptmx
.
The class JoME
introduces three new environments for formatting the head of the paper (title, authors, abstract, keywords and highlights):
svHead
- head of the paper, it calls \maketitle
;svAbstract
- abstract of the paper;svHigh
- highligts list.Typical structure of the head of the paper is as follows:
\begin{document} \twocolumn[\begin{svHead} \begin{svAbstract} ... Abstract \end{svAbstract} \svKeywords{key word 1, key word 2, key word 3, ... } \begin{svHigh} \item ... highlight 1 \item ... highlight 2 \item ... highlight 3 ... \end{svHigh} \end{svHead}] \section{Introduction}
Additional elements of the head are determined in front of \begin{document}
by the following commands:
\svTitle{
Title}
- title of the paper;\svMark{
marks}
- link from an author to his/her institution;\svAffil{
mark}{
institution}
- mark an institution.For example:
\svTitle{Title of the paper} \author{ Author's Name Surname\svMark{1,*} - Co-author's Name Surname\svMark{2} \\ \svAffil{1}{Author's institution} \\ \svAffil{2}{Co-Author's institution} }
The command:
\svKeywords{
keyword1, keyword2, keyword3}
- sets the keywords.Additional commands determine the content of running head and footer. They are set by the journal editor.
\svSV
- Strojniški vestnik - Journal of Mechanical Engineering vol(yyyy)no, p-p;\svCorr
- *Corr. Author's Address: Name of institution, Address, City, Country, \email{xxx.yyy@xxxxxx.yyy};\svDates{
yyyy-mm-dd}{
yyyy-mm-dd}{
yyyy-mm-dd}
- review, revise, accept date;\svCyear
- copyright year;\svDOI
- DOI code;\svType
- type of the paper: Original Scientific Paper
, Short Scientific Paper
, Review Paper
.
For details see the file template.tex
.
To get a table or picture across two columns use the environment
\begin{table*} ... \end{table*}
or
\begin{figure*} ... \end{figure*}
To fit the table to the available space you can try to appropriately set the font size using the commands \fontsize{
size}{
skip}\selectfont
, where size is the font size and skip is the distance between lines, as in the following example
\begin{table}[h] \caption{Table title\label{tabA}} \fontsize{10}{12}\selectfont \begin{tabular} ... ... \end{tabular} \end{table}
To change the distance between a caption and a content (table or picture) we can follow the examples:
\begin{table}[h] \vspace*{-5pt}\caption{Table title\label{tabA}} ...
and
... \includegraphics[width=76.5mm]{figure.png} \\[-5pt] \caption{Picture title\label{figA}} \end{figure}
In the two columns mode the command \newpage
requires a transition to a new column.
Sometimes the command \vfill
in front of \newpage
can improve the layout.
The bibliography can be either included in the paper (see template.tex
) or prepared in BiBTeX on a separate file (see templateB.tex
and biblio.bib
).
If you select the BiBTeX option you need to run the LaTeX file through pdfLaTeX
, followed by BiBTeX
, followed again by pdfLaTeX
(usually twice). BiBTeX requires a bibliographical style phcpc.bst
(Computer Physics Communications BibTeX style).
The class JoME is still in development. Questions, comments and requests are to be sent to vladimir.batagelj@fmf.uni-lj.si.