From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112928 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: jbf via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Getting Textadept to open pdf? Date: Mon, 27 Sep 2021 13:29:27 +1000 Message-ID: <54f726ca-05e3-83fa-12fd-161f9b64e0b1@gmail.com> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6156509196962652291==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15801"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 Cc: jbf , mailing list for ConTeXt users To: "Jairo A. del Rio" Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 27 05:30:05 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mUhLB-0003y7-53 for gctc-ntg-context-518@m.gmane-mx.org; Mon, 27 Sep 2021 05:30:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C2003287A77; Mon, 27 Sep 2021 05:29:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q_2nxAE-7aDN; Mon, 27 Sep 2021 05:29:36 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AE109287A6C; Mon, 27 Sep 2021 05:29:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8CACF287A5C for ; Mon, 27 Sep 2021 05:29:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KUhuxJo98_ci for ; Mon, 27 Sep 2021 05:29:33 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.215.177; helo=mail-pg1-f177.google.com; envelope-from=roma83537@gmail.com; receiver= Original-Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id D501B2879CB for ; Mon, 27 Sep 2021 05:29:32 +0200 (CEST) Original-Received: by mail-pg1-f177.google.com with SMTP id f129so16499347pgc.1 for ; Sun, 26 Sep 2021 20:29:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=FdS6coEiR06VNaTWyd2kHwcT2wZlpJ5HPQrmF2kff6U=; b=RfU4LMbu3T9q1FeOKxSXz6fAKYKrs/CRmzX9u9gbGzcb9CMVynb5kV4eoDZwX1ui4b XnPlIZHscS/TMhHaPzDNMhXXS8bbNz+wVNPQgZU0gfOhG15s1XEZKnQrH0VIHmGqBEvs e5jJSKhfwdBV/DTUeQmCuuNwhRay4eHfvg4FljoqngMfqQNe86mFt3H15B6GyV+7j5bI x7XvL6L6/RNmrWoL91c9i/UoDgQmyrfiD8fAryyjCI8Uf7RH9VnvxL0AJ02isgYJRhgV ApgfWC6utfpCLfmSWuyvqEMO4KEGOuM0nYzg3KJxIBIVENIQ8FKSNwGBEPXx/xKU5kh9 tTMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=FdS6coEiR06VNaTWyd2kHwcT2wZlpJ5HPQrmF2kff6U=; b=RXPcmJDmqR7X30cggtEfWfxFHr0KeAtP7S0wxfZ4uenAjObI4C3okfflDVJ8EgtW2l KI01kL8C8Vf0sb5rVQ/s+7U9eUUb4tnN0YUpmaX4VZZs9C9bjnezP0yQAOANW9Q3NdwH aTIVqkUq94lm07pFhoWTpWhI16SnNDSGBQ/3TLmTIBbjBQves4hjjPTAeWgeUPPaEh7v qnxo8hvU1jp6kFvKdAPCuqXdPG2dnJk3ljz/1YVI/vreTkltVMwzMi5q9bLO64GeXpDY DJ2PX4Wdnb03SoabBxwll30keI9FPZh0jb1qy/rckI3EDSfSFFJns49zBdRs0Nb9spf4 36MQ== X-Gm-Message-State: AOAM530yNpz2tU91rjPyePIDwzN2smQzjDzsvuldrIMLUB2exDsdCM+W JqND+hhsZKNhheivtb1RH9ye7E3K3pU= X-Google-Smtp-Source: ABdhPJyeVgd3svPBMfrww9ZJaER2GcyDXT9QMlKae356iZgpPBexijxpk/ZbTIaYRDvje4VCQ4ofyA== X-Received: by 2002:a62:e20f:0:b0:44b:8688:8101 with SMTP id a15-20020a62e20f000000b0044b86888101mr4848232pfi.39.1632713370959; Sun, 26 Sep 2021 20:29:30 -0700 (PDT) Original-Received: from [192.168.0.100] ([120.21.102.112]) by smtp.gmail.com with ESMTPSA id k9sm8792394pfa.88.2021.09.26.20.29.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 26 Sep 2021 20:29:30 -0700 (PDT) In-Reply-To: Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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" Xref: news.gmane.io gmane.comp.tex.context:112928 Archived-At: This is a multi-part message in MIME format. --===============6156509196962652291== Content-Type: multipart/alternative; boundary="------------DBDFAF72421A7B1EAEC724DA" Content-Language: en-US This is a multi-part message in MIME format. --------------DBDFAF72421A7B1EAEC724DA Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hmm. I'm not using evince (could, I suppose) but I see that in the file you mention there is already: ['okular']    = [[okular --unique "%filename%"]], and I have already adapted the init.lua file in /.texadept to use okular rather than sumatra, with textadept.run.compile_commands.tex = '/home/me/bin/context/tex/texmf-linux-64/bin/mtxrun --autogenerate --script context --autopdf=okular "%f"' So, following your logic, I should then only need to add, further on, pdfview.method = "okular", which I have done, but still no joy. Julian On 27/9/21 1:06 pm, Jairo A. del Rio wrote: > Hi. Maybe there's an easier way to do it without changing any file or > via mtxrun's command line, but the following is what I do: > > In l-pdfview.lua (mkiv folder, lines from 38) PDF view options are > available. I've added > > ['evince']    = [[evince "%filename%"]] -- My favorite viewer > > And then, after pdfview.method assignments, > > pdfview.method = "evince" > > Now textadept opens the .tex file once compiled. I don't know if > making the format again is mandatory, but it doesn't hurt, anyways. I > hope this helps. > Best regards, > > Jairo > > > > El dom, 26 de sep. de 2021 a la(s) 20:54, jbf via ntg-context > (ntg-context@ntg.nl ) escribió: > > The occasional response to a similar question can be found, e.g. on > stackexchange, but none of the responses work for me. > > Textadept is very fast at compiling (and does compile correctly). > I can > certainly open the pdf independently in various pdf viewers, but I > cannot get Textadept to automatically open, say, Okular (installed on > Linux Mint), at the end of the process. > > The last part of the log reads: > > mkiv lua stats  > runtime: 0.640 seconds, 8 processed pages, 8 > shipped > pages, 12.492 pages/second > mtx-context     | pdfview methods: auto default okular pdfxcview > sumatra, current method: okular (directives_pdfview_method) > pdfview         | command: okular --unique "test1.pdf" 1>/dev/null > 2>/dev/null & > mtx-context     | pdfview overhead: 0.001 seconds > system          | total runtime: 0.649 seconds of 0.701 seconds > >  > exit status: 0 > > Have tried setting up a custom text editor on okular with: > /home/me/.textadept "%f" -e textadept.editing.goto_line(%l-1), as > suggested by one response, but to no avail. Current version of > ConTeXt > is 2021.09.17 10:01 > > Anyone tried Textadept successfully and might have a suggestion? > > Julian > > ___________________________________________________________________________________ > 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://context.aanhet.net > archive  : https://bitbucket.org/phg/context-mirror/commits/ > > wiki     : http://contextgarden.net > ___________________________________________________________________________________ > --------------DBDFAF72421A7B1EAEC724DA Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Hmm. I'm not using evince (could, I suppose) but I see that in the file you mention there is already:

