ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mikael Sundqvist <mickep@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Installing VSCode extension?
Date: Wed, 5 Aug 2020 22:07:53 +0200	[thread overview]
Message-ID: <CAHy-LL_i_AxE6ZmsqKtvkO292z6upH4E1JHSKznSnkT4jLpcZA@mail.gmail.com> (raw)
In-Reply-To: <E3BF8937-05A0-46B5-A18F-4E8C5D7E76D2@me.com>


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

On Wed, Aug 5, 2020 at 11:57 AM Jeong Dal <haksan@me.com> wrote:

> Dear Mikael,
>
>
> 2) Is there a nice way to compile the tex file from
>
> within vs code? As of
> now, I opened a terminal and compiled from that, but that feels like the
> wrong way of doing it.
>
>
> For the first question, I don’t know either.
> For the second question, I’d like to explain what I did for compiling TeX
> file in vscode.
> Since I use vscode in MacOsX, you may find your way in Linux.
>
> There is a tasks.json file in .vscode folder.
> I added the following script in the “tasks":[ ]  and save it.
> (You have to modify the  "texmf-osx-64/bin” path in the following script
> from your machine.
>
> {
> "label": "ConTeXt LuaMetaTeX",
> "type": "shell",
> "command": "export
> PATH=/Users/graph/ConTeXtLM/tex/texmf-osx-64/bin:$PATH;mtxrun
> --autogenerate --script context --autopdf --purge '${file}'",
> "args": [],
> "options": {
> "cwd": "${fileDirname}"
> },
> "group": {
> "kind": "build",
> "isDefault": true
> }
> },
>
> When you want to compile a ConTeXt file, find “terminal > Run Build task”
> in the menu,
> then “ConTeXt LuaMetaTex” will pop up.
> Or just use the key “command-shift-B” instead using menu item.
>
> I hope that it may help.
>
> Best wishes,
>
> Dalyoung
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

Dear Dalyoung,

Thanks! That got me up and running. Maybe this can help others (or maybe it
is well-known):

* Since January, the editor supports a global tasks.json file (if I
understood
https://stackoverflow.com/questions/41046494/making-global-tasks-in-vs-code
correctly).
I updated, and indeed, that seems to work.
* I noticed that valid macros are recognized while typing, even if one has
not used them before. When one starts typing the text is non-bold, and when
it is a known macro it gets bold. That was useful.

Best regards, Mikael

[-- Attachment #1.2: Type: text/html, Size: 7381 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:[~2020-08-05 20:07 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1104.1596544715.23406.ntg-context@ntg.nl>
2020-08-05  9:57 ` Jeong Dal
2020-08-05 20:07   ` Mikael Sundqvist [this message]
2020-12-02  9:34     ` Saša Janiška
     [not found] <mailman.958.1596074262.23406.ntg-context@ntg.nl>
2020-07-30  5:52 ` Jeong Dal
2020-07-30 10:25   ` Henning Hraban Ramm
2020-08-04 12:38     ` Mikael Sundqvist
2020-12-17  6:28       ` Saša Janiška
2020-12-17  6:51         ` Mikael Sundqvist
2020-12-17  9:40           ` Saša Janiška
2020-12-17 15:55             ` Mikael Sundqvist
2020-07-28  4:51 Alasdair McAndrew
2020-07-28 16:50 ` Hans Hagen
2020-07-29 12:19   ` Alasdair McAndrew
2020-07-29 15:12     ` Henning Hraban Ramm
2020-07-30  1:57       ` Alasdair McAndrew
2020-07-30  6:32         ` Lutz Haseloff
2020-07-30 10:33         ` Henning Hraban Ramm

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=CAHy-LL_i_AxE6ZmsqKtvkO292z6upH4E1JHSKznSnkT4jLpcZA@mail.gmail.com \
    --to=mickep@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).