Communication Between Editor and Viewer for Literate Programs

This utility eases the debugging of literate documents ('noweb' files) by patching the synchronization information (the '.synctex(.gz)' file) produced by 'pdflatex' with concordance information produced by 'Sweave' or 'knitr' and 'Sweave' or 'knitr' ; this allows for bilateral communication between a text editor (visualizing the 'noweb' source) and a viewer (visualizing the resultant 'PDF'), thus bypassing the intermediate 'TeX' file.

What is this

This is the source repository of the CRAN package patchSynctex. People wishing to access Jan Gleixner's patchKnitrSynctex may do so on its own Github page An archival copy of its state when I forked this program is available at, but is, intentionally, not maintained.

I choose to ignore the standalone C++ program, which is difficult to maintain cross-platform, and concentrated on the R version.

How to use this

Install the package in your R installation and peruse the help pages of the package.

Have fun !



0.1-0 : Initial packaging of Jan Gleixner's PatchKnitrSynctex R function, with amends. 0.1-1 : - Daniel Hicks' proposed modification to the management of large files. - Added this NEWS file. 0.1-2 : - Added - Added URL field pointing to the Github repository. 0.1-3 : - Added conformance to new CRAN import policies. 0.1.4 : - (Daniel Hicks) Fix for mutiple source files. - (Kyle J Harms) merging patched references to included files in the main sync file.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.1-4 by Emmanuel Charpentier, 2 years ago

Browse source code at

Authors: Jan Gleixner [aut] , Daniel Hicks [ctb] , Kyle J. Harms [ctb] , Emmanuel Charpentier [aut, cre]

Documentation:   PDF Manual  

GPL (>= 2) license

Depends on tools, stringr

Enhances knitr, utils

See at CRAN