forked from krono/swathesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
swa-platform.sty
41 lines (34 loc) · 1006 Bytes
/
swa-platform.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
\RequirePackage{etoolbox}
\RequirePackage{ifthen,ifpdf,ifluatex,ifxetex}
\ifcsundef{ifundefinedorrelax}%
{\RequirePackage{scrbase}}%
{}
\def\swa@RequireIfPackageExists#1{%
\IfFileExists{#1.sty}{\RequirePackage{#1}{}}{}}
\ifthenelse{\boolean{luatex}}%
{\swa@RequireIfPackageExists{luatex85}
\swa@RequireIfPackageExists{luatexbase}
\PreventPackageFromLoading*%
[\typeout{pdfcolmk unneccessary on non-pdftex}]%
{pdfcolmk}}%
{\RequirePackage{morewrites}}
\ifthenelse{\boolean{xetex}\OR\boolean{luatex}}%
{}%
{\input glyphtounicode
\pdfgentounicode=1
\RequirePackage[LGR,OT1,LY1,T1]{fontenc}
\RequirePackage[utf8]{inputenx}
\input{ix-utf8enc.dfu}
\ProvideTextCommandDefault{\textblacksquare}{\vrule \@width .3em \@height .4em \@depth -.1em\relax}
\RequirePackage{alphabeta}}
%%
% From titlepage.dtx by Markus Kohm
%
\newcommand*{\swa@NowButAfterBeginDocument}{%
\if@atdocument
\expandafter\@firstofone
\else
\expandafter\AtBeginDocument
\fi
}
%