auctex
- Description
- Integrated environment for *TeX*
- Latest
- auctex-14.0.7.0.20241114.84730.tar (.sig), 2024-Nov-14, 6.04 MiB
- Maintainer
- <auctex-devel@gnu.org>
- Website
- https://www.gnu.org/software/auctex/
- Browse ELPA's repository
- CGit or Gitweb
- Badge
- Manual
- auctex preview-latex
To install this package from Emacs, use package-install
or list-packages
.
Full description
This is the README file for the AUCTeX distribution. Copyright (C) 2008, 2017, 2018, 2024 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. Introduction to AUCTeX ********************** This file gives a brief overview of what AUCTeX is. It is *not* an attempt to document AUCTeX. Real documentation for AUCTeX is available in the manual, which should be available as an info file after installation. AUCTeX is a comprehensive customizable integrated environment for writing input files for TeX, LaTeX, ConTeXt, Texinfo, and docTeX using Emacs. It supports you in the insertion of macros, environments, and sectioning commands by providing completion alternatives and prompting for parameters. It automatically indents your text as you type it and lets you format a whole file at once. The outlining and folding facilities provide you with a focused and clean view of your text. AUCTeX lets you process your source files by running TeX and related tools (such as output filters, post processors for generating indices and bibliographies, and viewers) from inside Emacs. AUCTeX lets you browse through the errors TeX reported, while it moves the cursor directly to the reported error, and displays some documentation for that particular error. This will even work when the document is spread over several files. One component of AUCTeX that LaTeX users will find attractive is preview-latex, a combination of folding and in-source previewing that provides true "What You See Is What You Get" experience in your sourcebuffer, while letting you retain full control. For more information, see further below. More detailed information about the features and usage of AUCTeX can be found in the AUCTeX manual. You can access it from within Emacs by typing 'C-h i d m auctex <RET>'. AUCTeX is written entirely in Emacs Lisp, and hence you can easily add new features for your own needs. It is a GNU project and distributed under the 'GNU General Public License Version 3'. AUCTeX is a package distributed at ELPA, Emacs Lisp Package Archive. You can manage it in Emacs package manager. WWW users may want to check out the AUCTeX page at <https://www.gnu.org/software/auctex/> and <https://elpa.gnu.org/packages/auctex.html>. If you are considering upgrading AUCTeX, the recent changes are described on the latter of the above WWW sites. If you want to discuss AUCTeX with other users or its developers, there are several mailing lists you can use. Send a mail with the subject "subscribe" to <auctex-request@gnu.org> in order to join the general discussion list for AUCTeX. Articles should be sent to <auctex@gnu.org>. In a similar way, you can subscribe to the <info-auctex@gnu.org> list for just getting important announcements about AUCTeX. The list <bug-auctex@gnu.org> is for bug reports which you should usually file with the 'M-x TeX-submit-bug-report <RET>' command. If you want to address the developers of AUCTeX themselves with technical issues, they can be found on the discussion list <auctex-devel@gnu.org>. preview-latex in a nutshell *************************** Does your neck hurt from turning between previewer windows and the source too often? This AUCTeX component will render your displayed LaTeX equations right into the editing window where they belong. The purpose of preview-latex is to embed LaTeX environments such as display math or figures into the source buffers and switch conveniently between source and image representation. 1 What use is it? ***************** WYSIWYG (what you see is what you get) sometimes is considered all the rage, sometimes frowned upon. Do we really want it? Wrong question. The right question is _what_ we want from it. Except when finetuning the layout, we don't want to use printer fonts for on-screen text editing. The low resolution and contrast of a computer screen render all but the coarsest printer fonts (those for low-quality newsprint) unappealing, and the margins and pagination of the print are not wanted on the screen, either. On the other hand, more complex visual compositions like math formulas and tables can't easily be taken in when seen only in the source. preview-latex strikes a balance: it only uses graphic renditions of the output for certain, configurable constructs, does this only when told, and then right in the source code. Switching back and forth between the source and preview is easy and natural and can be done for each image independently. Behind the scenes of preview-latex, a sophisticated framework of other programs like 'dvipng', Dvips and Ghostscript are employed together with a special LaTeX style file for extracting the material of interest in the background and providing fast interactive response. 2 Activating preview-latex ************************** Successful installation automatically activates the package at Emacs startup. If you don't get a "Preview" menu in LaTeX mode in spite of AUCTeX showing its "Command", your installation is broken. One possible cause are duplicate Lisp files that might be detectable with 'M-x list-load-path-shadows <RET>'. 3 Getting started ***************** Once activated, preview-latex and its documentation will be accessible via its menus. When you have loaded a LaTeX document (a sample document 'circ.tex' is included in the distribution, but most documents including math and/or figures should do), you can use its menu or 'C-c C-p C-d' (for 'Preview/Document'). Previews will now be generated for various objects in your document. You can use the time to take a short look at the other menu entries and key bindings in the 'Preview' menu. You'll see the previewed objects change into a roadworks sign when preview-latex has determined just what it is going to preview. Note that you can freely navigate the buffer while this is going on. When the process is finished you will see the objects typeset in your buffer. It is a bad idea, however, to edit the buffer before the roadworks signs appear, since that is the moment when the correlation between the original text and the buffer locations gets established. If the buffer changes before that point of time, the previews will not be placed where they belong. If you do want to change some obvious error you just spotted, we recommend you stop the background process by pressing 'C-c C-k'. To see/edit the LaTeX code for a specific object, put the point (the cursor) on it and press 'C-c C-p C-p' (for 'Preview/at point'). It will also do to click with the middle mouse button on the preview. Now you can edit the code, and generate a new preview by again pressing 'C-c C-p C-p' (or by clicking with the middle mouse button on the icon before the edited text). If you are using the 'desktop' package, previews will remain from one session to the next as long as you don't kill your buffer. 4 Basic modes of operation ************************** preview-latex has a number of methods for generating its graphics. Its default operation is equivalent to using the 'LaTeX' command from AUCTeX. If this happens to be a call of PDFLaTeX generating PDF output (you need at least AUCTeX 11.51 for this), then Ghostscript will be called directly on the resulting PDF file. If a DVI file gets produced, first Dvips and then Ghostscript get called by default. The image type to be generated by Ghostscript can be configured with M-x customize-option <RET> preview-image-type <RET> The default is 'png' (the most efficient image type). A special setting is 'dvipng' in case you have the 'dvipng' program installed. In this case, 'dvipng' will be used for converting DVI files and Ghostscript (with a 'PNG' device) for converting PDF files. 'dvipng' is much faster than the combination of Dvips and Ghostscript. 'dvipng' is included in standard TeX Live distribution. 5 More documentation ******************** After the installation, documentation in the form of an info manual will be available. You can access it with the standalone info reader with info preview-latex or by pressing 'C-h i d m preview-latex <RET>' in Emacs. Once preview-latex is activated, you can instead use 'C-c C-p <TAB>' (or the menu entry 'Preview/Read documentation'). Depending on your installation, a printable manual may also be available in the form of 'preview-latex.pdf'. Detailed documentation for the LaTeX style used for extracting the preview images is placed in 'preview.pdf' in a suitable directory during installation; on typical TeX Live-based systems, texdoc preview will display it. 6 Availability ************** The preview-latex project is now part of AUCTeX and accessible as part of the AUCTeX project page (https://savannah.gnu.org/projects/auctex). Anonymous Git is available at <git://git.savannah.gnu.org/auctex.git> or <https://git.savannah.gnu.org/git/auctex.git>. You can also browse the repository (https://git.savannah.gnu.org/cgit/auctex.git) via web interface. 7 Contacts ********** Bug reports should be sent by using 'M-x preview-report-bug <RET>', as this will fill in a lot of information interesting to us. If the installation fails (but this should be a rare event), report bugs to <bug-auctex@gnu.org>. There is a general discussion list for AUCTeX which also covers preview-latex, look at <https://lists.gnu.org/mailman/listinfo/auctex>. For more information on the mailing list, send a message with just the word "help" as subject or body to <auctex-request@gnu.org>. For the developers, there is the <auctex-devel@gnu.org> list; it would probably make sense to direct feature requests and questions about internal details there. There is a low-volume read-only announcement list available to which you can subscribe by sending a mail with "subscribe" in the subject to <info-auctex-request@gnu.org>. Offers to support further development will be appreciated. If you want to show your appreciation with a donation to the main developer, you can do so via PayPal to <dak@gnu.org>, and of course you can arrange for service contracts or for added functionality.
Old versions
auctex-14.0.7.0.20241107.84021.tar.lz | 2024-Nov-07 | 1.08 MiB |
auctex-14.0.7.0.20241104.180915.tar.lz | 2024-Nov-04 | 1.08 MiB |
auctex-14.0.7.0.20241102.90632.tar.lz | 2024-Nov-03 | 1.08 MiB |
auctex-14.0.7.0.20241030.123237.tar.lz | 2024-Oct-30 | 1.08 MiB |
auctex-14.0.7.0.20241029.145226.tar.lz | 2024-Oct-29 | 1.08 MiB |
auctex-14.0.6.0.20241004.121356.tar.lz | 2024-Oct-04 | 1.07 MiB |
auctex-14.0.5.0.20240627.121349.tar.lz | 2024-Jun-27 | 1004 KiB |
auctex-14.0.0.0.20240208.115629.tar.lz | 2024-Feb-08 | 986 KiB |
auctex-13.3.0.0.20240207.110618.tar.lz | 2024-Feb-07 | 986 KiB |
auctex-12.3.1.0.20201220.154121.tar.lz | 2020-Dec-20 | 873 KiB |
News
[Unreleased]
Added
- Improve support for folding of citations macros. The current folding
[c]
is changed to a more descriptive version, using author names and publication years, like[Ne21]
or[ABC99]
. These are extracted from any bib files referenced in the document or specified by the user optionTeX-fold-bib-file
. - Add support for folding of
\begin{env}
and\end{env}
macros. The replacement specifiers are controlled by the custom optionTeX-fold-begin-end-spec-list
. - Add new custom option
TeX-fold-alert-color
which determines the color used when folding the\alert
macro, defaults tored
. - Add new support files
style/inlinegraphicx.el
andstyle/minted2.el
(style/minted.el
is updated to package v3.1.2). - Add preliminary support for parsing
\graphicspath
instyle/graphicx.el
.
Changed
- Change the default value of
LaTeX-insert-into-comments
fromt
tonil
.
[14.0.7] - 2024-10-05
Added
- Respect the value of
TeX-output-dir
when processing files with latexmk. This means that the default value ofTeX-command-list
is changed. - Add new support files
style/authblk.el
,style/langscibook.cls
,style/lstautogobble.el
,style/lstlinebgrd.el
,style/ninecolors.el
,style/supertabular.el
,style/tabularray.el
andstyle/xtab.el
.
Changed
AUCTeX 13.3 marks the last standalone tarball release. From now on, AUCTeX releases are made available through the Emacs Lisp Package Archive (ELPA). Distro packagers are encouraged to use the ELPA packages as-is and install them under one of the new Emacs locations for system-wide packages, see
package-directory-list
.At the same time, development is now done on the
main
branch and themaster
branch has been deleted. Its last state has been pushed asauctex-13
branch for archiving purposes but it won't get any updates anymore.For users who tracked the master branch: Do
git switch main
to switch to the main branch where development takes place nowadays.- Move additions to the variable
LaTeX-indent-environment-list
for various tabular environments tolatex.el
from the respective style files.
Fixed
- Fold argument of verbatim macros more accurately.
Removed
Remove the possibility to disable the side-wide installation with:
(unload-feature 'tex-site)
Using this form when installed from ELPA will throw an error.
[14.0.6] - 2024-06-30
Added
- Complete support for in-buffer completion of color support macros.
- Add new support files
style/contract.el
,style/diagbox.el
andstyle/standalone.el
.
Fixed
Add appropriate
delete-selection
properties forLaTeX-insert-left-brace
,TeX-insert-dollar
andTeX-insert-backslash
that differentiate between the "electric" and "just-insert-the-symbol" behavior. That should simplify cooperation with other electric modes.As a result of this adjustment, the behavior of
TeX-insert-dollar
is affected in some ways:- With raw prefix argument
C-u
,$
(TeX-insert-dollar
) now inserts four dollars as opposed to one. This behavior is in-line with other symbols, in particular"
(TeX-insert-quote
) and\
(TeX-insert-backslash
). If you need one literal$
, you can typeC-1 $
orC-q $
. - We no longer have explicit support of the special behavior that if
TeX-electric-math
is non-nil
and point is inside math mode right between a couple of single dollars, pressing$
will insert another
- With raw prefix argument
… …