Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 1.91 KB

README.org

File metadata and controls

61 lines (43 loc) · 1.91 KB

tikz A minor mode to edit TikZ pictures with Emacs

tikz is a minor mode for creating TikZ diagrams with Emacs as an alternative to QtikZ.

Installation

  • You should have a running environment of LaTeX.
  • You should install the Zathura viewer, or change the default configuration.
  • Copy this file into your init.el or load it or use M-x package-install RET tikz.

Using it

  • Create a Tex file with your favourite preamble.
  • Once you have fixed the preamble in your document, launch the TikZ mode.
M-x tikz-mode
  • Now, when you are in idle time, the pdf will be refreshed automatically with the content of the current buffer.
  • Every time you modify your preamble, you must turn off/on the TikZ mode.

Screenshot

On the left side, Emacs with a LaTeX buffer with minor mode TikZ. On the right side, Zathura shows the pdf.

graphics/tikzscreenshot.png

Configuration

  • You can select another pdf viewer. Modify tikz-viewer with your chosen viewer.
  • You can modify the idle timer to update the pdf. Modify tikz-resume-timer.

How it works

  • It copies the current TeX buffer into a temp file.
  • Pre-compile the preamble.
  • Pdftex the temp file.
  • It uses Zathura to view the pdf.
  • In idle time, copy the current buffer to the temp file and compile it. Zathura automatically refreshes the view.

Alternatives

  • QtikZ

ChangeLog

dateverChange
<2022-05-25 Wed>0.14Fixed compilation error
<2021-09-22 Wed>0.13Enable preamble templates
<2020-07-19 lun>0.12Time to launch Zathura
<2020-07-08 lun>0.11Time to launch Zathura
<2020-06-22 lun>0.1

Acknowledgement

Partially supported by PGC2018-098623-B-I00