Changes

Jump to navigation Jump to search
520 bytes added ,  13:56, 19 March 2015
m
document \enabledirectives[system.synctex]
Synctext currently doesn't work with MKIV''SyncTeX''' is a program that puts a lot of anchors in the output file that link to the corresponding position in the source file. This allows you to quickly jump from PDF to source.
With a ConTeXt version == Usage == You can use the <code>--synctex</code> 2009switch to enable SyncTeX.06.13  So in MkIV you can run context --synctex <i>jobname</i>and in MkII you can use texexec --synctex <i>jobname</i> that Alternatively you can add the following command to your MkIV document:<texcode>\enabledirectives[system.synctex]</texcode> This will create a file <code><i>jobname</i>.synctex.gz</code>.The command ctxtools context --purge --all
or next run without --synctex will remove the file again.
This file can be used by your editor and PDF viewer to display jump back and forth between the proper filesource and the PDF.
== Editors & Viewers ==
You may need to modify the command for executing ConTeXt first (you need to add <code>--synctex</code> switch in preferences).
 
=== Evince ===
Evince (the GNOME PDF viewer) supports SyncTeX since version 2.32.0.
=== Skim.app & TextMate (Mac OS X) ===
In Skim/Preferences/Sync choose TextMate. Key The key combination Shift+Apple+MouseClick
will bring you to the corresponding line in text editor.
In TextMate (see [[ConTeXt Bundle for TextMate]]) I have created my own command inside the ConTeXt bundle:
* '''Save''': Nothing
Hopefully this functionality will become part of the official ConTeXt bundle one day. (The recipe given above is too specific. The code needs to be written to handle more different viewers and different locations, not only a single viewer at a specified location.)
 
{{Installation navbox}}
[[Category:Text Editors]]

Navigation menu