
Note that if you choose to use the RStudio Viewer you should be aware that rendering of PDFs may not be as high-fidelity as desired.
Sumatra pdf browser plugin pdf#
While Sumatra is the default PDF previewer on Windows, you can also configure RStudio to use it's own internal viewer or the system viewer. Rather than control-click you should double-click the region of the PDF you wish to sync to. Note that the gesture for inverse search (PDF to Source) in Sumatra differs from the RStudio Viewer. On Windows RStudio ships with Sumatra, an open-source viewer that fully supports SyncTeX and is well regarded as a fast, lightweight, high-fidelity PDF reader. As a result RStudio default configuration on those platforms is to integrate with native PDF viewers as described below.
Sumatra pdf browser plugin mac os#
PDF.js provides very good rendering of PDFs over the web as well on Mac OS X, however has some fidelity issues when running within RStudio desktop on Windows or Linux. More details on PDF.js are provided below. The RStudio viewer is based on PDF.js (an open-source project by the Mozilla Foundation). RStudio includes a built-in PDF viewer that supports SyncTeX and works on all platforms (including over the web with RStudio Workbench (previously RStudio Server Pro) and RStudio Server Open Source). Note that in most cases an inverse search will automatically re-activate the RStudio source editor, however in some cases (using Evince on Linux or Firefox over the web) you will need to manually re-activate RStudio.
Sumatra pdf browser plugin code#
To view the source code that generated a given region of a PDF, you can either: The PDF viewer will be navigated to the appropriate location and a visual indicator of the region that was synced to will be displayed.

PDF Preview and SyncTeX Previewing with SyncTeX
