GeneralConfiguring TeXnicCenter with another pdf-viewer than Adobe

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

Configuring TeXnicCenter with another pdf-viewer than Adobe

Post by Elkiaer »

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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

Configuring TeXnicCenter with another pdf-viewer than Adobe

Post by gentlesea »

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:

Code: Select all

"C:\Program Files\Tracker Software\PDF-XChange Viewer\pdf-viewer\closeOpenPDFXCview.bat"
"%bm.pdf"
"%bm.pdf"
<empty>
Credits go to: http://flominator.ramselehof.de/index.p ... assen.html


Greetings
Attachments
closeOpenPDFXCview.zip
(278 Bytes) Downloaded 1110 times
Section31
Posts: 3
Joined: Fri Sep 12, 2008 7:16 pm

Re: Configuring TeXnicCenter with another pdf-viewer than Adobe

Post by Section31 »

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 45323 times
Elkiaer
Posts: 5
Joined: Tue Mar 18, 2008 3:16 pm

Re: Configuring TeXnicCenter with another pdf-viewer than Adobe

Post by Elkiaer »

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

Configuring TeXnicCenter with another pdf-viewer than Adobe

Post by Section31 »

Hi,

set the %bm.pdf in ""

Code: Select all

"%bm.pdf"
and

Code: Select all

/close "%bm.pdf"
This should work if there are spaces in the path.
Elkiaer
Posts: 5
Joined: Tue Mar 18, 2008 3:16 pm

Re: Configuring TeXnicCenter with another pdf-viewer than Adobe

Post by Elkiaer »

:-( 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

Re: Configuring TeXnicCenter with another pdf-viewer than Adobe

Post by latex82 »

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

Re: Configuring TeXnicCenter with another pdf-viewer than Adobe

Post by Elkiaer »

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

Re: Configuring TeXnicCenter with another pdf-viewer than Adobe

Post by werwohl »

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

Re: Configuring TeXnicCenter with another pdf-viewer than Ad

Post by ONeill »

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
Post Reply