Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
0cac5f69
Kaydet (Commit)
0cac5f69
authored
Agu 14, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added some examples of table markup.
üst
9272b14d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
71 additions
and
0 deletions
+71
-0
doc.tex
Doc/doc/doc.tex
+71
-0
No files found.
Doc/doc/doc.tex
Dosyayı görüntüle @
0cac5f69
...
@@ -1205,6 +1205,77 @@ This \UNIX\ is also followed by a space.
...
@@ -1205,6 +1205,77 @@ This \UNIX\ is also followed by a space.
\macro
{
modulesynopsis
}
. This environment is not normally used by
\macro
{
modulesynopsis
}
. This environment is not normally used by
authors, but is created by the
\macro
{
localmoduletable
}
macro.
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
}}
\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