[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex ff03bccb38 07/18: Add an entry about previewing
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex ff03bccb38 07/18: Add an entry about previewing of TikZ pictures |
Date: |
Sun, 17 Mar 2024 07:37:12 -0400 (EDT) |
branch: externals/auctex
commit ff03bccb3814d34a6ada3e1d1f7b2a75418514fd
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Add an entry about previewing of TikZ pictures
* doc/preview-faq.texi (Requirements): Adjust the name of macOS.
(Customization): Add an entry about preview and the TikZ package.
(bug#41089)
---
doc/preview-faq.texi | 33 +++++++++++++++++++++++++++++++--
1 file changed, 31 insertions(+), 2 deletions(-)
diff --git a/doc/preview-faq.texi b/doc/preview-faq.texi
index 95d70f05de..38044af6a9 100644
--- a/doc/preview-faq.texi
+++ b/doc/preview-faq.texi
@@ -78,8 +78,8 @@ Emacs.
It is known to work under the X Window System for Linux and for several
flavors of Unix: we have reports for HP and Solaris.
-There are several development versions of Emacs around for native MacOS
-Carbon, and @previewlatex{} is working with them, too.
+There are several versions of Emacs around for macOS, and @previewlatex{}
+is working with them, too.
With Windows, both native Emacs and Cygwin Emacs should work. However, it
is known that @url{https://miktex.org/,MiK@TeX{}} sometimes doesn't work
@@ -210,6 +210,35 @@ facilities of @file{preview.sty} to tell it how to resolve
this, whether
you want no previews, previews of whole slides or previews of inner
material.
+@subsection Does @previewlatex{} work with the TikZ package?
+
+@previewlatex{} doesn't have support for the @code{tikzpicture}
+environment built-in. It can be included manually by adding the lines:
+@example
+\usepackage[displaymath,sections,graphics,floats,textmath]@{preview@}
+\PreviewEnvironment[@{[]@}]@{tikzpicture@}
+@end example
+
+@noindent
+to the document preamble.
+
+Things get more complicated when the code inside the @code{tikzpicture}
+environment contains @code{$ $} for inserting inline math and
+@previewlatex{} is instructed to insert previews for it into the buffer.
+In this case, you can disable previews for inline math by changing the
+lines above to:
+@example
+\usepackage[displaymath,sections,graphics,floats
+ % textmath %% Don't preview inline math
+]@{preview@}
+\PreviewEnvironment[@{[]@}]@{tikzpicture@}
+@end example
+
+Another solution is to source out the TikZ pictures into an external file
+which uses the @code{standalone} class, process them and insert them back
+into the main file as figures with the @code{\includegraphics} macro. In
+this case, previewing of inline math will work as usual.
+
@node Troubleshooting, Other formats, Customization, Frequently Asked Questions
@section Troubleshooting
- [elpa] externals/auctex e2d2827e39 03/18: ; * style/ltx-base.el ("ltx-base"): Fix last change., (continued)
- [elpa] externals/auctex e2d2827e39 03/18: ; * style/ltx-base.el ("ltx-base"): Fix last change., Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 0f8901dc5d 01/18: Set up outline mode variables early (bug#69254), Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 806bdb01ca 09/18: Improve usage of texmathp.el outside AUCTeX, Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 8d34ef21e6 02/18: Track the latest version of clsguide.tex, Tassilo Horn, 2024/03/17
- [elpa] externals/auctex b47a44611f 05/18: * style/ltx-base.el ("ltx-base"): Add macros from fntguide.pdf., Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 509a71b436 16/18: Revert "Mark options as buffer-local with the :local keyword", Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 212bb3a3a1 11/18: ; * tex.el (TeX-process-check): Fix typo (bug#34645)., Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 074e1c9fd1 15/18: * tex.el: Delete Emacs<27 compat code from commit 087b030001., Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 2ee39c4e26 17/18: ; * latex.el: Fix copyright year after last revert., Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 89df2bbf59 12/18: ; * doc/changes.texi: Announce `LaTeX-flymake-chktex-options'., Tassilo Horn, 2024/03/17
- [elpa] externals/auctex ff03bccb38 07/18: Add an entry about previewing of TikZ pictures,
Tassilo Horn <=
- [elpa] externals/auctex 1e39768287 14/18: Robustify in-buffer completion for surrounding comments, Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 406eb61fc1 13/18: Make user query before killing a process optional, Tassilo Horn, 2024/03/17
- [elpa] externals/auctex cfc3d68ccc 04/18: Add some missing macros, Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 91073c6b79 10/18: Add new custom option `LaTeX-flymake-chktex-options', Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 0a477ebe9e 18/18: Merge remote-tracking branch 'origin/master' into externals/auctex, Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 03a5aac0d7 08/18: Improve guessing a name for the current header line, Tassilo Horn, 2024/03/17