ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Thomas Floeren <thfl@mac.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: SyncTeX and mkiv
Date: Tue, 07 Apr 2015 16:33:55 +0200	[thread overview]
Message-ID: <9BAAA5C0-1E2B-4A23-B78A-B01F93A231F9@mac.com> (raw)
In-Reply-To: <CALBOmsY9XGz5g9=uRr18B+EFQ0hYR+3MvzYxbZ-FQGoeDjAHzQ@mail.gmail.com>

On 7 Apr 2015, at 10:32, Mojca Miklavec wrote:

> Hi,
>
> SyncTeX usually works for me, but I need to use
>  context --synctex ...
> (I don't know if --synctex=1 is supposed to work in ConTeX. I believe
> that Hans changed the syntax.)
>
> Enabling it inside the document doesn't work for me for some reason.
> Hans suggested to put the command inside the first line (modeline or
> however that one is called).
>
> But "context --synctex filename.tex" generally works.


Yes, this is strange. `\enabledirectives [system.synctex]` works for me 
*if* it’s in the product file (no `--synctex` switch needed). It even 
works if it is not in the first line, for example:

Product file:

\startproduct pd-test
\enabledirectives [system.synctex]
\component 01-intro
\stopproduct

Component:

\startcomponent 01-intro
Hi there, can you show me this sentence in the source file?
\stopcomponent


But, indeed, it doesn’t work with single-file documents.

-- 
Thomas


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2015-04-07 14:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-01  6:55 Otared Kavian
2015-04-06 12:17 ` Andreas Schneider
2015-04-07  7:20   ` Otared Kavian
2015-04-07  8:32     ` Mojca Miklavec
2015-04-07  9:07       ` Otared Kavian
2015-04-07 14:33       ` Thomas Floeren [this message]
2015-04-08  8:43         ` Otared Kavian
2015-04-08 11:27           ` Hans Hagen
2015-04-08 19:49             ` Otared Kavian
2015-04-07  9:23 Akira Kakuto

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=9BAAA5C0-1E2B-4A23-B78A-B01F93A231F9@mac.com \
    --to=thfl@mac.com \
    --cc=ntg-context@ntg.nl \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).