From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32916 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: How to add to header-includes? Date: Mon, 3 Jul 2023 14:45:54 -0700 Message-ID: <441446FF-9399-4E3C-959B-12C98167C63D@gmail.com> References: <6D8F810C-361A-44A1-AA2E-FA22B318A2C2@halloleo.hailmail.net> <87y1lgqvuz.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_9963CC9C-463A-47B6-8478-D6632874B2A5" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5918"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBH4DRWSQMGQESSVLIEA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jul 03 23:46:12 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pj1-f58.google.com ([209.85.216.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qGRN5-0001Mv-R0 for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 03 Jul 2023 23:46:11 +0200 Original-Received: by mail-pj1-f58.google.com with SMTP id 98e67ed59e1d1-2630eecfa6dsf5452749a91.0 for ; Mon, 03 Jul 2023 14:46:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688420770; cv=pass; d=google.com; s=arc-20160816; b=fRvzdfUnSOECTcaBJwY9KL2SVvHk0sSfpq5cJP2zq0lzcAUJLzI2ah9PhAHkSDZs2m YBvlirGNfDxh7b92HIHr5Uzg+0DX/HWiFQBRVdjsa5mT+JcWwe+EzRSJd1wXKKEegvhQ 0bOvUmluC0HGQHe7/mRvhuB/hnB5GmeI8e80rEr27roe2NGzzHIo6rvZwz070+P/tLb/ alHkJI6Pg0tnNOY0rb58vAsa534FTYlbuOPPR739xQKUeStkb2vE8j2JoRU6zeUI3fIf vQ9IB8H+EMd9HBFuOVO5QH6d5j9tbtPOl/e0LD6qxUXVbtw4JOSxYsPyo9BRTLKnNG3P zDQQ== 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:from:sender:dkim-signature :dkim-signature; bh=jcjcL6oLE8YpjPH8UgnAbfqVimnP++afpZeFye5vByQ=; fh=A7KGSvm30SBY9b2v+N53j+lkchMNZtkZbRzF4WqsV70=; b=EqnlcMJ08E9kX7CnU7ItJlJRU1/GYGbGS8L0YUFnzBR6AO/XrvdIrGsY7syYM0wM+w vRmUmBxlU28VWqRd8fmMotOsEiTSaeFNPuE4Piqtgh/NAkdvbjFemQiSO69vjthLx5is CdWWbDW9jv/WM13mFdHn3UON2ycrH3ZVl3KKwAS/+/yJmhK5FMz1LWNmq0mv/y7kwpZU q5Eq8UhcynRkizCMBXKwJHrn9wW3ZAGH7P/DBxUAJBDtmgwD4bD4/az7lPkz6rt9z9Ew c5bJe/puNMGrSTX51XDQ3MhPYXEdb0aQEHMotHpmiuayAf4wRR2VjDx28aZC2RWCGv9u ZUPQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=CglBQAIw; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1033 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=20221208; t=1688420770; x=1691012770; 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:from:sender :from:to:cc:subject:date:message-id:reply-to; bh=jcjcL6oLE8YpjPH8UgnAbfqVimnP++afpZeFye5vByQ=; b=FTBhTrhi04A+j3V9szOeGY49NHR2XH5vg3p9oJWv6CbQu9pELIfTYSptwr/HfccaAx 6vYpME45ANkPk9sGsZRE6ZKwra/WAvn47T4XYmC1Ucx3t5nAnTHAiAMPp5K0/oTImDMq z6ttwgIIztSOTD7BywPdrYGiZTPeo5pptedLZrJZyKUTtQU8EQR/ROmxOJBQ/WmQKStV XXUEIUZlcakCQ0XZoRcWFAKmovuQHd0h4Fn4OQdht0dyREkSGgcZkY5O56SPTCYq73hM j3svNsweXf4I7eoZnITUn/x3X8shO+3ppJ6tSlKaKGwwzX8YsVK/VVPUDDjCoHp1VGj2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688420770; x=1691012770; 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:from:from:to:cc :subject:date:message-id:reply-to; bh=jcjcL6oLE8YpjPH8UgnAbfqVimnP++afpZeFye5vByQ=; b=gR0bJ00w59kSh31V3SBrc8Bq8aTdLHrsqtpz5J4C/f6UPLBYC3dq9NW5mjlVuXlUna 6NNBjMf07RNuVDF4qTqPaLD+Gj0Atx1a40WBibI+95UPKl26ou0xjjs+SaRt8Kp5Fm5C mvw+ZJvawQ2O/hJgl/jPkU6pYC9+ls6YzGTypiSPFEvMtZKdKwplP31xiMAK0RxnCaHb OjK+t3tu0FTtoFE+NNqq9eSeNxKqnxqzbtVUAg8BWGMhOTMNg+WhMVhHZUfFgOlg0oV0 SAfFFkQ4zoltC6hapmyS0NjMlRhuoZBOfhgW+ywM+nxBtPhJdVmLBsuHO5GHoHyp4ooi ZvHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688420770; x=1691012770; 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:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=jcjcL6oLE8YpjPH8UgnAbfqVimnP++afpZeFye5vByQ=; b=Rkf6dfLl/2nH9kPGpQO7cOW9OSuZn2kmzMKfg9GsV8YCu+GkixnylVoCw1s2LY+8al PVOPg0CyfXk5kj+yX9NBD0kN9Wl4f7sb2jICnAaKM/qWvZPLq7RbPZ3IoqaJ6YgjylyT UR46y2D4oQxgcy48yQM0+neg91Lg1+QiWPhX/A3Uo4lszUHGiZx4FnUH0IsDlM/Fbnfr jovoF1IUxbdFYZttNsNmn0dBlNuNo5dPOn8Ymw33YM2GHFDhhd45czqvDWuUGmWiVxWO jdYgBS Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ABy/qLat55HLDxxpGOhe3o7jntrgdlr3nw3PxilqAmst9P5Mhnoqd6kY 06ZoVxAoN3azf32uivGQKUs= X-Google-Smtp-Source: APBJJlGmif/EIKzYsJ9TueOj/jFmsGzn16RgA2974DwAznbxV1S/TnSA87pRdvuqCXlTqbt6iiFRIA== X-Received: by 2002:a17:90b:5109:b0:263:5c78:4b63 with SMTP id sc9-20020a17090b510900b002635c784b63mr9843621pjb.45.1688420770492; Mon, 03 Jul 2023 14:46:10 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90a:e397:b0:262:e293:3228 with SMTP id b23-20020a17090ae39700b00262e2933228ls3370600pjz.0.-pod-prod-05-us; Mon, 03 Jul 2023 14:46:06 -0700 (PDT) X-Received: by 2002:a17:90b:4fc2:b0:258:c4b5:c6b4 with SMTP id qa2-20020a17090b4fc200b00258c4b5c6b4mr9219474pjb.12.1688420766820; Mon, 03 Jul 2023 14:46:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688420766; cv=none; d=google.com; s=arc-20160816; b=DpG+pAkCU9tv0UGC/g5TTmqvRhvFSqRFePWyo/ebS1ff3M2vHYO8plYUBWuwhbOZqm U8xq9NTwWXC5OntWNjZrWv58MCvLiymx/xsh59GGKCM5OkMkZDBcaF6i7/JxEJO4vmaN zday4cVd0wmFoHrItiBqnRBXCUBDKIjZkzS+ILKsnWPKMPlKls4TBGCb6lF1W46Aa63m VqlCTyTPQq0kFZlUN2x9dKD67B/6CS6OcvpEF+kM+U2Ae9wSmYTgnIyPPaP5wfOYR65i r2dQMW4evh5WxBooIcHn9xVbubYnvu+ck916ryAIBH0RmGoqRwnBbSTnCKUNRw/3LoT7 KcHw== 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:from :dkim-signature; bh=hWwvUey6phJ/DlEiSVVYvezKCJFV06I+gMYmd8CrO50=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=IwLic5CDSR7YjLAfGhwRtoxTP30weAVBDqPKNxyqOXtTs601c/8LlNkaSDgEjG9akY KqaPXavPvLhJ0kkHOPXS33VAb9M5naULXwOjIAeL2lTdHMIn22g+JPnhbk/1qKM+Gu3u 2dO8a/JDPAWPiAojDCM2pAVtIWGbf7+QtaNVs/alEnBwxbycaUg+vG6qNAmuWgg5IJ/q HFK+ZrhFU+BIHfKcUIhB3ReLtlrh2uv0FiXMA4XcPDP88F8xz/ZplZY08Kllr76nsD4H NAEeyU43AhQuQXYlD82cJv9I830vryo0xjaoXVeS/w7Pjq+eoKYqkw5cjJNQI1LkBLrF Qj3Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=CglBQAIw; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1033 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-pj1-x1033.google.com (mail-pj1-x1033.google.com. [2607:f8b0:4864:20::1033]) by gmr-mx.google.com with ESMTPS id pg7-20020a17090b1e0700b00263c6d7fc91si211081pjb.0.2023.07.03.14.46.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Jul 2023 14:46:06 -0700 (PDT) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1033 as permitted sender) client-ip=2607:f8b0:4864:20::1033; Original-Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-262d33fa37cso2352992a91.3 for ; Mon, 03 Jul 2023 14:46:06 -0700 (PDT) X-Received: by 2002:a17:90a:9f89:b0:262:df1d:8e16 with SMTP id o9-20020a17090a9f8900b00262df1d8e16mr8941083pjp.33.1688420766062; Mon, 03 Jul 2023 14:46:06 -0700 (PDT) Original-Received: from smtpclient.apple ([2607:f140:4208:8000:4d06:d288:aed3:4664]) by smtp.gmail.com with ESMTPSA id e15-20020a17090a118f00b00263a985abc0sm4217683pja.26.2023.07.03.14.46.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Jul 2023 14:46:05 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3731.600.7) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=CglBQAIw; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1033 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:32916 Archived-At: --Apple-Mail=_9963CC9C-463A-47B6-8478-D6632874B2A5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" This will work in header-includes in your document's metadata, but not in h= eader-includes in the metadata section of a defaults file file. The reason = is that, as documented, values passed to --metadata are parsed as plain tex= t, while metadata in a markdown file is parsed as markdown. You could try=20 variables: header-includes: - \usepackage{tikzsymbols} Variable text is passed through unchanged (so no escaping). > On Jul 3, 2023, at 1:46 AM, Oliver wrote: >=20 > Hi there >=20 > In a markdown document I can add for the LaTeX writer the following in th= e YAML metadata blocK: >=20 > --- > header-includes: > - \usepackage{tikzsymbols} > ... > Then I can use in the document things like \Cooley[-3][cyan] and more. :-= ) >=20 > However I was not able to add this \usepackage declaration to a defaults = file. I tried in my defaults file myarticle.yaml the following: >=20 > from: markdown+raw_attribute > metadata: > documentclass: scrartcl > header-includes: > - \usepackage{tikzsymbols} > but then I get the Latex error: >=20 > ! LaTeX Error: Missing \begin{document}. > [...] > l.46 \textbackslash > Somehow the \usepackage{tikzsymbols} command is now =E2=80=9Eescaped=E2= =80=9C so that the backslash get printed out... How can I avoid this and gi= ve the \usepackage declaration in the defaults file? >=20 > Thanks for any pointers! >=20 > Oliver >=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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/CDCA3285-4D99-40FE-B54D-603494C2B62D%40halloleo.hailmail.n= et . --=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/441446FF-9399-4E3C-959B-12C98167C63D%40gmail.com. --Apple-Mail=_9963CC9C-463A-47B6-8478-D6632874B2A5 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="UTF-8" This will work in header-includes= in your document's metadata, but not in header-includes in the metadata se= ction of a defaults file file. The reason is that, as documented, values pa= ssed to --metadata are parsed as plain text, while metadata in a markdown f= ile is parsed as markdown.

