From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/104579 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Thangalin Newsgroups: gmane.comp.tex.context Subject: Re: =?utf-8?q?Typesetting_Markdown_=E2=80=93_Part_5=3A?= =?utf-8?q?_Interpolation?= Date: Mon, 8 Jul 2019 10:13:04 -0700 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6137816802483526879==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="259570"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 08 19:13:47 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hkXCz-0015Nt-Pt for gctc-ntg-context-518@m.gmane.org; Mon, 08 Jul 2019 19:13:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EAEDF1524A3; Mon, 8 Jul 2019 19:13:21 +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 Ed_3PvKFUaH3; Mon, 8 Jul 2019 19:13:20 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4A102152525; Mon, 8 Jul 2019 19:13:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0DE771524E9 for ; Mon, 8 Jul 2019 19:13:19 +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 kDf_h689IFQk for ; Mon, 8 Jul 2019 19:13:17 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.210.43; helo=mail-ot1-f43.google.com; envelope-from=thangalin@gmail.com; receiver= Original-Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) (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 32F751524A3 for ; Mon, 8 Jul 2019 19:13:17 +0200 (CEST) Original-Received: by mail-ot1-f43.google.com with SMTP id n5so16992830otk.1 for ; Mon, 08 Jul 2019 10:13:17 -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=3513IcZ9eTt491u33BOLQlb5/SW6CC4QvKPXXrGI4GU=; b=f54eYwH+G91SRj0fdcgUEjjsVP3sIzk5s8ljO6uBjumygrd5D2rxerf43ZPv8x1HfN xc5VQ1PU9LAmlx1cpajjv+oxXkm3BAle0sAOSzvaPBY6nL3CnmhtI9P3sr+f7n5LYUz1 mqDaMWZGhLe+YRy3lENSdKiU5Ysv+oiYmMhl/nISFTneFIx+VTyX234m1u8Cs6GpFWAv FpXWWtjwi8NSoJ+b+M33/83tVopKLiYyD55LgG6oVQpU3bOEJ31vaDLLLgxZ0KI/Qoeg coa/D/wYDaVao696m7/q+crGW3JEpLJA77KTRPNEHhRdcKlEja3schbpH5fnqQo7zvsO zW7w== 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=3513IcZ9eTt491u33BOLQlb5/SW6CC4QvKPXXrGI4GU=; b=ANR9yOy3zi+1nxDK/fUh4ditsSECjbHEKYyj7oreCXeW9gW/S81/OKRNEgnr2NRwIJ gPDb4XMDHolqaW9T+HklgHiA9KHBeATHn1c9xUfHDQsDTu26MG2OCfX7vs6t6zOF65JV HcGmQq7raLyUA6AY522pSysuklhC5e5SVsVG/QBXy1ZTJwIQZljI6Nly7mKtR+jaXxgQ Ed2F/tz/frqSmapVzyiYQgR7EtZE5RZjMS+svCsFhSUcM9FzoFIMOVUhBg7Kn0EEY9fP EMaN15FVsvLllg/fFysv6qw2rDmPRw5eR6LXgMZKF+LYQZn+Y9Nsx5rSJak3nJZFHhy6 QdOw== X-Gm-Message-State: APjAAAVAOijqYlI10GvgKV4eeb578oARSTx0Bkn5N3YsY4uwHLXKC5em diIEIKYoMivI2nYgmXEUMfzsUqUaBArPWmIWwfTqDdCC X-Google-Smtp-Source: APXvYqyO32oIS7Qsm/GObdgo0HYxTAq+xdFWM/ooxWFW+RGLUuX/ZoL2CfDS/T/hFi6O+jNTTxirHsalTKdgPVvjcFI= X-Received: by 2002:a05:6830:1197:: with SMTP id u23mr15171903otq.36.1562605995187; Mon, 08 Jul 2019 10:13:15 -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.org gmane.comp.tex.context:104579 Archived-At: --===============6137816802483526879== Content-Type: multipart/alternative; boundary="000000000000446174058d2e8fec" --000000000000446174058d2e8fec Content-Type: text/plain; charset="UTF-8" Thanks again for the great ideas. The downside is that it comes with a lot of extra ConTeXt setup code. My understanding is that the toc parameter to pandoc only works when creating a standalone document. I think \def\completecontent\empty is a bit more expressive of intent than \def\completecontent{}. Modes are probably the way to go, though. Thank you. On Sun, Jul 7, 2019 at 12:18 PM Aditya Mahajan wrote: > > On Sun, 7 Jul 2019, Thangalin wrote: > > > Thank you Aditya. > > > > The main.tex file is meant to be reusable for different document styles. > By > > removing \completecontent altogether from the main template, it would > > preclude a different document from reusing the main.tex template with a > > table of contents. I'd like the template to be "reusable"; making > > modifications to "main.tex" --- or creating a copy --- would subvert that > > goal. > > Pandoc allows that. For example, see line 140 of the default context > template: > > https://github.com/jgm/pandoc-templates/blob/master/default.context > > I don't remember the exact command line parameters for pandoc that set > the toc flag to true. > > An equivalent method will be to control this using a ConTeXt mode. > Redefining \completecontent to \empty seems too drastic. > > Aditya > > > ___________________________________________________________________________________ > 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 > > ___________________________________________________________________________________ > --000000000000446174058d2e8fec Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks again for the great ideas. The dow= nside is that it comes with a lot of extra ConTeXt setup code. My understan= ding is that the toc parameter to pandoc only works when creating a standal= one document. I think \def\completecontent\empty is a bit more expressive o= f intent than \def\completecontent{}. Modes are probably the way to go, tho= ugh.

Thank you.

On Sun, Jul 7, = 2019 at 12:18 PM Aditya Mahajan <ad= ityam@umich.edu> wrote:

On Sun, 7 Jul 2019, Thangalin wrote:

> Thank you Aditya.
>
> The main.tex file is meant to be reusable for different document style= s. By
> removing \completecontent altogether from the main template, it would<= br> > preclude a different document from reusing the main.tex template with = a
> table of contents. I'd like the template to be "reusable"= ;; making
> modifications to "main.tex" --- or creating a copy --- would= subvert that
> goal.

Pandoc allows that. For example, see line 140 of the default context
template:

https://github.com/jgm/pandoc-tem= plates/blob/master/default.context

I don't remember the exact command line parameters for pandoc that set =
the toc flag to true.

An equivalent method will be to control this using a ConTeXt mode.
Redefining \completecontent to \empty seems too drastic.

Aditya

___________________________________________________________________________= ________
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
___________________________________________________________________________= ________
--000000000000446174058d2e8fec-- --===============6137816802483526879== 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== --===============6137816802483526879==--