LaTeX forum ⇒ GeneralConfiguring TeXnicCenter with another pdf-viewer than Adobe

General information and discussion about TeXnicCenter
Elkiaer
Posts: 5
Joined: Tue Mar 18, 2008 3:16 pm

Configuring TeXnicCenter with another pdf-viewer than Adobe

Postby Elkiaer » Tue Mar 18, 2008 3:57 pm

Specifically I would like to configure TeXnicCenter with PDF-XChange viewer from Tracker software.

I am using the LaTeX => pdf output profile.
I succesfully made TeXnicCenter compile and open my document in the PDF-XChange viewer... when the document is not allready open.

The problem is, that when the document is open it is not possible to write on it.
What I need to do is make TeXnicCenter close the document first.
This is possible, I had no problem with this using Adobe Acrobat reader.

Under "build --> Define Output Profiles" I choose the teab "Viewer", and I figured what I need to do is to write the right code in the field "Close document before running (La)TeX".
So the question I need som help for is: What is the right code?

I allready tried choosing "DDE command" and typin "[DocClose("%bm.pdf")]"
But I think what this program needs is a "command line argument".

I hope you can help me. I really want this to work, since I am tired of Adobe.

Tags:

gentlesea
Posts: 1
Joined: Thu Aug 14, 2008 11:03 am

Postby gentlesea » Thu Aug 14, 2008 11:09 am

Hello,

you can use the following batch file to have the viewer closed every time you start compiling with F7. Be aware, that all documents that are open in the viewer are also closed. If someone has a better solution, I'd like to hear that.

Save the attached batch file to your installation directory (C:\Program Files\Tracker Software\PDF-XChange Viewer\pdf-viewer in my case)

In TeXnicCenter press ALT-F7, choose your profile and enter the following information:

  1. "C:\Program Files\Tracker Software\PDF-XChange Viewer\pdf-viewer\closeOpenPDFXCview.bat"
  2. "%bm.pdf"
  3. "%bm.pdf"
  4. <empty>


Credits go to: http://flominator.ramselehof.de/index.p ... assen.html


Greetings
Attachments
closeOpenPDFXCview.zip
(278 Bytes) Downloaded 780 times

Section31
Posts: 3
Joined: Fri Sep 12, 2008 7:16 pm

Postby Section31 » Fri Sep 12, 2008 7:21 pm

Hi,

you can use the command line switches to open and close the documents. See the picture. It works with version 2.0 of the PDF-XChange Viewer.

Greetings
Attachments
pdfxChange.png
pdfxChange.png (20.06 KiB) Viewed 33773 times

Elkiaer
Posts: 5
Joined: Tue Mar 18, 2008 3:16 pm

Postby Elkiaer » Thu Sep 25, 2008 7:55 am

Thank you for your suggestions.
However it did not work. I have version 2.0 of the PDF-XChange Viewer. But the "/Close %bm.pdf" command line did not solve my problem. Why is it not working? Do I have to configure the pdf-viewer?
I could not make the batch-file work either.

I hope you will try to help me.

Section31
Posts: 3
Joined: Fri Sep 12, 2008 7:16 pm

Postby Section31 » Fri Sep 26, 2008 5:27 pm

Hi,

set the %bm.pdf in ""



and

  1. /close "%bm.pdf"


This should work if there are spaces in the path.

Elkiaer
Posts: 5
Joined: Tue Mar 18, 2008 3:16 pm

Postby Elkiaer » Sat Sep 27, 2008 10:24 am

:-( Still it does not work. Do I need to change some configurations somewhere else than under "viewer"?

latex82
Posts: 1
Joined: Thu Oct 02, 2008 6:28 pm

Postby latex82 » Thu Oct 02, 2008 6:38 pm

You should check if you have the current version of PDF X-change viewer. It has worked for me after updating my pdf-viewer (already a version 2.x). It should work if you see the /close command line option explained in the help.
Thank you for the tip, Section31!

Elkiaer
Posts: 5
Joined: Tue Mar 18, 2008 3:16 pm

Postby Elkiaer » Sun Oct 05, 2008 9:04 am

IT WORKS - after updating the PDF-XChange Viewer. Thank you so much Section31 and latex82.

werwohl
Posts: 1
Joined: Mon Oct 27, 2008 9:24 pm

Postby werwohl » Wed Nov 26, 2008 11:27 pm

Is it possible to view attached files with pdf x-change viewer?

I see only the icon and the description as a comment, but cannot open the attached file.

TIA,
Robert

ONeill
Posts: 1
Joined: Tue Aug 25, 2015 6:18 pm

Postby ONeill » Tue Aug 25, 2015 6:25 pm

Hello!

Sorry for capturing this old thread. I am using W7 Professional with TEXnicCenter 2.02. stable (64 bit) and PDF-XChange Editor. Unfortunately I have to close the file before compiling again (as stated above from other users as well). I have changed the command lines:

"%bm.pdf"
"%bm.pdf"
\close "bm.pdf"

or

" %bm.pdf"
" %bm.pdf"
\close "bm.pdf"
(in the last case the file is not opened by the pdf viewer)

Nevertheless I have to close the file before compiling again. Any suggestions what I am doin wrong? Thank you very much in advance,
ONeill


Return to “General”

Who is online

Users browsing this forum: No registered users and 2 guests