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
0cac5f69
Commit
0cac5f69
authored
Aug 14, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some examples of table markup.
parent
9272b14d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
71 additions
and
0 deletions
+71
-0
Doc/doc/doc.tex
Doc/doc/doc.tex
+71
-0
No files found.
Doc/doc/doc.tex
View file @
0cac5f69
...
...
@@ -1205,6 +1205,77 @@ This \UNIX\ is also followed by a space.
\macro
{
modulesynopsis
}
. This environment is not normally used by
authors, but is created by the
\macro
{
localmoduletable
}
macro.
Here is a small example of a table given in the documentation for
the
\module
{
warnings
}
module; markup inside the table cells is
minimal so the markup for the table itself is readily discernable.
Here is the markup for the table:
\begin{verbatim}
\begin{tableii}
{
l|l
}{
exception
}{
Class
}{
Description
}
\lineii
{
Warning
}
{
This is the base class of all warning category classes. It
is a subclass of
\exception
{
Exception
}
.
}
\lineii
{
UserWarning
}
{
The default category for
\function
{
warn()
}
.
}
\lineii
{
DeprecationWarning
}
{
Base category for warnings about deprecated features.
}
\lineii
{
SyntaxWarning
}
{
Base category for warnings about dubious syntactic
features.
}
\lineii
{
RuntimeWarning
}
{
Base category for warnings about dubious runtime features.
}
\end{tableii}
\end{verbatim}
Here is the resulting table:
\begin{tableii}
{
l|l
}{
exception
}{
Class
}{
Description
}
\lineii
{
Warning
}
{
This is the base class of all warning category classes. It
is a subclass of
\exception
{
Exception
}
.
}
\lineii
{
UserWarning
}
{
The default category for
\function
{
warn()
}
.
}
\lineii
{
DeprecationWarning
}
{
Base category for warnings about deprecated features.
}
\lineii
{
SyntaxWarning
}
{
Base category for warnings about dubious syntactic
features.
}
\lineii
{
RuntimeWarning
}
{
Base category for warnings about dubious runtime features.
}
\end{tableii}
Note that the class names are implicitly marked using the
\macro
{
exception
}
macro, since that is given as the
\var
{
col1font
}
value for the
\env
{
tableii
}
environment. To create a table using
different markup for the first column, use
\code
{
textrm
}
for the
\var
{
col1font
}
value and mark each entry individually.
To add a horizontal line between vertical sections of a table, use
the standard
\macro
{
hline
}
macro between the rows which should be
separated:
\begin{verbatim}
\begin{tableii}
{
l|l
}{
constant
}{
Language
}{
Audience
}
\lineii
{
APL
}{
Masochists.
}
\lineii
{
BASIC
}{
First-time programmers on PC hardware.
}
\lineii
{
C
}{
\UNIX
{}
\&\
Linux kernel developers.
}
\hline
\lineii
{
Python
}{
Everyone!
}
\end{tableii}
\end{verbatim}
Note that not all presentation formats are capable of displaying a
horizontal rule in this position. This is how the table looks in
the format you're reading now:
\begin{tableii}
{
l|l
}{
constant
}{
Language
}{
Audience
}
\lineii
{
APL
}{
Masochists.
}
\lineii
{
C
}{
\UNIX
{}
\&\
Linux kernel developers.
}
\lineii
{
JavaScript
}{
Web developers.
}
\hline
\lineii
{
Python
}{
Everyone!
}
\end{tableii}
\subsection
{
Reference List Markup
\label
{
references
}}
...
...
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