You could try 

variables:
  header-includes:
&nbs= p;   - \usepackage{tikzsymbols}

Variable text= is passed through unchanged (so no escaping).

On Jul 3, 2023, at 1:46 AM, Oliver <news-WPTjrydoUPgeaOpM6FAJmQ@public.gmane.org= l.net> wrote:

Hi there

In a = markdown document I can add for the LaTeX writer the following in the YAML = metadata blocK:

---
header-includes:
  - \usepackage{tikzsymbols}
...

Then I can use in the document things like \Cooley[-3][cyan= ] and more. :-)

However I was not able to add thi= s \usepackage= declaration to a defaults file. I tried in my defaults file myarticle.yaml the following:

from: ma=
rkdown+raw_attribute
metadata:
  documentclass: scrartcl
  header-includes:
    - \usepackage{tikzsymbols}

but then I get the Latex error:

! LaTeX =
Error: Missing \begin{document}.
[...]
l.46 \textbackslash

Somehow the \usepackage{tikzsymbols} command is now = =E2=80=9Eescaped=E2=80=9C so that the backslash get printed out... How can = I avoid this and give the \usepackage declaration in the defaults file?

Thanks for any pointers!

Oliver


--
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 pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.goog= le.com/d/msgid/pandoc-discuss/CDCA3285-4D99-40FE-B54D-603494C2B62D%40hallol= eo.hailmail.net.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/p= andoc-discuss/441446FF-9399-4E3C-959B-12C98167C63D%40gmail.com.
--Apple-Mail=_9963CC9C-463A-47B6-8478-D6632874B2A5--