Sophie

Sophie

distrib > Momonga > development > i686 > media > os > by-pkgid > ef1f89c4296c878b2bca761df11f0c51 > files > 50

emacs-auctex-doc-11.86-14m.mo8.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
<html>
<!-- This manual is for AUCTeX
(version 11.86 from 2010-02-21),
a sophisticated TeX environment for Emacs.

Copyright C 1992, 1993, 1994, 1995, 2001, 2002, 2004, 2005,
2006, 2007, 2008, 2009, 2010 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, no Front-Cover Texts and no Back-Cover Texts.  A
copy of the license is included in the section entitled "GNU Free
Documentation License."

 -->
<!-- Created on July 15, 2012 by texi2html 1.82
texi2html was written by: 
            Lionel Cons <Lionel.Cons@cern.ch> (original author)
            Karl Berry  <karl@freefriends.org>
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
            and many others.
Maintained by: Many creative people.
Send bugs and suggestions to <texi2html-bug@nongnu.org>
-->
<head>
<title>AUCTeX 11.86: 1.3 Quick Start</title>

<meta name="description" content="AUCTeX 11.86: 1.3 Quick Start">
<meta name="keywords" content="AUCTeX 11.86: 1.3 Quick Start">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2html 1.82">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.smallquotation {font-size: smaller}
pre.display {font-family: serif}
pre.format {font-family: serif}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: serif; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: serif; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.roman {font-family:serif; font-weight:normal;}
span.sansserif {font-family:sans-serif; font-weight:normal;}
ul.toc {list-style: none}
-->
</style>


</head>

<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">

<a name="Quick-Start"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="auctex_4.html#Customizing" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Editing-Facilities" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex_2.html#Introduction" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="auctex_2.html#Introduction" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="auctex_6.html#Editing" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="auctex_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="auctex_40.html#Indices" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="auctex_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Quick-Start-1"></a>
<h2 class="section">1.3 Quick Start</h2>

<p>AUCTeX is a powerful program offering many features and configuration
options.  If you are new to AUCTeX this might be deterrent.
Fortunately you do not have to learn everything at once.  This Quick
Start Guide will give you the knowledge of the most important commands
and enable you to prepare your first LaTeX document with AUCTeX
after only a few minutes of reading.
</p>
<p>In this introduction, we assume that AUCTeX is already installed on
your system.  If this is not the case, you should read the file
&lsquo;<tt>INSTALL</tt>&rsquo; in the base directory of the unpacked distribution
tarball.  These installation instructions are available in this manual
as well, <a href="auctex_4.html#Installation">Installing AUCTeX</a>.  We also assume that you are familiar with
the way keystrokes are written in Emacs manuals.  If not, have a look at
the Emacs Tutorial in the Help menu.
</p>
<p>If AUCTeX is installed, you might still need to activate it, by
inserting
</p>
<table><tr><td>&nbsp;</td><td><pre class="lisp">(load &quot;auctex.el&quot; nil t t)
</pre></td></tr></table>

<p>in your user init file.<a name="DOCF1" href="auctex_fot.html#FOOT1">(1)</a>  In order to get
support for many of the LaTeX packages you will use in your
documents, you should enable document parsing as well, which can be
achieved by putting
</p>
<table><tr><td>&nbsp;</td><td><pre class="lisp">(setq TeX-auto-save t)
(setq TeX-parse-self t)
</pre></td></tr></table>

<p>into your init file.  Finally, if you often use <code>\include</code> or
<code>\input</code>, you should make AUCTeX aware of the multi-file
document structure.  You can do this by inserting
</p>
<table><tr><td>&nbsp;</td><td><pre class="lisp">(setq-default TeX-master nil)
</pre></td></tr></table>

<p>into your init file.  Each time you open a new file, AUCTeX will then
ask you for a master file.
</p>
<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top"><a href="#Editing-Facilities">1.3.1 Functions for editing TeX files</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"></td></tr>
<tr><td align="left" valign="top"><a href="#Processing-Facilities">1.3.2 Creating and viewing output, debugging</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"></td></tr>
</table>


<hr size="6">
<a name="Editing-Facilities"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Quick-Start" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Making-your-TeX-code-more-readable" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex_2.html#Introduction" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Quick-Start" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="auctex_6.html#Editing" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="auctex_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="auctex_40.html#Indices" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="auctex_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Functions-for-editing-TeX-files"></a>
<h3 class="subsection">1.3.1 Functions for editing TeX files</h3>

<hr size="6">
<a name="Making-your-TeX-code-more-readable"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Editing-Facilities" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Entering-sectioning-commands" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex_2.html#Introduction" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Editing-Facilities" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="auctex_6.html#Editing" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="auctex_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="auctex_40.html#Indices" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="auctex_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h4 class="subsubsection">1.3.1.1 Making your TeX code more readable</h4>

<p>AUCTeX can do syntax highlighting of your source code, that means
commands will get special colors or fonts.  You can enable it locally by
typing <kbd>M-x font-lock-mode RET</kbd>.  If you want to have font locking
activated generally, enable <code>global-font-lock-mode</code>, e.g. with
<kbd>M-x customize-variable RET global-font-lock-mode RET</kbd>.
</p>
<p>AUCTeX will indent new lines to indicate their syntactical
relationship to the surrounding text.  For example, the text of a
<code>\footnote</code> or text inside of an environment will be indented
relative to the text around it.  If the indenting has gotten wrong after
adding or deleting some characters, use &lt;TAB&gt; to reindent the line,
<kbd>M-q</kbd> for the whole paragraph, or <kbd>M-x LaTeX-fill-buffer RET</kbd>
for the whole buffer.
</p>
<hr size="6">
<a name="Entering-sectioning-commands"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Making-your-TeX-code-more-readable" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Inserting-environments" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex_2.html#Introduction" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Editing-Facilities" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="auctex_6.html#Editing" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="auctex_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="auctex_40.html#Indices" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="auctex_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h4 class="subsubsection">1.3.1.2 Entering sectioning commands</h4>
<a name="index-Sectioning"></a>
<a name="index-Sections"></a>
<a name="index-Chapters"></a>
<a name="index-_005cchapter"></a>
<a name="index-_005csection"></a>
<a name="index-_005csubsection"></a>
<a name="index-_005clabel"></a>

<p>Insertion of sectioning macros, that is &lsquo;<samp>\chapter</samp>&rsquo;,
&lsquo;<samp>\section</samp>&rsquo;, &lsquo;<samp>\subsection</samp>&rsquo;, etc. and accompanying &lsquo;<samp>\label</samp>&rsquo;
commands may be eased by using <kbd>C-c C-s</kbd>.  You will be asked for the
section level.  As nearly everywhere in AUCTeX, you can use the
&lt;TAB&gt; or &lt;SPC&gt; key to get a list of available level names, and
to auto-complete what you started typing.  Next, you will be asked for
the printed title of the section, and last you will be asked for a label
to be associated with the section.
</p>
<hr size="6">
<a name="Inserting-environments"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Entering-sectioning-commands" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Inserting-macros" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex_2.html#Introduction" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Editing-Facilities" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="auctex_6.html#Editing" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="auctex_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="auctex_40.html#Indices" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="auctex_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h4 class="subsubsection">1.3.1.3 Inserting environments</h4>

<p>Similarly, you can insert environments, that is
&lsquo;<samp>\begin{}</samp>&rsquo;&ndash;&lsquo;<samp>\end{}</samp>&rsquo; pairs: Type <kbd>C-c C-e</kbd>, and select
an environment type.  Again, you can use &lt;TAB&gt; or &lt;SPC&gt; to get a
list, and to complete what you type.  Actually, the list will not only
provide standard LaTeX environments, but also take your
&lsquo;<samp>\documentclass</samp>&rsquo; and &lsquo;<samp>\usepackage</samp>&rsquo; commands into account if
you have parsing enabled by setting <code>TeX-parse-self</code> to <code>t</code>.
If you use a couple of environments frequently, you can use the up and
down arrow keys (or <kbd>M-p</kbd> and <kbd>M-n</kbd>) in the minibuffer to get
back to the previously inserted commands.
</p>
<p>Some environments need additional arguments.  Often, AUCTeX knows about
this and asks you to enter a value. 
</p>
<hr size="6">
<a name="Inserting-macros"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Inserting-environments" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Changing-the-font" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex_2.html#Introduction" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Editing-Facilities" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="auctex_6.html#Editing" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="auctex_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="auctex_40.html#Indices" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="auctex_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h4 class="subsubsection">1.3.1.4 Inserting macros</h4>

