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
55730316
Kaydet (Commit)
55730316
authored
Mar 25, 1998
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Don't use the fncychap package for HOWTO documents; appendices break. Still
use them for manuals.
üst
050be83d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
28 deletions
+31
-28
howto.cls
Doc/texinputs/howto.cls
+6
-4
manual.cls
Doc/texinputs/manual.cls
+11
-3
python.sty
Doc/texinputs/python.sty
+14
-21
No files found.
Doc/texinputs/howto.cls
Dosyayı görüntüle @
55730316
...
@@ -40,12 +40,15 @@
...
@@ -40,12 +40,15 @@
\RequirePackage
{
python
}
\RequirePackage
{
python
}
% need to do one of these....
\newcommand
{
\@
doHorizontalRule
}{
\rule
{
\textwidth
}{
1pt
}}
% Change the title page to look a bit better, and fit in with the
% Change the title page to look a bit better, and fit in with the
% fncychap ``Bjarne'' style a bit better.
% fncychap ``Bjarne'' style a bit better.
%
%
\renewcommand
{
\maketitle
}{
\renewcommand
{
\maketitle
}{
\@
ifundefined
{
ChTitleVar
}{}{
\@
doHorizontalRule
\mghrulefill
{
\RW
}}
\@
ifundefined
{
pdfinfo
}{}{
\@
ifundefined
{
pdfinfo
}{}{
\pdfinfo
{
\pdfinfo
{
/Author (
\@
author)
/Author (
\@
author)
...
@@ -74,8 +77,7 @@
...
@@ -74,8 +77,7 @@
\parskip
= 0mm
\parskip
= 0mm
\OldTableofcontents
\OldTableofcontents
\endgroup
\endgroup
\@
ifundefined
{
ChTitleVar
}{}{
\@
doHorizontalRule
\mghrulefill
{
\RW
}}
\vspace
{
12pt
}
\vspace
{
12pt
}
}
}
...
...
Doc/texinputs/manual.cls
Dosyayı görüntüle @
55730316
...
@@ -32,7 +32,16 @@
...
@@ -32,7 +32,16 @@
\RequirePackage
{
times
}
\typeout
{
Using times fonts instead of Computer Modern.
}
\RequirePackage
{
times
}
\typeout
{
Using times fonts instead of Computer Modern.
}
% Required package:
% Required packages:
%
% The "fncychap" package is used to get the nice chapter headers. The
% .sty file is distributed with Python, so you should not need to disable
% it. You'd also end up with a mixed page style; uglier than stock LaTeX!
%
\RequirePackage
[Bjarne]
{
fncychap
}
\typeout
{
Using fancy chapter headings.
}
% Do horizontal rules it this way to match:
\newcommand
{
\@
doHorizontalRule
}{
\mghrulefill
{
\RW
}}
%
%
%
% This gives us all the Python-specific markup that we really want.
% This gives us all the Python-specific markup that we really want.
% This should come last. Do not change this.
% This should come last. Do not change this.
...
@@ -47,8 +56,7 @@
...
@@ -47,8 +56,7 @@
\begin{titlepage}
%
\begin{titlepage}
%
\let\footnotesize\small
\let\footnotesize\small
\let\footnoterule\relax
\let\footnoterule\relax
\@
ifundefined
{
ChTitleVar
}{}{
%
\@
doHorizontalRule
%
\mghrulefill
{
\RW
}}
%
\@
ifundefined
{
pdfinfo
}{}{
\@
ifundefined
{
pdfinfo
}{}{
\pdfinfo
{
\pdfinfo
{
/Author (
\@
author)
/Author (
\@
author)
...
...
Doc/texinputs/python.sty
Dosyayı görüntüle @
55730316
...
@@ -6,13 +6,6 @@
...
@@ -6,13 +6,6 @@
\ProvidesPackage
{
python
}
\ProvidesPackage
{
python
}
[1998/01/11 LaTeX package (Python markup)]
[1998/01/11 LaTeX package (Python markup)]
% The "fncychap" package is used to get the nice chapter headers. The
% .sty file is distributed with Python, so you should not need to disable
% it. You'd also end up with a mixed page style; uglier than stock LaTeX!
%
\RequirePackage
[Bjarne]
{
fncychap
}
\typeout
{
Using fancy chapter headings.
}
% for PDF output, use maximal compression & a lot of other stuff
% for PDF output, use maximal compression & a lot of other stuff
% (test for PDF recommended by Tanmoy Bhattacharya <tanmoy@qcd.lanl.gov>)
% (test for PDF recommended by Tanmoy Bhattacharya <tanmoy@qcd.lanl.gov>)
%
%
...
@@ -406,6 +399,8 @@
...
@@ -406,6 +399,8 @@
\let\nodename
=
\label
\let\nodename
=
\label
\newcommand
{
\sectcode
}
[1]
{{
\sectcodefont
{
#1
}}}
% For these commands, use \command{} to get the typography right, not
% For these commands, use \command{} to get the typography right, not
% {\command}. This works better with the texinfo translation.
% {\command}. This works better with the texinfo translation.
\newcommand
{
\ABC
}{{
\sc
abc
}}
\newcommand
{
\ABC
}{{
\sc
abc
}}
...
@@ -415,7 +410,7 @@
...
@@ -415,7 +410,7 @@
\newcommand
{
\Cpp
}{
C
\protect\raisebox
{
.18ex
}{
++
}}
\newcommand
{
\Cpp
}{
C
\protect\raisebox
{
.18ex
}{
++
}}
\newcommand
{
\C
}{
C
}
\newcommand
{
\C
}{
C
}
\newcommand
{
\EOF
}{{
\sc
eof
}}
\newcommand
{
\EOF
}{{
\sc
eof
}}
\newcommand
{
\NULL
}{
\code
{
NULL
}}
\newcommand
{
\NULL
}{
\
sect
code
{
NULL
}}
% code is the most difficult one...
% code is the most difficult one...
\newcommand
{
\code
}
[1]
{{
\@
vobeyspaces
\@
noligs
\def\{
{
\char
`
\{
}
\def\}
{
\char
`
\}
}
\def\~
{
\char
`
\~
}
\def\^
{
\char
`
\^
}
\def\e
{
\char
`
\\
}
\def\$
{
\char
`
\$
}
\def\#
{
\char
`
\#
}
\def\&
{
\char
`
\&
}
\def\%
{
\char
`
\%
}
%
\newcommand
{
\code
}
[1]
{{
\@
vobeyspaces
\@
noligs
\def\{
{
\char
`
\{
}
\def\}
{
\char
`
\}
}
\def\~
{
\char
`
\~
}
\def\^
{
\char
`
\^
}
\def\e
{
\char
`
\\
}
\def\$
{
\char
`
\$
}
\def\#
{
\char
`
\#
}
\def\&
{
\char
`
\&
}
\def\%
{
\char
`
\%
}
%
...
@@ -463,17 +458,17 @@
...
@@ -463,17 +458,17 @@
% For now, don't do anything really fancy with them; just use them as
% For now, don't do anything really fancy with them; just use them as
% logical markup. This might change in the future.
% logical markup. This might change in the future.
%
%
\let\module
=
\code
\let\module
=
\
sect
code
\let\keyword
=
\code
\let\keyword
=
\
sect
code
\let\exception
=
\code
\let\exception
=
\
sect
code
\let\class
=
\code
\let\class
=
\
sect
code
\let\function
=
\code
\let\function
=
\
sect
code
\let\member
=
\code
\let\member
=
\
sect
code
\let\method
=
\code
\let\method
=
\
sect
code
\let\cfunction
=
\code
\let\cfunction
=
\
sect
code
\let\ctype
=
\code
\let\ctype
=
\
sect
code
\let\cdata
=
\code
\let\cdata
=
\
sect
code
\newcommand
{
\mimetype
}
[1]
{{
\small\textsf
{
#1
}}}
\newcommand
{
\mimetype
}
[1]
{{
\small\textsf
{
#1
}}}
% The \! is a "negative thin space" in math mode.
% The \! is a "negative thin space" in math mode.
...
@@ -538,8 +533,6 @@
...
@@ -538,8 +533,6 @@
\advance\@
tempdima
\leftmargin\makebox
[\@tempdima][l]
{
#1
}
%
\advance\@
tempdima
\leftmargin\makebox
[\@tempdima][l]
{
#1
}
%
}
}
\newcommand
{
\sectcode
}
[1]
{{
\sectcodefont
{
#1
}}}
% Cross-referencing (AMK)
% Cross-referencing (AMK)
% Sample usage:
% Sample usage:
% \begin{seealso}
% \begin{seealso}
...
...
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