-
Notifications
You must be signed in to change notification settings - Fork 366
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
LaTeXTools not running viewer in Windows 10 #1508
Comments
IIRC
It might work as:
|
Thanks for the reply, I could play around with the syntax there and see what I can get. In the meantime, your comment brings up a more important question (where mine is more of a "give a man a fish" but yours is "teach a man to fish"): |
The command you pass in to the command viewer is passed to a Python (If you really want the gory details: Sorry for not having a ready-to-go answer; I don’t use Windows very much these days. |
Honestly, that second "gory details" section is super helpful. No need to apologize, now that I understand what's going on under the hood, I can diagnose/troubleshoot myself. Again, teaching me to fish rather than just giving me the fish. Going forward with this ticket, I'm happy to have this issue closed since it was based on a misunderstanding of how LaTeXTools works. However, I think it would be a good idea to make this explicit in the website docs so others don't open new issues/take up developers' time with questions like this. I'm not exactly sure what wording should be used that would cater to the largest audience, though. Alternatively and even better, maybe this ticket could be converted to a feature request to add an option for opening the compiled file with the OS' default program (that's the only reason I'm trying to use |
There’s definitely some stuff in the docs we should clarify and we’d always welcome suggestions on that front. When the docs say “SumatraPDF is the default viewer...” it really means that we assume if you’re using Windows, you want to use SumatraPDF. This is because it has support for SyncTeX (forward and inverse jumping between editor and viewer) and is generally useful for editing LaTeX documents (Adobe’s reader opens the PDF in a mode that causes Windows to lock the file; this is fine for viewing a PDF, but when editing a PDF it means you have to close the Adobe window before building the document or else the changes won’t get written to the PDF file; this is also a factor in why we never created an “os_default” viewer—it might be worth reconsidering that though). To clarify a bit more: Sumatra is the default viewer on Windows the same way Skim is the default viewer on Macs. Macs also have Preview which can view PDFs, but which cannot support forward and inverse search. Similarly, our “default” on Linux is Evince, even though that’s a Gnome-specific app and KDE users will presumably want to use Okular. |
Re docs: Yeah, my other issue #1500 was another one dedicated solely to a documentation bug I discovered. Re default viewer: I should be careful when I say "simply not true" and/or "SumatraPDF is [not] the default viewer" as this is dependent on a person's individual setup. At the very least, I agree with you that Adobe is super annoying when it comes to repetitive LaTeX builds for the exact reason you mention (the lock on the file). Still, I think it would be a worthwhile venture to pursue the "os_default" since that gives a fairly simplistic option for people that don't use LaTeX often and want to have a plug-and-play experience (like me). As before, you're going into a level of depth that I appreciate and I feel like this is a productive conversation. Thanks for the feedback and explanations :) |
Issue
viewer
is never executed regardless of settings, resulting in PDF file never openingSettings
I currently set
view_command
as simple as possible: directly opening the file with default Windows program for .pdf files.System
The text was updated successfully, but these errors were encountered: