From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108266 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mikael Sundqvist Newsgroups: gmane.comp.tex.context Subject: Re: Installing VSCode extension? Date: Wed, 5 Aug 2020 22:07:53 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1969125630185776267==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29149"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 05 22:09:11 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k3Pim-0007Pr-2g for gctc-ntg-context-518@m.gmane-mx.org; Wed, 05 Aug 2020 22:09:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6659B1A7BC1; Wed, 5 Aug 2020 22:08:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KYCVmSnVA22p; Wed, 5 Aug 2020 22:08:24 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6C21F1A7BC2; Wed, 5 Aug 2020 22:08:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EEC031A7BC2 for ; Wed, 5 Aug 2020 22:08:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E8JYw5vKrRBp for ; Wed, 5 Aug 2020 22:08:22 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.222.182; helo=mail-qk1-f182.google.com; envelope-from=mickep@gmail.com; receiver= Original-Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id DBCBE1A7A97 for ; Wed, 5 Aug 2020 22:08:21 +0200 (CEST) Original-Received: by mail-qk1-f182.google.com with SMTP id b14so41189717qkn.4 for ; Wed, 05 Aug 2020 13:08:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=IfDi7VgENMHfEzdydQYGqH02LmoViLAxiNBmD3nvXaM=; b=HDlHy2m6h2WQ3yiBN05tsA/xBWz9R4G3eoeBAKVMe4nIV2gGNOp5Jn7TiUcBMaagf4 Sb6oypy7Aq/Oivk8iMYo/dYJieNvXWYzfoz6VJlRx+Ku8V1FAA1aU/vw4xfu5MBk+oPH Rg7nhJXRG/dKGvtAR2hK9tr7bCOTT1EvAaAVFMc8DKf/lpsXwJNCcSkWEYnIYA0iZVcZ FW7/H+o7o7l08CN4j5mYC2pOF2Kjg5MfeACQWSMPU35gCxFZ54HyWKJe1j7JmQ8z0Rtz hsGJwVtz63rY8UOCnCk90RUMaMNxhl4xijFcrVJ48GFrZLs7FJNAtvZfQ1QHLTyuW3ff m85g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=IfDi7VgENMHfEzdydQYGqH02LmoViLAxiNBmD3nvXaM=; b=uBmQCEQZmeHcDa8R1WX/ii18lRnhp/9MJ3ph14B6X/uvj80LBPtd9GkD91srwJs3Qz a2ZinvT44XyggUV/Xtc/PXSnsmK6fmJ1jDL7XVAesU8zBZbybSDv4D5f35vlJJ1wHgHK dUQghYyJUj/1u8dxicJP0up+xoK3iBi1qF3FYunnXZs5DIQMZEHmC/63uOtcvfwIf+Dd NiHDEZNdSqPX7IuRSPnIdAI0OxcTrhUSM++Y10HEt6KwYOj4JtnE/T7gJ5swMnDfpk// 8Wv9zfo/ch5aUvh0ay7HZot1h2hPC/HuYIpOLjwqX9UQ+B8EAIPLls14PUmeZ+H7DB9+ 005w== X-Gm-Message-State: AOAM530jLK9I/9A6cBq1dkaBObdm0MSzLv+Yxxy+5pH2PDiNDl6I7ASH PQQo0UCks3PFD4aBkUaTvkyd6LMIud31Ou+h3w74vNZb8EY= X-Google-Smtp-Source: ABdhPJzMOdnqTWUx+OwNiLkkn+09UCsDhkGezDV2Zu3h3Y8CCp/quijfpOfUVlvxaN+U9W9/v8ee8OCT4xnh8BL7928= X-Received: by 2002:a05:620a:2:: with SMTP id j2mr5182677qki.497.1596658099860; Wed, 05 Aug 2020 13:08:19 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:108266 Archived-At: --===============1969125630185776267== Content-Type: multipart/alternative; boundary="000000000000deba4505ac26ee28" --000000000000deba4505ac26ee28 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Aug 5, 2020 at 11:57 AM Jeong Dal 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=E2=80=99t know either. > For the second question, I=E2=80=99d like to explain what I did for compi= ling 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 =E2=80=9Ctasks":[ ] and save it. > (You have to modify the "texmf-osx-64/bin=E2=80=9D path in the following= script > from your machine. > > { > "label": "ConTeXt LuaMetaTeX", > "type": "shell", > "command": "export > PATH=3D/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 =E2=80=9Cterminal > Run Bui= ld task=E2=80=9D > in the menu, > then =E2=80=9CConTeXt LuaMetaTex=E2=80=9D will pop up. > Or just use the key =E2=80=9Ccommand-shift-B=E2=80=9D 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 --000000000000deba4505ac26ee28 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 comp= iled from that, but that feels like the
wrong way of doing it.

For the first question, I don=E2=80=99t know either.
For the second question,=C2=A0I= =E2=80=99d 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 =E2=80=9Ctasks":[ ] = =C2=A0and save it.
(You have to modify the=C2=A0=C2=A0"texmf-osx-= 64/bin=E2=80=9D=C2=A0path in the following script from your m= achine.

{
= "label": "ConTeXt LuaMetaTeX",
"type": "shell",
=
"command&q= uot;: "export PATH=3D/User= s/graph/ConTeXtLM/tex/texmf-osx-64/bin:$PATH;mtxrun --autogenerate --script= context --autopdf --purge '${file}'",
"args": = [],
"= options": {
"cwd": "${fileDirname}"
},
<= div style=3D"color:rgb(0,0,0);font-family:Menlo,Monaco,"Courier New&qu= ot;,monospace;font-size:16px;white-space:pre-wrap;background-color:rgb(207,= 207,207)"> "group"= ;: {
"kind": "b= uild",
"isDefault": true
= }
},

When you want to = compile a ConTeXt file, find =E2=80=9Cterminal > Run Build task=E2=80=9D= in the menu,
then =E2=80=9CConTeXt LuaMetaTex=E2=80=9D will pop = up.
Or just use the key =E2=80=9Ccommand-shift-B=E2=80=9D 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 t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________

--000000000000deba4505ac26ee28-- --===============1969125630185776267== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============1969125630185776267==--