atom-latextools icon indicating copy to clipboard operation
atom-latextools copied to clipboard

Sumatra PDF viewer cannot be invoked

Open garylavayou opened this issue 8 years ago • 3 comments

Currently, I can only open the pdf-view after the .tex file is successfully compiled, although I have installed the Sumatra PDF viewer, and have its path added to the system path variables.

This latextools package provide the option to set the path of Sumatra, why it dose not work?

garylavayou avatar Aug 24 '17 07:08 garylavayou

Ctrl+L, J should open the PDF in the configured view.

I'm confused if you're trying to use the pdf-view viewer (which requires the Atom pdf-view extension and is independent of Sumatra) or the Sumatra viewer (which is also the default). If the latter, make sure the path you set in the setting corresponds to the executable (not the folder containing the executable) or leave it blank if Sumatra is on your PATH already.

ig0774 avatar Aug 24 '17 13:08 ig0774

Thanks @ig0774 , I set the SumatraPDF path as the folder path by mistake. After correcting this, it works.

Besides, I suggest that in the Win32 section in the settings, the names including Win32 should be changed to Windows, since many users are using 64bit of Windows. On more thing, I wonder if the Win32 Atom Executable entry should be set, or it will be provided with a default value.

garylavayou avatar Aug 25 '17 08:08 garylavayou

The "section" names are simply derived from the ways the properties are named which in turn are based on the values returned from process.platform. Basically we're using the strings that Node uses to represent the platform internally (this is also why there's a Darwin section instead of macOS). We might be able to change this down the line, but right now it would involve some major code changes for a relatively minor cosmetic issue. (Also note that Win32 is really referring to a Windows API version rather that the processor architecture; confusing, I realise, but it's consistent with how the Windows API represents things).

The Win32 Atom Executable setting is currently unused and should probably just be removed or hidden.

ig0774 avatar Aug 25 '17 09:08 ig0774