summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/grverb/grverb.sty
blob: 36cdf8b8fe52295da87d4a12cb36588fd5bbe21b (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
%%
%% This is file `grverb.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% grverb.dtx  (with options: `package')
%% 
%% This is a generated file.
%% 
%% Copyright 1999 Apostolos Syropoulos. All rights reserved.
%% 
%% --------------------------------------------------
%% 
%% It may be distributed under the terms of the LaTeX Project Public
%% License, as described in lppl.txt in the base LaTeX distribution.
%% Either version 1.1 or, at your option, any later version.
%% 
%% IMPORTANT: The above license does not apply in the case of "Crete University
%% Press", Helaklion-Crete, Greece. This publisher is not allowed to use this
%% software or any other piece of software derived directly or indirectly from
%% it in the production of any commercial publication, i.e., one that is being
%% sold from bookstores, etc.
%% \CharacterTable
%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
\NeedsTeXFormat{LaTeX2e}[1996/01/01]
\ProvidesPackage{grverb}[1999/12/06\space v1.0]
\typeout{Package: `grverb' v1.0\space <1999/12/06> (A. Syropoulos)}
\def\@gr@inpenc@loop#1#2{%
  \@tempcnta`#1\relax
  \loop
    \catcode\@tempcnta11
  \ifnum\@tempcnta<`#2\relax
     \advance\@tempcnta\@ne
  \repeat}
\DeclareFontFamily{U}{grtt}{}
\DeclareFontShape{U}{grtt}{m}{n}{
 <-> s * [0.9] grcour8a}{}
\begingroup \catcode `|=0 \catcode `[= 1
\catcode`]=2 \catcode `\{=12 \catcode `\}=12
\catcode`\\=12 |gdef|@grxverbatim#1\end{grverbatim}[#1|end[grverbatim]]
|endgroup
\def\@grverbatim{\trivlist \item\relax
  \if@minipage\else\vskip\parskip\fi
  \leftskip\@totalleftmargin\rightskip\z@skip
  \parindent\z@\parfillskip\@flushglue\parskip\z@skip
  \@@par
  \@tempswafalse
  \def\par{%
    \if@tempswa
      \leavevmode \null \@@par\penalty\interlinepenalty
    \else
      \@tempswatrue
      \ifhmode\@@par\penalty\interlinepenalty\fi
    \fi}%
  \let\do\@makeother \dospecials
  \obeylines \gr@verbatim@font \@noligs
  \everypar \expandafter{\the\everypar \unpenalty}%
}
\def\grverbatim{\begingroup\@gr@inpenc@loop\^^A\^^H%
                           \@gr@inpenc@loop\^^K\^^K%
                           \@gr@inpenc@loop\^^N\^^_%
                           \@gr@inpenc@loop\^^?\^^ff%
         \@grverbatim \frenchspacing\@vobeyspaces \@grxverbatim}
\def\endgrverbatim{\if@newlist \leavevmode\fi\endtrivlist\endgroup}
\def\gr@verbatim@font{\fontencoding{U}\fontfamily{grtt}\fontseries{m}%
\selectfont}
\def\grverb{\relax\ifmmode\hbox\else\leavevmode\null\fi
  \bgroup
    \@gr@inpenc@loop\^^A\^^H%
    \@gr@inpenc@loop\^^K\^^K%
    \@gr@inpenc@loop\^^N\^^_%
    \@gr@inpenc@loop\^^?\^^ff%
    \verb@eol@error \let\do\@makeother \dospecials
    \gr@verbatim@font\@noligs \@verb}
\endinput
%%
%% End of file `grverb.sty'.