Recently I decided to upgrade my skills in writing classes and styles packages for LaTeX. As a start I began to write the *.sty which provides title page for abstract.
Title page of the abstract in Ukraine is usually has following markup(see attached example):
Code: Select all
Text "MINISTRY OF EDUCATION AND SCIENCE OF UKRAINE", centeredName of the Institute/University/school/etc, centeredTitle of the abstract, bold, 36pt, centered, a little higher than center of the pageSome vskip.(The following is right aligned)Composed by: (student's name)(student's group)Checked by: (teacher's name)(teacher's department)Some vskip.City and year, centered(for example: Kyiv - 2007)
Code: Select all
Code, edit and compile here:
% abstract\def\filename{abstract}\def\fileversion{v0.3}\def\filedate{2002/10/20}\NeedsTeXFormat{LaTeX2e}[1995/12/01]\ProvidesPackage{\filename}%Name of school/University/Institute\newcommand{\uchzav}{\renewcommand{\@uchzav}}\newcommand{\@uchzav}{}%"Checked by" field\newcommand{\checkedby}{\renewcommand{\@checkedby}}\newcommand{\@checkedby}{}% Title page\renewcommand{\@maketitle}{\begin{titlepage}\let \footnotesize \small\let \footnoterule \relax\newpage \null\vskip 1em\let \footnote \thanks\begin{center}\large \@uchzav\end{center}\vskip 10.5em\begin{center}\lineskip 1.2ex\textbf{\Huge{\@title}}\end{center}\vskip 10em\begin{flushright}\begin{tabular}[t]{lr}\begin{tabular}[t]{r}\fontseries{b}\selectfont Composed by:\end{tabular} &\begin{tabular}[t]{r}
Code: Select all
Code, edit and compile here:
\documentclass[ukrainian]{article}\usepackage[T1]{fontenc}\usepackage[koi8-u]{inputenc}\usepackage{abstract}\usepackage{babel}\begin{document}\uchzav{\noun{ministry of science and education of ukraine} \newline %National Aviation University \newline %Control Systems Faculty}\checkedby{Anatoly Kozlov \newline CIC Department}\author{Andriy Senkovych \newline Group 508}\title{My Test Title}\maketitleThis is a test sentence.\section{Test 1}This is a test sentence. This is a test sentence.\begin{eqnarray*}x^{2}-y & = & \sqrt{z^{2}-y^{2}}\\0 & = & 0\end{eqnarray*}This is a test sentence. This is a test sentence. This is a test sentence.\section{Test 2.5}\tableofcontents{}\end{document}
1) Generated dvi file looks different in xdvi and kdvi. kdvi also shows some big red squares in thumbnails but they disappear in .ps file.
2) I need multiple lines in \author and \checkedby command , but I don't know how make such
3) commands like \uchzav, \author, \checkedby work only if \title is placed after them, but not before.