diff Doc/texinputs/python.sty @ 31498:51c3d452af2f legacy-trunk

support \e in \file and \filenq; this is useful for Windows paths
author Fred Drake <fdrake@acm.org>
date Mon, 09 Feb 2004 20:58:08 +0000
parents 603a9eaa74e1
children 354129143809
line wrap: on
line diff
--- a/Doc/texinputs/python.sty	Mon Feb 09 13:23:34 2004 +0000
+++ b/Doc/texinputs/python.sty	Mon Feb 09 20:58:08 2004 +0000
@@ -849,7 +849,7 @@
 \newcommand{\strong}[1]{{\bf #1}}
 % let's experiment with a new font:
 \newcommand{\file}[1]{`\filenq{#1}'}
-\newcommand{\filenq}[1]{{\py@smallsize\textsf{#1}}}
+\newcommand{\filenq}[1]{{\py@smallsize\textsf{\let\e=\textbackslash#1}}}
 
 % Use this def/redef approach for \url{} since hyperref defined this already,
 % but only if we actually used hyperref: