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/latex/contrib/lhcyr/lhcyralt/lhcyralt.sty |
Initial commit
Diffstat (limited to 'macros/latex/contrib/lhcyr/lhcyralt/lhcyralt.sty')
-rw-r--r-- | macros/latex/contrib/lhcyr/lhcyralt/lhcyralt.sty | 255 |
1 files changed, 255 insertions, 0 deletions
diff --git a/macros/latex/contrib/lhcyr/lhcyralt/lhcyralt.sty b/macros/latex/contrib/lhcyr/lhcyralt/lhcyralt.sty new file mode 100644 index 0000000000..853c6adc94 --- /dev/null +++ b/macros/latex/contrib/lhcyr/lhcyralt/lhcyralt.sty @@ -0,0 +1,255 @@ +%% +%% This is lhcyralt.sty +%% +\def\fileversion{v1.0} +\def\filedate{1998/12/15} +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{lhcyralt}[\filedate\space\fileversion^^J% +lh fonts in alt (aka cp866, lcy) encoding (V.V.Zhytnikov)] + +\catcode'240=11 %a +\catcode'241=11 %b +\catcode'242=11 %v +\catcode'243=11 %g +\catcode'244=11 %d +\catcode'245=11 %e +\catcode'246=11 %zh +\catcode'247=11 %z +\catcode'250=11 %i +\catcode'251=11 %ii +\catcode'252=11 %k +\catcode'253=11 %l +\catcode'254=11 %m +\catcode'255=11 %n +\catcode'256=11 %o +\catcode'257=11 %p +\catcode'340=11 %r +\catcode'341=11 %s +\catcode'342=11 %t +\catcode'343=11 %u +\catcode'344=11 %f +\catcode'345=11 %kh +\catcode'346=11 %ts +\catcode'347=11 %ch +\catcode'350=11 %sh +\catcode'351=11 %shch +\catcode'352=11 %hard +\catcode'353=11 %iy +\catcode'354=11 %soft +\catcode'355=11 %'e +\catcode'356=11 %yu +\catcode'357=11 %ya +\catcode'360=11 %yo +\catcode'200=11 %A +\catcode'201=11 %B +\catcode'202=11 %V +\catcode'203=11 %G +\catcode'204=11 %D +\catcode'205=11 %E +\catcode'206=11 %ZH +\catcode'207=11 %Z +\catcode'210=11 %I +\catcode'211=11 %II +\catcode'212=11 %K +\catcode'213=11 %L +\catcode'214=11 %M +\catcode'215=11 %N +\catcode'216=11 %O +\catcode'217=11 %P +\catcode'220=11 %R +\catcode'221=11 %S +\catcode'222=11 %T +\catcode'223=11 %U +\catcode'224=11 %F +\catcode'225=11 %KH +\catcode'226=11 %TS +\catcode'227=11 %CH +\catcode'230=11 %SH +\catcode'231=11 %SHCH +\catcode'232=11 %HARD +\catcode'233=11 %IY +\catcode'234=11 %SOFT +\catcode'235=11 %'E +\catcode'236=11 %YU +\catcode'237=11 %YA +\catcode'361=11 %YO +\catcode'374=11 %Number + +\AtBeginDocument{% +\uccode'240='200 \lccode'240='240 %a +\uccode'241='201 \lccode'241='241 %b +\uccode'242='202 \lccode'242='242 %v +\uccode'243='203 \lccode'243='243 %g +\uccode'244='204 \lccode'244='244 %d +\uccode'245='205 \lccode'245='245 %e +\uccode'246='206 \lccode'246='246 %zh +\uccode'247='207 \lccode'247='247 %z +\uccode'250='210 \lccode'250='250 %i +\uccode'251='211 \lccode'251='251 %ii +\uccode'252='212 \lccode'252='252 %k +\uccode'253='213 \lccode'253='253 %l +\uccode'254='214 \lccode'254='254 %m +\uccode'255='215 \lccode'255='255 %n +\uccode'256='216 \lccode'256='256 %o +\uccode'257='217 \lccode'257='257 %p +\uccode'340='220 \lccode'340='340 %r +\uccode'341='221 \lccode'341='341 %s +\uccode'342='222 \lccode'342='342 %t +\uccode'343='223 \lccode'343='343 %u +\uccode'344='224 \lccode'344='344 %f +\uccode'345='225 \lccode'345='345 %kh +\uccode'346='226 \lccode'346='346 %ts +\uccode'347='227 \lccode'347='347 %ch +\uccode'350='230 \lccode'350='350 %sh +\uccode'351='231 \lccode'351='351 %shch +\uccode'352='232 \lccode'352='352 %hard +\uccode'353='233 \lccode'353='353 %iy +\uccode'354='234 \lccode'354='354 %soft +\uccode'355='235 \lccode'355='355 %'e +\uccode'356='236 \lccode'356='356 %yu +\uccode'357='237 \lccode'357='357 %ya +\uccode'361='360 \lccode'361='361 %yo +\uccode'200='200 \lccode'200='240 %A +\uccode'201='201 \lccode'201='241 %B +\uccode'202='202 \lccode'202='242 %V +\uccode'203='203 \lccode'203='243 %G +\uccode'204='204 \lccode'204='244 %D +\uccode'205='205 \lccode'205='245 %E +\uccode'206='206 \lccode'206='246 %ZH +\uccode'207='207 \lccode'207='247 %Z +\uccode'210='210 \lccode'210='250 %I +\uccode'211='211 \lccode'211='251 %II +\uccode'212='212 \lccode'212='252 %K +\uccode'213='213 \lccode'213='253 %L +\uccode'214='214 \lccode'214='254 %M +\uccode'215='215 \lccode'215='255 %N +\uccode'216='216 \lccode'216='256 %O +\uccode'217='217 \lccode'217='257 %P +\uccode'220='220 \lccode'220='340 %R +\uccode'221='221 \lccode'221='341 %S +\uccode'222='222 \lccode'222='342 %T +\uccode'223='223 \lccode'223='343 %U +\uccode'224='224 \lccode'224='344 %F +\uccode'225='225 \lccode'225='345 %KH +\uccode'226='226 \lccode'226='346 %TS +\uccode'227='227 \lccode'227='347 %CH +\uccode'230='230 \lccode'230='350 %SH +\uccode'231='231 \lccode'231='351 %SHCH +\uccode'232='232 \lccode'232='352 %HARD +\uccode'233='233 \lccode'233='353 %IY +\uccode'234='234 \lccode'234='354 %SOFT +\uccode'235='235 \lccode'235='355 %'E +\uccode'236='236 \lccode'236='356 %YU +\uccode'237='237 \lccode'237='357 %YA +\uccode'360='360 \lccode'360='361 %YO +\uccode'374='374 \lccode'374='374 %Number +} + +\renewcommand{\rmdefault}{lhr} +\renewcommand{\sfdefault}{lhss} +\renewcommand{\ttdefault}{lhtt} + +% Characters \"e \"E and \"i +% Russian double quotes \"< \"> -> << >> +\AtBeginDocument{% +\let\@dqtmp\" +\def\"#1{{\def\@tmpzzz{#1}\def\@tmpye{е}\def\@tmpcye{Е}% + \def\@tmplt{<}\def\@tmpgt{>}\def\@tmpi{i}% + \if\@tmpzzz\@tmpye\char'361% + \else\if\@tmpzzz\@tmpcye\char'360% + \else\if\@tmpzzz\@tmplt\char'375% + \else\if\@tmpzzz\@tmpgt\char'376% + \else\if\@tmpzzz\@tmpi\@dqtmp{\i}% + \else\@dqtmp#1\fi\fi\fi\fi\fi% + \let\@tmpzzz\relax\let\@tmpye\relax\let\@tmpi\relax% + \let\@tmplt\relax\let\@tmpgt\relax\let\@tmpcye\relax}} +} +% Russian number symbol \No +\def\No{{\char'374}} +% Russian double quotes \< \> -> << >> +\def\<{{\char'375}} +\def\>{{\char'376}} + +% Russian Style. Partially borrowed from ruscorr.sty +\DeclareOption{russtyle}{% +\def\prefacename{Предисловие}% +\def\refname{Ссылки}% +\def\abstractname{Аннотация}% +\def\bibname{Литература}% +\@ifundefined{chapter}{}{\def\chaptername{Глава}}% +\def\appendixname{Приложение}% +\def\contentsname{Оглавление}% +\def\listfigurename{Список иллюстраций}% +\def\listtablename{Список таблиц}% +\def\indexname{Предметный указатель}% +\def\figurename{Рис.}% +\def\tablename{Табл.}% +\def\partname{Часть}% +\def\enclname{Приложение}% +\def\ccname{Копия}% +\def\pagename{Стр.}% +\def\headtoname{Кому:}% +\def\seename{см.}% +\def\alsoname{см.~также}% +% Saving english \today +\let\etoday\today% +\def\today{\number\day~\ifcase\month\or + января\or февраля\or марта\or апреля\or мая\or июня\or + июля\or августа\or сентября\or октября\or ноября\or + декабря\fi \space \number\year~г.}% +% Russian counters +\def\ralph#1{\@ralph{\@nameuse {c@#1}}} +\def\@ralph#1{\ifcase #1\or а\or б\or в\or г\or д\or е\or ж\or з\or +и\else\@iralph{#1}\fi +} +\def\@iralph#1{\ifcase #1\or\or\or\or\or\or\or\or\or\or + к\or л\or м\or н\or о\or п\or р\or с\or т\or у\or + ф\or х\or ц\or ч\or ш\or щ\or э\or ю\or я\else\@ctrerr + \fi} +\def\Ralph#1{\@Ralph{\@nameuse {c@#1}}} +\def\@Ralph#1{\ifcase #1% + \or А\or Б\or В\or Г\or Д\or Е\or Ж\or З\or + И\else\@iRalph{#1}\fi} +\def\@iRalph#1{\ifcase #1% + \or\or\or\or\or\or\or\or\or\or К\or Л\or М\or + Н\or О\or П\or Р\or С\or Т\or У\or Ф\or Х\or Ц\or + Ч\or Ш\or Щ\or Э\or Ю\or Я\else\@ctrerr + \fi} +% Russian enumerate +\def\labelenumi{\theenumi)} +\def\theenumii{\ralph{enumii}} +\def\labelenumii{\theenumii)} +\def\p@enumii{\theenumi} +\def\labelenumiii{{\bf--}} +\let\theenumiii\relax +\def\p@enumiii{\theenumi\theenumii} +\def\enumerate{\ifnum \@enumdepth >2% +\@toodeep\else + \advance\@enumdepth \@ne + \edef\@enumctr{enum\romannumeral\the\@enumdepth}\list + {\csname label\@enumctr\endcsname}{\usecounter + {\@enumctr}\def\makelabel##1{\hss\llap{##1}}}\fi} +% Russian appendix +\@ifundefined{chapter}{% Article + \def\appendix{\par + \setcounter{section}{0}% + \setcounter{subsection}{0}% + \def\thesection{\Ralph{section}}} +}{% Book or Report + \def\appendix{\par + \setcounter{chapter}{0}% + \setcounter{section}{0}% + \def\@chapapp{\appendixname}% + \def\thechapter{\Ralph{chapter}}} +} +% Correct Russian hyphenation +\frenchspacing +\righthyphenmin=2 +\lefthyphenmin=2 +} +\ProcessOptions + +\endinput +%% +%% End of lhcyralt.sty +%% |