Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
b835c5b3
Commit
b835c5b3
authored
Apr 27, 1997
by
Karl Berry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid expansion in node titles.
Merge cropmarks code into main output routine. From-SVN: r13986
parent
3c5d8683
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
71 additions
and
63 deletions
+71
-63
gcc/texinfo.tex
+71
-63
No files found.
gcc/texinfo.tex
View file @
b835c5b3
%% TeX macros to handle Texinfo files.
%% TeX macros to handle Texinfo files.
%% $Id: texinfo.tex,v 2.19
3.1.1 1997/01/04 19:21:48
karl Exp $
%% $Id: texinfo.tex,v 2.19
7 1997/04/26 23:22:03
karl Exp $
% Copyright (C) 1985, 86, 88, 90, 91, 92, 93,
% Copyright (C) 1985, 86, 88, 90, 91, 92, 93,
% 94, 95, 96, 97 Free Software Foundation, Inc.
% 94, 95, 96, 97 Free Software Foundation, Inc.
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
% This automatically updates the version number based on RCS.
% This automatically updates the version number based on RCS.
\def\deftexinfoversion
$
#
1
: #
2
${
\def\texinfoversion
{
#2
}}
\def\deftexinfoversion
$
#
1
: #
2
${
\def\texinfoversion
{
#2
}}
\deftexinfoversion
$
Revision:
2
.
19
3
.
1
.
1
$
\deftexinfoversion
$
Revision:
2
.
19
7
$
\message
{
Loading texinfo package [Version
\texinfoversion
]:
}
\message
{
Loading texinfo package [Version
\texinfoversion
]:
}
% If in a .fmt file, print the version number
% If in a .fmt file, print the version number
...
@@ -118,33 +118,41 @@
...
@@ -118,33 +118,41 @@
\showboxbreadth\maxdimen\showboxdepth\maxdimen
\showboxbreadth\maxdimen\showboxdepth\maxdimen
}
%
}
%
%---------------------Begin change-----------------------
% For @cropmarks command.
% Do @cropmarks to get crop marks.
%
\newif\ifcropmarks
\let\cropmarks
=
\cropmarkstrue
%
%
%
%%% For @cropmarks command
.
%
Dimensions to add cropmarks at corners
.
%
Dimensions to add cropmarks at corners
Added by P. A. MacKay, 12 Nov. 1986
% Added by P. A. MacKay, 12 Nov. 1986
%
%
\newdimen\cornerlong
\newdimen\cornerthick
\newdimen\cornerlong
\newdimen\cornerthick
\newdimen
\topandbottommargin
\newdimen\topandbottommargin
\newdimen
\outerhsize
\newdimen
\outervsize
\newdimen
\outerhsize
\newdimen
\outervsize
\cornerlong
=1pc
\cornerthick
=.3pt
% These set size of cropmarks
\cornerlong
=1pc
\cornerthick
=.3pt
% These set size of cropmarks
\outerhsize
=7in
\outerhsize
=7in
%\outervsize=9.5in
%\outervsize=9.5in
% Alternative @smallbook page size is 9.25in
% Alternative @smallbook page size is 9.25in
\outervsize
=9.25in
\outervsize
=9.25in
\topandbottommargin
=.75in
\topandbottommargin
=.75in
%
%---------------------End change-----------------------
% Main output routine.
% Main output routine.
\chardef\PAGE
= 255
\chardef\PAGE
= 255
\output
=
{
\onepageout
{
\pagecontents\PAGE
}}
\output
=
{
\onepageout
{
\pagecontents\PAGE
}}
\newbox\headlinebox
\newbox\footlinebox
\newbox\headlinebox
\newbox\footlinebox
% \onepageout takes a vbox as an argument. Note that \pagecontents
% \onepageout takes a vbox as an argument. Note that \pagecontents
% does insertions, but you have to call it yourself.
% does insertions, but you have to call it yourself.
\def\onepageout
#1
{
%
\def\onepageout
#1
{
%
\hoffset
=
\normaloffset
\ifcropmarks
\hoffset
= 0pt
\else
\hoffset
=
\normaloffset
\fi
%
\ifodd\pageno
\advance\hoffset
by
\bindingoffset
\ifodd\pageno
\advance\hoffset
by
\bindingoffset
\else
\advance\hoffset
by -
\bindingoffset\fi
\else
\advance\hoffset
by -
\bindingoffset\fi
%
%
...
@@ -163,53 +171,41 @@
...
@@ -163,53 +171,41 @@
\normalturnoffactive
% \ in index entries must not stay \, e.g., if
\normalturnoffactive
% \ in index entries must not stay \, e.g., if
% the page break happens to be in the middle of an example.
% the page break happens to be in the middle of an example.
\shipout\vbox
{
%
\shipout\vbox
{
%
\ifcropmarks
\vbox
to
\outervsize\bgroup
\hsize
=
\outerhsize
\vbox
{
\line
{
\ewtop\hfill\ewtop
}}
%
\nointerlineskip
\line
{
%
\vbox
{
\moveleft\cornerthick\nstop
}
%
\hfill
\vbox
{
\moveright\cornerthick\nstop
}
%
}
%
\vskip\topandbottommargin
\fi
%
\unvbox\headlinebox
\unvbox\headlinebox
\pagebody
{
#1
}
%
\pagebody
{
#1
}
%
\unvbox\footlinebox
\unvbox\footlinebox
%
\ifcropmarks
\vskip\topandbottommargin
plus1fill minus1fill
\boxmaxdepth
=
\cornerthick
\line
{
%
\vbox
{
\moveleft\cornerthick\nsbot
}
%
\hfill
\vbox
{
\moveright\cornerthick\nsbot
}
%
}
%
\nointerlineskip
\vbox
{
\line
{
\ewbot\hfill\ewbot
}}
%
\egroup
% \vbox from first cropmarks clause
\fi
}
%
}
%
}
%
}
%
\advancepageno
\advancepageno
\ifnum\outputpenalty
>-20000
\else\dosupereject\fi
\ifnum\outputpenalty
>-20000
\else\dosupereject\fi
}
}
%%%% For @cropmarks command %%%%
% Here is a modification of the main output routine for Near East Publications
% This provides right-angle cropmarks at all four corners.
% The contents of the page are centerlined into the cropmarks,
% and any desired binding offset is added as an \hskip on either
% site of the centerlined box. (P. A. MacKay, 12 November, 1986)
%
\def\croppageout
#1
{
\hoffset
=0pt
% make sure this doesn't mess things up
{
\escapechar
=`
\\\relax
% makes sure backslash is used in output files.
\shipout
\vbox
to
\outervsize
{
\hsize
=
\outerhsize
\vbox
{
\line
{
\ewtop\hfill\ewtop
}}
\nointerlineskip
\line
{
\vbox
{
\moveleft\cornerthick\nstop
}
\hfill
\vbox
{
\moveright\cornerthick\nstop
}}
\vskip
\topandbottommargin
\centerline
{
\ifodd\pageno\hskip\bindingoffset\fi
\vbox
{
{
\let\hsize
=
\pagewidth
\makeheadline
}
\pagebody
{
#1
}
{
\let\hsize
=
\pagewidth
\makefootline
}}
\ifodd\pageno\else\hskip\bindingoffset\fi
}
\vskip
\topandbottommargin
plus1fill minus1fill
\boxmaxdepth\cornerthick
\line
{
\vbox
{
\moveleft\cornerthick\nsbot
}
\hfill
\vbox
{
\moveright\cornerthick\nsbot
}}
\nointerlineskip
\vbox
{
\line
{
\ewbot\hfill\ewbot
}}
}}
\advancepageno
\ifnum\outputpenalty
>-20000
\else\dosupereject\fi
}
%
% Do @cropmarks to get crop marks
\def\cropmarks
{
\let\onepageout
=
\croppageout
}
\newinsert\margin
\dimen\margin
=
\maxdimen
\newinsert\margin
\dimen\margin
=
\maxdimen
\def\pagebody
#1
{
\vbox
to
\pageheight
{
\boxmaxdepth
=
\maxdepth
#1
}}
\def\pagebody
#1
{
\vbox
to
\pageheight
{
\boxmaxdepth
=
\maxdepth
#1
}}
...
@@ -2240,6 +2236,7 @@ width0pt\relax} \fi
...
@@ -2240,6 +2236,7 @@ width0pt\relax} \fi
\def\r
##
1
{
\realbackslash
r
{
##
1
}}
%
\def\r
##
1
{
\realbackslash
r
{
##
1
}}
%
\def\i
##
1
{
\realbackslash
i
{
##
1
}}
%
\def\i
##
1
{
\realbackslash
i
{
##
1
}}
%
\def\b
##
1
{
\realbackslash
b
{
##
1
}}
%
\def\b
##
1
{
\realbackslash
b
{
##
1
}}
%
\def\sc
##
1
{
\realbackslash
sc
{
##
1
}}
%
\def\cite
##
1
{
\realbackslash
cite
{
##
1
}}
%
\def\cite
##
1
{
\realbackslash
cite
{
##
1
}}
%
\def\key
##
1
{
\realbackslash
key
{
##
1
}}
%
\def\key
##
1
{
\realbackslash
key
{
##
1
}}
%
\def\file
##
1
{
\realbackslash
file
{
##
1
}}
%
\def\file
##
1
{
\realbackslash
file
{
##
1
}}
%
...
@@ -2774,7 +2771,8 @@ width0pt\relax} \fi
...
@@ -2774,7 +2771,8 @@ width0pt\relax} \fi
% because we don't want its macros evaluated now.
% because we don't want its macros evaluated now.
\xdef\thischapter
{
\putwordChapter
{}
\the\chapno
:
\noexpand\thischaptername
}
%
\xdef\thischapter
{
\putwordChapter
{}
\the\chapno
:
\noexpand\thischaptername
}
%
{
\chapternofonts
%
{
\chapternofonts
%
\edef\temp
{{
\realbackslash
chapentry
{
#
1
}{
\the\chapno
}{
\noexpand\folio
}}}
%
\toks
0
=
{
#
1
}
%
\edef\temp
{{
\realbackslash
chapentry
{
\the\toks
0
}{
\the\chapno
}{
\noexpand\folio
}}}
%
\escapechar
=
`
\\
%
\escapechar
=
`
\\
%
\write
\contentsfile
\temp
%
\write
\contentsfile
\temp
%
\donoderef
%
\donoderef
%
...
@@ -2793,8 +2791,9 @@ width0pt\relax} \fi
...
@@ -2793,8 +2791,9 @@ width0pt\relax} \fi
\gdef\thischaptername
{
#
1
}
%
\gdef\thischaptername
{
#
1
}
%
\xdef\thischapter
{
\putwordAppendix
{}
\appendixletter
:
\noexpand\thischaptername
}
%
\xdef\thischapter
{
\putwordAppendix
{}
\appendixletter
:
\noexpand\thischaptername
}
%
{
\chapternofonts
%
{
\chapternofonts
%
\edef\temp
{{
\realbackslash
chapentry
\toks
0
=
{
#
1
}
%
{
#
1
}{
\putwordAppendix
{}
\appendixletter
}{
\noexpand\folio
}}}
%
\edef\temp
{{
\realbackslash
chapentry
{
\the\toks
0
}
%
{
\putwordAppendix
{}
\appendixletter
}{
\noexpand\folio
}}}
%
\escapechar
=
`
\\
%
\escapechar
=
`
\\
%
\write
\contentsfile
\temp
%
\write
\contentsfile
\temp
%
\appendixnoderef
%
\appendixnoderef
%
...
@@ -2828,7 +2827,8 @@ width0pt\relax} \fi
...
@@ -2828,7 +2827,8 @@ width0pt\relax} \fi
\unnumbchapmacro
{
#
1
}
%
\unnumbchapmacro
{
#
1
}
%
\gdef\thischapter
{
#
1
}
\gdef\thissection
{
#
1
}
%
\gdef\thischapter
{
#
1
}
\gdef\thissection
{
#
1
}
%
{
\chapternofonts
%
{
\chapternofonts
%
\edef\temp
{{
\realbackslash
unnumbchapentry
{
#
1
}{
\noexpand\folio
}}}
%
\toks
0
=
{
#
1
}
%
\edef\temp
{{
\realbackslash
unnumbchapentry
{
\the\toks
0
}{
\noexpand\folio
}}}
%
\escapechar
=
`
\\
%
\escapechar
=
`
\\
%
\write
\contentsfile
\temp
%
\write
\contentsfile
\temp
%
\unnumbnoderef
%
\unnumbnoderef
%
...
@@ -2843,8 +2843,9 @@ width0pt\relax} \fi
...
@@ -2843,8 +2843,9 @@ width0pt\relax} \fi
\subsecno
=
0
\subsubsecno
=
0
\global\advance
\secno
by
1
%
\subsecno
=
0
\subsubsecno
=
0
\global\advance
\secno
by
1
%
\gdef\thissection
{
#
1
}
\secheading
{
#
1
}{
\the\chapno
}{
\the\secno
}
%
\gdef\thissection
{
#
1
}
\secheading
{
#
1
}{
\the\chapno
}{
\the\secno
}
%
{
\chapternofonts
%
{
\chapternofonts
%
\toks
0
=
{
#
1
}
%
\edef\temp
{{
\realbackslash
secentry
%
\edef\temp
{{
\realbackslash
secentry
%
{
#
1
}{
\the\chapno
}{
\the\secno
}{
\noexpand\folio
}}}
%
{
\the\toks
0
}{
\the\chapno
}{
\the\secno
}{
\noexpand\folio
}}}
%
\escapechar
=
`
\\
%
\escapechar
=
`
\\
%
\write
\contentsfile
\temp
%
\write
\contentsfile
\temp
%
\donoderef
%
\donoderef
%
...
@@ -2858,8 +2859,9 @@ width0pt\relax} \fi
...
@@ -2858,8 +2859,9 @@ width0pt\relax} \fi
\subsecno
=
0
\subsubsecno
=
0
\global\advance
\secno
by
1
%
\subsecno
=
0
\subsubsecno
=
0
\global\advance
\secno
by
1
%
\gdef\thissection
{
#
1
}
\secheading
{
#
1
}{
\appendixletter
}{
\the\secno
}
%
\gdef\thissection
{
#
1
}
\secheading
{
#
1
}{
\appendixletter
}{
\the\secno
}
%
{
\chapternofonts
%
{
\chapternofonts
%
\toks
0
=
{
#
1
}
%
\edef\temp
{{
\realbackslash
secentry
%
\edef\temp
{{
\realbackslash
secentry
%
{
#
1
}{
\appendixletter
}{
\the\secno
}{
\noexpand\folio
}}}
%
{
\the\toks
0
}{
\appendixletter
}{
\the\secno
}{
\noexpand\folio
}}}
%
\escapechar
=
`
\\
%
\escapechar
=
`
\\
%
\write
\contentsfile
\temp
%
\write
\contentsfile
\temp
%
\appendixnoderef
%
\appendixnoderef
%
...
@@ -2871,7 +2873,8 @@ width0pt\relax} \fi
...
@@ -2871,7 +2873,8 @@ width0pt\relax} \fi
\def\unnumberedseczzz
#
1
{
\seccheck
{
unnumberedsec
}
%
\def\unnumberedseczzz
#
1
{
\seccheck
{
unnumberedsec
}
%
\plainsecheading
{
#
1
}
\gdef\thissection
{
#
1
}
%
\plainsecheading
{
#
1
}
\gdef\thissection
{
#
1
}
%
{
\chapternofonts
%
{
\chapternofonts
%
\edef\temp
{{
\realbackslash
unnumbsecentry
{
#
1
}{
\noexpand\folio
}}}
%
\toks
0
=
{
#
1
}
%
\edef\temp
{{
\realbackslash
unnumbsecentry
{
\the\toks
0
}{
\noexpand\folio
}}}
%
\escapechar
=
`
\\
%
\escapechar
=
`
\\
%
\write
\contentsfile
\temp
%
\write
\contentsfile
\temp
%
\unnumbnoderef
%
\unnumbnoderef
%
...
@@ -2884,8 +2887,9 @@ width0pt\relax} \fi
...
@@ -2884,8 +2887,9 @@ width0pt\relax} \fi
\gdef\thissection
{
#
1
}
\subsubsecno
=
0
\global\advance
\subsecno
by
1
%
\gdef\thissection
{
#
1
}
\subsubsecno
=
0
\global\advance
\subsecno
by
1
%
\subsecheading
{
#
1
}{
\the\chapno
}{
\the\secno
}{
\the\subsecno
}
%
\subsecheading
{
#
1
}{
\the\chapno
}{
\the\secno
}{
\the\subsecno
}
%
{
\chapternofonts
%
{
\chapternofonts
%
\toks
0
=
{
#
1
}
%
\edef\temp
{{
\realbackslash
subsecentry
%
\edef\temp
{{
\realbackslash
subsecentry
%
{
#
1
}{
\the\chapno
}{
\the\secno
}{
\the\subsecno
}{
\noexpand\folio
}}}
%
{
\the\toks
0
}{
\the\chapno
}{
\the\secno
}{
\the\subsecno
}{
\noexpand\folio
}}}
%
\escapechar
=
`
\\
%
\escapechar
=
`
\\
%
\write
\contentsfile
\temp
%
\write
\contentsfile
\temp
%
\donoderef
%
\donoderef
%
...
@@ -2898,8 +2902,9 @@ width0pt\relax} \fi
...
@@ -2898,8 +2902,9 @@ width0pt\relax} \fi
\gdef\thissection
{
#
1
}
\subsubsecno
=
0
\global\advance
\subsecno
by
1
%
\gdef\thissection
{
#
1
}
\subsubsecno
=
0
\global\advance
\subsecno
by
1
%
\subsecheading
{
#
1
}{
\appendixletter
}{
\the\secno
}{
\the\subsecno
}
%
\subsecheading
{
#
1
}{
\appendixletter
}{
\the\secno
}{
\the\subsecno
}
%
{
\chapternofonts
%
{
\chapternofonts
%
\toks
0
=
{
#
1
}
%
\edef\temp
{{
\realbackslash
subsecentry
%
\edef\temp
{{
\realbackslash
subsecentry
%
{
#
1
}{
\appendixletter
}{
\the\secno
}{
\the\subsecno
}{
\noexpand\folio
}}}
%
{
\the\toks
0
}{
\appendixletter
}{
\the\secno
}{
\the\subsecno
}{
\noexpand\folio
}}}
%
\escapechar
=
`
\\
%
\escapechar
=
`
\\
%
\write
\contentsfile
\temp
%
\write
\contentsfile
\temp
%
\appendixnoderef
%
\appendixnoderef
%
...
@@ -2911,7 +2916,8 @@ width0pt\relax} \fi
...
@@ -2911,7 +2916,8 @@ width0pt\relax} \fi
\def\unnumberedsubseczzz
#
1
{
\seccheck
{
unnumberedsubsec
}
%
\def\unnumberedsubseczzz
#
1
{
\seccheck
{
unnumberedsubsec
}
%
\plainsubsecheading
{
#
1
}
\gdef\thissection
{
#
1
}
%
\plainsubsecheading
{
#
1
}
\gdef\thissection
{
#
1
}
%
{
\chapternofonts
%
{
\chapternofonts
%
\edef\temp
{{
\realbackslash
unnumbsubsecentry
{
#
1
}{
\noexpand\folio
}}}
%
\toks
0
=
{
#
1
}
%
\edef\temp
{{
\realbackslash
unnumbsubsecentry
{
\the\toks
0
}{
\noexpand\folio
}}}
%
\escapechar
=
`
\\
%
\escapechar
=
`
\\
%
\write
\contentsfile
\temp
%
\write
\contentsfile
\temp
%
\unnumbnoderef
%
\unnumbnoderef
%
...
@@ -2925,8 +2931,8 @@ width0pt\relax} \fi
...
@@ -2925,8 +2931,8 @@ width0pt\relax} \fi
\subsubsecheading
{
#
1
}
\subsubsecheading
{
#
1
}
{
\the\chapno
}{
\the\secno
}{
\the\subsecno
}{
\the\subsubsecno
}
%
{
\the\chapno
}{
\the\secno
}{
\the\subsecno
}{
\the\subsubsecno
}
%
{
\chapternofonts
%
{
\chapternofonts
%
\
edef\temp
{{
\realbackslash
subsubsecentry
%
\
toks
0
=
{
#
1
}
%
{
#
1
}
\edef\temp
{{
\realbackslash
subsubsecentry
{
\the\toks
0
}
{
\the\chapno
}{
\the\secno
}{
\the\subsecno
}{
\the\subsubsecno
}
{
\the\chapno
}{
\the\secno
}{
\the\subsecno
}{
\the\subsubsecno
}
{
\noexpand\folio
}}}
%
{
\noexpand\folio
}}}
%
\escapechar
=
`
\\
%
\escapechar
=
`
\\
%
...
@@ -2942,7 +2948,8 @@ width0pt\relax} \fi
...
@@ -2942,7 +2948,8 @@ width0pt\relax} \fi
\subsubsecheading
{
#
1
}
\subsubsecheading
{
#
1
}
{
\appendixletter
}{
\the\secno
}{
\the\subsecno
}{
\the\subsubsecno
}
%
{
\appendixletter
}{
\the\secno
}{
\the\subsecno
}{
\the\subsubsecno
}
%
{
\chapternofonts
%
{
\chapternofonts
%
\edef\temp
{{
\realbackslash
subsubsecentry
{
#
1
}
%
\toks
0
=
{
#
1
}
%
\edef\temp
{{
\realbackslash
subsubsecentry
{
\the\toks
0
}
%
{
\appendixletter
}
{
\appendixletter
}
{
\the\secno
}{
\the\subsecno
}{
\the\subsubsecno
}{
\noexpand\folio
}}}
%
{
\the\secno
}{
\the\subsecno
}{
\the\subsubsecno
}{
\noexpand\folio
}}}
%
\escapechar
=
`
\\
%
\escapechar
=
`
\\
%
...
@@ -2956,7 +2963,8 @@ width0pt\relax} \fi
...
@@ -2956,7 +2963,8 @@ width0pt\relax} \fi
\def\unnumberedsubsubseczzz
#
1
{
\seccheck
{
unnumberedsubsubsec
}
%
\def\unnumberedsubsubseczzz
#
1
{
\seccheck
{
unnumberedsubsubsec
}
%
\plainsubsubsecheading
{
#
1
}
\gdef\thissection
{
#
1
}
%
\plainsubsubsecheading
{
#
1
}
\gdef\thissection
{
#
1
}
%
{
\chapternofonts
%
{
\chapternofonts
%
\edef\temp
{{
\realbackslash
unnumbsubsubsecentry
{
#
1
}{
\noexpand\folio
}}}
%
\toks
0
=
{
#
1
}
%
\edef\temp
{{
\realbackslash
unnumbsubsubsecentry
{
\the\toks
0
}{
\noexpand\folio
}}}
%
\escapechar
=
`
\\
%
\escapechar
=
`
\\
%
\write
\contentsfile
\temp
%
\write
\contentsfile
\temp
%
\unnumbnoderef
%
\unnumbnoderef
%
...
...
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