summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/shipunov/punct.sty
blob: 84c3c2692e94f3df0b464a5049d258b29c9940f3 (plain)
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
% Author: Alexey B. Shipunov (plantago@herba.msu.ru)

\ProvidesPackage{punct}%
        [2008/02/06 v0.3 Straight punctuation with italic text]

% Catcodes redefined! May be dangerous...

\def\PUNactive{%
\let\Z@P=,%
\let\T@T=.%
\let\D@V=:%
\let\T@C=;%
\let\O@C=(%
\let\Z@C=)%
\let\V@L=!%
\let\V@P=?%
\catcode`,=\active%
\catcode`.=\active%
\catcode`;=\active%
\catcode`:=\active%
\catcode`(=\active%
\catcode`)=\active%
\catcode`!=\active%
\catcode`?=\active}

{\PUNactive%
\gdef,{{\/\reset@font\Z@P}}%
\gdef.{{\/\reset@font\T@T}}%
\gdef:{{\/\reset@font\D@V}}%
\gdef;{{\/\reset@font\T@C}}%
\gdef({{\/\reset@font\O@C}}%
\gdef){{\/\reset@font\Z@C}}%
\gdef!{{\/\reset@font\V@L}}%
\gdef?{{\/\reset@font\V@P}}}

\def\ITP{\PUNactive\itshape}

\endinput