arma-thesis

Simulation modelling of irregular waves for marine object dynamics programmes
git clone https://git.igankevich.com/arma-thesis.git
Log | Files | Refs | LICENSE

gost.cls (2719B)


      1 \NeedsTeXFormat{LaTeX2e}
      2 \ProvidesClass{gost}[2015/10/04 GOST R 7.0.11-2011]
      3 
      4 \LoadClassWithOptions{scrartcl}
      5 
      6 % page margins
      7 \RequirePackage[%
      8   left=25mm,%
      9   top=20mm,%
     10   right=10mm,%
     11   bottom=20mm,%
     12   a4paper%
     13 ]{geometry}
     14 
     15 \KOMAoptions{%
     16   toc=sectionentrydotfill,%
     17   bibliography=totoc%
     18 }
     19 
     20 % line and paragraph spacing
     21 \RequirePackage{setspace}
     22 \setstretch{1.5}
     23 \setlength{\parskip}{0pt}
     24 \setlength{\parindent}{2.5em}
     25 
     26 % page numbering
     27 \RequirePackage{scrlayer-scrpage}
     28 \cohead{\thepage}
     29 \cofoot{}
     30 \setkomafont{pagehead}{\scriptsize\mdseries\upshape}
     31 \pagestyle{scrheadings}
     32 
     33 % section format and spacing
     34 % N.B. We use 2 baseline skip here because we have one and half spacing
     35 \RedeclareSectionCommand[%
     36     font=\LARGE\singlespacing\centering,%
     37     beforeskip=2\baselineskip,%
     38     afterskip=2\baselineskip%
     39 ]{section}
     40 
     41 \RedeclareSectionCommand[%
     42     font=\Large\singlespacing\centering,%
     43     beforeskip=2\baselineskip,%
     44     afterskip=2\baselineskip%
     45 ]{subsection}
     46 
     47 \RedeclareSectionCommand[%
     48     font=\large\singlespacing\centering,%
     49     beforeskip=2\baselineskip,%
     50     afterskip=2\baselineskip%
     51 ]{subsubsection}
     52 
     53 \RedeclareSectionCommand[%
     54     font=\normalsize\bfseries,%
     55     beforeskip=0pt,%
     56     indent=2.5em
     57 ]{paragraph}
     58 
     59 % additional fields for title page
     60 \newcommand*{\organization}[1]{\gdef\@organization{#1}}
     61 \newcommand*{\manuscript}[1]{\gdef\@manuscript{#1}}
     62 \newcommand*{\speciality}[1]{\gdef\@speciality{#1}}
     63 \newcommand*{\degree}[1]{\gdef\@degree{#1}}
     64 \newcommand*{\supervisor}[1]{\gdef\@supervisor{#1}}
     65 
     66 \newcommand*{\@organization}[1]{organization is not set}
     67 \newcommand*{\@manuscript}[1]{manuscript is not set}
     68 \newcommand*{\@speciality}[1]{speciality is not set}
     69 \newcommand*{\@degree}[1]{degree is not set}
     70 \newcommand*{\@supervisor}[1]{supervisor is not set}
     71 
     72 % title page template
     73 \renewcommand*{\maketitle}{%
     74 \begin{titlepage}%
     75   \centering%
     76   \begin{spacing}{1}%
     77     {\normalsize\@organization\hrule\par}\vspace{1cm}%
     78     \begin{flushright}%
     79 	  {\normalsize\itshape\@manuscript\par}%
     80     \end{flushright}%
     81 	\vspace{2cm}%
     82     {\large\@degree\par}\vspace{3cm}%
     83     {\huge\bfseries\@title\par}\vspace{1cm}%
     84     {\Large\@author\par}\vspace{3cm}%
     85     {\normalsize\@speciality\par}\vspace{1cm}%
     86     \begin{flushright}%
     87       {\normalsize\@supervisor\par}%
     88     \end{flushright}%
     89     \vfill%
     90     {\normalsize\@date\par}%
     91   \end{spacing}%
     92 \end{titlepage}%
     93 }
     94 
     95 % title page numbering
     96 \newcommand{\maketitlepage}{%
     97   \pagenumbering{gobble}%
     98   \thispagestyle{empty}%
     99   \maketitle%
    100   \clearpage%
    101   \pagenumbering{arabic}%
    102   \setcounter{page}{2}%
    103 }
    104 
    105 %\AtBeginDocument{\maketitlepage}
    106 
    107 % clear page before each section
    108 \RequirePackage{etoolbox}
    109 \pretocmd{\section}{\clearpage}{}{}
    110 
    111 \RequirePackage{hyperref}