📄 texinfo.texi
字号:
encyclopedia or it may be free form.@refill@item 6. EndThe @dfn{End} contains commands for printing indices and generatingthe table of contents, and the @code{@@bye} command on a line of itsown.@refill@end table@node Short Sample, Acknowledgements, Six Parts, Overview@comment node-name, next, previous, up@section A Short Sample Texinfo File@cindex Sample Texinfo fileHere is a complete but very short Texinfo file, in six parts. The firstthree parts of the file, from @samp{\input texinfo} through to@samp{@@end titlepage}, look more intimidating than they are. Most ofthe material is standard boilerplate; when you write a manual, simplyinsert the names for your own manual in this segment. (@xref{Beginning aFile}.)@refill@noindentIn the following, the sample text is @emph{indented}; comments on it arenot. The complete file, without any comments, is shown in@ref{Sample Texinfo File}.@subheading Part 1: Header@noindentThe header does not appear in either the Info file or theprinted output. It sets various parameters, including thename of the Info file and the title used in the header.@example@group\input texinfo @@c -*-texinfo-*-@@c %**start of header@@setfilename sample.info@@settitle Sample Document@@c %**end of header@@setchapternewpage odd@end group@end example@subheading Part 2: Summary Description and Copyright@noindentThe summary description and copyright segment does notappear in the printed document.@example@group@@ifinfoThis is a short example of a complete Texinfo file.Copyright @@copyright@{@} 1990 Free Software Foundation, Inc.@@end ifinfo@end group@end example@subheading Part 3: Titlepage and Copyright@noindentThe titlepage segment does not appear in the Info file.@example@group@@titlepage@@sp 10@@comment The title is printed in a large font.@@center @@titlefont@{Sample Title@}@end group@group@@c The following two commands start the copyright page.@@page@@vskip 0pt plus 1filllCopyright @@copyright@{@} 1990 Free Software Foundation, Inc.@@end titlepage@end group@end example@subheading Part 4: `Top' Node and Master Menu@noindentThe `Top' node contains the master menu for the Info file.Since a printed manual uses a table of contents rather thana menu, the master menu appears only in the Info file.@example@group@@node Top, First Chapter, , (dir)@@comment node-name, next, previous, up@end group@end example@example@group@@menu* First Chapter:: The first chapter is the only chapter in this sample.* Concept Index:: This index has two entries.@@end menu@end group@end example@subheading Part 5: The Body of the Document@noindentThe body segment contains all the text of the document, but not theindices or table of contents. This example illustrates a node and achapter containing an enumerated list.@refill@example@group@@node First Chapter, Concept Index, Top, Top@@comment node-name, next, previous, up@@chapter First Chapter@@cindex Sample index entry@end group@groupThis is the contents of the first chapter.@@cindex Another sample index entry@end group@groupHere is a numbered list.@@enumerate@@itemThis is the first item.@@itemThis is the second item.@@end enumerate@end group@groupThe @@code@{makeinfo@} and @@code@{texinfo-format-buffer@}commands transform a Texinfo file such as this intoan Info file; and @@TeX@{@} typesets it for a printedmanual.@end group@end example@subheading Part 6: The End of the Document@noindentThe end segment contains commands both for generating an index in a nodeand unnumbered chapter of its own and for generating the table ofcontents; and it contains the @code{@@bye} command that marks the end ofthe document.@refill@example@group@@node Concept Index, , First Chapter, Top@@comment node-name, next, previous, up@@unnumbered Concept Index@end group@group@@printindex cp@@contents@@bye@end group@end example@subheading The ResultsHere is what the contents of the first chapter of the sample look like:@sp 1@need 700@quotationThis is the contents of the first chapter.Here is a numbered list.@enumerate@itemThis is the first item.@itemThis is the second item.@end enumerateThe @code{makeinfo} and @code{texinfo-format-buffer}commands transform a Texinfo file such as this intoan Info file; and @TeX{} typesets it for a printedmanual.@end quotation@node Acknowledgements, , Short Sample, Overview@comment node-name, next, previous, up@section Acknowledgements@cindex Stallman, Richard M.@cindex Chassell, Robert J.@cindex Berry, KarlRichard M.@: Stallman wrote Edition 1.0 of this manual. @w{Robert J.@:Chassell} revised and extended it, starting with Edition 1.1. KarlBerry made updates for the Texinfo 3.8 and subsequent releases, startingwith Edition 2.22.@cindex Pinard, Fran@,{c}ois@cindex Zuhn, David D.@cindex Weisshaus, MelissaOur thanks go out to all who helped improve this work, particularly toFran@,{c}ois Pinard and @w{David D.@: Zuhn}, who tirelessly recorded andreported mistakes and obscurities; our special thanks go to MelissaWeisshaus for her frequent and often tedious reviews of nearly similareditions. Our mistakes are our own.Please send suggestions and corrections to:@example@group@r{Internet address:} bug-texinfo@@prep.ai.mit.edu@end group@end example@noindentPlease include the manual's edition number and update date in your messages.@node Texinfo Mode, Beginning a File, Overview, Top@comment node-name, next, previous, up@chapter Using Texinfo Mode@cindex Texinfo mode@cindex Mode, using Texinfo@cindex GNU Emacs@cindex EmacsYou may edit a Texinfo file with any text editor you choose. A Texinfofile is no different from any other @sc{ascii} file. However, GNU Emacscomes with a special mode, called Texinfomode, that provides Emacs commands and tools to help ease your work.@refillThis chapter describes features of GNU Emacs' Texinfo mode but not anyfeatures of the Texinfo formatting language. If you are reading thismanual straight through from the beginning, you may want to skim throughthis chapter briefly and come back to it after reading succeedingchapters which describe the Texinfo formatting language indetail.@refill@menu* Texinfo Mode Overview:: How Texinfo mode can help you.* Emacs Editing:: Texinfo mode adds to GNU Emacs' general purpose editing features.* Inserting:: How to insert frequently used @@-commands.* Showing the Structure:: How to show the structure of a file.* Updating Nodes and Menus:: How to update or create new nodes and menus.* Info Formatting:: How to format for Info.* Printing:: How to format and print part or all of a file.* Texinfo Mode Summary:: Summary of all the Texinfo mode commands.@end menu@node Texinfo Mode Overview, Emacs Editing, Texinfo Mode, Texinfo Mode@ifinfo@heading Texinfo Mode Overview@end ifinfoTexinfo mode provides special features for working with Texinfofiles:@refill@itemize @bullet@itemInsert frequently used @@-commands. @refill@itemAutomatically create @code{@@node} lines.@itemShow the structure of a Texinfo source file.@refill@itemAutomatically create or update the `Next',`Previous', and `Up' pointers of a node.@itemAutomatically create or update menus.@refill@itemAutomatically create a master menu.@refill@itemFormat a part or all of a file for Info.@refill@itemTypeset and print part or all of a file.@refill@end itemizePerhaps the two most helpful features are those for inserting frequentlyused @@-commands and for creating node pointers and menus.@refill@node Emacs Editing, Inserting, Texinfo Mode Overview, Texinfo Mode@section The Usual GNU Emacs Editing CommandsIn most cases, the usual Text mode commands work the same in Texinfomode as they do in Text mode. Texinfo mode adds new editing commandsand tools to GNU Emacs' general purpose editing features. The majordifference concerns filling. In Texinfo mode, the paragraphseparation variable and syntax table are redefined so that Texinfocommands that should be on lines of their own are not inadvertentlyincluded in paragraphs. Thus, the @kbd{M-q} (@code{fill-paragraph})command will refill a paragraph but not mix an indexing command on aline adjacent to it into the paragraph.@refillIn addition, Texinfo mode sets the @code{page-delimiter} variable tothe val
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -