I've spent a week writing an R vignette using knitr, with input in R Markdown, and output in HTML. Previously all vignettes that I wrote were in Sweave with a PDF target.
One of the things I miss is Synctex, which gives the ability to jump from the PDF preview back to the corresponding line in the file. As far as I can see, knitr supports this when producing LaTeX output (using the same scheme as Sweave, I think), but not when producing HTML output.
I know that the R Markdown to HTML process goes through pandoc, so I checked the pandoc docs, but couldn't find any mention of Synctex there.
So my questions are:
Are there any HTML browsers that support something like Synctex for forward and reverse search from an editor? (Since RStudio has its own built-in browser, it could be doing this...)
Does pandoc support any Sweave-like scheme for relating output locations in the HTML file to input locations in the .md input?
apxproof
doesn't support SyncTeX, and the popularbeamer
package damages the support to the point of becoming nearly unviable. If the toolchain from source code to PDF contains anything butpdflatex
, you are likely looking at significant effort to retain the information during the conversion and modifying the.synctex[.gz]
file. – Catima.dvi
files as well as Synctex data frompdflatex
, when the source file is Sweave preprocessed by R into LaTeX. Six years later I'd still like to do the same when the source is Markdown processed by Pandoc, either into LaTeX or into HTML, but I'm not holding my breath. – Devil