From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112927 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jairo A. del Rio via ntg-context" Newsgroups: gmane.comp.tex.context Subject: Re: Getting Textadept to open pdf? Date: Sun, 26 Sep 2021 22:06:28 -0500 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3082041779652977369==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36565"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "Jairo A. del Rio" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 27 05:07:18 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 1mUgz7-0009LD-Lc for gctc-ntg-context-518@m.gmane-mx.org; Mon, 27 Sep 2021 05:07:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0835A2877D9; Mon, 27 Sep 2021 05:06:47 +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 aSFN2voLOyRJ; Mon, 27 Sep 2021 05:06:44 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8E55E287A67; Mon, 27 Sep 2021 05:06:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E7B4A287A65 for ; Mon, 27 Sep 2021 05:06:42 +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 xBPU5mmbfQYX for ; Mon, 27 Sep 2021 05:06:41 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.48; helo=mail-wr1-f48.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 ED3E82877D9 for ; Mon, 27 Sep 2021 05:06:40 +0200 (CEST) Original-Received: by mail-wr1-f48.google.com with SMTP id s21so7930466wra.7 for ; Sun, 26 Sep 2021 20:06:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E5BtqiW7sHeQ4sGtLRkaFnmIlySxA5D8hXEpaMGjiZY=; b=Buv4RVLlMDnlaIp1VDYB7851TmUBXyawSZCwIzZBT0vNwUDRTGE5npzdJuuUyA6B9e BYTAIGfiYaLQ7YNt3ivwwZdqh8opcLLewNcWi0HKHe7mJnGAg5NWzuPs5KocH15gai95 hGQ8riaULq2vDz+y0Eij7YYDSK5KAiZH8cLHdF5tJpPTDpwQftHkJ/RnHB1X6PvYC1Tf fcVM46iEeVsXLlwfdNQ0nhsM42Zz792QiOYhD96GoiA3EI4liyHicRypb+v69FENpEAk tFBs6OaaqtM3asmatwYl+n3/WdpYjXb91jeeaGLhpicOkA/ylzpxSm5r3mnU/08h7Qn4 MuPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E5BtqiW7sHeQ4sGtLRkaFnmIlySxA5D8hXEpaMGjiZY=; b=Sg4s1onxs3QcEPQ2h925ZLYTypyiQfQpJ8OUFadX/pzWWeLewrpOxswg2Qt138T/C2 qgNy7uGwSaxXo3H71Y7tmfp4F+5PiRZvnfcKkQQeilIv54q5DRj5xX/kU3iCcp1o6/8Z 19j/a/C9VCvD/hFGNd2AZAoK36r2osOq4StuxESDyUnVzfNpQ6KxbeDUOoD4gwXR3nan RRPoQW4NIycfhzsuNVER3RJ0No7xJqEP+7C7qZRInclgO4d1pxZIHYDBVOTOkfzokDwK 4nEDXr1vKCSZNqr1CpFlzaV9siU9TTs0mh6YfXzUP5yytj6zmbeYzDffsTNkI2HglwWO 8i6g== X-Gm-Message-State: AOAM531wFBsU3bAZH9S8+gOrEhEsEWL6eeASSs+pN86RhwJ5t0hOfo1Q llSZJBdpF84hc5xsuEm/PkKj1YuTUjdrdaoTQUXuPIQgdytjew== X-Google-Smtp-Source: ABdhPJzfEprWcqSWu5mTFWLdgDe+2gabTK3gPwSndhjPZ/5DneYCQModV01v7+GCU2nR2UTcoauVNPvah9BILA7Gsg8= X-Received: by 2002:a05:6000:2cd:: with SMTP id o13mr24694231wry.193.1632712000259; Sun, 26 Sep 2021 20:06:40 -0700 (PDT) In-Reply-To: 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:112927 Archived-At: --===============3082041779652977369== Content-Type: multipart/alternative; boundary="000000000000cbc9b805ccf16233" --000000000000cbc9b805ccf16233 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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'] =3D [[evince "%filename%"]] -- My favorite viewer And then, after pdfview.method assignments, pdfview.method =3D "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=C3=B3: > 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 > > _________________________________________________________________________= __________ > --000000000000cbc9b805ccf16233 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi. Maybe there's an easier way to do it wit= hout 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) PD= F view options are available. I've added

[= 'evince'] =C2=A0 =C2=A0=3D [[evince "%filename%"]] -- My = favorite viewer

And then, after pdfview.method assignments,

pdfview.method =3D "evince"

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

Jairo
<= div>


El dom, 26 de sep. de 2021 a la(s) 20:54, jbf via ntg-con= text (ntg-context@ntg.nl) escribi= =C3=B3:
The occa= sional 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=C2=A0 > runtime: 0.640 seconds, 8 processed pages, 8 ship= ped
pages, 12.492 pages/second
mtx-context=C2=A0=C2=A0=C2=A0=C2=A0 | pdfview methods: auto default okular = pdfxcview
sumatra, current method: okular (directives_pdfview_method)
pdfview=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | command: okular -= -unique "test1.pdf" 1>/dev/null
2>/dev/null &
mtx-context=C2=A0=C2=A0=C2=A0=C2=A0 | pdfview overhead: 0.001 seconds
system=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | total runtim= e: 0.649 seconds of 0.701 seconds

=C2=A0> 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 t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--000000000000cbc9b805ccf16233-- --===============3082041779652977369== 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== --===============3082041779652977369==--