From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108262 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jeong Dal Newsgroups: gmane.comp.tex.context Subject: Re: Installing VSCode extension? Date: Wed, 5 Aug 2020 18:57:01 +0900 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Content-Type: multipart/mixed; boundary="===============7022688420169955852==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18458"; mail-complaints-to="usenet@ciao.gmane.io" To: "list ntg-context@ntg.nl ntg-context@ntg.nl ntg-context@ntg.nl ntg-context@ntg.nl" Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 05 11:57:24 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 1k3GAl-0004fH-Qs for gctc-ntg-context-518@m.gmane-mx.org; Wed, 05 Aug 2020 11:57:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 583CD1A7B25; Wed, 5 Aug 2020 11:57:10 +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 LBx5Ahd7UrVv; Wed, 5 Aug 2020 11:57:09 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 491131A7B89; Wed, 5 Aug 2020 11:57:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4F2F71A7B88 for ; Wed, 5 Aug 2020 11:57:08 +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 NYRY2Sd_hM48 for ; Wed, 5 Aug 2020 11:57:07 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=17.58.6.44; helo=pv50p00im-ztdg10021101.me.com; envelope-from=haksan@me.com; receiver= Original-Received: from pv50p00im-ztdg10021101.me.com (pv50p00im-ztdg10021101.me.com [17.58.6.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 705181A7B25 for ; Wed, 5 Aug 2020 11:57:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1596621425; bh=DT/zHRqj4nZw4isjM7/SdExFuNmboxMKQZQfE1vn5zM=; h=From:Content-Type:Mime-Version:Subject:Date:To:Message-Id; b=NLEMy7tOgLWhWfuramp8pwqDFLMNyzmIAgxmycrOI0g88pSPUFijBbkQpkjazKLAy LVh63EXvzzytugv5IRrKT7MAsJ8QOe86wP8B0MjONjbe+9lN/7rKpXe8LjAVEVEcY/ j9IxRAMGVEDsVWxgU6KZX//qgkOBLXMR7H6Vk+aZDnWwb6o0Us6nvE1bAhdUsDGrNu IA0fcZhktminPHBBidM8mUa6u+QVmSbYuJPYmXeu7Fv9GbkPY4vrEWjNVpcVyMoVwj NrFphcqkxpm5sWN2aiMNw/eyDHxnTU7eyuYttLVNQMODyLOCgyif+T8/IpMcQkXuyn /b6kfqvVEjTCA== Original-Received: from 172.20.nate.com (unknown [223.38.17.228]) by pv50p00im-ztdg10021101.me.com (Postfix) with ESMTPSA id 7DC6E1804E6 for ; Wed, 5 Aug 2020 09:57:04 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.3608.120.23.2.1) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-08-05_05:2020-08-03, 2020-08-05 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2004280000 definitions=main-2008050083 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:108262 Archived-At: --===============7022688420169955852== Content-Type: multipart/alternative; boundary="Apple-Mail=_B032DB3E-EDD4-4E48-A943-33EDA76786D0" --Apple-Mail=_B032DB3E-EDD4-4E48-A943-33EDA76786D0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 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 = 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":[ ] 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 = 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= --Apple-Mail=_B032DB3E-EDD4-4E48-A943-33EDA76786D0 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 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 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":[ = ]  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 = 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
= --Apple-Mail=_B032DB3E-EDD4-4E48-A943-33EDA76786D0-- --===============7022688420169955852== 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== --===============7022688420169955852==--