ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Christopher G D Tipper" <ctipper@hol.gr>
Cc: "ConTeXT Mailing List" <ntg-context@ntg.nl>
Subject: Re: WinEdt
Date: Fri, 28 Jul 2000 02:16:13 +0300	[thread overview]
Message-ID: <005401bff820$c34b5800$e17561c3@chris> (raw)
In-Reply-To: <3.0.5.32.20000727151638.00947490@mail.northcoast.com>

[-- Attachment #1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #2: Context.edt --]
[-- Type: application/octet-stream, Size: 1766 bytes --]

// This Macro simulates File| Close Command in Acrobat Reader:
    // Avoid the error message generated by pdftex because
    // Acrobat Reader locks the ".pdf" file for writing...

// Close All Documents in Acrobat Reader using DDE

 SendMessage("Acrobat Reader - ", $0000, $0000); // Dummy Message
// IfOK(|>
//        DDEOpen("AcroRd32.exe","acroview","control");>
//      DDEExe("[DocClose(""%P\%N.pdf"")]"); // Doesn't work but...CloseAllDocs does!>
//        DDEExe("[CloseAllDocs()]");>
//        DDEClose;>
//      |);

//  // Hacking...
//  // Acrobat Reader's File| Close Command ID
     SendMessage("Acrobat Reader - [%N.pdf]", $0111, 6002);
// // The first document in AcroRd32 is now Closed:
// // proceed with the compilation and then
// // optionally reopen the pdf document in AcroRd32
// //   remove the comments in WaitForFocus and Run
// //   if you want AcroRd32 to open the document

 ChDir("%P");
 Run("%~B\Bin\context.bat ""%N%T""");

 // WaitForFocus(999); //Give it a fair Chance to Start
 // Run("%$('AcroRead'); ""%P\%N.pdf""");
 //  SendMessage("Acrobat Reader - ", $0000, $0000); // Dummy Message
 //  IfOK(|>
 //         DDEOpen("AcroRd32.exe","acroview","control");>
 //         DDEExe("[DocOpen(""%P\%N.pdf"")]");
 //         DDEClose;>
 //       |);

End;

---------------------------------------------------------------------

  This macro comes with no warranty: it may or may not work with
  your version of Acrobat Reader. You'll have to fix any problems
  by yourself! Happy hacking...

Note that the origin of this problem has nothing to do with
WinEdt: it is Acrobat Reader that locks the file not WinEdt!!!

---------------------------------------------------------------------

[-- Attachment #3: Context-bat --]
[-- Type: application/octet-stream, Size: 107 bytes --]

@ECHO OFF
C:\Perl\Bin\perl.exe C:\texmf\context\perltk\texexec.pl --pdf --color %1 %2 %3 %4 %5 %6 %7 %8 %9

  reply	other threads:[~2000-07-27 23:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-27 22:16 WinEdt David Arnold
2000-07-27 23:16 ` Christopher G D Tipper [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-09-07 18:04 WinEdt David Arnold

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='005401bff820$c34b5800$e17561c3@chris' \
    --to=ctipper@hol.gr \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).