[Python-checkins] python/dist/src/Doc/texinputs howto.cls, 1.14,
1.15 manual.cls, 1.18, 1.19 python.sty, 1.108, 1.109
fdrake at users.sourceforge.net
fdrake at users.sourceforge.net
Wed Mar 31 03:08:37 EST 2004
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 at noticelabel@note}{Note:}
\newcommand{\py at noticelabel@warning}{Warning:}
\newenvironment{notice}[1][note]{
\par\strong{\csname py at noticelabel@#1\endcsname}
! }{}
\newcommand{\note}[1]{\strong{\py at noticelabel@note} #1}
\newcommand{\warning}[1]{\strong{\py at noticelabel@warning} #1}
--- 980,1016 ----
}
+ \newlength{\py at noticelength}
+
+ \newcommand{\py at heavybox}{
+ \setlength{\fboxrule}{2pt}
+ \setlength{\fboxsep}{7pt}
+ \setlength{\py at noticelength}{\linewidth}
+ \addtolength{\py at noticelength}{-2\fboxsep}
+ \addtolength{\py at noticelength}{-2\fboxrule}
+ \setlength{\shadowsize}{3pt}
+ \Sbox
+ \minipage{\py at noticelength}
+ }
+ \newcommand{\py at endheavybox}{
+ \endminipage
+ \endSbox
+ \fbox{\TheSbox}
+ }
+
+ % a 'note' is as plain as it gets:
\newcommand{\py at noticelabel@note}{Note:}
+ \newcommand{\py at noticestart@note}{}
+ \newcommand{\py at noticeend@note}{}
+
+ % a 'warning' gets more visible distinction:
\newcommand{\py at noticelabel@warning}{Warning:}
+ \newcommand{\py at noticestart@warning}{\py at heavybox}
+ \newcommand{\py at noticeend@warning}{\py at endheavybox}
+
\newenvironment{notice}[1][note]{
+ \def\py at noticetype{#1}
+ \csname py at noticestart@#1\endcsname
\par\strong{\csname py at noticelabel@#1\endcsname}
! }{\csname py at noticeend@\py at noticetype\endcsname}
\newcommand{\note}[1]{\strong{\py at noticelabel@note} #1}
\newcommand{\warning}[1]{\strong{\py at noticelabel@warning} #1}
More information about the Python-checkins
mailing list