Lines Matching +refs:end +refs:of +refs:defun +refs:function

12 % modify it under the terms of the GNU General Public License as
18 % of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 % You should have received a copy of the GNU General Public License
30 % Please try the latest version of texinfo.tex before submitting bug
39 % of date, so if that's what you're using, please check.
44 % problem. Patches are, of course, greatly appreciated.
54 % The extra runs of TeX get the cross-reference information correct.
69 % Save some parts of plain tex whose names we will redefine.
76 \let\ptexend=\end
104 \ifx\putwordInstanceVariableof\undefined \gdef\putwordInstanceVariableof{Instance Variable of}\fi
107 \ifx\putwordof\undefined \gdef\putwordof{of}\fi
115 \ifx\putwordTOC\undefined \gdef\putwordTOC{Table of Contents}\fi
147 % Margin to add to right of even pages, to left of odd pages.
202 % Do this outside of the \shipout so @code etc. will be expanded in
215 % the page break happens to be in the middle of an example.
249 \egroup % end of \vbox\bgroup
250 \hfil\egroup % end of (centering) \line\bgroup
264 }% end of \shipout\vbox
265 }% end of group with \turnoffactive
294 % Parse an argument, then pass it to #1. The argument is the rest of
308 % \obeyedspace is defined far below, after the definition of \sepspaces.
322 \endgroup % End of the group started in \parsearg.
325 % Result of each macro is put in \toks0.
342 % @end itemize @c foo
343 % will have two active spaces as part of the argument with the
350 % does, the catcode of the characters in questionwill have to be changed
351 % here.) But this means we cannot call \removeactivespaces as part of
373 %% These are used to keep @begin/@end levels from running away
390 % @end foo executes the definition of \Efoo.
392 \def\end{\parsearg\endxxx}
401 \errmessage{Undefined command `@end \endthing'}%
415 \errmessage{This `@end #1' doesn't have a matching `@#1'}%
418 % Define the control sequence \E#1 to give an unmatched @end error.
490 % at the beginning of a line will start with \penalty -- and
491 % since \penalty is valid in vertical mode, we'd end up putting the
492 % penalty on the vertical list instead of in the new paragraph.
506 % @. is an end-of-sentence period.
509 % @! is an end-of-sentence bang.
512 % @? is an end-of-sentence query.
516 % beginning of a paragraph, when TeX is still in vertical mode, would
517 % produce a whole line of output instead of starting the paragraph.
520 % @group ... @end group forces ... to be all on one page, by enclosing
521 % it in a TeX vbox. We use \vtop instead of \vbox to construct the box
522 % to keep its height that of a normal line. According to the rules for
523 % \topskip (p.114 of the TeXbook), the glue inserted is
536 % next line of text is done) \lineskip glue after it. (See p.82 of
546 % the midst of an example, rather than completely enclosing it.
547 % Otherwise, the interline space between the last line of the group
550 % Hence this just inserts a strut at the beginning of each line.
553 % Since we have a strut on every line, we don't need any of TeX's
565 % Reset ^^M's definition to new definition of \par.
570 % @example, where each end-of-line in the input causes an
571 % end-of-line in the output. We don't want the end-of-line after
578 % TeX puts in an \escapechar (i.e., `@') at the beginning of the help
583 where each line of input produces a line of output.}
595 %% if the depth of the box does not fit.
602 % Ensure vertical mode, so we don't make a big box in the middle of a
612 % Do a \strut just to make the height of this box be normal, so the
621 % page after the empty box. So we use a penalty of 9999.
625 % sight. (If the user is using lots of big @group commands, which
632 % Back up by the size of the box, whether we did a page break or not.
657 % @enddots{} is an end-of-sentence ellipsis.
670 % @page forces the start of a new page
677 % This records the amount of indent in the innermost environment.
681 % This defn is used inside fill environments such as @defun.
701 % @include file insert text of that file as input.
729 % @sp n outputs n lines of vertical space
736 % @ignore ... @end ignore is another way to write a comment
788 % We don't use $'s directly in the definition of \math because control
791 % should be, according to the definition of Texinfo). So we must use a
792 % control sequence to switch into and out of math mode.
814 % @setfilename is done at the beginning of every texinfo file.
896 % Adding outlines to PDF; macros for calculating structure of outlines
1026 % Texinfo sort of supports the sans serif font style, which plain TeX does not.
1075 % Instead of cmb10, you many want to use cmbx10.
1087 % A few fonts for @defun, etc.
1147 %\setfont\ssecrm\bfshape{10}{1315} % Note the use of cmb rather than cmbx.
1170 % we have to define the \textfont of the standard families. Since
1182 % The font-changing commands redefine the meanings of \tenSTYLE, instead
1183 % of just \STYLE. We do this so that font changes will continue to work
1234 % Fonts for short table of contents.
1258 % the end of a paragraph. Restore normal hyphenation at the end of the
1286 % @code is a modification of @t,
1328 % If we end up with any active - characters when handling the index,
1344 % `example' (@kbd uses ttsl only inside of @example and friends),
1361 % Default is kbdinputdistinct. (Too much of a hassle to call the macro,
1378 % arg as text to display instead of (rather than in addition to) the url
1429 % argument is to make the input look right: @dmn{pt} instead of @dmn{}pt.
1461 % Do an implicit @contents or @shortcontents after @end titlepage if the
1479 % Leave some space at the very top of the page.
1501 % at the top of the second. We don't want the ragged left on the second.
1519 % If we use the new definition of \page, we always get a blank page
1608 }% unbind the catcode of @.
1617 % By default, they are off at the start of a document,
1618 % and turned `on' after @end titlepage.
1628 % chapter name on inside top of right hand pages, document
1629 % title on inside top of left hand pages, and page numbers on outside top
1630 % edge of all pages.
1641 % For single-sided printing, chapter title goes across top left of page,
1673 % Produces Day Month Year style of output.
1683 % @settitle line... specifies the title of the document, for headings.
1684 % It generates no output of its own.
1693 % default indentation of table text
1695 % default indentation of @itemize and @enumerate text
1697 % margin between end of table item and start of table text.
1751 % \parskip glue -- logically it's part of the @item we just started.
1762 % following text (if any) will end up on the same line.
1783 % Contains a kludge to get @end[description] to work.
1846 \begingroup % ended by the @end itemize
1873 % Allow an optional argument of an uppercase letter, lowercase letter,
1880 \begingroup % ended by the @end enumerate
1888 % (We will always have one token, because of the test we just made.
1899 % We need the \relax at the end of the \ifnum lines to stop TeX from
1930 % Be sure we're not beyond the end of the alphabet.
1943 % Be sure we're not beyond the end of the alphabet.
1969 % Definition of @item while inside @itemize.
1983 % @multitable ... @end multitable will make as many columns as desired.
1984 % Contents of each column will wrap at width given in preamble. Width
1986 % or in percent of \hsize, the current width of text on page.
1992 % Either define widths of columns in terms of percent of \hsize:
1996 % Numbers following @columnfractions are the percent of the total
2006 % For those who want to use more than one line's worth of words in
2021 % @item, @tab, @multitable or @end multitable do not need to be on their
2035 % @tab Many paragraphs of text may be used in any column.
2039 % @end multitable
2066 % #1 is the part of the @columnfraction before the decimal point, which
2069 % percent of \hsize for this column.
2111 % @multitable ... @end multitable definitions:
2129 % \everycr will reset column counter, \colcount, at the end of
2149 % we will add a \leftskip of \multitablecolspace to all columns after
2153 % to the width of each template entry.
2155 % If the user has set preamble in terms of percent of \hsize we will
2156 % use that dimension as the width of the column, and the \leftskip
2167 % If user has not set preamble in terms of percent of \hsize
2174 % Ignoring space at the beginning and end avoids an occasional spurious
2180 % @tab Legal holiday which is valid in major parts of the whole country.
2199 %% Test to see if parskip is larger than space between lines of
2267 \let\defun = \relax
2294 % Ignore @ignore ... @end ignore.
2307 % @dircategory CATEGORY -- specify a category of the dir file
2311 % Ignore text until a line `@end #1'.
2317 % Define a command to swallow text until we reach `@end #1'.
2318 % This @ is a catcode 12 token (that is the normal catcode of @ in
2319 % this texinfo.tex file). We change the catcode of @ below to match.
2320 \long\def\doignoretext##1@end #1{\enddoignore}%
2332 % Make the letter c a comment character so that the rest of the line
2334 % @c @end ifinfo
2335 % and the @end ifinfo will be properly ignored.
2353 \immediate\write16{WARNING: for users of Unix TeX 3.0!}
2355 \immediate\write16{If you are running another version of TeX, relax.}
2372 % Ignore text, except that we keep track of conditional commands for
2373 % purposes of nesting, up to an `@end #1' command.
2377 % We must actually expand the ignored text to look for the @end
2380 % the change of memory overflow, we follow the approach outlined on
2381 % page 401 of the TeXbook: make the current font be a dummy font.
2387 % Define `@end #1' to end the box, which will in turn undefine the
2388 % @end command again.
2404 % produce output, but that should be an extremely small amount of
2439 % empty), we can't just use \parsearg; we have to insert a space of our
2440 % own to delimit the rest of the line, and then take it out again if we
2441 % didn't need it. Make sure the catcode of space is correct to avoid
2469 % We might end up with active _ or - characters in the argument if
2486 % one-level expansion on the result, instead of complete).
2496 % @ifset VAR ... @end ifset reads the `...' iff VAR has been defined
2511 % @ifclear VAR ... @end ifclear reads the `...' iff VAR has never been
2527 % following, through the first @end iftex (etc.). Make `@end iftex'
2537 % We can't just want to start a group at @iftex (for example) and end it
2538 % at @end iftex, since then @set commands inside the conditional have no
2539 % effect (they'd get reverted at the end of the group). So we must
2541 % just define it to fail again with an ``unmatched end'' error, since
2546 % Remember the current value of \E#1.
2549 % At the `@end #1', redefine \E#1 to be its previous value.
2555 % We need to expand lots of \csname's, but we don't want to expand the
2574 % \fooindex ...rest of line... puts an entry in the index foo.
2575 % It also defines \fooindfile to be the number of the output channel for
2577 % The name of an index should be no more than 2 characters long
2578 % for the sake of vms.
2607 % Do this instead of @defindex foo if you don't want it as a separate index.
2630 % and it is "foo", the name of the index.
2647 % Take care of the plain tex accent commands.
2660 % Take care of the plain tex special European modified letters.
2672 % Take care of texinfo commands likely to appear in an index entry.
2724 % Handle some cases of @value -- where the variable name does not
2736 % expansion of \tie (\\leavevmode \penalty \@M \ ).
2762 % Take care of the plain tex special European modified letters.
2784 % and is used in the definitions of the active chars like <, >, |...
2822 % #1 is name of index, #2 is stuff to put there, #3 is subentry --
2877 % @end defun
2879 % @defun ...
2881 % start of the @defun won't see the skip inserted by the @end of
2882 % the previous defun.
2884 % But don't do any of this if we're not in vertical mode. We
2885 % don't want to do a \vskip and prematurely end a paragraph.
2911 % containing these kinds of lines:
2917 % for the beginning of a topic that is used with subtopics
2936 % Define the macros used in formatting output of the sorted index material.
2950 % Change catcode of @ here so that if the index file contains
2986 % Change them to control the appearance of the index.
2998 % Typeset the initial. Making this add up to a whole number of
2999 % baselineskips increases the chance of the dots lining up from column
3000 % to column. It still won't often be perfect, because of the stretch
3012 % This typesets a paragraph consisting of #1, dot leaders, and then #2
3013 % flush to the right margin. It is used for index and table of contents
3038 % of each paragraph, so we need not do anything with that.
3045 % A bit of stretch before each entry for the benefit of balancing columns.
3052 % Insert the text of the index entry. TeX will do line-breaking on it.
3054 % The following is kludged to not output a line of dots in the index if
3063 % If we must, put the page number on a line of its own, and fill out
3070 % part of (the primitive) \par. Without it, a spurious underfull
3108 % whole lot of material, we might end up calling this \output
3110 % essentially a couple of indexes with @setchapternewpage off). In
3130 % routine, in each of @smallbook, @afourpaper, and the default 8.5x11
3132 % of assignments once per index is clearly meaningless for the
3174 % Re-output the contents of the output page -- any previous material,
3184 % Split the last of the double-column material. Leave it on the
3188 % If we end up splitting too much material for the current page,
3207 % Called at the end of the double column material.
3242 % This counter is funny since it counts through charcodes of letters A, B, ...
3245 % We do the following for the sake of pdftex, which needs the actual
3282 % Each @chapter defines this as the name of the chapter.
3418 % Anyway, we don't want the fully-expanded definition of @cite to appear
3419 % as a result of the \message, we just want `@cite' itself. We use
3421 % simply yielding the contents of <toks register>. (We also do this for
3574 % to what kind of chapter we are in (ordinary, appendix, or unnumbered).
3582 % NOTE on use of \vbox for chapter headings, section headings, and such:
3737 % Switch to the right set of fonts.
3753 % Table of contents.
3757 % Called from @chapter, etc. We supply {\folio} at the end of the
3758 % argument, which will end up as the last argument to the \...entry macro.
3760 % We open the .toc file here instead of at @setfilename or any other
3855 % These macros generate individual entries in the table of contents.
3871 % command in the toc file for appendices, instead of using \chapentry
3877 % Compute width of word "Appendix", may change with language.
3881 % We typeset #1 in a box of constant width, regardless of the text of
3910 % This parameter controls the indentation of the various levels.
3942 % Final typesetting of a toc entry; we use the same \entry macro as for
3945 % of hyphenated-identifiers-that-do-not-fit-on-a-line-and-nothing-else.)
3947 \vskip 0pt plus1pt % allow a little stretch for the sake of nice page breaks
3967 % @foo ... @end foo.
3969 % Since these characters are used in examples, it should be an even number of
3981 % Adapted from the manmac format (p.420 of TeXbook)
3994 {\tentt \global\dimen0 = 3em}% Width of the box.
3995 \dimen2 = .55pt % Thickness of rules
4004 \hbox{\vrule width\dimen2 \kern3pt % Space to left of text.
4013 % @tex ... @end tex escapes into raw Tex temporarily.
4014 % One exception: @ is still an escape character, so that @end tex works.
4052 % including the definition of @endlisp (which normally is erroneous).
4064 % is used only in environments like @example, where each line of input
4065 % should produce a line of output anyway.
4081 % start of the next paragraph will insert \parskip
4092 % @cartouche ... @end cartouche: draw rectangle w/rounded corners around
4153 % This macro is called at the beginning of all the @example variants,
4157 \inENV % This group ends at the end of the body
4162 \obeylines % each line of input is a line of output
4177 % environment, so the error checking in \end will work.
4179 % To end an @example-like environment, we first end the paragraph (via
4182 % inserted at the beginning of the next paragraph in the document, after
4204 % This actually allows (for example) @end display inside an
4272 \begingroup\inENV %This group ends at the end of the @quotation body
4291 % @defun etc.
4325 % Definitions of (, ) and & used in args for functions.
4326 % This is the definition of ( outside of all parentheses.
4331 % This is the definition of ( when already inside a level of parens.
4334 \gdef\clrm{% Print a paren in roman if it is taking us back to depth of 0.
4335 % also in that case restore the outer-level definition of (.
4342 } % End of definition inside \activeparens
4358 % #1 should be the function name.
4359 % #2 should be the type of definition, such as "Function".
4362 % Get the values of \leftskip and \rightskip as they were
4373 % but stuck inside a box of width 0 so it does not interfere with linebreaking
4382 {\df #1}\enskip % Generate function name
4385 % Actually process the body of a definition
4393 % Define the end token that this defining construct specifies
4404 % #1 is the \E... control sequence to end the definition (which we define).
4411 % Define the end token that this defining construct specifies
4421 % #1 is the \E... control sequence to end the definition (which we define).
4437 % extra argument at the beginning which is the `category', instead of it
4456 % Define the end token that this defining construct specifies
4472 % Define the end token that this defining construct specifies
4484 % some of the others, too, with some judicious conditionals.
4489 % Define the end token that this defining construct specifies
4533 % Define the end token that this defining construct specifies
4545 % the first is all of #2 before the space token,
4546 % the second is all of #2 after that space token.
4547 % If #2 contains no space token, all of it is passed as the first arg
4556 % So much for the things common to all kinds of definitions.
4558 % Define @defun.
4560 % First, define the processing that is wanted for arguments of \defun
4581 \tclose{#1}% avoid \code because of side effects on active chars
4587 % Do complete processing of one @defun or @defunx line already parsed.
4598 % @defun == @deffn Function
4600 \def\defun{\defparsebody\Edefun\defunx\defunheader}
4602 \def\defunheader #1#2{\doind {fn}{\code{#1}}% Make entry in function index
4616 \doind {fn}{\code{#2}}% Make entry in function index
4634 \doind {fn}{\code{#3}}% Make entry in function index
4647 \def\defmacheader #1#2{\doind {fn}{\code{#1}}% Make entry in function index
4657 \def\defspecheader #1#2{\doind {fn}{\code{#1}}% Make entry in function index
4669 \dosubind {fn}{\code{#2}}{\putwordon\ #1}% Make entry in function index
4682 \dosubind{fn}{\code{#3}}{\putwordon\ \code{#1}}% entry in function index
4697 \dosubind{fn}{\code{#3}}{\putwordon\ \code{#1}}% entry in function index
4724 \dosubind{fn}{\code{#2}}{\putwordon\ \code{#1}}% entry in function index
4755 % First, define the processing that is wanted for arguments of @defvar.
4792 % is actually part of the data type, which should not be put into the index.
4824 % anywhere other than immediately after a @defun or @defunx.
4850 % To do this right we need a feature of e-TeX, \scantokens,
4856 % Undo catcode changes of \startcontents and \doprintindex
4870 % Undo catcode changes of \startcontents and \doprintindex
4875 \newcount\paramno % Count of parameters
4878 \def\macrolist{} % List of all defined macros in the form
4909 % (as in normal texinfo). It is necessary to change the definition of \.
4940 % \mbodybackslash is the definition of \ in @macro bodies.
5005 % This makes use of the obscure feature that if the last token of a
5038 % (They're different since rec and nonrec macros end differently.)
5040 \long\def\parsemacbody#1@end macro%
5042 \long\def\parsermacbody#1@end rmacro%
5046 % nonrecursive macros of zero, one, and many arguments.
5202 % the node name, #2 the name of the Info cross-reference, #3 the printed
5203 % node name, #4 the name of the Info file, #5 the name of the printed
5242 % is a loss. Therefore, we give the text of the node name again, so it
5260 % _ (for example) has to be the character _ for the purposes of the
5262 % into the usual \leavevmode...\vrule stuff for purposes of
5294 % CHARACTERS 'xrdef {foo}{...expansion of \Ypage...}
5328 % messages, but if we're using an old version of TeX, don't do anything.
5404 % character, we would end up writing a line like this: 'xrdef {'hat
5437 % For example, 'xrdef {$\leq $-fun}{page ...} made by @defun ^^
5481 % In case the footnote comes at the end of a sentence, preserve the
5531 }%end \catcode `\@=11
5551 % @| inserts a changebar to the left of the current line. It should
5553 % change spans more than two lines of output. To handle that, we would
5555 % vertical list for the beginning and end of each change).
5563 % We want to insert a rule with the height and depth of the current
5567 % \vadjust-items are inserted at the left edge of the type. So
5601 % We will only complain once about lack of epsf.tex.
5643 % In the middle of a paragraph, no extra space.
5698 % Following George Bush, just get rid of widows and orphans.
5703 % using an old version of TeX, don't do anything. We want the amount of
5864 % Most of these we simply print from the \tt font, but for some, we can
5896 % Set up an active definition for =, but don't enable it most of the time.
5906 % \otherifyactive is called near the end of this file.
5991 @c time-stamp-end: "}"