['okular']    = [[okular --unique "%filename%"]], and I have already adapted the init.lua file in /.texadept to use okular rather than sumatra, with textadept.run.compile_commands.tex = '/home/me/bin/context/tex/texmf-linux-64/bin/mtxrun --autogenerate --script context --autopdf=okular "%f"'

So, following your logic, I should then only need to add, further on, pdfview.method = "okular", which I have done, but still no joy.

Julian


On 27/9/21 1:06 pm, Jairo A. del Rio wrote:
Hi. Maybe there's an easier way to do it without changing any file or via mtxrun's command line, but the following is what I do:

In l-pdfview.lua (mkiv folder, lines from 38) PDF view options are available. I've added

['evince']    = [[evince "%filename%"]] -- My favorite viewer

And then, after pdfview.method assignments,

pdfview.method = "evince"

Now textadept opens the .tex file once compiled. I don't know if making the format again is mandatory, but it doesn't hurt, anyways. I hope this helps.
Best regards,

Jairo



El dom, 26 de sep. de 2021 a la(s) 20:54, jbf via ntg-context (ntg-context@ntg.nl) escribió:
The occasional response to a similar question can be found, e.g. on
stackexchange, but none of the responses work for me.

Textadept is very fast at compiling (and does compile correctly). I can
certainly open the pdf independently in various pdf viewers, but I
cannot get Textadept to automatically open, say, Okular (installed on
Linux Mint), at the end of the process.

The last part of the log reads:

mkiv lua stats  > runtime: 0.640 seconds, 8 processed pages, 8 shipped
pages, 12.492 pages/second
mtx-context     | pdfview methods: auto default okular pdfxcview
sumatra, current method: okular (directives_pdfview_method)
pdfview         | command: okular --unique "test1.pdf" 1>/dev/null
2>/dev/null &
mtx-context     | pdfview overhead: 0.001 seconds
system          | total runtime: 0.649 seconds of 0.701 seconds

 > exit status: 0

Have tried setting up a custom text editor on okular with:
/home/me/.textadept "%f" -e textadept.editing.goto_line(%l-1), as
suggested by one response, but to no avail. Current version of ConTeXt
is 2021.09.17 10:01

Anyone tried Textadept successfully and might have a suggestion?

Julian

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________
--------------DBDFAF72421A7B1EAEC724DA-- --===============6156509196962652291== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============6156509196962652291==--