forked from williamstein/ent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ent.sty
29 lines (23 loc) · 962 Bytes
/
ent.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
\RequirePackage{color}
\definecolor{dblue}{rgb}{0.0,0.0,0.5}
%\newcommand{\code}[1]{{\color{dblue}\textrm{\@vobeyspaces\@noligs\def\{{\char`\{}\def\}{\char`\}}\def\~{\char`\~}\def\^{\char`\^}\def\e{\char`\\}\def\${\char`\$}\def\#{\char`\#}\def\&{\char`\&}\def\%{\char`\%}%
%\texttt{#1}}}}
\newcommand{\code}[1]{{\textrm{\@vobeyspaces\@noligs\def\{{\char`\{}\def\}{\char`\}}\def\~{\char`\~}\def\^{\char`\^}\def\e{\char`\\}\def\${\char`\$}\def\#{\char`\#}\def\&{\char`\&}\def\%{\char`\%}%
\texttt{#1}}}}
\let\py@OldVerbatim=\verbatim
\let\py@OldEndVerbatim=\endverbatim
\RequirePackage{verbatim}
%\renewcommand{\verbatim}{\py@OldVerbatim}
%\renewcommand{\endverbatim}{\py@OldEndVerbatim}
% \color{dblue}%
%\renewcommand{\verbatim}{%
% \mbox{}\vspace{-2ex}%\par%
% \setlength{\parindent}{1cm}%
% \begin{list}{}{\setlength{\leftmargin}{4ex}}%
% \item%
% \py@OldVerbatim%
%}
%\renewcommand{\endverbatim}{%
% \py@OldEndVerbatim%
% \end{list}%
%}