PDF viewer for Atom. It is a wrapper around Mozilla's PDF.js library including its viewer application, adapted for the Atom environment.
PDF files can be opened from the Atom user interface, e.g. from the project tree view, or programmatically through atom.workspace.open(uri)
. The package watches for file changes and reloads the PDF if necessary. Viewer panes are persistent across Atom runs. The uri
consist of path to file and optional .
The style of the documents has been adapted to the theme in Atom. As the style changes, you may notice the menu colours change. An additional option has been introduced to invert the colours of the document itself. To invert the document colours change the options in the package settings, use the pdf-viewer:invert-mode
from command-palette or press the F8
to change it in active file.
The keyboard shortcuts inside the PDF.js viewer have remained unchanged. It is not possible to change these shortcuts from within Atom. For more information, see default keymap:
Home
, End
, PageUp
, PageDown
and all arrow keys can be used to navigate the document;N
, J
, Space
(presentation mode only), Enter
(presentation mode only) or LeftClick
(presentation mode only);P
, K
, Shift
+ Space
(presentation mode only), Shift
+ Enter
(presentation mode only) or Shift
+ LeftClick
(presentation mode only);Ctrl
+ MouseWheel
can be used to change the zooming level;Ctrl
+ +
, Ctrl
+ =
;Ctrl
+ -
;Ctrl
+ 0
;r
;Shift
+ R
;Ctrl
+ Alt
+ P
;h
;s
;Ctrl
+ Alt
+ G
;Ctrl
+ f
;Ctrl
+ G
;Ctrl
+ G
;Ctrl
+ S
;Ctrl
+ O
;F4
to toggle the visibility of the sidebar;After showing the sidebar, click on the "Show document outline" button (Show document outline) to show the document outline (if the PDF file has one). Nested outline items can be expanded/collapsed by clicking on the triangles at the left of an item. To expand/collapse all items under the selected item, press Shift
while clicking on the triangle. Double-click on the "Show document outline" button (Show document outline) to expand/collapse all outline items.
Additional keyboard shortcuts has been introduced:
Ctrl
+ Shift
+ P
, F1
;F5
;Ctrl
+ F5
F8
:.tex
. file, if possible: RightClick
;The package supports additional options when opening. With them you can open on a specified page, set the initial zoom, open the file on a named destination or select a sidebar state. For more information see pdf.js viewer options.
This package supports SyncTeX .tex
and .pdf
in both directions. From a text file .tex
to .pdf
use the command pdf-viewer:synctex
from command-palette, while from .pdf
to .tex
you need to mouse RightClick
.
For PDF files created by TeX using the --synctex=1
option, a click on the PDF will take you to the corresponding source code. If the synctex command (part of modern TeX distributions) is in your PATH, this will work out of the box, otherwise you can configure the path to the synctex binary in the settings.
The viewer can remember the page before refresh and set it initialy after refresh.
This package is adapted to support sofistik-tools
for help functions using the search keywords at current scope. For more information see the package sofistik-tools.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.