📄 info-stnd.texi
字号:
@node Printing Nodes, Miscellaneous Commands, Window Commands, Top@chapter Printing Out Nodes@cindex printingYou may wish to print out the contents of a node as a quick referencedocument for later use. Info provides you with a command for doingthis. In general, we recommend that you use @TeX{} to format thedocument and print sections of it, by running @code{tex} on the Texinfosource file.@table @asis@item @code{M-x print-node}@findex print-node@cindex INFO_PRINT_COMMAND, environment variablePipe the contents of the current node through the command in theenvironment variable @code{INFO_PRINT_COMMAND}. If the variable does notexist, the node is simply piped to @code{lpr}.@end table@node Miscellaneous Commands, Variables, Printing Nodes, Top@chapter Miscellaneous CommandsGNU Info contains several commands which self-document GNU Info:@table @asis@item @code{M-x describe-command}@cindex functions, describing@cindex commands, describing@findex describe-commandRead the name of an Info command in the echo area and then display abrief description of what that command does.@item @code{M-x describe-key}@cindex keys, describing@findex describe-keyRead a key sequence in the echo area, and then display the name anddocumentation of the Info command that the key sequence invokes.@item @code{M-x describe-variable}Read the name of a variable in the echo area and then display a briefdescription of what the variable affects.@item @code{M-x where-is}@findex where-isRead the name of an Info command in the echo area, and then displaya key sequence which can be typed in order to invoke that command.@item @code{C-h} (@code{get-help-window})@itemx @code{?}@kindex C-h@kindex ?, in Info windows@findex get-help-windowCreate (or Move into) the window displaying @code{*Help*}, and placea node containing a quick reference card into it. This window displaysthe most concise information about GNU Info available.@item @code{h} (@code{get-info-help-node})@kindex h@findex get-info-help-nodeTry hard to visit the node @code{(info)Help}. The Info file@file{info.texi} distributed with GNU Info contains this node. Ofcourse, the file must first be processed with @code{makeinfo}, and thenplaced into the location of your Info directory.@end tableHere are the commands for creating a numeric argument:@table @asis@item @code{C-u} (@code{universal-argument})@cindex numeric arguments@kindex C-u@findex universal-argumentStart (or multiply by 4) the current numeric argument. @samp{C-u} isa good way to give a small numeric argument to cursor movement orscrolling commands; @samp{C-u C-v} scrolls the screen 4 lines, while@samp{C-u C-u C-n} moves the cursor down 16 lines.@item @code{M-1} (@code{add-digit-to-numeric-arg})@itemx @code{M-2} @dots{} @code{M-9}@kindex M-1 @dots{} M-9@findex add-digit-to-numeric-argAdd the digit value of the invoking key to the current numericargument. Once Info is reading a numeric argument, you may just typethe digits of the argument, without the Meta prefix. For example, youmight give @samp{C-l} a numeric argument of 32 by typing:@example@kbd{C-u 3 2 C-l}@end example@noindentor@example@kbd{M-3 2 C-l}@end example@end table@samp{C-g} is used to abort the reading of a multi-character keysequence, to cancel lengthy operations (such as multi-file searches) andto cancel reading input in the echo area.@table @asis@item @code{C-g} (@code{abort-key})@cindex cancelling typeahead@cindex cancelling the current operation@kindex C-g, in Info windows@findex abort-keyCancel current operation.@end tableThe @samp{q} command of Info simply quits running Info.@table @asis@item @code{q} (@code{quit})@cindex quitting@kindex q@findex quitExit GNU Info.@end tableIf the operating system tells GNU Info that the screen is 60 lines tall,and it is actually only 40 lines tall, here is a way to tell Info thatthe operating system is correct.@table @asis@item @code{M-x set-screen-height}@findex set-screen-height@cindex screen, changing the height ofRead a height value in the echo area and set the height of thedisplayed screen to that value.@end tableFinally, Info provides a convenient way to display footnotes which mightbe associated with the current node that you are viewing:@table @asis@item @code{ESC C-f} (@code{show-footnotes})@kindex ESC C-f@findex show-footnotes@cindex footnotes, displayingShow the footnotes (if any) associated with the current node in anotherwindow. You can have Info automatically display the footnotesassociated with a node when the node is selected by setting the variable@code{automatic-footnotes}. @xref{Variables, , @code{automatic-footnotes}}.@end table@node Variables, GNU Info Global Index, Miscellaneous Commands, Top@chapter Manipulating VariablesGNU Info contains several @dfn{variables} whose values are looked at byvarious Info commands. You can change the values of these variables,and thus change the behavior of Info to more closely match yourenvironment and Info file reading manner.@table @asis@item @code{M-x set-variable}@cindex variables, setting@findex set-variableRead the name of a variable, and the value for it, in the echo area andthen set the variable to that value. Completion is available whenreading the variable name; often, completion is available when readingthe value to give to the variable, but that depends on the variableitself. If a variable does @emph{not} supply multiple choices tocomplete over, it expects a numeric value.@item @code{M-x describe-variable}@cindex variables, describing@findex describe-variableRead the name of a variable in the echo area and then display a briefdescription of what the variable affects.@end tableHere is a list of the variables that you can set in Info.@table @code@item automatic-footnotes@vindex automatic-footnotesWhen set to @code{On}, footnotes appear and disappear automatically.This variable is @code{On} by default. When a node is selected, awindow containing the footnotes which appear in that node is created,and the footnotes are displayed within the new window. The window thatInfo creates to contain the footnotes is called @samp{*Footnotes*}. Ifa node is selected which contains no footnotes, and a @samp{*Footnotes*}window is on the screen, the @samp{*Footnotes*} window is deleted.Footnote windows created in this fashion are not automatically tiled sothat they can use as little of the display as is possible.@item automatic-tiling@vindex automatic-tilingWhen set to @code{On}, creating or deleting a window resizes otherwindows. This variable is @code{Off} by default. Normally, typing@samp{C-x 2} divides the current window into two equal parts. When@code{automatic-tiling} is set to @code{On}, all of the windows areresized automatically, keeping an equal number of lines visible in eachwindow. There are exceptions to the automatic tiling; specifically, thewindows @samp{*Completions*} and @samp{*Footnotes*} are @emph{not}resized through automatic tiling; they remain their original size.@item visible-bell@vindex visible-bellWhen set to @code{On}, GNU Info attempts to flash the screen instead ofringing the bell. This variable is @code{Off} by default. Of course,Info can only flash the screen if the terminal allows it; in the casethat the terminal does not allow it, the setting of this variable has noeffect. However, you can make Info perform quietly by setting the@code{errors-ring-bell} variable to @code{Off}.@item errors-ring-bell@vindex errors-ring-bellWhen set to @code{On}, errors cause the bell to ring. The defaultsetting of this variable is @code{On}.@item gc-compressed-files@vindex gc-compressed-filesWhen set to @code{On}, Info garbage collects files which had to beuncompressed. The default value of this variable is @code{Off}.Whenever a node is visited in Info, the Info file containing that nodeis read into core, and Info reads information about the tags and nodescontained in that file. Once the tags information is read by Info, itis never forgotten. However, the actual text of the nodes does not needto remain in core unless a particular Info window needs it. Fornon-compressed files, the text of the nodes does not remain in core whenit is no longer in use. But de-compressing a file can be a timeconsuming operation, and so Info tries hard not to do it twice.@code{gc-compressed-files} tells Info it is okay to garbage collect thetext of the nodes of a file which was compressed on disk.@item show-index-match@vindex show-index-matchWhen set to @code{On}, the portion of the matched search string ishighlighted in the message which explains where the matched searchstring was found. The default value of this variable is @code{On}.When Info displays the location where an index match was found,(@pxref{Searching Commands, , @code{next-index-match}}), the portion of thestring that you had typed is highlighted by displaying it in the inversecase from its surrounding characters.@item scroll-behavior@vindex scroll-behaviorControl what happens when forward scrolling is requested at the end ofa node, or when backward scrolling is requested at the beginning of anode. The default value for this variable is @code{Continuous}. Thereare three possible values for this variable:@table @code@item ContinuousTry to get the first item in this node's menu, or failing that, the@samp{Next} node, or failing that, the @samp{Next} of the @samp{Up}.This behavior is identical to using the @samp{]}(@code{global-next-node}) and @samp{[} (@code{global-prev-node})commands.@item Next OnlyOnly try to get the @samp{Next} node.@item Page OnlySimply give up, changing nothing. If @code{scroll-behavior} is@code{Page Only}, no scrolling command can change the node that is beingviewed.@end table@item scroll-step@vindex scroll-stepThe number of lines to scroll when the cursor moves out of the window.Scrolling happens automatically if the cursor has moved out of thevisible portion of the node text when it is time to display. Usuallythe scrolling is done so as to put the cursor on the center line of thecurrent window. However, if the variable @code{scroll-step} has anonzero value, Info attempts to scroll the node text by that many lines;if that is enough to bring the cursor back into the window, that is whatis done. The default value of this variable is 0, thus placing thecursor (and the text it is attached to) in the center of the window.Setting this variable to 1 causes a kind of "smooth scrolling" whichsome people prefer.@item ISO-Latin@cindex ISO Latin characters@vindex ISO-LatinWhen set to @code{On}, Info accepts and displays ISO Latin characters.By default, Info assumes an ASCII character set. @code{ISO-Latin} tellsInfo that it is running in an environment where the European standardcharacter set is in use, and allows you to input such characters toInfo, as well as display them.@end table@c the following is incomplete@ignore@c node Info for Sys Admins@c chapter Info for System AdministratorsThis text describes some common ways of setting up an Info hierarchyfrom scratch, and details the various options that are available wheninstalling Info. This text is designed for the person who is installingGNU Info on the system; although users may find the information presentin this section interesting, none of it is vital to understanding how touse GNU Info.@menu* Setting the INFOPATH:: Where are my Info files kept?* Editing the DIR node:: What goes in `DIR', and why?* Storing Info files:: Alternate formats allow flexibility in setups.* Using `localdir':: Building DIR on the fly.* Example setups:: Some common ways to organize Info files.@end menu@c node Setting the INFOPATH@c section Setting the INFOPATHWhere are my Info files kept?@c node Editing the DIR node@c section Editing the DIR nodeWhat goes in `DIR', and why?@c node Storing Info files@c section Storing Info filesAlternate formats allow flexibility in setups.@c node Using `localdir'@c section Using `localdir'Building DIR on the fly.@c node Example setups@c section Example setupsSome common ways to organize Info files.@end ignore@node GNU Info Global Index, , Variables, Top@appendix Global Index@printindex cp@contents@bye
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -