ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Jairo A. del Rio via ntg-context" <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: "Jairo A. del Rio" <jairoadelrio6@gmail.com>
Subject: Re: Getting Textadept to open pdf?
Date: Sun, 26 Sep 2021 22:06:28 -0500	[thread overview]
Message-ID: <CAKyqqabV_dhVvxiNZd8bspfZSn5MARVSoBc+YXZ3uJxzvwt6ug@mail.gmail.com> (raw)
In-Reply-To: <ce323020-bd0f-fb4f-2d4a-8c6111a5ba9a@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2398 bytes --]

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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3468 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2021-09-27  3:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-27  1:53 jbf via ntg-context
2021-09-27  3:06 ` Jairo A. del Rio via ntg-context [this message]
2021-09-27  3:29   ` jbf via ntg-context
2021-09-27  3:41     ` Jairo A. del Rio via ntg-context
2021-09-27  6:05       ` jbf via ntg-context
2021-09-27  8:45 ` Hans Hagen via ntg-context

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=CAKyqqabV_dhVvxiNZd8bspfZSn5MARVSoBc+YXZ3uJxzvwt6ug@mail.gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=jairoadelrio6@gmail.com \
    /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).