Initial commit

This commit is contained in:
Alexander Yakovlev 2012-11-15 06:44:20 +07:00
commit 5f747ff0f7
3 changed files with 77 additions and 0 deletions

5
Makefile Normal file
View File

@ -0,0 +1,5 @@
install:
sudo mkdir -p /usr/share/texmf-dist/tex/xetex/oreolek
sudo ln -s `pwd`/oreolek-article.cls /usr/share/texmf-dist/tex/xetex/oreolek/oreolek-article.cls
sudo ln -s `pwd`/oreolek-book.cls /usr/share/texmf-dist/tex/xetex/oreolek/oreolek-book.cls
sudo texhash

36
oreolek-article.cls Normal file
View File

@ -0,0 +1,36 @@
% 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{oreolek-article}[2012/10/09 Oreolek's custom XeTeX style for articles]
\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{article}% 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}
\RequirePackage{hyperref}
\RequirePackage{indentfirst}
\RequirePackage[cm]{fullpage}
\pagestyle{empty}
\setcounter{secnumdepth}{0}
\setcounter{tocdepth}{2}
\author{Александр Яковлев}
\endinput

36
oreolek-book.cls Normal file
View File

@ -0,0 +1,36 @@
% 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{oreolek-book}[2012/10/09 Oreolek's custom XeTeX style for books]
\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}
\RequirePackage{hyperref}
\RequirePackage{indentfirst}
\RequirePackage[cm]{fullpage}
\pagestyle{empty}
\setcounter{secnumdepth}{0}
\setcounter{tocdepth}{2}
\author{Александр Яковлев}
\endinput