From: Brian Bak [mailto:brianlvbak@...] Sent: November 12, 2009 11:19 To: winedt+list@... Subject: [WinEdt] Howto make yap show page where cursor is in winedt
Hi
Does anyone know if it is possible to make yap or any other viewer show the
page være der cursor is in winedt after a compilation?
Thank you for the answer. This was what i was looking for.
On Thu, Nov 12, 2009 at 5:22 PM, Salois, Martin <Martin.Salois@...> wrote:
Hello,
For Yap, look under accessories/DVI Search.
Martin
From: Brian Bak [mailto:brianlvbak@...] Sent: November 12, 2009 11:19 To:winedt+list@... Subject: [WinEdt] Howto make yap show page where cursor is in winedt
Hi
Does anyone know if it is possible to make yap or any other viewer show the
page være der cursor is in winedt after a compilation?
On Thu, Nov 12, 2009 at 5:35 PM, Brian Bak <brianlvbak@...> wrote:
Hi Martin
Thank you for the answer. This was what i was looking for.
On Thu, Nov 12, 2009 at 5:22 PM, Salois, Martin <Martin.Salois@...> wrote:
Hello,
For Yap, look under accessories/DVI Search.
Martin
From: Brian Bak [mailto:brianlvbak@...] Sent: November 12, 2009 11:19 To:winedt+list@... Subject: [WinEdt] Howto make yap show page where cursor is in winedt
Hi
Does anyone know if it is possible to make yap or any other viewer show the
page være der cursor is in winedt after a compilation?
Hello,
I recently installed Beamer with PDFlatex (Miktex) and when I compile
from winedit for the first time it creates a *.nav file and works fine. But
when I recompile the same .tex file it gives me error. The only way for me to
recompile is by deleting the *.nav file (the file with name same as the tex file
with "nav" extension-I think it is supposed to be used by python or pearl). I
am trying to find out if there is a way to tell winedit to delete this file
before compiling the tex file. Otherwise, every time I need go recompile, I have
to go to the folder and delete the .nav file.
I am using Windows XP.
Thanks for your help.
Keshab
CONFIDENTIALITY: This email is intended solely for the person(s) named. The
contents may be confidential and/or privileged. If you are not the intended
recipient, please delete it, notify us, and do not copy or use it, nor disclose
its contents. Thank you.
Towards A Sustainable Earth: Print Only When Necessary
When LaTeXing a file from within WinEdt 5.5 using MiKTeX 2.7, if there's
an error stop and I hit "e" to edit, the source .tex file opens in
TeXnicCenter (another, inferior, TeX front end) instead of my being
returned to the .tex file already open in WinEdt.
This happened after I installed TeXnicCenter on a system already having
WinEdt. (Not by choice: my students were using the free TeXnicCenter in
a course where they could not be expected to buy a WinEdt license.)
Where is the setting to fix that? I looked in WinEdt, in Yap, and in
MiKTeX settings.
Note that the Windows file type association IS correct: type tex is set
to open with WinEdt, not TeXnicCenter.
--
Murray Eisenberg murray@...
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305
> When LaTeXing a file from within WinEdt 5.5 using MiKTeX 2.7,
> if there's an error stop and I hit "e" to edit, the source .tex
> file opens in TeXnicCenter (another, inferior, TeX front end)
> instead of my being returned to the .tex file already open in
> WinEdt.
>
> This happened after I installed TeXnicCenter on a system
> already having WinEdt. (Not by choice: my students were using
> the free TeXnicCenter in a course where they could not be
> expected to buy a WinEdt license.)
>
> Where is the setting to fix that? I looked in WinEdt, in Yap,
> and in MiKTeX settings.
>
> Note that the Windows file type association IS correct: type
> tex is set to open with WinEdt, not TeXnicCenter.
In Yap's Menu execute View -> Options and click on Inverse DVI
Search. If WinEdt is not there then define a new editor and use
the following definition:
"C:\Program Files\WinEdt Team\WinEdt\winedt.exe"
"[Open(|%f|);SelPar(%l,8)]"
That should do it.
Best regards,
alex
> I recently installed Beamer with PDFlatex (Miktex) and when I
> compile from winedit for the first time it creates a *.nav file
> and works fine. But when I recompile the same .tex file it
> gives me error. The only way for me to recompile is by deleting
> the *.nav file (the file with name same as the tex file with
> "nav" extension-I think it is supposed to be used by python or
> pearl). I am trying to find out if there is a way to tell
> winedit to delete this file before compiling the tex file.
> Otherwise, every time I need go recompile, I have to go to the
> folder and delete the .nav file.
WinEdt can automatically delete this file (although something
else is not quite OK if this keeps on happening). In WinEdt's
Exec\MiKTeX folder you will find a macro file PDFLaTeX.edt.
There you'll see a section like:
// Delete the working output files...
IfFileExists("%b\_Err.log",!"DeleteFile('%b\_Err.log')");
IfFileExists("%b\_Out.log",!"DeleteFile('%b\_Out.log')");
IfFileExists("%b\_Run.log",!"DeleteFile('%b\_Run.log')");
IfFileExists("%P\%N.pdf",!"DeleteFile('%P\%N.pdf')");
IfFileExists("%P\%N.log",!"DeleteFile('%P\%N.log')");
It's easy to see what you should do. Add a new line:
IfFileExists("%P\%N.nav",!"DeleteFile('%P\%N.nav')");
That;s all.
Best regards,
alex
Alex,
Thanks for the advice. It works perfectly.
Best regards
Keshab
-----Original Message-----
From: WinEdt Team [mailto:support@...]
Sent: Saturday, November 14, 2009 2:01 AM
To: winedt+list@...
Subject: Re: [WinEdt] FW: problem with Beamer (latex) and .nav file
> I recently installed Beamer with PDFlatex (Miktex) and when I
> compile from winedit for the first time it creates a *.nav file
> and works fine. But when I recompile the same .tex file it
> gives me error. The only way for me to recompile is by deleting
> the *.nav file (the file with name same as the tex file with
> "nav" extension-I think it is supposed to be used by python or
> pearl). I am trying to find out if there is a way to tell
> winedit to delete this file before compiling the tex file.
> Otherwise, every time I need go recompile, I have to go to the
> folder and delete the .nav file.
WinEdt can automatically delete this file (although something
else is not quite OK if this keeps on happening). In WinEdt's
Exec\MiKTeX folder you will find a macro file PDFLaTeX.edt.
There you'll see a section like:
// Delete the working output files...
IfFileExists("%b\_Err.log",!"DeleteFile('%b\_Err.log')");
IfFileExists("%b\_Out.log",!"DeleteFile('%b\_Out.log')");
IfFileExists("%b\_Run.log",!"DeleteFile('%b\_Run.log')");
IfFileExists("%P\%N.pdf",!"DeleteFile('%P\%N.pdf')");
IfFileExists("%P\%N.log",!"DeleteFile('%P\%N.log')");
It's easy to see what you should do. Add a new line:
IfFileExists("%P\%N.nav",!"DeleteFile('%P\%N.nav')");
That;s all.
Best regards,
alex
CONFIDENTIALITY: This email is intended solely for the person(s) named. The
contents may be confidential and/or privileged. If you are not the intended
recipient, please delete it, notify us, and do not copy or use it, nor disclose
its contents. Thank you.
Towards A Sustainable Earth: Print Only When Necessary
am Freitag, 13. November 2009 um 01:28 schrieb Keshab Man Shrestha (Dr):
> Hello,
> I recently installed Beamer with PDFlatex (Miktex) and when
> I compile from winedit for the first time it creates
> a *.nav file and works fine. But when I recompile the same .tex
> file it gives me error. The only way for me to recompile is
> by deleting the *.nav file (the file with name same as the tex file
> with "nav" extension-I think it is supposed to be used
> by python or pearl). I am trying to find out if there is a way to
> tell winedit to delete this file before compiling the
> tex file.
That's the wrong way to solve the problem. beamer is creating the
nav-file not for fun. It needs it later to get the navigation-menu
right. So try to find out what is wrong with your code or with beamer
by making a small example that demonstrates the problem.
--
Mit freundlichen Grüßen
Ulrike Fischer
Hi
I have a text like this
\psfig{figure=fig14-1.eps,width=6.0 cm}
and i want to have it like this
\includegrapics[width=6.0 cm]{fig14-1}
I have try to make a macro where I Repalace "\psfig{figure=" with
"\includegrapics{
Then Replace ".eps," with "" and then Find "*\m" which will find the
"width=6.0 cm"
How can i copy the last Find and go back and put it in in the right position
Ola Ketil
> I have a text like this
> psfig{figure=fig14-1.eps,width=6.0 cm}
> and i want to have it like this
> includegrapics[width=6.0 cm]{fig14-1}
>
> I have try to make a macro where I Repalace "psfig{figure=" with
> "includegrapics{
> Then Replace ".eps," with "" and then Find "*m" which will find the
> "width=6.0 cm"
> How can i copy the last Find and go back and put it in in the
> right position
Use search & replace with regular expressions and then insert
\psfig{figure=(1*).eps,width=(2*)}
as the search string and
\includegrapics[width=2]{1}
as the replace string
Cheers, Phil
--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP
autenticato? GRATIS solo con Email.it: http://www.email.it/f
Sponsor:
Vinci subito fantastici premi, partecipando al gioco "alla faccia degli
amici" crea la faccia di chi vuoi tu e gioca!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=9867&d=20091120
I try it but I got
Regular expression "\psfig{figure=(1*).eps,width=(2*)}" not found
in current document (forward)
but the text look like this
"\begin{figure}[htbp]
\vspace{0.5cm}
\centerline{\psfig{figure=fig14-1.eps,width=6.0 cm}}
\caption{A drop of a liquid on a solid surface.}
\label{fig:drop}
\end{figure}"
Ola Ketil
Philip G. Ratcliffe skreiv:
I have a text like this
psfig{figure=fig14-1.eps,width=6.0 cm}
and i want to have it like this
includegrapics[width=6.0 cm]{fig14-1}
I have try to make a macro where I Repalace "psfig{figure=" with "includegrapics{
Then Replace ".eps," with "" and then Find "*m" which will find the "width=6.0 cm"
How can i copy the last Find and go back and put it in in the right position
Use search & replace with regular expressions and then insert
\psfig{figure=(1*).eps,width=(2*)}
as the search string and
\includegrapics[width=2]{1}
as the replace string
Cheers, Phil --
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP
autenticato? GRATIS solo con Email.it: http://www.email.it/f
Sponsor:
Vinci subito fantastici premi, partecipando al gioco "alla faccia degli
amici" crea la faccia di chi vuoi tu e gioca!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=9867&d=20091120
> I try it but I got
> Regular expression "psfig{figure=(1*).eps,width=(2*)}" not
> found in current document (forward)
Sorry, this is my e-mail provider - dunno why, but it apparently removes
unless it's escaped with another !!!
So, here goes again:
Use search & replace with regular expressions and then insert
\\psfig\{figure=\(\1*\).eps,width=\(\2*\)\}
as the search string and
\\includegrapics\[width=\2\]\{\1\}
as the replace string
--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP
autenticato? GRATIS solo con Email.it: http://www.email.it/f
Sponsor:
Vinci subito fantastici premi, partecipando al gioco "alla faccia degli
amici" crea la faccia di chi vuoi tu e gioca!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=9867&d=20091120
If I were you, I would rather write something like this at the
beginning of my document:
\def\getpsfig#1.eps,#2\\{\includegrapics[#2]{#1}}
\def\psfig#1{\getpsfig#1\\}
and wouldn’t bother with search/replace. (Don’t use
\newcommand: it sucks and doesn’t let you have delimited parameters!) Actually,
personally I always leave such things to the editors: if they don’t like the
styles/files that I’m using, it should be their problem.
Alex
From: Ola Ketil Siqveland
[mailto:ola.k.siqveland@...] Sent: Friday, November 20, 2009 1:40 PM To: winedt+list@... Subject: Re: [WinEdt] [BULK] RE: [WinEdt] Search, rapalce and move text
I try it but I got
Regular expression "\psfig{figure=(1*).eps,width=(2*)}" not found in
current document (forward)
but the text look like this
"\begin{figure}[htbp]
\vspace{0.5cm}
\centerline{\psfig{figure=fig14-1.eps,width=6.0 cm}}
\caption{A drop of a liquid on a solid surface.}
\label{fig:drop}
\end{figure}"
Ola Ketil
Philip G. Ratcliffe skreiv:
I have a text like this
psfig{figure=fig14-1.eps,width=6.0 cm}
and i want to have it like this
includegrapics[width=6.0 cm]{fig14-1}
I have try to make a macro where I Repalace "psfig{figure=" with
"includegrapics{
Then Replace ".eps," with "" and then Find "*m" which will find the
"width=6.0 cm"
How can i copy the last Find and go back and put it in in the
right position
Use search & replace with regular expressions and then insert
\psfig{figure=(1*).eps,width=(2*)}
as the search string and
\includegrapics[width=2]{1}
as the replace string
Cheers, Phil
--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP
I agree that the \def metacommand allows more possibilities. But LaTeX's \newcommand is a better way to avoid collisions with any possible packages. What I do is use both at once, e.g.,
\newcommand{foo}...
\def\foo...
Best wishes,
Nicolas
On Fri, Nov 20, 2009 at 12:21 PM, Alex Degtyarev <degt@...> wrote:
If I were you, I would rather write something like this at the
beginning of my document:
Â
\def\getpsfig#1.eps,#2\\{\includegrapics[#2]{#1}}
\def\psfig#1{\getpsfig#1\\}
Â
and wouldn’t bother with search/replace. (Don’t use
\newcommand: it sucks and doesn’t let you have delimited parameters!) Actually,
personally I always leave such things to the editors: if they don’t like the
styles/files that I’m using, it should be their problem.
Â
Alex
Â
From: Ola Ketil Siqveland
[mailto:ola.k.siqveland@...] Sent: Friday, November 20, 2009 1:40 PM To:winedt+list@... Subject: Re: [WinEdt] [BULK] RE: [WinEdt] Search, rapalce and move text
Â
I try it but I got
Regular expression "\psfig{figure=(1*).eps,width=(2*)}" not found in
current document (forward)
but the text look like this
"\begin{figure}[htbp]
  \vspace{0.5cm}
  \centerline{\psfig{figure=fig14-1.eps,width=6.0 cm}}
   \caption{A drop of a liquid on a solid surface.}
   \label{fig:drop}
