* Getting Textadept to open pdf? @ 2021-09-27 1:53 jbf via ntg-context 2021-09-27 3:06 ` Jairo A. del Rio via ntg-context 2021-09-27 8:45 ` Hans Hagen via ntg-context 0 siblings, 2 replies; 6+ messages in thread From: jbf via ntg-context @ 2021-09-27 1:53 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: jbf 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Getting Textadept to open pdf? 2021-09-27 1:53 Getting Textadept to open pdf? 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 8:45 ` Hans Hagen via ntg-context 1 sibling, 1 reply; 6+ messages in thread From: Jairo A. del Rio via ntg-context @ 2021-09-27 3:06 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Jairo A. del Rio [-- 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Getting Textadept to open pdf? 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 0 siblings, 1 reply; 6+ messages in thread From: jbf via ntg-context @ 2021-09-27 3:29 UTC (permalink / raw) To: Jairo A. del Rio; +Cc: jbf, mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 3397 bytes --] 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 <mailto: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 <mailto:ntg-context@ntg.nl> / > http://www.ntg.nl/mailman/listinfo/ntg-context > <http://www.ntg.nl/mailman/listinfo/ntg-context> > webpage : http://www.pragma-ade.nl <http://www.pragma-ade.nl> / > http://context.aanhet.net <http://context.aanhet.net> > archive : https://bitbucket.org/phg/context-mirror/commits/ > <https://bitbucket.org/phg/context-mirror/commits/> > wiki : http://contextgarden.net <http://contextgarden.net> > ___________________________________________________________________________________ > [-- Attachment #1.2: Type: text/html, Size: 5619 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Getting Textadept to open pdf? 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 0 siblings, 1 reply; 6+ messages in thread From: Jairo A. del Rio via ntg-context @ 2021-09-27 3:41 UTC (permalink / raw) To: jbf; +Cc: Jairo A. del Rio, mailing list for ConTeXt users [-- 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Getting Textadept to open pdf? 2021-09-27 3:41 ` Jairo A. del Rio via ntg-context @ 2021-09-27 6:05 ` jbf via ntg-context 0 siblings, 0 replies; 6+ messages in thread From: jbf via ntg-context @ 2021-09-27 6:05 UTC (permalink / raw) To: Jairo A. del Rio; +Cc: jbf, mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 4679 bytes --] Thanks, I reinstalled a later version of Textadept. I notice that it now opens the pdf product but in Xreader, the default on my machine, and that's no real problem, but now that I have got it working I can experiment a bit. Interesting, though, that the changes I made at your suggestion in l-pdfview.lua are not effective (I would have expected it to be okular). But I guess there is no harm done. Julian On 27/9/21 1:41 pm, Jairo A. del Rio wrote: > > > El dom, 26 de sep. de 2021 a la(s) 22:29, jbf (roma83537@gmail.com > <mailto: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 <mailto: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 <mailto:ntg-context@ntg.nl> / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> <http://www.ntg.nl/mailman/listinfo/ntg-context> >> webpage : http://www.pragma-ade.nl >> <http://www.pragma-ade.nl> / http://context.aanhet.net >> <http://context.aanhet.net> >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> <https://bitbucket.org/phg/context-mirror/commits/> >> wiki : http://contextgarden.net <http://contextgarden.net> >> ___________________________________________________________________________________ >> [-- Attachment #1.2: Type: text/html, Size: 9032 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Getting Textadept to open pdf? 2021-09-27 1:53 Getting Textadept to open pdf? jbf via ntg-context 2021-09-27 3:06 ` Jairo A. del Rio via ntg-context @ 2021-09-27 8:45 ` Hans Hagen via ntg-context 1 sibling, 0 replies; 6+ messages in thread From: Hans Hagen via ntg-context @ 2021-09-27 8:45 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Hans Hagen On 9/27/2021 3:53 AM, jbf via ntg-context wrote: > 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? I tried to launch textadept with the setup that is in the distribution and it worked ok with the textadept version on my machine. There is however a hickup in launching the pdf viewer and then after a while i have to hit escape (windows version of textadept). A second run doesn't work well. So, I guess there is somethign with subprocesses. The output pane is, as with scite that also uses scintilla, quite fast indeed because it has large refresh delays. For those on windows: the last years the windows terminal (cmd etc run on top of that) is also quite ok. Older versions of cmd had a char-by-char refresh which is not something that goes well with tex logging. On unix one has larger delays so there it's better but tven then font rendering can slow things down. Now to textadept: in order to check this 'launch viewer' delay I installed the latest version and the code that we ship with context no longer runs (quits on some path creation, then when commented on some color/style settings and finally loops in finding a lexer). I know (from scite) that there has been updates to the scintilla lexer interface (again) that I need to look into but in the meantime i wonder if I should do that (although ta is advertised as flexible and configureable it i guess it mostly applies to the code it comes with so maybe it's not meant not be used as i want to, as a framework; get me right: i don't complain about changes: that comes with open source and free and such, it's more about 'should i stick to it and spend time on it'). That said, I do use scite but run our own lexing on top of the derived ta lexing dll (among the reasons for having our own lexing code are 'performance' (large files should load and lex fast), nested lexing, extra features, spell checking etc. Also, we already had lexers. I now wonder if I should not simply roll out my own plugin in scite (which also makes it possible to do some more) instead of relying on ever changing interfaces (changes are fine, but keeping some compatibility would be nice). My backup plan (in case it all stops working) is VScode but even that one keeps changing (e.g. the way extensions are enabled on the command line) and it doesn't have the convenient 'run some program based on suffix' feature that other editors have. So ... the question is: should I waste time on editor support at all, that is: wrt stuff added to the distribution. I'm okay with making things better and have no problem adepting, but we're not talking about it getting better here (e.g. ta already got pretty large wrt to binaries and libraries, so it lost a bit of its charm for me and it's a pitty that the scite lua interface doesn't have lpeg built in natively.) (I might eventually end up running editors in an ancient virtual machine.) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-09-27 8:45 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-09-27 1:53 Getting Textadept to open pdf? 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 2021-09-27 6:05 ` jbf via ntg-context 2021-09-27 8:45 ` Hans Hagen via ntg-context
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).