← Back to team overview

qpdfview team mailing list archive

SyncTeX support

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello everyone,

I just uploaded a branch of qpdfview that is called "synctex" because
it implements SyncTeX support. (Well, actually only forward search for
the momment.) You can get the code by doing:
	bzr branch lp:~adamreichold/qpdfview/synctex

It would be very helpful if some people find the time to test whether
this works. (And whether disabling it works as well...)

The command-line syntax is
	qpdfview filePath#src:sourceName:sourceLine:sourceColumn
which will try to jump to the page corresponding to line "sourceLine"
and column "sourceColumn" in the TeX file "sourceName" and highlight
its results. If you don't want to specify a line or column use 0.
(There is no documentation of this anywhere yet.)

So if you work on a TeX file called "foo.tex" which creates "foo.pdf"
you can for example use

pdflatex -syntex=1 foo.tex
qpdfview --unique foo.pdf &
[...] edit something on line 15 [...]
pdflatex -synctex=1 foo.tex
qpdfview --unique foo.pdf#src:foo.tex:15:0

to jump to and highlight the results of line 15. (Or use your TeX
workflow of choice...)

SyncTeX support can be disabled by passing "CONFIG+=without_synctex"
to "qmake". The SyncTeX version included in the source is 1.17 from
TeXLive 2012.

Thanks for your help. Best regards, Adam.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQEcBAEBAgAGBQJQWwhAAAoJEPSSjE3STU348xwH/0w5uF1P/Z3yL7+BZn3F4tiD
aDVAkxGMahR/AIiuk+FcDh6AYPj85cmYSDoqrjU+G1JVAYLW0iCmzzViI/IKsDiA
YNqLwiMwtP67+PSkRLqJo0bKSn0VPiozhf0BQl5htYgr0Iw/cxfJoykyzHHouTuC
329fytUI2X6u8nZWpHV/ljYBEecDoBzLA7mTLHFK8KVVbWrt4XypLrUe7Q2gta1r
cJ87uCHUGP2btolTd1G18UGzvVN4qOM6+YRN0Mc7V4LDRo3+WdNEwiKywVwYQlr9
rfjWbI81cDkHzJu2RFOvygab3JS8R0GWme8NzkeeKVq1A6bRVAeNG+iXInqDGJ0=
=QUzE
-----END PGP SIGNATURE-----


Follow ups