Dear LyX developers,

In an effort to convince a 55 souls strong medical writing department from 
adopting LyX and LaTeX in favour of M$ Word, I recently started using LyX more 
extensively than TeXnikCenter.

There is however one feature of TeXnikCenter that I am missing in LyX. Neither 
have I seen it on the feature list of LyX 2.0 which is awaited here with much 
anticipation. (Any approximate release date yet?)

TeXnikCenter has the ability to open a PDF at the last cursor position when 
hitting the view PDF (pdflatex) button. It also does that with DVI output in 
Yast if I am not mistaken. TeXnikCenter achieves this by sending extra command 
line options. Below is shown how this is achieved.

Using Acrobat reader
TeXnicCenter has the ability to integrate nicely with Adobe Acrobat, such that 
recently compiled PDF files are opened automatically, and existing open PDF 
files are closed automatically upon recompilation. This is done using DDE calls 
to Acrobat.
You can insert the following lines of command in TeXnicCenter to integrate it 
with Acrobat. This particularly enables you to compile your files in pdf 
without having to close the previous document first (necessary in the default 
option). Integration is setup in the Build | Define Output Profiles menu 
option. Select a profile "LaTeX=>PDF" or "LaTeX=>PS=>PDF", and click on the 
viewer window :

view project's output:  [v] DDE command.
command: [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]
server: acroview
topic: control

forward search: [v] DDE command.
command: [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]
server: acroview
topic: control

Close document before running (La)TeX: [v] DDE command
command: [DocClose("%bm.pdf")]
server: acroview
topic: control

Alternatively, the following command can be used for "forward search", which 
opens the pdf-document on page +1:
forward search: [v] DDE command.
command: [DocOpen("%bm.pdf")][DocGoTo("%bm.pdf",)]
server: acroview
topic: control

If you want Acrobat to reopen the file after a recompilation at the same 
location as it was just before, set:
view project's output:  [v] DDE command.
command: [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")][MenuitemExecute("GoBack")]
server: acroview
topic: control

forward search: [v] DDE command.
command: [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")][MenuitemExecute("GoBack")]
server: acroview
topic: control

Close document before running (La)TeX: [v] DDE command
command: [DocClose("%bm.pdf")]
server: acroview
topic: control

It would be wonderful and convincingly reassuring to have this feature also in 
Lyx.
Thanks in advance!

With kind regards,

Serge
-----------------------------------------------------------------
Serge Stroobandt, Expert Health Economics
[email protected]<mailto:[email protected]>  +32 (0)2 
287.33.19

KCE - Federaal Kenniscentrum voor de Gezondheidszorg - Centre fédéral 
d'expertise des soins de santé - Belgian Health Care Knowledge Centre
Administratief Centrum Kruidtuin, Door Building (10e verdieping)
Kruidtuinlaan 55
1000 Brussel
TEL +32 (0)2 287 33 88 - FAX +32 (0)2 287 33 85
http://kce.fgov.be<http://kce.fgov.be/>


Reply via email to