From 588c39f4f0a9bd39c693a528c5f129de64f7c3a5 Mon Sep 17 00:00:00 2001
From: "Hans J. Koch" <hjk@linutronix.de>
Date: Thu, 18 Jun 2009 02:17:04 +0200
Subject: Added listings to lxextras.sty, and default settings for that

---
 latex/lxarticle/lxextras.sty | 10 ++++++++++
 1 file changed, 10 insertions(+)

(limited to 'latex/lxarticle/lxextras.sty')

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}}
+
-- 
cgit v1.2.3

