Briefly, I've installed 5.2.0 of Latex Workshop on Visual Studio Code on MacOS.
Is some setup required to get PDF viewing working? I looked through the config and there's stuff regarding SumatraPDF.exe for the external command.
I couldn't see any obvious documentation - is it supported on platforms other than Windows?
thanks
external PDF viewer is not officially supported.
Thanks for the feedback James, I tried using the internal viewer with the tab option and the browser option, and I don't see anything come up either.
My intention was not to use the external PDF viewer. I'm just running what I consider to be a standard iMac with 32GB of memory and the latest VS Code, but I'm not seeing any tab-view PDF when I try that. It was only at that stage I started to look into the config settings. Maybe my machine is an abberation, but let me know if there's anything I can do to investigate further.
please provide the extension log.
Hi, I did a bit more troubleshooting on this, this morning.
It appears not to be a mac issue - rather it has an issue with my file, and the TeX program directive in it - e.g.
This works on line 1:
% !TeX program = pdflatex
This does not work:
% !TeX program = xelatex
% !TeX program = lualatex
The logfile says pdf not found, but doesn't report much more than that from what I could gather - however the pdf is not being built.
It's something I can work around, and maybe an issue for the backlog - thanks for your time and effort on the project in any case :)
In case it helps other people who have ended up on this thread through Googling, I've managed to set up Adobe Reader configured for my external viewer and Skim as the separate Sync target.
{
"latex-workshop.view.pdf.external.command": {
"command": "open",
"args": [
"-a",
"Adobe Acrobat Reader DC.app",
"%PDF%"
]
},
"latex-workshop.view.pdf.external.synctex": {
"command": "/Applications/Skim.app/Contents/SharedSupport/displayline",
"args": [
"-r",
"%LINE%",
"%PDF%",
"%TEX%"
]
},
}
HighSierra, VSCode 1.27.1, Latex Workshop 5.9.0, Adobe Reader Build: 18.11.20058.296032
Supplement to tobywan on skim->VSCode sync:
Shift-Cmd-Click to do PDF->Tex sync. From: https://sourceforge.net/p/skim-app/wiki/TeX_and_PDF_Synchronization/
Most helpful comment
In case it helps other people who have ended up on this thread through Googling, I've managed to set up Adobe Reader configured for my external viewer and Skim as the separate Sync target.
HighSierra, VSCode 1.27.1, Latex Workshop 5.9.0, Adobe Reader Build: 18.11.20058.296032