Hi All,
I am trying to use Evince to view pdf outputs from Latex, but when I click the "view output" button, I see Evince open a blank slate: no document. TeXnicCenter freezes for a while, and then announces, "[DocOpen("%bm.pdf")][FileOpen(%bm.pdf")]
Cannot Execute the command."
How do I get Evince to open Latex outputs using the "view output" button in TeXnicCenter?
Thanks for your time.
General ⇒ Trouble with Evince
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: Trouble with Evince
You're using Evince on Windows? Really? I've never heard of anyone actually doing that before; that's interesting. What made you decide to try that, rather than something designed for Windows like SumatraPDF?
Anyway, those look like DDE commands, which probably aren't supported by evince. (But probably aren't necessary either.)
Could you post what settings you have for the View output part of the Output profile? (Or something like that… It's been a long time since I used TeXnicCenter.)
Anyway, those look like DDE commands, which probably aren't supported by evince. (But probably aren't necessary either.)
Could you post what settings you have for the View output part of the Output profile? (Or something like that… It's been a long time since I used TeXnicCenter.)
Re: Trouble with Evince
I'm using Evince on Windows, since Adobe PDF isn't rendering LaTeX files properly. Evince works very well.
See the attached image for my PDF Viewer profile settings:
See the attached image for my PDF Viewer profile settings:
- Attachments
-
- Capture.PNG (67.91 KiB) Viewed 6680 times
Trouble with Evince
I don't use Windows, and don't have TXC, so I can't test, but under "View Project's Outut", try switching to "Command Line Argument", and try to modify the command it uses so it only calls the name of the file after the executable. (Which seems to be simply be the value of the variable "%bm.pdf" from what I can tell.)
You might also consider using SumatraPDF as your viewer, which supports SyncTeX-based Forward/Reverse search. (A future version of Evince probably will do so as well, but I don't think the current one does.)
However, I'm a bit worried about what you say about Adobe Reader. Adobe Reader is horribly slow and bloated software, not to mention closed source, so I certainly encourage you to explore alternatives, but I can't think of any reason why LaTeX-generated PDF shouldn't appear/render correctly in it, once the darn thing actually loads. (And if it doesn't appear correctly in Adobe Reader, that's a real problem, since Adobe Reader is by far the most common reader out there!)
Could you provide a quick example of a file that isn't appearing correctly in Adobe Reader?
You might also consider using SumatraPDF as your viewer, which supports SyncTeX-based Forward/Reverse search. (A future version of Evince probably will do so as well, but I don't think the current one does.)
However, I'm a bit worried about what you say about Adobe Reader. Adobe Reader is horribly slow and bloated software, not to mention closed source, so I certainly encourage you to explore alternatives, but I can't think of any reason why LaTeX-generated PDF shouldn't appear/render correctly in it, once the darn thing actually loads. (And if it doesn't appear correctly in Adobe Reader, that's a real problem, since Adobe Reader is by far the most common reader out there!)
Could you provide a quick example of a file that isn't appearing correctly in Adobe Reader?
Trouble with Evince
The file is now loading fine in Adobe Reader. Well, it doesn't matter, because now I'm using SumatraPDF. Thanks for the suggestion!
I now have everything working except for the forward search and inverse search features. It would be great if I could get them working.
Here's the DDE command I'm using for the Forward Search feature:
Command: [ForwardSearch("%bm.pdf","%nc",%l,0)]
Server: SUMATRA
Topic: control
When I hit view, the document loads, and in the position it was when I last closed the pdf file, but now TeXnicCenter gives me:
I now have everything working except for the forward search and inverse search features. It would be great if I could get them working.
Here's the DDE command I'm using for the Forward Search feature:
Command: [ForwardSearch("%bm.pdf","%nc",%l,0)]
Server: SUMATRA
Topic: control
When I hit view, the document loads, and in the position it was when I last closed the pdf file, but now TeXnicCenter gives me:
[ForwardSearch("%bm.pdf","%nc",%l,0)]
Cannot execute the command.
Re: Trouble with Evince
There's some advice on that here:
http://william.famille-blum.org/blog/st ... 010-000413
Also be sure that -synctex=1 is called in the compilation routine (and that you're using a new enough of a TeX engine to support SyncTeX!).
I've never tried this, though, and have no way to test, but good luck!
(Since you're no longer having trouble with evince, however, best to start a new topic if you continue to have trouble.)
http://william.famille-blum.org/blog/st ... 010-000413
Also be sure that -synctex=1 is called in the compilation routine (and that you're using a new enough of a TeX engine to support SyncTeX!).
I've never tried this, though, and have no way to test, but good luck!
(Since you're no longer having trouble with evince, however, best to start a new topic if you continue to have trouble.)