From: Jaroslav Hajtmar <hajtmar@gyza.cz>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: ConTeXt mkiv and --autopdf option
Date: Wed, 22 Sep 2010 12:26:00 +0200 [thread overview]
Message-ID: <4C99D9B8.1050600@gyza.cz> (raw)
In-Reply-To: <4C99CDB3.6070009@wxs.nl>
Thanx Hans,
I have ConTeXt in TL2010 ...
Settings are made in MTX-context.lua or l-pdfview.lua?
It is necessary to refresh the settings by luatools --generate or
something like?
Jaroslav
Settings in l-pdfview.lua is (only part):
pdfview = pdfview or { }
local opencalls = {
['default'] = "pdfopen --file", -- "pdfopen --back --file"
['xpdf'] = "xpdfopen",
}
local closecalls= {
['default'] = "pdfclose --file",
['xpdf'] = nil,
}
local allcalls = {
['default'] = "pdfclose --all",
['xpdf'] = nil,
}
if os.type == "windows" then
opencalls['okular'] = 'start "test" "c:/program
files/kde/bin/okular.exe" --unique' -- todo: get focus
else
opencalls['okular'] = 'okular --unique'
end
pdfview.METHOD = "MTX_PDFVIEW_METHOD"
pdfview.method = getenv(pdfview.METHOD) or 'default'
pdfview.method = (opencalls[pdfview.method] and pdfview.method) or 'default'
function pdfview.methods()
return table.concat(table.sortedkeys(opencalls), " ")
end
Dne 22.9.2010 11:34, Hans Hagen napsal(a):
> On 22-9-2010 11:26, Jaroslav Hajtmar wrote:
>> Hello all,
>> Is it possible to open a PDF file (after compilation of ConTeXt) in
>> other PDF viewer which is not the default setting?
>> I mean change the default choice:
>>
>> context --autopdf file.tex
>>
>> to another, for example:
>>
>> context --viewer=PDFViewer file.tex
>>
>>
>> I would like to retain the default browser settings, but I would like
>> after ConTeXt compilation opened the files with something else.
>
> the log mentions:
>
> MTXrun | pdfview methods: default okular xpdf, current method:
> default, MTX_PDFVIEW_METHOD=<unset>
>
> so you can set the method
>
> i could extend --autopdf to accept a method
>
> Hans
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
> | www.pragma-pod.nl
> -----------------------------------------------------------------
>
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2010-09-22 10:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-22 9:26 Jaroslav Hajtmar
2010-09-22 9:34 ` Hans Hagen
2010-09-22 10:26 ` Jaroslav Hajtmar [this message]
2010-09-22 10:37 ` Hans Hagen
2010-09-22 10:40 ` Jaroslav Hajtmar
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=4C99D9B8.1050600@gyza.cz \
--to=hajtmar@gyza.cz \
--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).