From: "Jairo A. del Rio via ntg-context" <ntg-context@ntg.nl>
To: jbf <roma83537@gmail.com>
Cc: "Jairo A. del Rio" <jairoadelrio6@gmail.com>,
mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Getting Textadept to open pdf?
Date: Sun, 26 Sep 2021 22:41:03 -0500 [thread overview]
Message-ID: <CAKyqqaZxVZWTfO2zccLiYpsKms3ZjXdqFi8OMZHxvkW9vfh+mw@mail.gmail.com> (raw)
In-Reply-To: <54f726ca-05e3-83fa-12fd-161f9b64e0b1@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 3487 bytes --]
El dom, 26 de sep. de 2021 a la(s) 22:29, jbf (roma83537@gmail.com)
escribió:
> 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.
>
> In such a case, you only need to comment on the second option, i. e.
Sumatra:
--The last one wins
pdfview.method = "okular"
--pdfview.method = "sumatra" -- faster and more complete
I haven't edited textadept settings btw, so it works for me with --autopdf
alone.
> 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
>>
>> ___________________________________________________________________________________
>>
>
[-- Attachment #1.2: Type: text/html, Size: 6258 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
___________________________________________________________________________________
next prev parent reply other threads:[~2021-09-27 3:41 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
2021-09-27 3:29 ` jbf via ntg-context
2021-09-27 3:41 ` Jairo A. del Rio via ntg-context [this message]
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=CAKyqqaZxVZWTfO2zccLiYpsKms3ZjXdqFi8OMZHxvkW9vfh+mw@mail.gmail.com \
--to=ntg-context@ntg.nl \
--cc=jairoadelrio6@gmail.com \
--cc=roma83537@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).