[LyX/master] Example script for looking up the citation pdfs.

Scott Kostyshak skostysh at lyx.org
Mon Aug 24 14:39:30 UTC 2020


On Mon, Aug 24, 2020 at 11:13:56AM +0200, Jürgen Spitzmüller wrote:
> Am Freitag, den 21.08.2020, 09:56 +0200 schrieb Pavel Sanda:
> > I am not entirely against pythonic solution, but I think at this
> > stage it's really for win users to step up. I can make the linux part
> > working if they come up with a solution.
> 
> Humble attempt attached. Works for me (on Linux) and is surprisingly
> fast (though arguably a bit slower than locate).
> 
> Some advantages over the bash script apart from portability:
> 
> * No hardcoded viewer. This checks for the same set of viewers than
> configure.py and takes the first match. Also, there are options to
> specify a custom pdf/ps viewer (-v and -w)

Nice, thanks for working on the Python script. Regarding the PDF/PS
viewers, another possibility would to exploit that LyX knows the
preferred PDF and PS viewers. Either LyX could pass the viewer paths as
arguments to the script or the script could just return the path to the
PDF/PS file and LyX could open it. I have no idea if either of those
would be preferred, but I just mention it.

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200824/202b30b1/attachment.asc>


More information about the lyx-devel mailing list