Вынес преамбулу в файл стиля.

This commit is contained in:
Alexander Yakovlev 2012-10-11 20:38:28 +07:00
parent b6d3ef56f5
commit 82f748caaf
2 changed files with 59 additions and 40 deletions

View file

@ -1,43 +1,4 @@
\documentclass[a4paper,12pt,oneside]{memoir}
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{polyglossia}
\setdefaultlanguage{russian}
\defaultfontfeatures{Mapping=tex-text, Scale=MatchLowercase}
\setmainfont{PT Serif}
\setmonofont{PT Mono}
\setmathrm{PT Serif}
\newfontfamily{\cyrillicfont}{PT Serif}
\newfontinstance\scshape[Letters=SmallCaps, Numbers=Uppercase]{PT Serif Caption}
\usepackage{hyperref}
\usepackage{indentfirst}
%\usepackage[cm]{fullpage}
\semiisopage[12]
\checkandfixthelayout
\usepackage{tabulary}
\pagestyle{empty}
\setcounter{secnumdepth}{0}
\setcounter{tocdepth}{2}
\newcommand{\titleAY}{
\begingroup% Editions & Impressions
\vspace*{0.6\textheight}
\ttfamily
\raggedright
{\LARGE {\huge П}равила ролевой системы \\
\hspace*{30pt} {\huge Ф.И.К.У.С.}}\par
\vspace{2\baselineskip}
{\large\ltseries\hspace*{15pt} {\Large Н}е {\Large Р}екомендуется
\\[.1\baselineskip]
\hspace*{15pt} к {\Large У}потреблению}\par
\vspace{2\baselineskip}
\hspace*{15pt}{\ltseries \textit{\large Александр Яковлев}}\par
\clearpage
\endgroup
}
\chapterstyle{southall}
\documentclass[a4paper,12pt,oneside]{special}
\begin{document}
\titleAY

58
special.cls Normal file
View file

@ -0,0 +1,58 @@
% Declare that this style file requires at least LaTeX version 2e.
\NeedsTeXFormat{LaTeX2e}
% Provide the name of your page, the date it was last updated, and a comment about what it's used for
\ProvidesPackage{special}[2012/11/09 custom style for this book]
\DeclareOption*{%
\PassOptionsToClass{\CurrentOption}{memoir}% or book or whatever
}
% Now we'll execute any options passed in
\ProcessOptions\relax
% Instead of defining each and every little detail required to create a new document class,
% you can base your class on an existing document class.
\LoadClass{memoir}% or book or whatever you class is closest to
\RequirePackage{fontspec}
\RequirePackage{xunicode}
\RequirePackage{xltxtra}
\RequirePackage{polyglossia}
\setdefaultlanguage{russian}
\defaultfontfeatures{Mapping=tex-text, Scale=MatchLowercase}
\setmainfont{PT Serif}
\setmonofont{PT Mono}
\setmathrm{PT Serif}
\newfontfamily{\cyrillicfont}{PT Serif}
\newfontinstance\scshape[Letters=SmallCaps, Numbers=Uppercase]{PT Serif Caption}
\usepackage{hyperref}
\usepackage{indentfirst}
%\usepackage[cm]{fullpage}
\semiisopage[12]
\checkandfixthelayout
\RequirePackage{tabulary}
\pagestyle{empty}
\setcounter{secnumdepth}{0}
\setcounter{tocdepth}{2}
\newcommand{\titleAY}{
\begingroup% Editions & Impressions
\vspace*{0.6\textheight}
\ttfamily
\raggedright
{\LARGE {\huge П}равила ролевой системы \\
\hspace*{30pt} {\huge Ф.И.К.У.С.}}\par
\vspace{2\baselineskip}
{\large\ltseries\hspace*{15pt} {\Large Н}е {\Large Р}екомендуется
\\[.1\baselineskip]
\hspace*{15pt} к {\Large У}потреблению}\par
\vspace{2\baselineskip}
\hspace*{15pt}{\ltseries \textit{\large Александр Яковлев}}\par
\clearpage
\endgroup
}
\chapterstyle{southall}
\endinput