Aerijo / atom-pdf-view-plus

Completely remade PDF viewer in Atom
MIT License
12 stars 0 forks source link

Built LaTeX PDF does not open in split-view #5

Open matthew-e-brown opened 4 years ago

matthew-e-brown commented 4 years ago

When using the latex package, the "Open Result after Successful Build" and other related options allow me to keep a PDF preview of my document open on the right-hand side and have it rebuild after every save.

However, with this new package, saving a .tex file just opens the PDF in Acrobat DC (my default PDF viewer). It seems that the latex package doesn't know how to use pdf-view-plus. The "automatic" setting for "PDF opener" in latex doesn't work, and I'm not sure what value to enter as "custom." latex also spits out the following error in the LaTeX Log upon render:

An error occured while trying to run ""C:\Users\Matthew\...\Test.pdf"" (1)

Is this feature not supported by pdf-view-plus, or is there some extra configuration step that I'm missing?

Aerijo commented 4 years ago

The latex package specifically checks for the pdf-view package being active, so it's not something that can be fixed on this end.

I'll put in a PR to the latex repo.

matthew-e-brown commented 4 years ago

Good plan. Will watch there.

Foggalong commented 4 years ago

In the mean time, is there anything that can be put into the "custom" field of the LaTeX package's PDF viewer setting to trick it into opening PDFs in pdf-view-plus? I haven't had any joy with the obvious choices.

Aerijo commented 4 years ago

I doubt it, the custom viewer spawns it as a child process and checks that the viewer path exists on the filesystem.