JezK
Edit File: Texinfo-Mode-Summary.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <!-- Created by GNU Texinfo 6.8, https://www.gnu.org/software/texinfo/ --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!-- This manual is for GNU Texinfo (version 6.8, 8 June 2021), a documentation system that can produce both online information and a printed manual from a single source using semantic markup. Copyright (C) 1988, 1990-1993, 1995-1999, 2001-2021 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". --> <title>Texinfo Mode Summary (GNU Texinfo 6.8)</title> <meta name="description" content="Texinfo Mode Summary (GNU Texinfo 6.8)"> <meta name="keywords" content="Texinfo Mode Summary (GNU Texinfo 6.8)"> <meta name="resource-type" content="document"> <meta name="distribution" content="global"> <meta name="Generator" content="texi2any"> <meta name="viewport" content="width=device-width,initial-scale=1"> <link href="index.html" rel="start" title="Top"> <link href="Command-and-Variable-Index.html" rel="index" title="Command and Variable Index"> <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents"> <link href="Texinfo-Mode.html" rel="up" title="Texinfo Mode"> <link href="Catching-Mistakes.html" rel="next" title="Catching Mistakes"> <link href="Printing.html" rel="prev" title="Printing"> <style type="text/css"> <!-- a.copiable-anchor {visibility: hidden; text-decoration: none; line-height: 0em} a.summary-letter {text-decoration: none} blockquote.indentedblock {margin-right: 0em} div.display {margin-left: 3.2em} div.example {margin-left: 3.2em} kbd {font-style: oblique} pre.display {font-family: inherit} pre.format {font-family: inherit} pre.menu-comment {font-family: serif} pre.menu-preformatted {font-family: serif} span.nolinebreak {white-space: nowrap} span.roman {font-family: initial; font-weight: normal} span.sansserif {font-family: sans-serif; font-weight: normal} span:hover a.copiable-anchor {visibility: visible} ul.no-bullet {list-style: none} --> </style> </head> <body lang="en"> <div class="section" id="Texinfo-Mode-Summary"> <div class="header"> <p> Next: <a href="Catching-Mistakes.html" accesskey="n" rel="next">Catching Mistakes</a>, Previous: <a href="Printing.html" accesskey="p" rel="prev">Printing</a>, Up: <a href="Texinfo-Mode.html" accesskey="u" rel="up">Using Texinfo Mode</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Command-and-Variable-Index.html" title="Index" rel="index">Index</a>]</p> </div> <hr> <span id="Texinfo-Mode-Summary-1"></span><h3 class="section">D.8 Texinfo Mode Summary</h3> <p>In Texinfo mode, each set of commands has default keybindings that begin with the same keys. All the commands that are custom-created for Texinfo mode begin with <kbd>C-c</kbd>. The keys are somewhat mnemonic. </p> <span id="Insert-Commands"></span><h4 class="subheading">Insert Commands</h4> <p>The insert commands are invoked by typing <kbd>C-c</kbd> twice and then the first letter of the @-command to be inserted. (It might make more sense mnemonically to use <kbd>C-c C-i</kbd>, for ‘custom insert’, but <kbd>C-c C-c</kbd> is quick to type.) </p> <div class="example"> <pre class="example">C-c C-c c <span class="roman">Insert</span> ‘<samp>@code</samp>’. C-c C-c d <span class="roman">Insert</span> ‘<samp>@dfn</samp>’. C-c C-c e <span class="roman">Insert</span> ‘<samp>@end</samp>’. C-c C-c i <span class="roman">Insert</span> ‘<samp>@item</samp>’. C-c C-c n <span class="roman">Insert</span> ‘<samp>@node</samp>’. C-c C-c s <span class="roman">Insert</span> ‘<samp>@samp</samp>’. C-c C-c v <span class="roman">Insert</span> ‘<samp>@var</samp>’. C-c { <span class="roman">Insert braces.</span> C-c ] C-c } <span class="roman">Move out of enclosing braces.</span> </pre><pre class="example">C-c C-c C-d <span class="roman">Insert a node’s section title</span> <span class="roman">in the space for the description</span> <span class="roman">in a menu entry line.</span> </pre></div> <span id="Show-Structure"></span><h4 class="subheading">Show Structure</h4> <p>The <code>texinfo-show-structure</code> command is often used within a narrowed region. </p> <div class="example"> <pre class="example">C-c C-s <span class="roman">List all the headings.</span> </pre></div> <span id="The-Master-Update-Command"></span><h4 class="subheading">The Master Update Command</h4> <p>The <code>texinfo-master-menu</code> command creates a master menu; and can be used to update every node and menu in a file as well. </p> <div class="example"> <pre class="example">C-c C-u m M-x texinfo-master-menu <span class="roman">Create or update a master menu.</span> </pre><pre class="example"> </pre><pre class="example">C-u C-c C-u m <span class="roman">With <kbd>C-u</kbd> as a prefix argument, first</span> <span class="roman">create or update all nodes and regular</span> <span class="roman">menus, and then create a master menu.</span> </pre></div> <span id="Update-Pointers"></span><h4 class="subheading">Update Pointers</h4> <p>The update pointer commands are invoked by typing <kbd>C-c C-u</kbd> and then either <kbd>C-n</kbd> for <code>texinfo-update-node</code> or <kbd>C-e</kbd> for <code>texinfo-every-node-update</code>. </p> <div class="example"> <pre class="example">C-c C-u C-n <span class="roman">Update a node.</span> C-c C-u C-e <span class="roman">Update every node in the buffer.</span> </pre></div> <span id="Update-Menus"></span><h4 class="subheading">Update Menus</h4> <p>Invoke the update menu commands by typing <kbd>C-c C-u</kbd> and then either <kbd>C-m</kbd> for <code>texinfo-make-menu</code> or <kbd>C-a</kbd> for <code>texinfo-all-menus-update</code>. To update both nodes and menus at the same time, precede <kbd>C-c C-u C-a</kbd> with <kbd>C-u</kbd>. </p> <div class="example"> <pre class="example">C-c C-u C-m <span class="roman">Make or update a menu.</span> </pre><pre class="example">C-c C-u C-a <span class="roman">Make or update all</span> <span class="roman">menus in a buffer.</span> </pre><pre class="example"> </pre><pre class="example">C-u C-c C-u C-a <span class="roman">With <kbd>C-u</kbd> as a prefix argument,</span> <span class="roman">first create or update all nodes and</span> <span class="roman">then create or update all menus.</span> </pre></div> <span id="Format-for-Info"></span><h4 class="subheading">Format for Info</h4> <p>The Info formatting commands that are written in Emacs Lisp are invoked by typing <kbd>C-c C-e</kbd> and then either <kbd>C-r</kbd> for a region or <kbd>C-b</kbd> for the whole buffer. </p> <p>The Info formatting commands that are written in C and based on the <code>makeinfo</code> program are invoked by typing <kbd>C-c C-m</kbd> and then either <kbd>C-r</kbd> for a region or <kbd>C-b</kbd> for the whole buffer. </p> <p>Use the <code>texinfo-format…</code> commands: </p> <div class="example"> <pre class="example">C-c C-e C-r <span class="roman">Format the region.</span> C-c C-e C-b <span class="roman">Format the buffer.</span> </pre></div> <p>Use <code>makeinfo</code>: </p> <div class="example"> <pre class="example">C-c C-m C-r <span class="roman">Format the region.</span> C-c C-m C-b <span class="roman">Format the buffer.</span> C-c C-m C-l <span class="roman">Recenter the <code>makeinfo</code> output buffer.</span> C-c C-m C-k <span class="roman">Kill the <code>makeinfo</code> formatting job.</span> </pre></div> <span id="Typeset-and-Print"></span><h4 class="subheading">Typeset and Print</h4> <p>The TeX typesetting and printing commands are invoked by typing <kbd>C-c C-t</kbd> and then another control command: <kbd>C-r</kbd> for <code>texinfo-tex-region</code>, <kbd>C-b</kbd> for <code>texinfo-tex-buffer</code>, and so on. </p> <div class="example"> <pre class="example">C-c C-t C-r <span class="roman">Run TeX on the region.</span> C-c C-t C-b <span class="roman">Run</span> <code>texi2dvi</code> <span class="roman">on the buffer.</span> C-c C-t C-i <span class="roman">Run</span> <code>texindex</code>. C-c C-t C-p <span class="roman">Print the DVI file.</span> C-c C-t C-q <span class="roman">Show the print queue.</span> C-c C-t C-d <span class="roman">Delete a job from the print queue.</span> C-c C-t C-k <span class="roman">Kill the current TeX formatting job.</span> C-c C-t C-x <span class="roman">Quit a currently stopped TeX formatting job.</span> C-c C-t C-l <span class="roman">Recenter the output buffer.</span> </pre></div> <span id="Other-Updating-Commands-2"></span><h4 class="subheading">Other Updating Commands</h4> <p>The remaining updating commands do not have standard keybindings because they are rarely used. </p> <div class="example"> <pre class="example">M-x texinfo-insert-node-lines <span class="roman">Insert missing <code>@node</code> lines in region.</span> <span class="roman">With <kbd>C-u</kbd> as a prefix argument,</span> <span class="roman">use section titles as node names.</span> </pre><pre class="example"> </pre><pre class="example">M-x texinfo-multiple-files-update <span class="roman">Update a multi-file document.</span> <span class="roman">With <kbd>C-u 2</kbd> as a prefix argument,</span> <span class="roman">create or update all nodes and menus</span> <span class="roman">in all included files first.</span> </pre><pre class="example"> </pre><pre class="example">M-x texinfo-indent-menu-description <span class="roman">Indent descriptions.</span> </pre><pre class="example"> </pre><pre class="example">M-x texinfo-sequential-node-update <span class="roman">Insert node pointers in strict sequence.</span> </pre></div> </div> <hr> <div class="header"> <p> Next: <a href="Catching-Mistakes.html">Catching Mistakes</a>, Previous: <a href="Printing.html">Printing</a>, Up: <a href="Texinfo-Mode.html">Using Texinfo Mode</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Command-and-Variable-Index.html" title="Index" rel="index">Index</a>]</p> </div> </body> </html>