aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/coq-sl.sty
diff options
context:
space:
mode:
authorGravatar filliatr <filliatr@85f007b7-540e-0410-9357-904b9bb8a0f7>1999-12-11 18:42:39 +0000
committerGravatar filliatr <filliatr@85f007b7-540e-0410-9357-904b9bb8a0f7>1999-12-11 18:42:39 +0000
commit9a1a12170b1f62ad65576ac30405ef86e364b97a (patch)
tree5e38894797463f82965ac3067c7a06e6a2c22c9a /tools/coq-sl.sty
parent20445e418ffee0c0dc1398c80af4a2b75abe9ac3 (diff)
outils (manquent encore les deux filtres)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@235 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tools/coq-sl.sty')
-rwxr-xr-xtools/coq-sl.sty37
1 files changed, 37 insertions, 0 deletions
diff --git a/tools/coq-sl.sty b/tools/coq-sl.sty
new file mode 100755
index 000000000..9f6e5480c
--- /dev/null
+++ b/tools/coq-sl.sty
@@ -0,0 +1,37 @@
+% COQ style option, for use with the coq-latex filter.
+
+\typeout{Document Style option `coq-sl' <7 Apr 92>.}
+
+\ifcase\@ptsize
+ \font\sltt = cmsltt10
+\or \font\sltt = cmsltt10 \@halfmag
+\or \font\sltt = cmsltt10 \@magscale1
+\fi
+
+{\catcode`\^^M=\active %
+ \gdef\@coqinputline#1^^M{\tt Coq < #1\par} %
+ \gdef\@coqoutputline#1^^M{\sltt#1\par} } %
+\def\@coqblankline{\medskip}
+\chardef\@coqbackslash="5C
+
+\def\coq{
+ \bgroup
+ \flushleft
+ \parindent 0pt
+ \parskip 0pt
+ \let\do\@makeother\dospecials
+ \catcode`\^^M=\active
+ \catcode`\\=0
+ \catcode`\ \active
+ \frenchspacing
+ \@vobeyspaces
+ \let\?\@coqinputline
+ \let\:\@coqoutputline
+ \let\;\@coqblankline
+ \let\\\@coqbackslash
+}
+
+\def\endcoq{
+ \endflushleft
+ \egroup\noindent
+}