Tuesday, September 28, 2010

Texnic Center:- Latex -> Ps -> Pdf

To get TeXnicCenter to create pdf documents via ps files (required for psfrag, pstricks, eps graphics), you need to edit the profiles. From the main toolbar select "Build->Define Output Profiles...". Now select the profile "LaTex => PS", and press "copy", at the dialog change the name to "LaTex => PS => PDF".

Select the newly created profile, and click the tab "PostProcessor". Press the "new" button (a dashed square) to create a new postprocessor and call it ps2pdf. For the executable option, press the search box to the right and find the executable named ps2pdf on your system. You should find it in the directory
"C:\Program Files\MiKTeX 2.8\miktex\bin\ps2pdf"
or somewhere like that (depending on where program files are stored).

For the arguments box, enter
"%bm.ps"
including the quotes (very important).

Now select the "Viewer" tab. Under "Path of Executable" you can enter the path to adobe acrobat reader, if it is installed on your system and you can find it. On mine it is
"C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32"

For the arguments box, enter
"%bm.pdf"
including the quotes (very important).


Now select the profile from the main toolbar, build from "Build->Current File->build", and view the file from "Build->View Output"


13 comments:

  1. That worked like a charm. Thank you

    ReplyDelete
  2. thank you, a lot!

    Just a note, abou one of the steps that wasn't really clear for me: the second time you add something in the 'arguments box', it is the same box as the first time you add it, i.e., you have to return to the tab "PostProcessor" to fill that box.

    But wonderful, you saved my life:)

    ReplyDelete
  3. Thanks very much. This really helped a lot! A wee note that things have changed for Acrobat Reader 10, so the viewer commands have to be changed. There's more on what to do at the following website:

    http://www.agmonim.com/2010/12/texniccenter-and-adobe-reader-10-x/

    ReplyDelete
  4. Thanks so much! The instructions were very easy to follow!

    ReplyDelete
  5. Thanks a lot, for such useful information. I think "%bm.pdf" is to be added in Command box on the viewer tab.

    ReplyDelete
  6. Where is the argument box in the viewer tab???

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. I followed the tutorial, but when I generate the preview the adobe reader 11 opens with the following error message "Theres was an error opening this document. This file can not be found".

    Any suggestions to solve this?

    ReplyDelete
  9. As "Akanksha" said, try changing the command line argument in the viewer tab from "%bm.ps" to "%bm.pdf"

    ReplyDelete
  10. There are big data database vendors that require different technology to access. but this is not as tough as it seems.

    ReplyDelete