summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans J. Koch <hjk@linutronix.de>2009-06-18 02:17:04 +0200
committerHans J. Koch <hjk@linutronix.de>2009-06-18 02:17:04 +0200
commit588c39f4f0a9bd39c693a528c5f129de64f7c3a5 (patch)
treedcfa67e31d2b6f1425917044c335cbdc63fa477d
parentf796210d48012d552f0a7f5ac5d218086c7f9f0a (diff)
Added listings to lxextras.sty, and default settings for that
-rw-r--r--latex/lxarticle/lxextras.sty10
1 files changed, 10 insertions, 0 deletions
diff --git a/latex/lxarticle/lxextras.sty b/latex/lxarticle/lxextras.sty
index 57390c9..0a845fd 100644
--- a/latex/lxarticle/lxextras.sty
+++ b/latex/lxarticle/lxextras.sty
@@ -1,6 +1,16 @@
\ProvidesPackage{lxextras}
\RequirePackage{graphicx}
\RequirePackage{color}
+\RequirePackage{listings}
+\RequirePackage{verbatim}
\newcommand*\cmd[1]{\textbf{\texttt{#1}}}
+\newenvironment{lxcode}{\small\verbatim}{\endverbatim}
+
+\lstset{backgroundcolor=\color[gray]{0.92}, basicstyle=\ttfamily\small}%
+
+%% Need to figure out why the environment below doesn't work...
+%% LaTeX fails at the next utf8 umlaut after the environment :-(
+\newenvironment{lxcodebox}{\begin{lstlisting}}{\end{lstlisting}}
+