[PATCH v3 4/6] FAQ-BUILD: Mention how to enable SyncTeX support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From b24d7992fef7dd5534b24465a4129071dcc5b556 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@xxxxxxxxx>
Date: Sun, 20 Oct 2019 14:11:31 +0900
Subject: [PATCH v3 4/6] FAQ-BUILD: Mention how to enable SyncTeX support

Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx>
---
 FAQ-BUILD.txt                | 39 ++++++++++++++++++++++++++++++++++++
 utilities/synctex-forward.sh |  2 ++
 2 files changed, 41 insertions(+)

diff --git a/FAQ-BUILD.txt b/FAQ-BUILD.txt
index b3f04e67..4cab43b0 100644
--- a/FAQ-BUILD.txt
+++ b/FAQ-BUILD.txt
@@ -159,3 +159,42 @@
 
 	    2.	Install it by following instructions at:
 		https://help.ubuntu.com/community/LaTeX#Installing_packages_manually
+
+11.	Is it possible to generate SyncTeX database file?
+
+	A.	Yes, it is. Setting an environment variable:
+
+		    $ export LATEX_OPT="-synctex=1"
+
+		and doing "make clean; make" will generate
+		perfbook.synctex.gz. This will enable SyncTeX search
+		(.pdf <-> .tex) with a SyncTeX-supporting combination of
+		pdf viewer and editor.
+
+	    Notes:
+	      -	For an introduction of SyncTeX search (gedit <-> evince), see:
+
+		    https://help.gnome.org/users/evince/stable/index.html.en#synctex
+
+		Other combinations of SyncTeX-supporting viewers and editors
+		may work.
+
+	      - You need to install gedit-plugins and enable SyncTeX plugin
+		in gedit's preference.
+
+	      - You need to open one of LaTeX sources (e.g. perfbook.tex)
+		in gedit before doing inverse search from evince.
+
+	      - The environment variable LATEX_OPT works for other build
+		targets such as perfbook-1c.pdf, perfbook-hb.pdf, etc.
+		To enable forward search from gedit, run e.g.:
+
+		    $ utilities/synctex-forward.sh 1c
+
+	      - Changes made by utilities/synctex-forward.sh can be
+		reverted by running:
+
+		    $ utilitied/synctex-forward.sh
+
+		Please make sure to revert the changes before doing
+		"git commit" of the other updates you've made.
diff --git a/utilities/synctex-forward.sh b/utilities/synctex-forward.sh
index 312f9cc3..e08d87fa 100755
--- a/utilities/synctex-forward.sh
+++ b/utilities/synctex-forward.sh
@@ -21,6 +21,7 @@
 # If LATEX_OPT does not have "synctex", do nothing
 if ! echo $LATEX_OPT | grep -q synctex ; then
 	echo "LATEX_OPT has no synctex option. Exiting..."
+	echo "See #11 in FAQ-BUILD.txt for SyncTeX support."
 	exit 1
 fi
 
@@ -86,4 +87,5 @@ fi
 mainbase="${main%.tex}"
 if [ `ls -1 perfbook* | grep -c $mainbase.synctex` -eq 0 ] ; then
 	echo "### $mainbase.synctex*: file not found."
+	echo "### See #11 in FAQ-BUILD.txt for how to generate one."
 fi
-- 
2.17.1





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux