python/dist/src/Doc/texinputs howto.cls, 1.14, 1.15 manual.cls, 1.18, 1.19 python.sty, 1.108, 1.109

Update of /cvsroot/python/python/dist/src/Doc/texinputs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8874/texinputs Modified Files: howto.cls manual.cls python.sty Log Message: add a heavy box around warning notices to make them really stand out in the PDF and PostScript versions of the docs (the CSS already does this for HTML) Index: howto.cls =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/texinputs/howto.cls,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** howto.cls 17 Jul 2003 04:15:35 -0000 1.14 --- howto.cls 31 Mar 2004 08:08:34 -0000 1.15 *************** *** 8,11 **** --- 8,12 ---- \RequirePackage{pypaper} + \RequirePackage{fancybox} % Change the options here to get a different set of basic options, This Index: manual.cls =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/texinputs/manual.cls,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** manual.cls 15 Mar 2002 22:38:16 -0000 1.18 --- manual.cls 31 Mar 2004 08:08:34 -0000 1.19 *************** *** 8,11 **** --- 8,12 ---- \RequirePackage{pypaper} + \RequirePackage{fancybox} % Change the options here to get a different set of basic options, but only Index: python.sty =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/texinputs/python.sty,v retrieving revision 1.108 retrieving revision 1.109 diff -C2 -d -r1.108 -r1.109 *** python.sty 10 Feb 2004 18:29:43 -0000 1.108 --- python.sty 31 Mar 2004 08:08:34 -0000 1.109 *************** *** 980,988 **** } \newcommand{\py@noticelabel@note}{Note:} \newcommand{\py@noticelabel@warning}{Warning:} \newenvironment{notice}[1][note]{ \par\strong{\csname py@noticelabel@#1\endcsname} ! }{} \newcommand{\note}[1]{\strong{\py@noticelabel@note} #1} \newcommand{\warning}[1]{\strong{\py@noticelabel@warning} #1} --- 980,1016 ---- } + \newlength{\py@noticelength} + + \newcommand{\py@heavybox}{ + \setlength{\fboxrule}{2pt} + \setlength{\fboxsep}{7pt} + \setlength{\py@noticelength}{\linewidth} + \addtolength{\py@noticelength}{-2\fboxsep} + \addtolength{\py@noticelength}{-2\fboxrule} + \setlength{\shadowsize}{3pt} + \Sbox + \minipage{\py@noticelength} + } + \newcommand{\py@endheavybox}{ + \endminipage + \endSbox + \fbox{\TheSbox} + } + + % a 'note' is as plain as it gets: \newcommand{\py@noticelabel@note}{Note:} + \newcommand{\py@noticestart@note}{} + \newcommand{\py@noticeend@note}{} + + % a 'warning' gets more visible distinction: \newcommand{\py@noticelabel@warning}{Warning:} + \newcommand{\py@noticestart@warning}{\py@heavybox} + \newcommand{\py@noticeend@warning}{\py@endheavybox} + \newenvironment{notice}[1][note]{ + \def\py@noticetype{#1} + \csname py@noticestart@#1\endcsname \par\strong{\csname py@noticelabel@#1\endcsname} ! }{\csname py@noticeend@\py@noticetype\endcsname} \newcommand{\note}[1]{\strong{\py@noticelabel@note} #1} \newcommand{\warning}[1]{\strong{\py@noticelabel@warning} #1}
participants (1)
-
fdrake@users.sourceforge.net