ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Lars <axteffekt@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: Textadept with ConTeXt
Date: Tue, 21 Aug 2018 01:59:45 +0200	[thread overview]
Message-ID: <e152be80-4afd-f497-2ee1-aa1182437e1f@gmail.com> (raw)
In-Reply-To: <CACyK-erw_RnLPyj2JBVv8EeZu60qJ06AVTK5rJ-xKqn=hrJH1A@mail.gmail.com>


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

Hi there, thanks for your interest in Textadept. It's a great editor and 
I am sure that you won't regret testing it and using it in the future. 
Just have some patience.

I suggest you take a look at my User talk at the wiki, there I explain a 
lot about TA and how to use it with ConTeXt. It's more detailed than the 
Textadept site on the wiki.

http://wiki.contextgarden.net/User_talk:Koenich

I have to say though that I wrote it with Windows in mind. But TA's 
config files are all written in Lua so the OS should not be a problem.


Am 21/08/2018 um 00:55 schrieb Fabrice Couvreur:
> Hello,
> In order to use another editor than Emacs and after testing Scite, I 
> installed Textadept and modified the init.lua file as follows :
>
> textadept.run.compile_commands.tex = 'mtxrun --autogenerate --script 
> context --autopdf --purge --synctex = -1 "% f"'

First, only edit the init.lua in your USER folder, on Win it's 
C:\Users\NAME\.textadept\init.lua. Don't edit the init.lua within TA's 
main folder. In fact, there is no reason to enter TA's main folder after 
extraction unless you want to read other config files like the ConTeXt 
lexer (see below).

Second, I am using Win10x64 with SumatraPDF as viewer, it's fast and you 
don't need to close documents to recompile. The biggest disadvantage is, 
that you can't use scripts with SumatraPDF (for forms etc.).
Furthermore the following line I wrote into my init.lua:

textadept.run.compile_commands.tex = 'mtxrun --autogenerate --script 
context --autopdf --purge "%f"'

When I compile the PDF like this, Sumatra opens up as expected. On 
recompile it reloads the PDF. Maybe the spaces within your command are 
the reason:
synctex = -1          -> synctex=-1

Third, is your ConTeXt folder within Search Path (I better ask)?

*Fourth, did you bind extensions to the context.lua lexer?* In the 
init.lua it should look like this:

textadept.file_types.extensions.tex = 'context'
% If you're using LaTeX too, you should choose another extension.
textadept.file_types.extensions.mkii = 'context'
textadept.file_types.extensions.mkiv = 'context'

*Fifth, is your context lexer loaded when you compile the file?* Check 
the status bar in the lower right corner. If it doesn't say "context" 
but "latex" or "text" or anything like that, then choose the context 
lexer via "Buffer" -> "Select lexer...".

Sixth, make sure that you really have compilable content. Try with code 
which is as minimal as possible. A simple

\starttext Hello World \stoptext

should do.

>
> The compilation works but no automatic output in pdf at the end of the 
> process (as with Scite !)
>
> What to do with files in /home /aragorn/context/tex 
> /texmf-context/context/data /textadept/ context/ ?
>

You put them to your user folder, where your personal init.lua is 
stored. On Win it's
C:\Users\NAME\.textadept\
Copy everything from context/ folder to there. Those files come with a 
init.lua so save yours if you made changes there.
Also, and this is important: the TA config files that come with ConTeXt 
are for TA v9 only (at least until one week ago). They won't work with 
TA v10 until you update them. And even with TA v9 they change TA's 
behaviour significantly as they are for SciTE originally. I wrote 
something about them in my talk as well. I suggest you check it out.

I hope that I could help you a little there.

Cheers, L.


> Thank you.
> Fabrice
>
>
>
> ___________________________________________________________________________________
> 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: 7224 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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:[~2018-08-20 23:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-20 22:55 Fabrice Couvreur
2018-08-20 23:59 ` Lars [this message]
2018-08-21  7:06   ` Hans Hagen
2018-08-21  7:36     ` cryo shock
2018-08-21  8:33       ` cryo shock
2018-08-21  8:58         ` Hans Hagen
2018-08-21  9:32   ` Fabrice Couvreur
2018-08-21 13:55   ` Jan U. Hasecke
2018-08-21 14:14     ` Hans Hagen

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=e152be80-4afd-f497-2ee1-aa1182437e1f@gmail.com \
    --to=axteffekt@gmail.com \
    --cc=ntg-context@ntg.nl \
    /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).