From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33178 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Defaults Files and header-includes Date: Tue, 10 Oct 2023 10:06:34 -0700 Message-ID: <6FE0832A-2D38-447D-8044-CDAC6991A55F@gmail.com> References: <8f5ccade-4695-4bc4-a61d-e7c9cf24db50n@googlegroups.com> <69a8684d-d7db-421f-9a8c-3454ca012511n@googlegroups.com> <2e8f4aa6-79e4-4bf0-808a-764da284133dn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.3\)) Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35114"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBHUJS2UQMGQEPFCFOXY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Oct 10 19:06:44 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f185.google.com ([209.85.215.185]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qqGBw-0008qt-1N for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 10 Oct 2023 19:06:44 +0200 Original-Received: by mail-pg1-f185.google.com with SMTP id 41be03b00d2f7-578fb6bf0d6sf3855466a12.0 for ; Tue, 10 Oct 2023 10:06:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696957602; cv=pass; d=google.com; s=arc-20160816; b=DZCz3kJVKz4WMJAWeNx893QXUvemM0vk7z8u86mbwIIc3j8ZEDXpUVP5CQcTDeNHZP RBCLbBDgckBsRLvQIbJYZf6j4ijPbqtrsdIgtMYP4Qzw3QmptaH0i4wQoMoed6YB8idF fBGdDIKEt3aY7CX7cX95o9MprnfvUcvqhnp0lBCdx/CX5Je7mQ1FAxOhyfai48ilJepC iyqhfDxXKEjghr19BrMvB7dDvqJupphwrIE2+UnunUSbRE2Dys4wZeE/K99uYqTPzpZM Po/zNYinGjPxeaKynOz0mkw69rdkXnUolXtK6QKAYVh8lydMna/GdeZ8a4xanbvlXfEH PO6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:message-id:in-reply-to:to :references:date:subject:mime-version:content-transfer-encoding:from :sender:dkim-signature:dkim-signature; bh=I9ZKGEjpdLvlBnGp8LF6m/QxLBabHr9xFj2PXNVQLRQ=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=SMsKs1saCXTzC2SXrLNS1Ubfg9xA2ZbZknDD4EXu1byROpSIF7GhGTb4rFoTUdcGPQ vBLjX2b/YFHCtArno81Y7uv2uF5OSnZwVgIkefCWNKboHvbSvuTRaeZmC9XUQ/3niP4L M4SIPhwKjmP5b9IiscOoEZI6Z234y0hPxB/sP2WHaHkcGHRPUgfA7d7xND2PPVvXxXm9 RmcItI6wcc4x2UcpoEYJ52cNL8HgflWSh2nEfm3zVMoTMxeDsKSD5cuvaz8jTQ8eWG0U qsHXS0tagTfnqCrLZVcxTHJjg85Wic4gTMv2d4w7ueVEUEI+AfwdHssjRxQbE2MyPt1o aAYw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Zldb0o8X; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::529 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1696957602; x=1697562402; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=I9ZKGEjpdLvlBnGp8LF6m/QxLBabHr9xFj2PXNVQLRQ=; b=dU9P/H5qB701qO41TY1/1k9vx8CLbR44Wwn+bBUh1zDSTXdXEqwHMrhG6IXXldCXaC 46klljkitrnUTi/9rHI2LzRjExvrBm1d/9i7OTHYo4j4fBi3OgGN172HLBlVbvTUnjKj EwC9WdERAHCkGxz0tpdAxvupzbfNG3phIzJCKFsRcDPpX0mk+Sw26WfICDVpqwNFUm6Y IZFtUhI0qbQ4YRHD+rZ7/RwqvoquygwOsqEhEm5dkZLwLQYjqidbFh5bWR1Opv8xnwoM cONq66SAZKaXcLuV DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696957602; x=1697562402; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=I9ZKGEjpdLvlBnGp8LF6m/QxLBabHr9xFj2PXNVQLRQ=; b=X8dNd0AWtwzq/kRBRFb/hQbJvsqa5NIb1gH8rF38nbyVtvzzKNQ7ZxDJ51dk8jEpN1 Tp0aZG5LFJnqs4Mjm2AON/qY9uGyU3P1DnbduEhdfoNt1Ef1iA0sFd8X6UeCqppGruWr GnvMs70l8rptpL0k1mnSRw+GEU9hlfhGSU/LACJoOFp6xOx+O5z3XVD9ySFFzsRwdlXZ 1s5wIm9uUnK2q3PCQFtnr4yU1tiDKSRDkVaUV4U5e4JAGFtUW4gmxRwtCUXny1nONPCL 4k64Mh253tcY9XGvNkcZiHlcMa0GI2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696957602; x=1697562402; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=I9ZKGEjpdLvlBnGp8LF6m/QxLBabHr9xFj2PXNVQLRQ=; b=MhYcRXwQG4Ua9XlhwvYmYux/fNHE3rDHUmWlu9kp2xLx8VWXRTczeTeiCOphD10xzu fFbrve46SCKnbrZB8cFuKX+kgkCNvcllVO8IsW5yuwz69VbizYkOz5nFYAnGNV5/V7ir K9jQ1j1cPVo1jwef00IZ6OvO/ZOcZHpNK4pBbXuikl9n7qhvzqMPHr2o2TsAugvhmPhV 2jv599CQRC8O+j4cU0WtKcqEhaMMmX1z5U4IcxwgxQMseHbBAc/Qj2h4up Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YyWHs3ZWpp6NjCGYgDm1kHF0bnHrt+CLk/pxO6EoyCjon5Sa8M2 KgDeAcVzP/65juzijHxru7Q= X-Google-Smtp-Source: AGHT+IG8or5k0PrfhdpG247h184WIjgWUK722CLNdxoGatUanWEzKBjeFCayT2+/4bvL/Tz+FghD7Q== X-Received: by 2002:a05:6a21:47c7:b0:172:eda5:36ea with SMTP id as7-20020a056a2147c700b00172eda536eamr641490pzc.7.1696957602474; Tue, 10 Oct 2023 10:06:42 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aa7:9ada:0:b0:690:d40b:b5d6 with SMTP id x26-20020aa79ada000000b00690d40bb5d6ls4108011pfp.2.-pod-prod-01-us; Tue, 10 Oct 2023 10:06:37 -0700 (PDT) X-Received: by 2002:a05:6a00:c8b:b0:690:d413:ee0f with SMTP id a11-20020a056a000c8b00b00690d413ee0fmr18536821pfv.2.1696957597775; Tue, 10 Oct 2023 10:06:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696957597; cv=none; d=google.com; s=arc-20160816; b=QIcb87m/jaOyOG5/IZloCAIBEMgl1nlF7Oql5WWMvzWMsT1lykoVou9036B/o1GK+D j4ayotst1ioYTIZtEd7yKUWJArtbrQOEejMUdjrWSqIOdplnuwaNvy1dI/oIcX5uVtod HG9g5wRyLvV7BdGhDUffRNjDzEc0/Tqngt1tBWDXA4Z+7n9Fqnn4p9n+aIpvxDfnAQR2 Eaqwcecg7lFEjMFUMUzRgMa0P0IKN4C0awRjMVQYxubM4/+F/Nf6zhM7JxYTFBXspVRd zTLa239CcwMp2Vto/fpuS/sBfKsKjL+Cgg3ZdOsgj1DPt5TiV8BbCkZ7fcfBU3bDQ9o+ SjKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:dkim-signature; bh=2VrNNnk7unS419ffgDe5H4BkgJyTwpRyG9sLdY/cOPA=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=i8Q5Nk3EOOAm8tDlbi6pcFjMbUcNJZz1wWHwi9TTH8LVfp9NArXfpeQb85P2P/JpsI atn523Tk61YfcM6DpoCS2AmAlo9kj8am0RYDubwyZCWUeRwaBYrFlngXzTTymAudmIq2 /aXAlY1Mq+URdEAfP2SZx+EOQcPrBpAMpbo0Yw/P6QfoUfYZJe6iEn3X84QRIC/sAVnE 7V2wGUMeUi1LCY9bl9XF3ubrcoYTo1QOpC5MCqdcgIWAd93/KCEemng4hvyvX3qNjaPK fmzeXrDiEOwPC36ds4X/LkpjXU2rZKaDjNKNniJkp9pQaT5tfqL4XDVQ3rCUnZMHk/zI EVOQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Zldb0o8X; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::529 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com. [2607:f8b0:4864:20::529]) by gmr-mx.google.com with ESMTPS id bx24-20020a056a00429800b00690cd91cef3si939281pfb.6.2023.10.10.10.06.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Oct 2023 10:06:37 -0700 (PDT) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::529 as permitted sender) client-ip=2607:f8b0:4864:20::529; Original-Received: by mail-pg1-x529.google.com with SMTP id 41be03b00d2f7-565e395e7a6so2968901a12.0 for ; Tue, 10 Oct 2023 10:06:37 -0700 (PDT) X-Received: by 2002:a17:90a:fe92:b0:26d:3d86:9a8e with SMTP id co18-20020a17090afe9200b0026d3d869a8emr16796852pjb.25.1696957596886; Tue, 10 Oct 2023 10:06:36 -0700 (PDT) Original-Received: from smtpclient.apple ([2601:644:4701:23f0:b0b5:4f04:ce0d:a223]) by smtp.gmail.com with ESMTPSA id b3-20020a17090a990300b0027b13db9729sm10931043pjp.21.2023.10.10.10.06.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Oct 2023 10:06:36 -0700 (PDT) In-Reply-To: <2e8f4aa6-79e4-4bf0-808a-764da284133dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Mailer: Apple Mail (2.3696.120.41.1.3) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Zldb0o8X; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::529 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:33178 Archived-At: Hm, this is maybe something that could be improved, if you want to put up a= bug report. > On Oct 10, 2023, at 8:58 AM, iandol wrote: >=20 > OK, I realised the YAML needs a trailing newline after the string scalar,= this works fine: >=20 > header-includes: | > ```{=3Dtypst} > #set heading(numbering: "I.") > #set text(font: "Alegreya Sans", size: 14pt, discretionary-ligatures: t= rue, number-type: "old-style") > ``` > =20 >=20 > ...note the trailing blank line... >=20 > On Tuesday, 10 October 2023 at 23:50:47 UTC+8 iandol wrote: > So reading the docs on --metadata-file I assumed I could use this instead= , so I make a new yaml file saved to the data dir metadata folder and call = it from the defaults file. In the metadata.yaml file I put: >=20 > header-includes: | > `#set heading(numbering: "(I)")`{=3Dtypst} > =20 > and this gives me #set heading(numbering: "(I)") -- good, pandoc parsed t= he markdown and didn't escape the # .However I then tried a block: >=20 > header-includes: | > ```{=3Dtypst} > #set heading(numbering: "(I)") > ``` >=20 >=20 > And the output is `{=3Dtypst} #set heading(numbering: "(I)")` =E2=80=94 h= m not so clear why the block generates this unesscaped but transformed mark= down? >=20 > Ian > On Tuesday, 10 October 2023 at 20:44:41 UTC+8 iandol wrote: > Thanks John, so there is no way to stop the escaping as even if I remove = the raw attribute, the # of the typst set command also gets escaped stoppin= g it from working...? >=20 > Best, Ian >=20 > On Tuesday, 10 October 2023 at 12:03:44 UTC+8 John MacFarlane wrote: > metadata in a defaults file is parsed as plain text not markdown (remembe= r, default files are basically equivalent to specifying something on the co= mmand line, and this is how --metadata behaves). So the raw attribute won't= be recognized.=20 >=20 >=20 > > On Oct 9, 2023, at 6:06 PM, iandol wrote:=20 > >=20 > > I want to use header-includes: in a defaults file, so assuming it is me= tadata (i.e. converted to variables for the template) do this in my typst.y= aml defaults file:=20 > >=20 > > metadata:=20 > > header-includes: |=20 > > ```{=3Dtypst}=20 > > #set heading(numbering: "(I)")=20 > > ```=20 > > mainfont: "Alegreya Sans"=20 > >=20 > > But the output is escaped. The same header-includes text works when add= ed to the document metadata header directly. I'm probably doing something s= tupid but didn't yet grok what that is... Any help appreciated!=20 > >=20 > > Best, Ian=20 > >=20 > > --=20 > > You received this message because you are subscribed to the Google Grou= ps "pandoc-discuss" group.=20 > > To unsubscribe from this group and stop receiving emails from it, send = an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org=20 > > To view this discussion on the web visit https://groups.google.com/d/ms= gid/pandoc-discuss/cd6c5731-19c7-4189-9b45-ab783decfdb4n%40googlegroups.com= .=20 >=20 >=20 > --=20 > You received this message because you are subscribed to the Google Groups= "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/2e8f4aa6-79e4-4bf0-808a-764da284133dn%40googlegroups.com. --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/6FE0832A-2D38-447D-8044-CDAC6991A55F%40gmail.com.