@end iftex
For text which contains embedded commands for text formatters, Emacs
-has other major modes, each for a particular text formatter. Thus, for
+has other major modes, each for a particular formatter. Thus, for
input to @TeX{}, you would use @TeX{}
@iftex
-mode (@pxref{TeX Mode}).
+mode (@pxref{TeX Mode,,@TeX{} Mode}).
@end iftex
@ifnottex
mode.
@item M-@@
Mark the end of the next word (@code{mark-word}).
@item M-t
-Transpose two words or drag a word across other words
+Transpose two words or drag a word across others
(@code{transpose-words}).
@end table
containing point with the following word. The delimiter characters between
the words do not move. For example, @w{@samp{FOO, BAR}} transposes into
@w{@samp{BAR, FOO}} rather than @samp{@w{BAR FOO,}}. @xref{Transpose}, for
-more on transposition and on arguments to transposition commands.
+more on transposition.
@kindex M-@@
@findex mark-word
It is useful to follow this convention, because it makes a distinction
between periods that end a sentence and periods that indicate
abbreviations; that enables the Emacs sentence commands to distinguish,
-too. These commands to not stop for periods that indicate abbreviations.
+too. These commands do not stop for periods that indicate abbreviations.
@vindex sentence-end-double-space
If you want to use just one space between sentences, you can set the
for this purpose.
@vindex sentence-end-without-period
- Some languages do not use period to indicate end of sentence. For
-example, a sentence in Thai text ends with double space but without a
+ Some languages do not use periods to indicate the end of a sentence.
+For example, sentences in Thai end with a double space but without a
period. Set the variable @code{sentence-end-without-period} to
-@code{t} to tell the sentence commands that a period is not necessary.
+@code{t} in such cases.
@node Paragraphs
@section Paragraphs
@findex backward-paragraph
@findex forward-paragraph
- The Emacs commands for manipulating paragraphs are also Meta keys.
+ The Emacs commands for manipulating paragraphs are also on Meta keys.
@table @kbd
@item M-@{
Emacs provides two other modes for editing text that is to be passed
through a text formatter to produce fancy formatted printed output.
@xref{Nroff Mode}, for editing input to the formatter nroff.
-@xref{TeX Mode}, for editing input to the formatter TeX.
+@xref{TeX Mode,,@TeX{} Mode}, for editing input to the formatter TeX.
Another mode is used for editing outlines. It allows you to view the
text at various levels of detail. You can view either the outline
@findex doctex-mode
@TeX{} is a powerful text formatter written by Donald Knuth; it is
-also free software, like GNU Emacs. La@TeX{} is a simplified input
+also free software, like GNU Emacs. @LaTeX{} is a simplified input
format for @TeX{}, implemented by @TeX{} macros; it comes with @TeX{}.
-Sli@TeX{} is a special form of La@TeX{}.@footnote{Sli@TeX{} is
-obsoleted by the @samp{slides} document class in recent La@TeX{}
-versions.} Doc@TeX{} (@file{.dtx}) is a special file format in which
-the La@TeX{} sources are written, combining sources with
-documentation.
+Sli@TeX{} is a special form of @LaTeX{}.@footnote{Sli@TeX{} is
+obsoleted by the @samp{slides} document class and other alternative
+packages in recent @LaTeX{} versions.} Doc@TeX{} (@file{.dtx}) is a
+special file format in which the La@TeX{} sources are written,
+combining sources with documentation.
Emacs has a special @TeX{} mode for editing @TeX{} input files.
It provides facilities for checking the balance of delimiters and for
invoking @TeX{} on all or part of the file.
@vindex tex-default-mode
- @TeX{} mode has four variants: Plain @TeX{} mode, La@TeX{} mode,
+ @TeX{} mode has four variants: Plain @TeX{} mode, @LaTeX{} mode,
Sli@TeX{} mode, and Doc@TeX{} mode (these distinct major modes differ
only slightly). They are designed for editing the four different
formats. The command @kbd{M-x tex-mode} looks at the contents of the
-buffer to determine whether the contents appear to be either La@TeX{}
+buffer to determine whether the contents appear to be either @LaTeX{}
input, Sli@TeX{}, or Doc@TeX{} input; if so, it selects the
-appropriate mode. If the file contents do not appear to be La@TeX{},
+appropriate mode. If the file contents do not appear to be @LaTeX{},
Sli@TeX{} or Doc@TeX{}, it selects Plain @TeX{} mode. If the contents
are insufficient to determine this, the variable
@code{tex-default-mode} controls which mode is used.
@node LaTeX Editing
@subsection La@TeX{} Editing Commands
- La@TeX{} mode, and its variant, Sli@TeX{} mode, provide a few extra
+ @LaTeX{} mode, and its variant, Sli@TeX{} mode, provide a few extra
features not applicable to plain @TeX{}.
@table @kbd
@item C-c C-o
-Insert @samp{\begin} and @samp{\end} for La@TeX{} block and position
+Insert @samp{\begin} and @samp{\end} for @LaTeX{} block and position
point on a line between them (@code{tex-latex-block}).
@item C-c C-e
-Close the innermost La@TeX{} block not yet closed
+Close the innermost @LaTeX{} block not yet closed
(@code{tex-close-latex-block}).
@end table
@findex tex-latex-block
-@kindex C-c C-o @r{(La@TeX{} mode)}
+@kindex C-c C-o @r{(@LaTeX{} mode)}
@vindex latex-block-names
- In La@TeX{} input, @samp{\begin} and @samp{\end} commands are used to
+ In @LaTeX{} input, @samp{\begin} and @samp{\end} commands are used to
group blocks of text. To insert a @samp{\begin} and a matching
@samp{\end} (on a new line following the @samp{\begin}), use @kbd{C-c
C-o} (@code{tex-latex-block}). A blank line is inserted between the
@end example
@findex tex-close-latex-block
-@kindex C-c C-e @r{(La@TeX{} mode)}
- In La@TeX{} input, @samp{\begin} and @samp{\end} commands must
+@kindex C-c C-e @r{(@LaTeX{} mode)}
+ In @LaTeX{} input, @samp{\begin} and @samp{\end} commands must
balance. You can use @kbd{C-c C-e} (@code{tex-close-latex-block}) to
insert automatically a matching @samp{\end} to match the last unmatched
@samp{\begin}. It indents the @samp{\end} to match the corresponding
If @samp{%**start of header} does not appear within the first 100 lines of
the buffer, @kbd{C-c C-r} assumes that there is no header.
- In La@TeX{} mode, the header begins with @samp{\documentclass} or
+ In @LaTeX{} mode, the header begins with @samp{\documentclass} or
@samp{\documentstyle} and ends with @samp{\begin@{document@}}. These
-are commands that La@TeX{} requires you to use in any case, so nothing
+are commands that @LaTeX{} requires you to use in any case, so nothing
special needs to be done to identify the header.
@findex tex-file
@findex tex-bibtex-file
@kindex C-c TAB @r{(@TeX{} mode)}
@vindex tex-bibtex-command
- For La@TeX{} files, you can use Bib@TeX{} to process the auxiliary
+ For @LaTeX{} files, you can use Bib@TeX{} to process the auxiliary
file for the current buffer's file. Bib@TeX{} looks up bibliographic
citations in a data base and prepares the cited references for the
bibliography section. The command @kbd{C-c @key{TAB}}
@end ignore
@cindex Ref@TeX{} package
-@cindex references, La@TeX{}
-@cindex La@TeX{} references
- For managing all kinds of references for La@TeX{}, you can use
+@cindex references, @LaTeX{}
+@cindex @LaTeX{} references
+ For managing all kinds of references for @LaTeX{}, you can use
Ref@TeX{}. @inforef{Top,, reftex}.
@node HTML Mode
Normally, Emacs knows when you are editing formatted text because it
recognizes the special annotations used in the file that you visited.
-However, there are situations in which you must take special actions
-to convert file contents or turn on Enriched mode:
+However, sometimes you must take special actions to convert file
+contents or turn on Enriched mode:
@itemize @bullet
@item
text-based tables. Here is an example of such a table:
@smallexample
+@group
+-----------------+--------------------------------+-----------------+
| Command | Description | Key Binding |
+-----------------+--------------------------------+-----------------+
| |end of buffer, stop and signal | |
| |error. | |
+-----------------+--------------------------------+-----------------+
+@end group
@end smallexample
Table mode allows the contents of the table such as this one to be
@c sticks out to accommodate for the removal of @samp in the
@c produced output!!
@smallexample
+@group
+-----------------------------------------------------------------+
|@samp{table-capture} is a powerful command, but mastering its |
|power requires some practice. Here are some things it can do: |
| the specified region is placed in that |
| cell. |
+-----------------------------------------------------------------+
+@end group
@end smallexample
@noindent