From: Akira Yokosawa <akiyks@gmail.com>
To: "Paul E. McKenney" <paulmck@kernel.org>
Cc: perfbook@vger.kernel.org, Balbir Singh <bsingharora@gmail.com>,
Akira Yokosawa <akiyks@gmail.com>
Subject: [PATCH v3 0/6] Enable SyncTeX forward (.tex -> .pdf) search
Date: Tue, 22 Oct 2019 20:15:43 +0900 [thread overview]
Message-ID: <eda1f6d1-50ef-8447-1eab-5db776eb3981@gmail.com> (raw)
In-Reply-To: <2d2eb3d6-d050-6f0c-aca5-b0cc76e8e0ec@gmail.com>
Hi Paul,
Here is another attempt to enable SyncTeX forward search in perfbook.
This time, perfbook.synctex.gz will be generated only if you
set the environment variable LATEX_OPT=-synctex=1. The behavior
is not changed from current master.
I said in my reply to v2:
... this change does have regression in that the inverse search
(PDF -> .tex) stops working other than perfbook.pdf.
It tuned out this was my misconception. Inverse search works
from other than perfbook.pdf with the "% mainfile: ...perfbook.tex"
lines added to sub .tex files.
So, patch #1 adds the "mainfile:" tags (pointing perfbook.tex) in
sub .tex files.
Patch #2 adds a script to retarget the destination of forward search
by modifying the "mainfile:" tags. It does nothing when LATEX_OPT
has no "synctex" setting. For the details of the script, please
refer to the update of FAQ-BUILD.txt in patch #4.
Patch #3 adds "mainfile:" lines in extracted .tex files (qqz.tex,
origpub.tex, and contrib.tex).
Patch #4 updates FAQ-BUILD.txt to mention SyncTeX support in
perfbook.
Patches #5 and #6 update minor issues I noticed during the test
of SyncTeX search with perfbook-1c.pdf.
I don't think gedit is your choice of editor, but SyncTeX surely
helps in locating a particular .tex file you'd like to see.
Forward search is not complete in that it doesn't work in
.fcv files. It looks like gedit's SyncTeX support is sensitive
to suffix of .tex. I tried to add "mainfile" tags in .fcv files
on the fly, but ended up in vain. Inverse search to .fcv files
works as expected. There is a room of improvement to show where
those .fcv files come from. I'll see what can be done.
Thanks, Akira
--
Akira Yokosawa (6):
treewide: Add '% mainfile:' tags in headers in sub .tex files
Add synctex-forward.sh
Add output of '% mainfile: perfbook.tex' tags in extraction scripts
FAQ-BUILD: Mention how to enable SyncTeX support
defer/rcuintro: Convert snippet to new scheme
defer/rcuapi: Tweak horizontal spacing of wide tables in 1c layout
FAQ-BUILD.txt | 39 ++++++++++
SMPdesign/SMPdesign.tex | 2 +
SMPdesign/beyond.tex | 4 +-
SMPdesign/criteria.tex | 1 +
SMPdesign/partexercises.tex | 2 +
advsync/advsync.tex | 2 +
advsync/rcu.tex | 2 +
advsync/rt.tex | 2 +
appendix/ack/ack.tex | 1 +
appendix/appendix.tex | 1 +
appendix/questions/after.tex | 2 +
appendix/questions/concurrentparallel.tex | 1 +
appendix/questions/questions.tex | 1 +
appendix/questions/time.tex | 1 +
appendix/styleguide/styleguide.tex | 1 +
appendix/toyrcu/toyrcu.tex | 2 +
appendix/whymb/whymemorybarriers.tex | 2 +
count/count.tex | 2 +
cpu/cpu.tex | 1 +
cpu/hwfreelunch.tex | 1 +
cpu/overheads.tex | 1 +
cpu/overview.tex | 2 +
cpu/swdesign.tex | 1 +
datastruct/datastruct.tex | 2 +
debugging/debugging.tex | 2 +
defer/defer.tex | 1 +
defer/hazptr.tex | 1 +
defer/rcu.tex | 3 +-
defer/rcuapi.tex | 6 +-
defer/rcuexercises.tex | 1 +
defer/rcufundamental.tex | 2 +
defer/rcuintro.tex | 58 +++++++--------
defer/rcurelated.tex | 2 +
defer/rcuusage.tex | 2 +
defer/refcnt.tex | 2 +
defer/seqlock.tex | 2 +
defer/updates.tex | 3 +-
defer/whichtochoose.tex | 1 +
easy/easy.tex | 1 +
formal/axiomatic.tex | 2 +
formal/dyntickrcu.tex | 2 +
formal/formal.tex | 1 +
formal/ppcmem.tex | 4 +-
formal/sat.tex | 1 +
formal/spinhint.tex | 2 +
formal/stateless.tex | 1 +
future/cpu.tex | 1 +
future/formalregress.tex | 1 +
future/future.tex | 1 +
future/htm.tex | 2 +
future/tm.tex | 2 +
glossary.tex | 1 +
howto/howto.tex | 2 +
intro/intro.tex | 1 +
legal.tex | 1 +
locking/locking-existence.tex | 4 +-
locking/locking.tex | 2 +
memalloc/memalloc.tex | 1 +
memorder/memorder.tex | 2 +
owned/owned.tex | 2 +
together/applyrcu.tex | 2 +
together/count.tex | 1 +
together/hash.tex | 1 +
together/refcnt.tex | 2 +
together/together.tex | 1 +
toolsoftrade/toolsoftrade.tex | 2 +
utilities/extractcontrib.sh | 1 +
utilities/extractorigpub.sh | 1 +
utilities/extractqqz.sh | 1 +
utilities/synctex-forward.sh | 91 +++++++++++++++++++++++
70 files changed, 266 insertions(+), 36 deletions(-)
create mode 100755 utilities/synctex-forward.sh
--
2.17.1
next prev parent reply other threads:[~2019-10-22 11:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <fac2cbbb-492c-acde-14a8-15ee04b95ea9@gmail.com>
[not found] ` <2d2eb3d6-d050-6f0c-aca5-b0cc76e8e0ec@gmail.com>
2019-10-19 11:43 ` [PATCH v2] Always generate perfbook.synctex.gz Akira Yokosawa
2019-10-19 15:35 ` Paul E. McKenney
2019-10-22 11:15 ` Akira Yokosawa [this message]
2019-10-22 11:17 ` [PATCH v3 1/6] treewide: Add '% mainfile:' tags in headers in sub .tex files Akira Yokosawa
2019-10-22 11:19 ` [PATCH v3 2/6] Add synctex-forward.sh Akira Yokosawa
2019-10-22 11:21 ` [PATCH v3 3/6] Add output of '% mainfile: perfbook.tex' tags in extraction scripts Akira Yokosawa
2019-10-22 11:22 ` [PATCH v3 4/6] FAQ-BUILD: Mention how to enable SyncTeX support Akira Yokosawa
2019-10-22 11:23 ` [PATCH v3 5/6] defer/rcuintro: Convert snippet to new scheme Akira Yokosawa
2019-10-22 11:24 ` [PATCH v3 6/6] defer/rcuapi: Tweak horizontal spacing of wide tables in 1c layout Akira Yokosawa
2019-10-22 12:05 ` [PATCH v3 0/6] Enable SyncTeX forward (.tex -> .pdf) search Paul E. McKenney
2019-10-22 14:34 ` [PATCH v4 5/6] defer/rcuintro: Convert snippet to new scheme Akira Yokosawa
2019-10-22 15:51 ` Paul E. McKenney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=eda1f6d1-50ef-8447-1eab-5db776eb3981@gmail.com \
--to=akiyks@gmail.com \
--cc=bsingharora@gmail.com \
--cc=paulmck@kernel.org \
--cc=perfbook@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.