All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@kernel.org>
To: Akira Yokosawa <akiyks@gmail.com>
Cc: perfbook@vger.kernel.org, Balbir Singh <bsingharora@gmail.com>
Subject: Re: [PATCH v2] Always generate perfbook.synctex.gz
Date: Sat, 19 Oct 2019 08:35:55 -0700	[thread overview]
Message-ID: <20191019153555.GK2588@paulmck-ThinkPad-P72> (raw)
In-Reply-To: <289dfc39-6aec-bbaa-040d-1c06b932949f@gmail.com>

On Sat, Oct 19, 2019 at 08:43:39PM +0900, Akira Yokosawa wrote:
> On Fri, 18 Oct 2019 00:27:36 +0900, Akira Yokosawa wrote:
> > From 41473d36c8bfaf96c4d0d0b3ca04f688ae6d4739 Mon Sep 17 00:00:00 2001
> > From: Akira Yokosawa <akiyks@gmail.com>
> > Date: Fri, 18 Oct 2019 00:12:24 +0900
> > Subject: [PATCH v2] Always generate perfbook.synctex.gz
> > 
> > Commit 8458f7572335 ("Add optional flag 'LATEX_OPT' in run{first}latex.sh")
> > was ment to support optinal generation of .synctex files.
> > It turns out that evince and gedit pair supports both the forward
> > (.tex -> PDF) and the inverse (PDF -> .tex) searches [1].
> > I find this mechanism helps a lot in perfbook, because of its
> > nested LaTeX source structure.
> > 
> > For forward search (.tex -> PDF) to work, each sub-sources needs
> > to have a pointer to main file in the first/last 3 lines. This
> > commit therefor adds the pointers to top level perfbook.tex.
> > 
> > Also add an entry in FAQ-BUILD.txt as an introduction of the
> > capability.
> > 
> > Note: As SyncTeX search will work only for perfbook.pdf, other
> > targets do not generate .synctex.gz.
> > 
> > [1]: https://help.gnome.org/users/evince/stable/synctex-search.html.en
> > 
> > Cc: Balbir Singh <bsingharora@gmail.com>
> > Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
> > ---
> > Changes from v1:
> > 
> > o Simplify setting of LATEX_OPT in Makefile. The behavior is the same as v1.
> > o Add Cc: to Balbir.
> > 
> > I'd like to know this change has no regression with Balbir's workflow.
> > I'm assuming Balbir's viewer and editor combination is something
> > other than evince and gedit.
> 
> Paul, this change does have regression in that the inverse search
> (PDF -> .tex) stops working other than perfbook.pdf.
> 
> Current master allows inverse search from any of perfbook*.pdf.
> 
> So, please hold off this one.

Will do, especially given that this email reached me and the one that
it replies to did not.  ;-)

> Let me try another round to enable forward search of SyncTeX.

Sounds good!

							Thanx, Paul

>         Thanks, Akira
> 
> > 
> >         Thanks, Akira
> > --
> >  FAQ-BUILD.txt                             | 21 +++++++++++++++++++++
> >  Makefile                                  |  5 +++++
> >  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                          |  4 +++-
> >  defer/rcuexercises.tex                    |  1 +
> >  defer/rcufundamental.tex                  |  2 ++
> >  defer/rcuintro.tex                        |  2 ++
> >  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 ++
> >  67 files changed, 131 insertions(+), 6 deletions(-)
> > 
> [...]

  reply	other threads:[~2019-10-19 15:35 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 [this message]
2019-10-22 11:15   ` [PATCH v3 0/6] Enable SyncTeX forward (.tex -> .pdf) search Akira Yokosawa
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=20191019153555.GK2588@paulmck-ThinkPad-P72 \
    --to=paulmck@kernel.org \
    --cc=akiyks@gmail.com \
    --cc=bsingharora@gmail.com \
    --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.