comparison Doc/texinputs/python.sty @ 14555:219e00221c84 legacy-trunk

\shortversion, \setshortversion: New markup to help deal with Python having a "real" version number and an abbreviated version number used to create pathnames to the library installation.
author Fred Drake <fdrake@acm.org>
date Thu, 14 Sep 2000 20:11:05 +0000
parents 9fed4eebc586
children 4d2e9cf1eb20
comparison
equal deleted inserted replaced
14554:87745e554727 14555:219e00221c84
973 % \date{}. This allows the date to reflect the document's date and 973 % \date{}. This allows the date to reflect the document's date and
974 % release to specify the Python release that is documented. 974 % release to specify the Python release that is documented.
975 % 975 %
976 \newcommand{\py@release}{} 976 \newcommand{\py@release}{}
977 \newcommand{\version}{} 977 \newcommand{\version}{}
978 \newcommand{\shortversion}{}
978 \newcommand{\releasename}{Release} 979 \newcommand{\releasename}{Release}
979 \newcommand{\release}[1]{% 980 \newcommand{\release}[1]{%
980 \renewcommand{\py@release}{\releasename\space\version}% 981 \renewcommand{\py@release}{\releasename\space\version}%
981 \renewcommand{\version}{#1}} 982 \renewcommand{\version}{#1}}
983 \newcommand{\setshortversion}[1]{%
984 \renewcommand{\shortversion}{#1}}
982 985
983 % Allow specification of the author's address separately from the 986 % Allow specification of the author's address separately from the
984 % author's name. This can be used to format them differently, which 987 % author's name. This can be used to format them differently, which
985 % is a good thing. 988 % is a good thing.
986 % 989 %