\end{figure}"
Ola Ketil
Philip G. Ratcliffe skreiv:
I have a text like this
   psfig{figure=fig14-1.eps,width=6.0 cm}
and i want to have it like this
   includegrapics[width=6.0 cm]{fig14-1}
Â
I have try to make a macro where I Repalace "psfig{figure=" with
"includegrapics{
Then Replace ".eps," with "" and then Find "*m" which will find the
"width=6.0 cm"
How can i copy the last Find and go back and put it in in the
right position
  Â
Â
Use search & replace with regular expressions and then insert
   \psfig{figure=(1*).eps,width=(2*)}
as the search string and
   \includegrapics[width=2]{1}
as the replace string
Â
Cheers, Phil
 --
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP
> If I were you, I would rather write something like this at
> the beginning of my document:
>
> \\def\\getpsfig#1.eps,#2\\\\{\\ includegrapics[#2]{#1}}
> \\def\\psfig#1{\\getpsfig#1\\\\}
I suppose what you really meant was (hopefully I've properly doubled all the
\\'s)
\\def\\getpsfig figure=#1.eps,#2\\\\{\\includegraphics[#2]{#1}}
> and wouldn't bother with search/replace. (Don't use
Isn't this a rather good way to build up a lot of superfluous out-of-date
junk in your files?
> \newcommand: it sucks and doesn't let you have delimited
> parameters!)
Not everyone needs or even knows how to use delimited parameters.
This is rather reckless and pointless advice: it's downright wrong for a
novice, who would risk running into precisely the clashes \\newcommand is
set up to avoid and an expert just doesn't need it.
> Actually, personally I always leave such things
> to the editors: if they don't like the styles/files that I'm
> using, it should be their problem.
You apparently only have to deal with very kind-hearted editors ... luck
you!
Cheers, Phil
--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP
autenticato? GRATIS solo con Email.it http://www.email.it/f
Sponsor:
Nuovo concorso Nestle' YOUWIN: vinci fantastici premi!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid˜80&d -11
>
> Isn't this a rather good way to build up a lot of superfluous out-of-
> date
> junk in your files?
>
Hmm... Do you actually suggest to rewrite all my papers every time anyone
comes up with a new "package"? Or even to bother to learn all this
superfluous new stuff when old one (like amstex and epsf) is good enough?
Sounds like the microsoft way (upgrade no matter whether you need it or
not).
>
> Not everyone needs or even knows how to use delimited parameters.
However, the case we are facing is precisely one where one NEEDS delimited
parameters, as some smart "package" writer decided to change their order.
> > Isn't this a rather good way to build up a lot of
> superfluous out-of-
> > date junk in your files?
> >
>
> Hmm... Do you actually suggest to rewrite all my papers every
> time anyone
> comes up with a new "package"? Or even to bother to learn all this
> superfluous new stuff when old one (like amstex and epsf) is
> good enough?
> Sounds like the microsoft way (upgrade no matter whether you
> need it or
> not).
No, not at all. What is already written and done with can just as well stay
as it is.
However, the poster here is presumably at odds with a piece he's writing now
and has either copied over from previous work or quite simply his editors
are a little less accommodating than yours ;-)
So, it might just be a good time for him to do some pruning.
Cheers, Phil
--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP
autenticato? GRATIS solo con Email.it http://www.email.it/f
Sponsor:
Sei pronto per l'inverno? Scoprilo giocando al concorso Danone, ogni settimana
puoi vincere 1.000 Euro!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid˜75&d -11
For U-Jean's useful Backup macro at windedt.org...
Often I must open a .tex file in WinEdt for which there is yet no
backups done by the macro. (For example, I move the file from another
computer. Or I finished with the file a long time ago and deleted the
associated backup folders, but now I have to open it in WinEdt, perhaps
to copy parts to a new file, etc.)
Each time I do that, I get a pop-up windows "Windows cannot find '[file
name[]'. Make sure you typed the name correctly and then try again. To
search for a file, click the Start button, and then click Search."
And then it requires moving focus to that pop-up window and clicking the
OK button to dismiss it.
Is there some way to avoid that (for me, at least) annoying and
unnecessary behavior?
--
Murray Eisenberg murray@...
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305
I'm using Winedt 5.5 Build: 20071003 on my computer at
work. When I remote desktop into my computer at work from home I find
that Winedt freezes whenever I try to open a new file. The only way to
shut down the program after this is to go to the Task Manager and kill
Winedt. The problem is very specific and only occurs in the following
cases:
1) The problem only happens when I try to use the toolbar to do something (open a file, look at options, etc.) 2)
When I work with Winedt directly on my computer everything works fine,
so I don't think it's a problem with Winedt only, something about using
Winedt with remote desktop.
3) It only happens when I use the mstsc /span command to remote desktop
so that I can use my dual monitors at home. If I only use one monitor
to remote desktop Winedt works fine.
Any help would be great.
Thanks.
-- Santosh Anagol Assistant Professor, Business and Public Policy Department The Wharton School, University of Pennsylvania
Cell: 203-824-2354 Office: 215-746-5970 Fax: 215-898-7635 anagol@..., http://bpp.wharton.upenn.edu/anagol
Hello Winedt users,
On Nov. 2, 2009, I wrote:
> I have had a difficult time with reloading documents using
> PDF-XChange Viewer. It appeared that Acrobat CloseDoc.edt macro
> was no longer working. I replaced the files with those from
> www.winedt.org\temp and that did not work. Finally, I dealt with
> the only other thing that had changed in my installation,
> the new version of PDF-XChange Viewer.
>
> I went back to v. 2.0 build 42.5 from build 42.7, and now it
> works again like a charm. Anyone else had problems with the
> current build (42.7).
Completely forgetting about this problem from just a few weeks
ago, I just updated PDF-XChange Viewer again to version 2, Build
42.9. I am paying for my short memory, again, in that Acrobat
CloseDoc.edt bugs again.
I ask again, has anyone else had problems with the recent builds
of PDF-XChange Viewer closing and reloading when compiling? More
importantly, could someone provide assistance in fixing Acrobat
CloseDoc.edt so that it works again?
Many thanks in advance!
--
Best regards,
David
Hello,
BTW, the error message that I get is:
Cannot Open DDE Link to:
"C:\Program Files\Tracker Software\PDF Viewer\PDFCview.exe"
Service: acroview
Topic: control
DDEOpen('%$("AcroRead")',"acroview","control");
--
Best regards,
David
> Completely forgetting about this problem from just a few weeks
> ago, I just updated PDF-XChange Viewer again to version 2,
> Build 42.9. I am paying for my short memory, again, in that
> Acrobat CloseDoc.edt bugs again.
>
> I ask again, has anyone else had problems with the recent
> builds of PDF-XChange Viewer closing and reloading when
> compiling? More importantly, could someone provide assistance
> in fixing Acrobat CloseDoc.edt so that it works again?
Instead of SendMessage (which no longer works with v2) you must
replace it with:
// This works with version 2 of PDF-XChange (nice and clean!)
Run('%$("AcroRead") /close:discard "%P\%N.pdf"');
Manual in PDFXChange describes command line options available
in version 2 (/close is one of the new ones)...
Best regards,
alex
----- Original Message -----
From: "David Denton" <ddenton@...>
To: <winedt+list@...>
Sent: Tuesday, November 24, 2009 6:41 PM
Subject: [WinEdt] PDF-XChange Viewer CloseDoc problems (bis)
> Hello,
>
> BTW, the error message that I get is:
>
> Cannot Open DDE Link to:
> "C:\Program Files\Tracker Software\PDF Viewer\PDFCview.exe"
> Service: acroview
> Topic: control
>
> DDEOpen('%$("AcroRead")',"acroview","control");
>
> --
> Best regards,
> David
>
>
Re: I am using WinEdt Build: 20071003 (v. 5.5) and running
it under Windows Visa
I am opening a text file in a directory on a server and when I go save as it
always take me back to c drive which I don't want. I want it to take me to
the directory where I opened the file. If I do the same operation on my c drive
it takes me to the directory where I opened the file. Can someone help me
please?
Thanks
Jo Stringer
BSES Limited Disclaimer
This email and any files transmitted with it are confidential and intended solely for the person or entity to whom they are addressed.
If you are not the intended recipient of this email, you should not read, copy or otherwise use it, or disclose its contents to anyone else.If you received this email in error please notify BSES Limited immediately by return email, destroy all copies of the email, any delete if from your system.
Recipients should rely on their own systems for detecting computer viruses or other material that may corrupt files or systems.
Hello alex,
Tuesday, November 24, 2009, 9:18:14 PM, you wrote:
> Instead of SendMessage (which no longer works with v2) you must
> replace it with:
> // This works with version 2 of PDF-XChange (nice and clean!)
> Run('%$("AcroRead") /close:discard "%P\%N.pdf"');
> Manual in PDFXChange describes command line options available
> in version 2 (/close is one of the new ones)...
Thanks for your response. I am afraid that a little knowledge is
not necessarily a good thing. I hope you can appreciate that none
of this is clear to a non programmer. Any further help (like the
clean code of the whole macro, if possible) would be appreciated.
Thanks!
I tried replacing the SendMessage, but I now get other errors:
";" Expected
("AcroRead") ^^^ /close:discard "%P\N.pdf"
and then:
Error parsing a string parameter...
Run("%$("AcroRead") /close:discard "%P\N.pdf" ^^^);
I am actually not sure what I am to replace. All occurrences of
SendMessage?
Does all of:
SendMessage("%N - PDF-XChange Viewer",$0111,$E152);
Get replaced by:
Run('%$("AcroRead") /close:discard "%P\%N.pdf"');
What about:
SendMessage("%N - PDF-XChange Viewer",$0111,$E151);
And what about:
SendMessage("%$('Acro-Title');", $0000, $0000);
--
Best regards,
David
alex and WinEdt users,
As per my last message, I cannot get:
Run('%$("AcroRead") /close:discard "%P\%N.pdf"');
to work. However, I did note that there has been a change in how
Tracker installs the viewer. It is now installed as:
c:\Program Files\Tracker Software\PDF Viewer\PDFXCview.exe
So I made some changes in Acrobat CloseDoc.edt as follows:
// PDF-XChange?
FindInString(`%$('AcroRead');`,'PDFXCview',1,2,1000,1);
IfOK(!"Relax;",!"JMP('not_pdf-xchange')");
LetRegNum(1,0);
:next_pdf-xchange::
LetRegNum(1,%!1+1);>
IfNum(%!1,99,'>',!"JMP('closed_pdf-xchange')");>
SendMessage("%N - PDF Viewer",$0111,$E152);
IfOK(!"JMP('closed_pdf-xchange')",!"Relax;");
SendMessage("- PDF Viewer",$0111,$E151);
JMP('next_pdf-xchange');
:closed_pdf-xchange::
PopTagsandRegisters;
Exit;
:not_pdf-xchange::
This now works, but gives me a LaTeX error:
"I can't write on file `----.pdf'
Please type another file name for output:
I press Enter and it is okay and the file reloads.
Again, I would really appreciate help in cleaning this up, so I
do not have to muddle around, not knowing what I am doing.
Thanks!
--
Best regards,
David
> Re: I am using WinEdt Build: 20071003 (v. 5.5) and running it
> under Windows Visa
>
> I am opening a text file in a directory on a server and when I
> go save as it always take me back to c drive which I don't
> want. I want it to take me to the directory where I opened the
> file. If I do the same operation on my c drive it takes me to
> the directory where I opened the file. Can someone help me
> please?
I cannot confirm this on my network. With default settings the
things work as documented in the Help (Keyword: Startup
Folders). I did not see any do difference between local and
network (UNC) drives.
This functionality can be customized (depending on what you
want). For example, in the menu setup you may want to set %p as
a Startup Folder for this command...
Best regards,
alex
> So I made some changes in Acrobat CloseDoc.edt as follows:
>
> // PDF-XChange?
> FindInString(`%$('AcroRead');`,'PDFXCview',1,2,1000,1);
> IfOK(!"Relax;",!"JMP('not_pdf-xchange')");
> LetRegNum(1,0);
> :next_pdf-xchange::
> LetRegNum(1,%!1+1);>
> IfNum(%!1,99,'>',!"JMP('closed_pdf-xchange')");>
> SendMessage("%N - PDF Viewer",$0111,$E152);
> IfOK(!"JMP('closed_pdf-xchange')",!"Relax;");
> SendMessage("- PDF Viewer",$0111,$E151);
> JMP('next_pdf-xchange');
> :closed_pdf-xchange::
> PopTagsandRegisters;
> Exit;
> :not_pdf-xchange::
>
> This now works, but gives me a LaTeX error:
>
> "I can't write on file `----.pdf' Please type another file name
> for output:
>
> I press Enter and it is okay and the file reloads.
I doubt that the above does anything useful in V.2 of
PDFXChange. As per my previous messages SendMessage no longer
works. The following works for me:
// PDF-XChange?
FindInString(`%$('AcroRead');`,'PDFXCview',1,2,1000,1);
IfOK(!"Relax;",!"JMP('not_pdf-xchange')");
Run('%$("AcroRead"); /close:discard "%P\%N.pdf"');
PopTagsandRegisters;
Exit;
:not_pdf-xchange::
Note that in my previous mail I forgot semicolon after the
variable %$("AcroRead"). That's what WinEdt was trying to tell
you:
> I tried replacing the SendMessage, but I now get other errors:
>
> ";" Expected
> ("AcroRead") ^^^ /close:discard "%P\N.pdf"
Best regards,
alex
Hello again,
Wednesday, November 25, 2009, 5:34:03 PM, you wrote:
> I doubt that the above does anything useful in V.2 of
> PDFXChange.
Quite right.
> As per my previous messages SendMessage no longer
> works. The following works for me:
> // PDF-XChange?
> FindInString(`%$('AcroRead');`,'PDFXCview',1,2,1000,1);
> IfOK(!"Relax;",!"JMP('not_pdf-xchange')");
> Run('%$("AcroRead"); /close:discard "%P\%N.pdf"');
> PopTagsandRegisters;
> Exit;
> :not_pdf-xchange::
This does work for me. Thanks for your help, alex.
> Note that in my previous mail I forgot semicolon after the
> variable %$("AcroRead"). That's what WinEdt was trying to tell
> you:
--
Best regards,
David