diff options
Diffstat (limited to 'latex/lxarticle')
| -rw-r--r-- | latex/lxarticle/lxextras.sty | 10 |
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}} + |
