-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDF viewer on mac #1
Comments
Thank you for your suggestions. I don't have a macOS system, therefore I was unable to add platform specific code. Now, your approach is similar to what I use for Linux systems, where the user is supposed to figure out how to solve their problems. For macOS, I think it would be better to have a get-the-job-done approach, and give also one (or more) default app, like I do for Windows. Let me explain better. If the default macOS viewer does not support SyncTeX, when you run the build a second time, nothing is updated, and you think the package is broken. Even worse, some viewers block the file when open, so that the old PDF cannot be rewritten with a fresh one from Now for the solution. (executable-find "/path/to/Skim") Where If Skim is found, then (defvar rnw2pdf-viewer (executable-find "/path/to/Skim")) sets it as the Of course, you can do this test with any other popular macOS viewer. If your tests are successfu, l would be happy to update the package. |
Thanks for your reply. I have been using Skim for the same reason you mentioned (i.e., refreshing when updated). |
It seems that you can open a PDF with Skim, even if it is not the default viewer, with (setq rnw2pdf-viewer "open -a Skim.app") That is supposed to open the PDF in the way you like. If |
Hello! Thank you for developing this package. I have downloaded it and it works very nicely!
I just want to suggest one small feature-- on Mac (i.e.,
system-type
darwin
), the commandopen
runs the system's default application, so it runs the default PDF viewer for .pdf files. I tested this by adding tornw2pdf.el
,defvar rnw2pdf-viewer
the line((eq system-type 'darwin) "open"))
and things seem to work nicely. Perhaps this could help other Mac users. Thanks for your consideration!The text was updated successfully, but these errors were encountered: