From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83209 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: Overriding pdfview Date: Wed, 26 Jun 2013 18:11:48 +0200 Message-ID: References: <51CAF274.9050503@meahan.net> <51CB0614.5030208@meahan.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0174028671==" X-Trace: ger.gmane.org 1372263128 1063 80.91.229.3 (26 Jun 2013 16:12:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Jun 2013 16:12:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 26 18:12:10 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UrsKF-00073N-PB for gctc-ntg-context-518@m.gmane.org; Wed, 26 Jun 2013 18:12:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6EEF0101F1; Wed, 26 Jun 2013 18:12:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WEQGqlArTTYv; Wed, 26 Jun 2013 18:12:03 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 78F41101E5; Wed, 26 Jun 2013 18:12:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AA6FE101E5 for ; Wed, 26 Jun 2013 18:12:01 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UtwrfU+Re1Gz for ; Wed, 26 Jun 2013 18:12:00 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 65CE5101E0 for ; Wed, 26 Jun 2013 18:11:50 +0200 (CEST) Original-Received: from mail-la0-x236.google.com (mail-la0-x236.google.com [IPv6:2a00:1450:4010:c03::236]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r5QGBm8k020439 for ; Wed, 26 Jun 2013 18:11:49 +0200 Original-Received: by mail-la0-f54.google.com with SMTP id ec20so14145208lab.27 for ; Wed, 26 Jun 2013 09:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=n58wo+X9uvvOqxukQmMQr6UWcKaIjavk0FdVfy8zPow=; b=OEXHaFKoVCOhUwfysH+vDtBLk0ILdcJMRkbOLLjbbOMBkbxzDir9H+vCeDlah0q3Qx IKXO5h0yShAwH8Wp6fKtZpbVsoFcq3quUdTw5a2VfveRdrC1kPfKI7MegsDQ8o4JoWq+ Rx9RKPpD5CWDlpsQUOQx9zTfCkTbKU4R1t6reQRvNDkI9TG+pqJeE21z63yujoYtsmiK 43bZwuUsjRYBpk6ET41r9HsGNy37j/0msne4R3u2yzV7qY/42kJJki+uiob6WXZLWAjX +25SM8Lt3eBYuAxUg5Y6VYZU1Hi83EmfPSRqBaf4UZVBlsePS864aJsqX8ZTG+bHMnUx GS1g== X-Received: by 10.152.42.171 with SMTP id p11mr2163545lal.79.1372263108527; Wed, 26 Jun 2013 09:11:48 -0700 (PDT) Original-Received: by 10.114.160.83 with HTTP; Wed, 26 Jun 2013 09:11:48 -0700 (PDT) In-Reply-To: <51CB0614.5030208@meahan.net> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4010:c03::236; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07JR4bMvA - 7b6e3352ef2c - 20130626 X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:83209 Archived-At: --===============0174028671== Content-Type: multipart/alternative; boundary=001a11c356561f497104e010e7e0 --001a11c356561f497104e010e7e0 Content-Type: text/plain; charset=UTF-8 On Wed, Jun 26, 2013 at 5:17 PM, Bill Meahan wrote: > On 6/26/2013 10:20 AM, luigi scarso wrote: > > > > > On Wed, Jun 26, 2013 at 3:53 PM, Bill Meahan wrote: > >> >> How does one override the default pdf viewer for MKIV Standalone on >> Windows 7-64 so --autopdf starts Acrobat Reader instead of "sumatrapdf.exe"? >> >> I don't have "sumatra" and do not wish to install it just to satisfy this >> one application. WTH is it anyway? (I know what it is, it's a rhetorical >> question). Making some obscure pdf viewer the default with no clear way to >> change it is not a good idea. For Windows, the vast majority of people have >> Acrobat Reader which is very often preinstalled. For Linux, it's less clear >> what the default should be but {xpdf |evince|acroread} are quite common. >> Can't speak to OSX as I've never used it but I'd bet a coffee Acrobat >> Reader is (or can be) there, too. >> >> I have searched through the source and tried editing l-pdf.lua but that >> doesn't seem to fix the problem. I shouldn't have to edit system source in >> any event. >> >> Mark me frustrated. >> >> I don't see l-pdf.lua in my standalone . > > TYPO: It's l-pdfview.lua sometimes my memory.... > > From my standalone (updated yesterday) > > ..[snip].. > if os.type == "windows" then > > opencalls = { > ['default'] = "pdfopen --rxi --file", > ['acrobat'] = "pdfopen --rxi --file", > ['fullacrobat'] = "pdfopen --axi --file", > ['okular'] = 'start "test" > "c:/data/system/kde/bin/okular.exe" --unique', -- todo! > > ['sumatra'] = 'start "test" > "c:/data/system/sumatrapdf/sumatrapdf.exe" -reuse-instance', > ['okular'] = 'start "test" "okular.exe" --unique', > > ['sumatra'] = 'start "test" "sumatrapdf.exe" -reuse-instance > -bg-color 0xCCCCCC', > } > closecalls= { > ['default'] = "pdfclose --file", > ['acrobat'] = "pdfclose --file", > ['okular'] = false, > ['sumatra'] = false, > } > allcalls = { > ['default'] = "pdfclose --all", > ['acrobat'] = "pdfclose --all", > ['okular'] = false, > ['sumatra'] = false, > } > > pdfview.method = "acrobat" -- no longer useful due to green pop up > line and clasing reader/full > pdfview.method = "sumatra" <=========================== > > runner = function(cmd) > os.execute(cmd) -- .. " > /null" > end > > else > ..[snip].. > > Although I first discovered this when trying to use SciTE, it does the > same thing if invoked from the command line. The pdf viewer does not appear > in any of the SciTE *.properties files. > maybe context --autopdf=acrobat context --autopdf=fullacrobat -- luigi --001a11c356561f497104e010e7e0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Wed, Jun 26, 2013 at 5:17 PM, Bill Meahan <= subscribed= _lists@meahan.net> wrote:
=20 =20 =20
On 6/26/2013 10:20 AM, luigi scarso wrote:



On Wed, Jun 26, 2013 at 3:53 PM, Bill Meahan <subscribed_lists@meahan.net> wrote:

How does one override the default pdf viewer for MKIV Standalone on Windows 7-64 so --autopdf starts Acrobat Reader instead of "sumatrapdf.exe"?

I don't have "sumatra" and do not wish to insta= ll it just to satisfy this one application. WTH is it anyway? (I know what it is, it's a rhetorical question). Making some obscure pdf viewer the default with no clear way to change it is not a good idea. For Windows, the vast majority of people have Acrobat Reader which is very often preinstalled. For Linux, it's less clear what the default should be but {xpdf |evince|acroread} are quite common. Can't speak to OSX as I've never used it but I'd = bet a coffee Acrobat Reader is (or can be) there, too.

I have searched through the source and tried editing l-pdf.lua but that doesn't seem to fix the problem. I shouldn't have to edit system source in any event.

Mark me frustrated.

I don't see l-pdf.lua in my standalone .

TYPO: It's l-pdfview.lua sometimes my memory....

From my standalone (updated yesterday)

..[snip]..
if os.type =3D=3D "windows" then

=C2=A0=C2=A0=C2=A0 opencalls =3D {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ['default']=C2=A0=C2= =A0=C2=A0=C2=A0 =3D "pdfopen --rxi --file",
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ['acrobat']=C2=A0=C2= =A0=C2=A0=C2=A0 =3D "pdfopen --rxi --file",
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ['fullacrobat'] =3D = "pdfopen --axi --file",
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ['okular']=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 =3D 'start "test" "c:/data/system/kde/bin/okular.exe" --unique', -- todo!
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ['sumatra']=C2=A0=C2= =A0=C2=A0=C2=A0 =3D 'start "test" "c:/data/system/sumatrapdf/sumatrapdf.exe" -reuse-instance= 9;,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ['okular']=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 =3D 'start "test" "okular.exe"= ; --unique',

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ['sumatra']=C2=A0=C2= =A0=C2=A0=C2=A0 =3D 'start "test" "sumatrapdf.exe" -reuse-instance -bg-color 0xCCCCCC',
=C2=A0=C2=A0=C2=A0 }
=C2=A0=C2=A0=C2=A0 closecalls=3D {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ['default'] =3D &quo= t;pdfclose --file",
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ['acrobat'] =3D &quo= t;pdfclose --file",
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ['okular']=C2=A0 =3D= false,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ['sumatra'] =3D fals= e,
=C2=A0=C2=A0=C2=A0 }
=C2=A0=C2=A0=C2=A0 allcalls =3D {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ['default'] =3D &quo= t;pdfclose --all",
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ['acrobat'] =3D &quo= t;pdfclose --all",
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ['okular']=C2=A0 =3D= false,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ['sumatra'] =3D fals= e,
=C2=A0=C2=A0=C2=A0 }

=C2=A0=C2=A0=C2=A0 pdfview.method =3D "acrobat" -- no longer = useful due to green pop up line and clasing reader/full
=C2=A0=C2=A0=C2=A0 pdfview.method =3D "sumatra"=C2=A0=C2=A0 &= lt;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D

=C2=A0=C2=A0=C2=A0 runner =3D function(cmd)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 os.execute(cmd) -- .. "= > /null"
=C2=A0=C2=A0=C2=A0 end

else
=C2=A0..[snip]..

Although I first discovered this when trying to use SciTE, it does the same thing if invoked from the command line. The pdf viewer does not appear in any of the SciTE *.properties files.

maybe
context --autopdf=3Dacrobat <yourfile.tex>
context --autop= df=3Dfullacrobat <yourfile.tex>


-- luigi
--001a11c356561f497104e010e7e0-- --===============0174028671== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0174028671==--