% MASTER & BACHELOR WORK DOCUMENT STYLE -- Released 27 May 1997 % for LaTeX version 2.09 % Copyright (C) 1997 by Helen Panfilova % ******************* PAGE FORMAT ********************************* \topmargin=0pt \textheight=595pt \newfont{\bxsl}{cmbxsl10 at 12pt} % new font definition \setcounter{secnumdepth}{4} % depth of beginning section numbering % ******************* LATVIAN HEADINGS DEFINITION ***************** \renewcommand{\partname}{Daõa} \renewcommand{\chaptername}{} \renewcommand{\contentsname}{Saturs} \renewcommand{\bibname}{LiteratÝras saraksts} \renewcommand{\listtablename}{Tabulu saraksts} \renewcommand{\listfigurename}{IlustrÆciju saraksts} \renewcommand{\indexname}{Priekýmetu rÆdØtÆjs} \renewcommand{\figurename}{ZØm.} \renewcommand{\tablename}{Tabula} \renewcommand{\appendixname}{Pielikums} % ****************** SECTION NUMBERING REDEFINITION *************** \renewcommand{\thesection}{\arabic{section}.} \renewcommand{\thesubsection}{\arabic{section}.\arabic{subsection}.} \renewcommand{\thesubsubsection}{\arabic{section}.\arabic{subsection}% .\arabic{subsubsection}.} \renewcommand{\theparagraph}{\Alph{paragraph}.} \renewcommand{\thesubparagraph}{\alph{subparagraph}.} % ******************* NEW COMMANDS ******************************** \newcommand{\mdots}{\ldots\ldots\ldots\ldots} \newcommand{\annovirsraksts}[1]{\renewcommand{\abstractname}{#1}} \newcommand{\saturraditajs}{\newpage \pagenumbering{roman}% \setcounter{page}{5} \tableofcontents% \newpage \normalsize \pagenumbering{arabic} \setcounter{page}{1}} \def\univ#1{\gdef\@univ{#1}} \def\univer#1{\gdef\@univer{#1}} \def\fakul#1{\gdef\@fakul{#1}} \def\nod#1{\gdef\@nod{#1}} \def\komis#1{\gdef\@komis{#1}} \def\nosaukums#1{\gdef\@nosaukums{#1}} \def\darbatips#1{\gdef\@darbatips{#1}} \def\autors#1{\gdef\@autors{#1}} \def\vadvards#1{\gdef\@vadvards{#1}} \def\vadinfo#1{\gdef\@vadinfo{#1}} \def\gads#1{\gdef\@gads{#1}} \def\students#1{\gdef\@students{#1}} \def\vaditajs#1{\gdef\@vaditajs{#1}} \def\recenzents#1{\gdef\@recenzents{#1}} \def\sekretars#1{\gdef\@sekretars{#1}} \def\apl_num#1{\gdef\@apl_num{#1}} \def\datums#1{\gdef\@datums{#1}} % ****************** TITLEPAGE ************************************ \def\titullapa{\thispagestyle{empty} \@titullapa% \let\titullapa\relax % to avoid several titlepages \let\@titullapa\relax } \def\@titullapa{\begin{center}% \large \@univer \\ \@fakul\ fakultÆte% \\ \@nod\ nodaõa\\[18cm] \large RØga, \@gads\\[-17cm] % \\[-17cm] = \vspace{-17cm} \LARGE \bf \@nosaukums\\[1cm] \large \@darbatips \ darbs\\ \end{center}% \vspace{4cm} \hfill \begin{minipage}{6cm} \raggedright% \large Autors\\ \sl \@autors \\[0.6cm]% \large VadØtÆjs\\ \sl \@vadvards\\ \@vadinfo \end{minipage}} % ****************** REGISTRATION PAGE **************************** \def\reglapa{\newpage \thispagestyle{empty} \@reglapa% \let\reglapa\relax % to avoid several reg.pages \let\@reglapa\relax } \def\@reglapa{\begin{center} \large \@darbatips \ darbs izstrÆdÆts\\ \@univ\ \@nod\ nodaõÆ \end{center} \renewcommand{\baselinestretch}{1.2} % larger space between lines \vspace{1cm} \noindent {\large Autors:\\ \@fakul \hfill \mdots\\ fakultÆtes \@students \hfill \@autors\\ St.~apl.~Nr.~\@apl_num \hfill \@datums \\[1.3cm]Darba vadØtÆjs:\\ \@vaditajs \hfill \mdots \\[1.3cm]Recenzents:\\ \@recenzents \hfill \mdots \\[1.3cm]Darbs iesniegts \@nod\ nodaõÆ \hfill \@gads .~g.~\mdots \\[1.3cm]AizstÆvñts \@komis\ pÆr\-bau\-dØ\-ju\-mu ko\-mi\-si\-jas sñ\-dñ \@gads .~g.~\mdots ar atzØmi \mdots % \begin{flushright} Protokols Nr.\ldots \end{flushright} \vspace{1cm} \@darbatips\ pÆrbaudØjumu \hfill \mdots\\ komisijas sekretÆrs \hfill \@sekretars }} % ******** MODIFICATION OF COMMANDS, WHICH DEFINES SECTIONS ******** \renewcommand{\section}{\@startsection {section}{1}{\z@}{3.5ex plus 1ex minus .2ex}{2.3ex plus.2ex}{\reset@font\large\bf}} \renewcommand{\subsection}{\@startsection{subsection}{2}{\z@}{3.25ex plus 1ex minus .2ex}{1.5ex plus.2ex}{\reset@font\normalsize\bf}} \renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}{% 3.25ex plus 1ex minus .2ex}{1.5ex plus.2ex}{\reset@font\normalsize\bf}} \renewcommand{\paragraph}{\@startsection {paragraph}{4}{\z@}{3.25ex plus 1ex minus.2ex}{-1em}{\reset@font \normalsize\bxsl}} \renewcommand{\subparagraph}{\@startsection {subparagraph}{4}{\parindent}{3.25ex plus 1ex minus .2ex}{-1em}{\reset@font\normalsize\bxsl}} \renewcommand{\@makechapterhead}[1]{% %\vspace*{10pt}% {\parindent \z@ \raggedright \Large \bf #1 \par \vspace{20pt} \hrule \par \nopagebreak \vspace{40pt}}} \renewcommand{\@makeschapterhead}[1]{% %\vspace*{10pt}% {\parindent \z@ \raggedright \Large \bf #1 \par \vspace{20pt} \hrule \par \nopagebreak \vspace{40pt}}} \input{ifthen.sty} % *********************** BIBLIOGRAPHY ***************************** %journal article, article in conference proceedings, book part with title %----------------------------------------------------------------------- \newcommand{\raksts}[9]{#1. {\it #2}. #3% \ifthenelse{\equal{#1}{}}{\typein[\?]{Bakdarbs warning: You've missed an author in \protect\raksts.Press Enter to proceed.}}{}% \ifthenelse{\equal{#2}{}}{\typein[\?]{Bakdarbs warning: You've missed a title in \protect\raksts.Press Enter to proceed.}}{}% \ifthenelse{\equal{#3}{}}{\typein[\?]{Bakdarbs warning: You've missed a journal or book title in \protect\raksts.Press Enter to proceed.}}{}% \ifthenelse{\equal{#4}{}}{\,}{\,{\bf #4}\,}(#5)% \ifthenelse{\equal{#5}{}}{\typein[\?]{Bakdarbs warning: You've missed a year in \protect\raksts.Press Enter to proceed.}}{}% \ifthenelse{\equal{#6}{}}{}{, {\it N}\,#6}% \ifthenelse{\equal{#7}{}}{}{, #7}% \ifthenelse{\equal{#8}{}}{.}{, #8}% \ifthenelse{\equal{#9}{}}{}{\,(#9).}} % book, book part, conference proceedings %--------------------------------------------------------------------- \newcommand{\gramata}[7]{#1% \ifthenelse{\equal{#1}{}}{{\it #2}}{. {\it #2}}% \ifthenelse{\equal{#2}{}}{\typein[\?]{Bakdarbs warning: You've missed a title in \protect\gramata.Press Enter to proceed.}}{}% \ifthenelse{\equal{#3}{}}{}{, {\bf #3}}% \ifthenelse{\equal{#4}{}}{, }{. #4, }#5% \ifthenelse{\equal{#5}{}}{\typein[\?]{Bakdarbs warning: You've missed a year in \protect\gramata.Press Enter to proceed.}}{}% \ifthenelse{\equal{#6}{}}{.}{, #6}% \ifthenelse{\equal{#7}{}}{}{\,(#7).}} % booklet, manual, Master's thesis, Phdthesis and others %--------------------------------------------------------------------- \newcommand{\misc}[5]{#1% \ifthenelse{\equal{#1}{}}{{\it #2}}{. {\it #2}}% \ifthenelse{\equal{#2}{}}{\typein[\?]{Bakdarbs warning: You've missed a title in \protect\misc.Press Enter to proceed.}}{}% \ifthenelse{\equal{#3}{}}{}{. #3}% \ifthenelse{\equal{#4}{}}{.}{, #4.}% \ifthenelse{\equal{#5}{}}{}{\,(#5).}} %journal article, article in conference proceedings, book part with title % in russian %----------------------------------------------------------------------- \newcommand{\kraksts}[9]{{\cyr #1. {\cyi #2}. #3% \ifthenelse{\equal{#1}{}}{\typein[\?]{Bakdarbs warning: You've missed an author in \protect\raksts.Press Enter to proceed.}}{}% \ifthenelse{\equal{#2}{}}{\typein[\?]{Bakdarbs warning: You've missed a title in \protect\raksts.Press Enter to proceed.}}{}% \ifthenelse{\equal{#3}{}}{\typein[\?]{Bakdarbs warning: You've missed a journal or book title in \protect\raksts.Press Enter to proceed.}}{}% \ifthenelse{\equal{#4}{}}{\,}{\,{\cyb #4}\,}(#5)% \ifthenelse{\equal{#5}{}}{\typein[\?]{Bakdarbs warning: You've missed a year in \protect\raksts.Press Enter to proceed.}}{}% \ifthenelse{\equal{#6}{}}{}{, {\it N}\,#6}% \ifthenelse{\equal{#7}{}}{}{, #7}% \ifthenelse{\equal{#8}{}}{.}{, #8}}% \ifthenelse{\equal{#9}{}}{}{\,(#9).}} % book, book part, conference proceedings in russian %--------------------------------------------------------------------- \newcommand{\kgramata}[7]{{\cyr #1% \ifthenelse{\equal{#1}{}}{{\cyi #2}}{. {\cyi #2}}% \ifthenelse{\equal{#2}{}}{\typein[\?]{Bakdarbs warning: You've missed a title in \protect\gramata.Press Enter to proceed.}}{}% \ifthenelse{\equal{#3}{}}{}{, {\cyb #3}}% \ifthenelse{\equal{#4}{}}{, }{. #4, }#5% \ifthenelse{\equal{#5}{}}{\typein[\?]{Bakdarbs warning: You've missed a year in \protect\gramata.Press Enter to proceed.}}{}% \ifthenelse{\equal{#6}{}}{.}{, #6}}% \ifthenelse{\equal{#7}{}}{}{\,(#7).}} % booklet, manual, Master's thesis, Phdthesis and others in russian %--------------------------------------------------------------------- \newcommand{\kmisc}[5]{{\cyr #1% \ifthenelse{\equal{#1}{}}{{\cyi #2}}{. {\cyi #2}}% \ifthenelse{\equal{#2}{}}{\typein[\?]{Bakdarbs warning: You've missed a title in \protect\misc.Press Enter to proceed.}}{}% \ifthenelse{\equal{#3}{}}{}{. #3}% \ifthenelse{\equal{#4}{}}{.}{, #4.}}% \ifthenelse{\equal{#5}{}}{}{\,(#5).}} % ************** USING THE RUSSIAN LANGUAGE IN DOCUMENT *********** \newcommand{\kir}{\input cyracc.def \font\tencyr = wncyr10 at 12pt\def\cyr{\tencyr\cyracc} \font\tencyb = wncyb10 at 12pt\def\cyb{\tencyb\cyracc} \font\tencyi = wncyi10 at 12pt\def\cyi{\tencyi\cyracc}}