summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/doc/english/mathmode/showexpl.cfg
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2005-12-29 00:35:06 +0000
committerKarl Berry <karl@freefriends.org>2005-12-29 00:35:06 +0000
commit86f6ad0f8431ad33548e4b843418630365dcd7cb (patch)
tree59533054992d6c5e40a4cdbb4004b083bdfa4b1d /Master/texmf-doc/doc/english/mathmode/showexpl.cfg
parent41ceff5a615ab4e3d46b1c94bd26d9dcf9d6c1f8 (diff)
doc/english/m
git-svn-id: svn://tug.org/texlive/trunk@22 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-doc/doc/english/mathmode/showexpl.cfg')
-rw-r--r--Master/texmf-doc/doc/english/mathmode/showexpl.cfg67
1 files changed, 67 insertions, 0 deletions
diff --git a/Master/texmf-doc/doc/english/mathmode/showexpl.cfg b/Master/texmf-doc/doc/english/mathmode/showexpl.cfg
new file mode 100644
index 00000000000..bead32fe961
--- /dev/null
+++ b/Master/texmf-doc/doc/english/mathmode/showexpl.cfg
@@ -0,0 +1,67 @@
+% config file for showexpl.sty
+%
+% Copyright Herbert Voss, 2005
+% Licence: LPPL.
+
+\ProvidesFile{showexpl.cfg}
+ [2005/06/30 v0.02 Definitions for the showexpl package (hv)]
+%
+\definecolor{hellgelb}{rgb}{1,1,0.85}
+\definecolor{colKeys}{rgb}{0,0,1}
+\definecolor{colIdentifier}{rgb}{0,0,0}
+\definecolor{colComments}{rgb}{1,0,0}
+\definecolor{colString}{rgb}{0,0.5,0}
+
+\lstset{%
+ preset=\centering,%
+ rframe={},%
+ language=[AlLaTeX]TeX,%
+ float=hbp,%
+ basicstyle=\footnotesize\ttfamily,%
+ identifierstyle=\color{colIdentifier},%
+ keywordstyle=\color{colKeys},%
+ stringstyle=\color{colString},%
+ commentstyle=\itshape\color{colComments},%
+% columns=flexible,%
+% columns=fullflexible,%
+ columns=fixed,
+ tabsize=4,%
+ frame=single,%
+ extendedchars=true,%
+ showspaces=false,%
+ showstringspaces=false,%
+ numbers=left,%
+ numberstyle=\tiny\ttfamily,%
+ breaklines=true,%
+ breakindent=10pt,%
+ backgroundcolor=\color{hellgelb},%
+ breakautoindent=true,%
+ captionpos=t,%
+ xleftmargin=1em,%
+ xrightmargin=\fboxsep,%
+ numbersep=1em,%
+% xrightmargin=-1cm,%
+% relwidth=0.5,%
+% columnsep=10pt%
+}
+\lstnewenvironment{showexample}[1][]
+{%
+ \@temptokena{#1}%
+ \begingroup
+ \advance\c@ltxexample\@ne \advance\c@lstlisting\@ne
+ \expandafter\lstset\expandafter{\SX@explpreset,#1}%
+ \edef\x{\endgroup
+ \def\noexpand\SX@codefile{\SX@codefile}%
+ \def\noexpand\SX@graphicname{\SX@graphicname}%
+ \def\noexpand\SX@graphicparam{\SX@graphicparam}}%
+ \x
+ \xdef\SX@@explpreset{\the\@temptokena,codefile=\SX@codefile,
+ graphic={[\SX@graphicparam]{\SX@graphicname}}}%
+ \setbox\@tempboxa=\hbox\bgroup% Warum noetig?
+ \lst@BeginWriteFile{\SX@codefile}%
+}
+{%
+ \lst@EndWriteFile\egroup
+ \SX@put@code@result
+}
+\renewcommand*\SX@Info{}%