Menu

#650 automatic closing of the current document before compiling

None
closed
nobody
5*
2014-02-17
2014-02-17
Anonymous
No

Hi! I'd love to have the simple option to automatically close the current pdf document (opened in an external viewer --> adobe) before compiling. All that in a single button. Hence the compile & view button should be able to:
1. close the current document/external viewer
2. compile --> pdflatex
3. open the new document
all in one button.

There seem to be possibillities for that (manual 4.9) but they are almost not explained and after two hours of trying also not working at all.
Hence my request: Please add the option of automatic closing befor compiling or explain how to implement it in the manual
Thank you very much!!!!!!!

Discussion

  • Tim Hoffmann

    Tim Hoffmann - 2014-02-17

    First, it seems that Adobe has changed it's DDE API and the service now contains the version number. So for Adobe Reader 11, use acroviewR11 instead of acroview for the service name.

    To get your desired functionality:
    1. Create a user command for closing Adobe Reader:
    name: close-adobe:Close Reader command: dde:///acroviewR11/control/[DocOpen("?am.pdf")][FileOpen("?am.pdf")][DocClose("?am.pdf")]

    1. Insert the command at the proper position. The PDF Chain would be a reasonable place:
      txs:///close-adobe | txs:///pdflatex | txs:///view-pdf
     

    Last edit: Tim Hoffmann 2014-02-17
  • Tim Hoffmann

    Tim Hoffmann - 2014-02-17

    Documentation updated (hg 4277 (e8a24cb18587)).

    Btw. is there any special reason that you don't want to use the internal viewer? It has much better syncing between source and PDF than external viewers.

     

    Last edit: Tim Hoffmann 2014-02-17
  • Tim Hoffmann

    Tim Hoffmann - 2014-02-17
    • status: open --> closed
    • Group: -->
     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.