From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32284 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: pandoc-crossref not playing nice with header includes Date: Tue, 7 Mar 2023 09:16:17 +0000 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 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="39278"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBZMBTSQAMGQEWRWSUQA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Mar 07 10:16:26 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f183.google.com ([209.85.208.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pZTQn-0009zf-Hq for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 07 Mar 2023 10:16:25 +0100 Original-Received: by mail-lj1-f183.google.com with SMTP id y23-20020a05651c021700b002984904d871sf2176048ljn.6 for ; Tue, 07 Mar 2023 01:16:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1678180585; cv=pass; d=google.com; s=arc-20160816; b=y1beaVnIOiCvyMJA2ngi4HHbdrmnzrMYSx0W4vGTSbeQ5si8blSnju8nPLVbOvzmEP m02KR18PNvsJTD8BFfFkKFyQN79Fc/ZlV2+BBBKEXslbYSu1rCusahujbMY0VEAa0hAK PYQ/TcpUTDMbia/pkpv/F+mlHSbwkyNiRMXyWiXBetx9tIje8ak92KrcJsx8+FWaARG/ DSGqiWctFobV5PXbapuTWYKQjGxbPP/EfBCcTYqN1rMm8pETD9n0HRt3cnI2xkJ9g/AC aBOyZIJJmYZ/8MJBkjNXI3HfwhFeUVB2t5jQmEOjl1sJQgxIowFYUuPtTuxaaj/3O5HI y30w== 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=31zvyj8FcdRsxw/DPuayXZHT7UYuc04WTYS6KUDGJ4I=; b=Aug4bRMitQRfdkNlWJ1JOHTVxTk2LO3u4XISgiOfTNqtxN90FhJaabWbL7/yTtThy/ 14z4GydsklfXLaxQ+OwRbDtwu+mVYymJQdDHCW84u23HOs8p0cMlucLsrzeVxlANotif tI82vsN/AD5JcDgTfbyKRjVoSoOYm82P/j82hAbeCoJWCoY34fa6Th3hMp9UZxBD76HO OBgmKLdTgN8hp0kzK0Pqvwdt8/dZejIoersdXXkhUYE0o0ZhxHuycB7hs25fp5vlzC9L CrYsW8BP80Xnb5Nogcwl6c/s6MHKlfnLgnOkO8GJU9CAPQkuAILXfoYHUSY0VC6V9tkY lcVQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=MuZYjwDF; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1678180585; 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=31zvyj8FcdRsxw/DPuayXZHT7UYuc04WTYS6KUDGJ4I=; b=pV1KILVn/ux0rq0c3FpgBxqskhUigR7qte9gbHF6iw45/3mwk/Lj0ZJU/Q6Er5Yjfq elQU8UkEu4VBYfK8DWtrmUpUF2LPwI9sCnxriG88t1TTdn4QFJb6aqXHt95InvWvHA6K faWYYWUpRJskCtr+AtcnTljrtwOp0YrxDFvrLjs8u3+TEBE1pKsl3um1wxdtL99hdxQb 2zrP9PJKocmPcd2Arrmdn2yoUv1MU/0aKbhQrCQAG8fBc44HFdEDDGqwA6BGv32s1zao hkxRgeB1cOuwklL2Fov50Iwf8Mn+ZFV X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678180585; 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=31zvyj8FcdRsxw/DPuayXZHT7UYuc04WTYS6KUDGJ4I=; b=eFx3s3c1qB3Cmsb8Qevqwmvu0048TGny5uqM2AsINqtDDFjaxmv14BZT+dZskLMWQq ZaNX0xcJXVfkyStLzw9sltDfaNJnaXhh7YYM8AQtUCmkJtEav3yUsvWTMKUxaGdSOlfd LFcnFyXT+17yeKXGmS+YeZAzQAhgZ7S71ppf5DgmSpeI+oiZRblEgmh+HGqd4rCF2LJM Dv6iUpn5JUX/uBQ3WxXUc2qan8JE0PZso7wJixzoi3cfxXEP532nHwbNCJyI78/H Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKX7BCAXjS8agOUgPojEunM/R5GIWMbH0lZSAqxmcmGjuzQHA6UM Tx/pmL8MEg9mGXR6y0/SkMQ= X-Google-Smtp-Source: AK7set932fouFOFbpr498RIu7al5/3nfL/C3m77Qn0uZWv+9ILQP9jX+0ywurej2w/Qs8Nnk2YFJlA== X-Received: by 2002:a2e:8341:0:b0:293:4ba5:f626 with SMTP id l1-20020a2e8341000000b002934ba5f626mr6969062ljh.2.1678180585004; Tue, 07 Mar 2023 01:16:25 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:15a2:b0:4dd:8403:13fe with SMTP id bp34-20020a05651215a200b004dd840313fels2780473lfb.3.-pod-prod-gmail; Tue, 07 Mar 2023 01:16:20 -0800 (PST) X-Received: by 2002:a19:f512:0:b0:4e1:7d1c:85cf with SMTP id j18-20020a19f512000000b004e17d1c85cfmr3801907lfb.38.1678180580209; Tue, 07 Mar 2023 01:16:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678180580; cv=none; d=google.com; s=arc-20160816; b=NtoK9Qo6BHFZL2+lyRrUkwzLDUu6SG0DnzASXInDieWWweMar9OGtx8jYEQ7mDkC/3 4lIBPSFBvIEvZ+WMUqeQ5buSaITAhMpGn6C7KJ0TsQ96kXsyHm1XvKiD7KPJ1Iwz+Pyw ixfRgYYdwDQdSYhAa1VdHjOcgvCu2KAyyEpsBYwkolpPAPYof+xxwD9Q1GIXb6y640RW yf5HVhALP08AzAypp1ZzZe2l6AVhImR/m2BWZW0EJ+m2KqhiFzxjn6OTvgimYzmKSkU0 j/ev5xRMnxyUaYh07XzDT4+WpJPCNHTYxqP8uF2Ey/51nU6cq9a/5cJi62rdm3PBERmV Llhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=WYBm6KHNA5jVTCwpwa5yxZtQCseBO7CxzKUo4h3WIKQ=; b=VtHLt5nNuh5MvM8TTuuK3XqawdbPJ1BHdpbY7SpRPAzngq65vWJjefX15CTqdTw0nF PLs4zzuH+eMGcOe1IhxrAyY1ff+EGWmOyKowi+LCzJLoEIXq/XqPShBwZICBgznW+tDS kfQ8Z36BFxfJGcWBRDu7R0dHFoXoMtxN94uMQQcBKp5czxATiZ2OaUYxY5a1qKUcM0tr 2CFi2WU9Dxp9j8OYT9g5OElVL47mmt88wYgxJY7VI6ixF2uO/t4IgQNQOhLSAJalhJGD gtgqjd4s1ZXJgnYTALeg/eD7Efg6lc66G3ZwXa4Rqr1oxdB4mE3xu79ApEXowUzKRsS5 l1nQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=MuZYjwDF; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout01.posteo.de (mout01.posteo.de. [185.67.36.65]) by gmr-mx.google.com with ESMTPS id k10-20020a0565123d8a00b004dc4c1e0df8si585880lfv.11.2023.03.07.01.16.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 01:16:20 -0800 (PST) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) client-ip=185.67.36.65; Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 74CCA240406 for ; Tue, 7 Mar 2023 10:16:19 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PW8vR0R1Gz9rxM for ; Tue, 7 Mar 2023 10:16:18 +0100 (CET) Content-Disposition: inline In-Reply-To: X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=MuZYjwDF; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:32284 Archived-At: Since you don't use a custom template, you don't have to add $for(header-in= cludes)$ etc. anywhere: it is already included in the default LaTeX templat= e. The answer for your use case is here: https://github.com/lierdakil/pandoc-c= rossref/issues/47#issuecomment-614404532 Le Tuesday 07 March 2023 =C3=A0 10:02:38AM, A A a =C3=A9crit : > Files >=20 > test.py >=20 > def f(x): > return x >=20 > test.md >=20 > ~~~{ > #lst:test > .py > include=3D"test.py" > caption=3D`test.py` > } > ~~~ >=20 > header.tex >=20 > \usepackage{minted} >=20 > \definecolor{bg}{rgb}{0.85, 0.85. 0.85} > \setminted{breaklines=3Dtrue, bgcolor=3Dbg, breakanywhere} >=20 > Compilation >=20 > I=E2=80=99m compiling with: >=20 > pandoc -s -F pandoc-crossref -L include-code-files.lua -L minted.lua -H h= eader.tex --from markdown --to latex test.md -o test.tex > latexmk --shell-escape -pdflatex test.tex >=20 > I get an error upon compilation, because pandoc-crossref defines its own = header > include which gets overwritten by my -H header.tex. This [1]link provides= more > information. >=20 > I tried the solution proposed by @lierdakil in the link provided but get = an > error: >=20 > ! LaTeX Error: Missing \begin{document}. >=20 > See the LaTeX manual or LaTeX Companion for explanation. > Type H for immediate help. >=20 > l.97 $ > for(header-includes)$ > ? >=20 > So I=E2=80=99m at a bit of a loss regarding what to do here, Any pointers= welcome. > Thanks >=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 [2]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [3]https://groups.google.com/d/m= sgid/ > pandoc-discuss/ > CAMwawgPTeNSdJ7FDbc9tmw8ax06K7n_uGxvB-mCn2fvBzdD%3DUg%40mail.gmail.com. >=20 > References: >=20 > [1] https://github.com/lierdakil/pandoc-crossref/issues/47 > [2] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [3] https://groups.google.com/d/msgid/pandoc-discuss/CAMwawgPTeNSdJ7FDbc9= tmw8ax06K7n_uGxvB-mCn2fvBzdD%3DUg%40mail.gmail.com?utm_medium=3Demail&utm_s= ource=3Dfooter --=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/ZAcA4dThsf/pAK2e%40localhost.