<p><kbd>C-c C-m</kbd>, or simply <kbd>C-c RET</kbd> will give you a prompt that asks
you for a LaTeX macro.  You can use &lt;TAB&gt; for completion, or the
up/down arrow keys (or <kbd>M-p</kbd> and <kbd>M-n</kbd>) to browse the command
history.  In many cases, AUCTeX knows which arguments a macro needs
and will ask you for that.  It even can differentiate between mandatory
and optional arguments&mdash;for details, see <a href="auctex_12.html#Completion">Completion</a>.
</p>
<p>An additional help for inserting macros is provided by the possibility
to complete macros right in the buffer.  With point at the end of a
partially written macro, you can complete it by typing <kbd>M-TAB</kbd>.
</p>
<hr size="6">
<a name="Changing-the-font"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Inserting-macros" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Other-useful-features" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex_2.html#Introduction" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Editing-Facilities" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="auctex_6.html#Editing" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="auctex_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="auctex_40.html#Indices" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="auctex_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h4 class="subsubsection">1.3.1.5 Changing the font</h4>

<p>AUCTeX provides convenient keyboard shortcuts for inserting macros
which specify the font to be used for typesetting certain parts of the
text.  They start with <kbd>C-c C-f</kbd>, and the last <kbd>C-</kbd> combination
tells AUCTeX which font you want:
</p>
<dl compact="compact">
<dt> <kbd>C-c C-f C-b</kbd></dt>
<dd><a name="index-C_002dc-C_002df-C_002db"></a>
<a name="index-_005ctextbf"></a>
<p>Insert <b>bold face</b> &lsquo;<samp>\textbf{&lowast;}</samp>&rsquo; text.
</p>
</dd>
<dt> <kbd>C-c C-f C-i</kbd></dt>
<dd><a name="index-C_002dc-C_002df-C_002di"></a>
<a name="index-_005ctextit"></a>
<p>Insert <i>italics</i> &lsquo;<samp>\textit{&lowast;}</samp>&rsquo; text.
</p>
</dd>
<dt> <kbd>C-c C-f C-e</kbd></dt>
<dd><a name="index-C_002dc-C_002df-C_002de"></a>
<a name="index-_005cemph"></a>
<p>Insert <i>emphasized</i> &lsquo;<samp>\emph{&lowast;}</samp>&rsquo; text.
</p>
</dd>
<dt> <kbd>C-c C-f C-s</kbd></dt>
<dd><a name="index-C_002dc-C_002df-C_002ds"></a>
<a name="index-_005ctextsl"></a>
<p>Insert <i>slanted</i> &lsquo;<samp>\textsl{&lowast;}</samp>&rsquo; text.
</p>
</dd>
<dt> <kbd>C-c C-f C-r</kbd></dt>
<dd><a name="index-C_002dc-C_002df-C_002dr"></a>
<a name="index-_005ctextrm"></a>
<p>Insert roman <span class="roman">\textrm{&lowast;}</span> text.
</p>
</dd>
<dt> <kbd>C-c C-f C-f</kbd></dt>
<dd><a name="index-C_002dc-C_002df-C_002df"></a>
<a name="index-_005ctextsf"></a>
<p>Insert  sans serif &lsquo;<samp>\textsf{&lowast;}</samp>&rsquo; text.
</p>
</dd>
<dt> <kbd>C-c C-f C-t</kbd></dt>
<dd><a name="index-C_002dc-C_002df-C_002dt"></a>
<a name="index-_005ctexttt"></a>
<p>Insert <tt>typewriter</tt> &lsquo;<samp>\texttt{&lowast;}</samp>&rsquo; text.
</p>
</dd>
<dt> <kbd>C-c C-f C-c</kbd></dt>
<dd><a name="index-C_002dc-C_002df-C_002dc"></a>
<a name="index-_005ctextsc"></a>
<p>Insert <small>SMALL CAPS</small> &lsquo;<samp>\textsc{&lowast;}</samp>&rsquo; text.
</p>
</dd>
<dt> <kbd>C-c C-f C-d</kbd></dt>
<dd><a name="index-C_002dc-C_002df-C_002dc-1"></a>
<a name="index-Deleting-fonts"></a>
<p>Delete the innermost font specification containing point.
</p>
</dd>
</dl>

