diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/luatex/generic/cstypo/cstypo.sty |
Initial commit
Diffstat (limited to 'macros/luatex/generic/cstypo/cstypo.sty')
-rw-r--r-- | macros/luatex/generic/cstypo/cstypo.sty | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/macros/luatex/generic/cstypo/cstypo.sty b/macros/luatex/generic/cstypo/cstypo.sty new file mode 100644 index 0000000000..a556597098 --- /dev/null +++ b/macros/luatex/generic/cstypo/cstypo.sty @@ -0,0 +1,45 @@ +% LaTeX package to enforce some basic Czech language typography +% rules. Requires LuaLaTeX. +% +% (c) 2016 Václav Haisman +% +%% This program can be redistributed and/or modified under the terms of the +%% MIT license. See LICENSE file. +% +\NeedsTeXFormat{LaTeX2e}[1994/06/01] +\ProvidesPackage{cstypo} + [2016/08/31 v0.03 LaTeX package to enforce some basic Czech language + typography rules. Requires Lua(La)TeX.] + +\RequirePackage{ifluatex} + +\ifluatex + +\makeatletter +\ifcsname l@czech\endcsname +\PackageInfo{cstypo}{% + Czech language ID is \the\l@czech +} +\else +\PackageError{cstypo}{% + \protect\l@czech\space is not defined +}{% + Include cstypo package after polyglossia or babel. +} +\fi +\makeatother + +\input{cstypo-tex} +\else +\PackageError{cstypo}{% + This requires LuaTeX or LuaLaTeX +}{% + Compile this with LuaTeX or LuaLaTeX. +} + +\fi + +\endinput + +%% +%% End of file `cstypo.sty'. |