Viewers for PDF, PS, and DVI ⇒ Problem with sumatrapdf - could it be document's class file?
Problem with sumatrapdf - could it be document's class file?
********************************************
[ForwardSearch("%bm.pdf","%Wc",%l,0,0,1)]
Cannot execute the command.
********************************************
The funny thing is that SumatraPDF works great most of the time, I'm only getting this error message with this file for some reason. The class file is elsarticle.cls used in Elsevier journals - could that be what's causing this? On another machine I even attempted to set up Texlipse (instead of TexnicCenter) with SumatraPDF, and got the same error message from SumatraPDF when compiling and viewing, while Acrobat Reader again worked fine.
Can anyone point me in the right direction to get this fixed?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Problem with sumatrapdf - could it be document's class file?
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Problem with sumatrapdf - could it be document's class file?
Thank you for your reply and the kind welcome to this great site.
This is perplexing... I am only compiling with pdflatex, using the LaTeX =>PDF build profile (well, I actually made a copy of the original, renaming it "LaTeX =>PDF (SumatraPDF)", and adjusted the necessary viewer settings, etc.).
I've went through my preamble and verified that there are no extraneous commands there (i.e., I have only kept those which, if removed, cause a compilation error). Even after this, the file does not compile in TeXnicCenter using pdflatex -- the error message still pops up, though the previously compiled version of the PDF does appear in SumatraPDF.
Are there any other suggestions as to why this is happening, other than it not having to do with the document class?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Problem with sumatrapdf - could it be document's class file?
- Attachments
-
- TXC2alpha1-pdflatex-profile-modified.png (46.78 KiB) Viewed 12477 times
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Problem with sumatrapdf - could it be document's class file?
and the Viewer tab:
and, finally, the text that's too long to fit in the box reads:
"C:\USER\ANDY\SUMATRAPDF\SUMATRAPDF.EXE" -inverse-search "\"C:\Program Files\TeXnicCenter\TEXCNTR.EXE\" /ddecmd \"[goto('%f','%l')]\""
Do you see anything missing? And is there a difference between setting "-synctex=1" vs. "-synctex=-1"? Does it matter whether there is 1 vs. 2 dashes before synctex (i.e., "-synctex=" vs. "--synctex=..."?)
Thanks for all of your help!
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Problem with sumatrapdf - could it be document's class file?
For the front dash see the attachment in my last reply. The »-1« is an older setting and in opposite to »1« does not compress the SyncTeX data file. But this should not affect the functionality. The only possible values are -1, 0 or 1.ralphey wrote:Do you see anything missing? And is there a difference between setting "-synctex=1" vs. "-synctex=-1"? Does it matter whether there is 1 vs. 2 dashes before synctex (i.e., "-synctex=" vs. "--synctex=..."?)
[1] TeXnicCenter.org - Tutorials
[2] william.familie-blum.org news - Configuring editors with SumatraPDF
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Problem with sumatrapdf - could it be document's class f
Any other recommendations?
Re: Problem with sumatrapdf - could it be document's class f
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Problem with sumatrapdf - could it be document's class file?
Give a concrete example, which means that you have to reduce a problematic document to a minimal working example (MWE) that exactly reproduces the undesired behaviour. The page behind the link gives detailed instructions.jonasson wrote:I just want to confirm Ralphey's observation: I get the error with some tex files and not others...
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Problem with sumatrapdf - could it be document's class f
I just ran this program in XP and it work. It has worked in the past using Win 7. I have not tried uninstalling and reinstalling the software.
Why would it stop working?
- Attachments
-
- JACPASLetterhead.tex
- (1.56 KiB) Downloaded 547 times