<p>If you want to change font attributes of existing text, mark it as a
region, and then invoke the commands.  If no region is selected, the
command will be inserted with empty braces, and you can start typing the
changed text.
</p>
<p>Most of those commands will also work in math mode, but then macros like
<code>\mathbf</code> will be inserted.
</p>

<hr size="6">
<a name="Other-useful-features"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Changing-the-font" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Processing-Facilities" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex_2.html#Introduction" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Editing-Facilities" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="auctex_6.html#Editing" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="auctex_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="auctex_40.html#Indices" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="auctex_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h4 class="subsubsection">1.3.1.6 Other useful features</h4>

<p>AUCTeX also tries to help you when inserting the right &ldquo;quote&rdquo;
signs for your language, dollar signs to typeset math, or pairs of
braces.  It offers shortcuts for commenting out text (<kbd>C-c ;</kbd> for
the current region or <kbd>C-c %</kbd> for the paragraph you are in).  The
same keystrokes will remove the % signs, if the region or paragraph is
commented out yet.  With <code>TeX-fold-mode</code>, you can hide certain
parts (like footnotes, references etc.) that you do not edit currently.
Support for Emacs&rsquo; outline mode is provided as well.  And there&rsquo;s more,
but this is beyond the scope of this Quick Start Guide.
</p>


<hr size="6">
<a name="Processing-Facilities"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Other-useful-features" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#One-Command-for-LaTeX_002c-helpers_002c-viewers_002c-and-printing" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex_2.html#Introduction" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Quick-Start" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="auctex_6.html#Editing" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="auctex_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="auctex_40.html#Indices" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="auctex_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Creating-and-viewing-output_002c-debugging"></a>
<h3 class="subsection">1.3.2 Creating and viewing output, debugging</h3>

<hr size="6">
<a name="One-Command-for-LaTeX_002c-helpers_002c-viewers_002c-and-printing"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Processing-Facilities" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Choosing-an-output-format" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex_2.html#Introduction" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Processing-Facilities" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="auctex_6.html#Editing" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="auctex_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="auctex_40.html#Indices" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="auctex_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h4 class="subsubsection">1.3.2.1 One Command for LaTeX, helpers, viewers, and printing</h4>

<p>If you have typed some text and want to run LaTeX (or TeX, or
other programs&mdash;see below) on it, type <kbd>C-c C-c</kbd>.  If applicable,
you will be asked whether you want to save changes, and which program
you want to invoke.  In many cases, the choice that AUCTeX suggests
will be just what you want: first <code>latex</code>, then a viewer.  If a
<code>latex</code> run produces or changes input files for
<code>makeindex</code>, the next suggestion will be to run that program,
and AUCTeX knows that you need to run <code>latex</code> again
afterwards&mdash;the same holds for BibTeX.
</p>
<p>When no processor invocation is necessary anymore, AUCTeX will
suggest to run a viewer, or you can chose to create a PostScript file
using <code>dvips</code>, or to directly print it.
</p>
<p>At this place, a warning needs to be given: First, although AUCTeX is
really good in detecting the standard situations when an additional
<code>latex</code> run is necessary, it cannot detect it always.  Second,
the creation of PostScript files or direct printing currently only works
when your output file is a <acronym>DVI</acronym> file, not a <acronym>PDF</acronym> file.
</p>
<p>Ah, you didn&rsquo;t know you can do both?  That brings us to the next topic.
</p>
<hr size="6">
<a name="Choosing-an-output-format"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#One-Command-for-LaTeX_002c-helpers_002c-viewers_002c-and-printing" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Debugging-LaTeX" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex_2.html#Introduction" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Processing-Facilities" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="auctex_6.html#Editing" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="auctex_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="auctex_40.html#Indices" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="auctex_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h4 class="subsubsection">1.3.2.2 Choosing an output format</h4>

<p>From a LaTeX file, you can produce <acronym>DVI</acronym> output, or a
<acronym>PDF</acronym> file directly <i>via</i> <code>pdflatex</code>.  You can switch
on source specials for easier navigation in the output file, or tell
<code>latex</code> to stop after an error (usually <code>\noninteractive</code>
is used, to allow you to detect all errors in a single run).
</p>
<p>These options are controlled by toggles, the keystrokes should be easy
to memorize:
</p>
<dl compact="compact">
<dt> <kbd><kbd>C-c C-t C-p</kbd></kbd></dt>
<dd><p>This command toggles between <acronym>DVI</acronym> and <acronym>PDF</acronym> output
</p>
</dd>
<dt> <kbd><kbd>C-c C-t C-i</kbd></kbd></dt>
<dd><p>toggles interactive mode
</p>
</dd>
<dt> <kbd><kbd>C-c C-t C-s</kbd></kbd></dt>
<dd><p>toggles source specials support
</p>
</dd>
<dt> <kbd><kbd>C-c C-t C-o</kbd></kbd></dt>
<dd><p>toggles usage of Omega/lambda.
</p>
</dd>
</dl>

<hr size="6">
<a name="Debugging-LaTeX"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Choosing-an-output-format" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Running-LaTeX-on-parts-of-your-document" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex_2.html#Introduction" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Processing-Facilities" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="auctex_6.html#Editing" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="auctex_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="auctex_40.html#Indices" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="auctex_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h4 class="subsubsection">1.3.2.3 Debugging LaTeX</h4>

<p>When AUCTeX runs a program, it creates an output buffer in which it
displays the output of the command.  If there is a syntactical error in
your file, <code>latex</code> will not complete successfully. AUCTeX
will tell you that, and you can get to the place where the first error
occured by pressing <kbd>C-c `</kbd> (the last character is a backtick).  The
view will be split in two windows, the output will be displayed in the
lower buffer, and both buffers will be centered around the place where
the error ocurred.  You can then try to fix it in the document buffer,
and use the same keystrokes to get to the next error.  This procedure
may be repeated until all errors have been dealt with.  By pressing
<kbd>C-c C-w</kbd> (<code>TeX-toggle-debug-boxes</code>) you can toggle whether
AUCTeX should notify you of overfull and underfull boxes in addition
to regular errors.
</p>
<p>If a command got stuck in a seemingly infinite loop, or you want to stop
execution for other reasons, you can use <kbd>C-c C-k</kbd> (for &ldquo;kill&rdquo;).
Similar to <kbd>C-l</kbd>, which centers the buffer you are in around your
current position, <kbd>C-c C-l</kbd> centers the output buffer so that the
last lines added at the bottom become visible.
</p>
<hr size="6">
<a name="Running-LaTeX-on-parts-of-your-document"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Debugging-LaTeX" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="auctex_6.html#Editing" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex_2.html#Introduction" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Processing-Facilities" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="auctex_6.html#Editing" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="auctex_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="auctex_40.html#Indices" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="auctex_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h4 class="subsubsection">1.3.2.4 Running LaTeX on parts of your document</h4>

<p>If you want to check how some part of your text looks like, and do not
want to wait until the whole document has been typeset, then mark it as
a region and use <kbd>C-c C-r</kbd>.  It behaves just like <kbd>C-c C-c</kbd>, but
it only uses the document preamble and the region you marked.
</p>
<p>If you are using <code>\include</code> or <code>\input</code> to structure your
document, try <kbd>C-c C-b</kbd> while you are editing one of the included
files.  It will run <code>latex</code> only on the current buffer, using the
preamble from the master file.
</p>

<hr size="6">
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Debugging-LaTeX" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="auctex_6.html#Editing" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="auctex_2.html#Introduction" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Processing-Facilities" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="auctex_6.html#Editing" title="Next chapter"> &gt;&gt; </a>]</td>
</tr></table>
<p>
 <font size="-1">
  This document was generated on <i>July 15, 2012</i> using <a href="http://www.nongnu.org/texi2html/"><i>texi2html 1.82</i></a>.
 </font>
 <br>

</p>
</body>
</html>