Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
48449985
Commit
48449985
authored
Sep 12, 2000
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
\seetitle: New macro for building reference list content.
parent
1349437e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
4 deletions
+43
-4
Doc/doc/doc.tex
Doc/doc/doc.tex
+11
-4
Doc/perl/python.perl
Doc/perl/python.perl
+19
-0
Doc/texinputs/python.sty
Doc/texinputs/python.sty
+13
-0
No files found.
Doc/doc/doc.tex
View file @
48449985
...
...
@@ -803,10 +803,10 @@ distribution, to create or maintain whole documents or sections.
markup used to describe individual references.
\end{envdesc}
For each of the following macros,
\var
{
why
}
should be
a complet
e
sentence, start with a capital letter (unless it starts with an
identifier, which should not be modified), and end with the
apropriate punctuation.
For each of the following macros,
\var
{
why
}
should be
one or mor
e
complete sentences, starting with a capital letter (unless it
starts with an identifier, which should not be modified), and
ending with the
apropriate punctuation.
\begin{macrodesc}
{
seemodule
}{
\op
{
key
}
\p
{
name
}
\p
{
why
}}
Refer to another module.
\var
{
why
}
should be a brief
...
...
@@ -844,6 +844,13 @@ distribution, to create or maintain whole documents or sections.
complete sentences.
\end{macrodesc}
\begin{macrodesc}
{
seetitle
}{
\op
{
url
}
\p
{
title
}
\p
{
why
}}
Add a reference to an external document named
\var
{
title
}
. If
\var
{
url
}
is given, the title is made a hyperlink in the HTML
version of the documentation, and displayed below the title in
the typeset versions of the documentation.
\end{macrodesc}
\begin{macrodesc}
{
seeurl
}{
\p
{
url
}
\p
{
why
}}
References to specific on-line resources should be given using
the
\macro
{
seeurl
}
macro. No title is associated with the
...
...
Doc/perl/python.perl
View file @
48449985
...
...
@@ -1444,6 +1444,25 @@ sub do_cmd_seerfc{
return
handle_rfclike_reference
(
@_
[
0
],
"
RFC
");
}
sub
do_cmd_seetitle
{
local
(
$_
)
=
@_
;
my
$url
=
next_optional_argument
();
my
$title
=
next_argument
();
my
$text
=
next_argument
();
if
(
$url
)
{
return
'
<dl compact class="seetitle">
'
.
"
\n
<dt><em class=
\"
citetitle
\"
><a href=
\"
$url
\"
"
.
"
\n
class=
\"
url
\"
>
$title
</a></em>
"
.
"
\n
<dd>
$text
\n
</dl>
"
.
$_
;
}
return
'
<dl compact class="seetitle">
'
.
"
\n
<dt><em class=
\"
citetitle
\"
"
.
"
\n
>
$title
</em>
"
.
"
\n
<dd>
$text
\n
</dl>
"
.
$_
;
}
sub
do_cmd_seeurl
{
local
(
$_
)
=
@_
;
my
$url
=
next_argument
();
...
...
Doc/texinputs/python.sty
View file @
48449985
...
...
@@ -922,6 +922,17 @@
\end{fulllineitems}
}
}
% \seetitle[url]{title}{why it's interesting}
\newcommand
{
\py
@seetitle
}
[3][
\py
@modulebadkey]
{
%
\par
\begin{fulllineitems}
\item
[\citetitle{#2}]
\ifx\py
@modulebadkey#1
\else
\item
[{\small{(\url{#1})}}]
\fi
#3
\end{fulllineitems}
}
% \seepep{number}{title}{why it's interesting}
\newcommand
{
\py
@seepep
}
[3]
{
%
\par
%
...
...
@@ -951,7 +962,9 @@
\strong
{
See Also:
}
\par
\def\seetext
##1
{
\par
{
##1
}}
\let\seemodule
=
\py
@seemodule
\let\seepep
=
\py
@seepep
\let\seerfc
=
\py
@seerfc
\let\seetitle
=
\py
@seetitle
\let\seeurl
=
\py
@seeurl
}{
\par
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment