Mercurial > cpython-lru_cache-weakref
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 31497:2b7e08dcacb1 | 31498:51c3d452af2f |
|---|---|
| 847 \renewcommand{\emph}[1]{{\em #1}} | 847 \renewcommand{\emph}[1]{{\em #1}} |
| 848 \newcommand{\dfn}[1]{\emph{#1}} | 848 \newcommand{\dfn}[1]{\emph{#1}} |
| 849 \newcommand{\strong}[1]{{\bf #1}} | 849 \newcommand{\strong}[1]{{\bf #1}} |
| 850 % let's experiment with a new font: | 850 % let's experiment with a new font: |
| 851 \newcommand{\file}[1]{`\filenq{#1}'} | 851 \newcommand{\file}[1]{`\filenq{#1}'} |
| 852 \newcommand{\filenq}[1]{{\py@smallsize\textsf{#1}}} | 852 \newcommand{\filenq}[1]{{\py@smallsize\textsf{\let\e=\textbackslash#1}}} |
| 853 | 853 |
| 854 % Use this def/redef approach for \url{} since hyperref defined this already, | 854 % Use this def/redef approach for \url{} since hyperref defined this already, |
| 855 % but only if we actually used hyperref: | 855 % but only if we actually used hyperref: |
| 856 \ifpdf | 856 \ifpdf |
| 857 \newcommand{\url}[1]{{% | 857 \newcommand{\url}[1]{{% |
