summaryrefslogtreecommitdiff
path: root/init_latex.el
diff options
context:
space:
mode:
authorblendoit <blendoit@gmail.com>2019-09-03 20:58:00 -0700
committerblendoit <blendoit@gmail.com>2019-09-03 20:58:00 -0700
commit5d528dee12f824b717d3fb2f14c530eb2c38dfe4 (patch)
tree6ce66d36affdb379014bdf520ae67607b3b3b044 /init_latex.el
parenta249a3b7006274eb2cb467b13d07e0d7c2e1fa63 (diff)
tweaks
Diffstat (limited to 'init_latex.el')
-rw-r--r--init_latex.el17
1 files changed, 17 insertions, 0 deletions
diff --git a/init_latex.el b/init_latex.el
new file mode 100644
index 0000000..7500166
--- /dev/null
+++ b/init_latex.el
@@ -0,0 +1,17 @@
+;; Function obtained from https://wiki.archlinux.org/index.php/Emacs#SyncTeX_support
+
+(defcustom tex-my-viewer "zathura --fork -s -x \"emacsclient --eval '(progn (switch-to-buffer (file-name-nondirectory \"'\"'\"%{input}\"'\"'\")) (goto-line %{line}))'\""
+ "PDF Viewer for TeX documents. You may want to fork the viewer
+so that it detects when the same document is launched twice, and
+persists when Emacs gets closed.
+
+Simple command:
+
+ zathura --fork
+
+We can use
+
+ emacsclient --eval '(progn (switch-to-buffer (file-name-nondirectory \"%{input}\")) (goto-line %{line}))'
+
+to reverse-search a pdf using SyncTeX. Note that the quotes and double-quotes matter and must be escaped appropriately."
+:safe 'stringp)
Copyright 2019--2024 Marius PETER