From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32283 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: A A Newsgroups: gmane.text.pandoc Subject: pandoc-crossref not playing nice with header includes Date: Tue, 7 Mar 2023 10:02:38 +0100 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000049e4005f64bad2f" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8639"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDJ77HUDRUCBBOX3TOQAMGQEGE72TKA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Mar 07 10:02:56 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pl1-f184.google.com ([209.85.214.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pZTDi-0001yH-Rt for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 07 Mar 2023 10:02:54 +0100 Original-Received: by mail-pl1-f184.google.com with SMTP id l10-20020a17090270ca00b0019caa6e6bd1sf7308561plt.2 for ; Tue, 07 Mar 2023 01:02:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1678179773; cv=pass; d=google.com; s=arc-20160816; b=ImSCXHmcu7fSmIKqLvuocBrnl7FRNBd3bUlIwp38NAazmOyeiwoup/LA9fuDbz5AJY 6MPhASuHEE6uoTnw5z4GFIE+pRlmzBShGMSfKV9Oa0tb8cDkvDieFGJGrbzTMXXZNfAw KaeH+wPkOP9WJbVWJOhERql+xiKOGb/3DzOMbhU2kJV28eq7SXv2quXPISbRDsDTVMJw B7H/0oDpyjaZMTjxVGwTSYrLsFBZV6Ue/ROTg6bZh+wrcvDQwlwtMf3XNIh80pbEjeY4 HVFUvMBJJXaz4OT8NpWeYODs/PgbYhpdRBuJ5c+9RHq+pETwhUPep7+PfCRgPLKOcCoX RFiQ== 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:to:subject:message-id:date :from:mime-version:sender:dkim-signature:dkim-signature; bh=A2yhX9boSeeWDf773ClC9GBE7c3IhHyP+C6IBKTZiWk=; b=bAAaWHew8Tz5sKAp0xVf4t61XBOEl7GN/5smB0qMrAa5tABuAeYGLas6HQDNzz5XzN a8QzkbUn+GCTG/TkIqq3w4prQaD3jHvCV7TEnJ6ouQlANR+YFWvRMuulMr34snBHFvnB jsVOlf53YCgDo7CSBwwkgLctTZaYYfjjniAQRxQ3hozY0bcWKeQHQtGK3+wfAXEIGbm0 j5+xCdc/nXVXjKDo7j6x+DGVqfXWHtFqeNMvvLXBRHmo9H+PEHA/fFKsDCN/pmNxslPs M0avEh1g0TG0/oFo6u+fFr1uHnm1mDhy9RYV3u2nDXwFK0guzghslDP0rbaAbOO6Wuuz rbCQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=k5BOjJks; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::634 as permitted sender) smtp.mailfrom=amine.aboufirass-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=20210112; t=1678179773; 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:to:subject :message-id:date:from:mime-version:sender:from:to:cc:subject:date :message-id:reply-to; bh=A2yhX9boSeeWDf773ClC9GBE7c3IhHyP+C6IBKTZiWk=; b=ndXNZv3hDjiUjIIZH1g1tcyQ/vUst+knrd5noi+SzpQfzMpNvyURTewqjkdjEo62WO pYjSHFDlqhPFfY94242WBa/7LR+1XMcofVXKh7EIqqHhOcYBWPfavo2Xn0fuG5xfaKai 4dMGQ5CaHdz8fT6uFSOlKTsXiHOz+TAdK7h4MEc+tCkQg51hWy825BFeIP3wGxvwwPOt xjL+w47e3xwhqPtV4p8b+YLc96h/xehsqSnKnZdi18MJu9SXaS0iyfNo7MswRvpL2U6U 5KwJBvKpdClM4+kvlxfbkKJMRruasTs08T74suijnEpMc2M/swuqxiAcFh2GnGHw/tOi cgug== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678179773; 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:to:subject :message-id:date:from:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=A2yhX9boSeeWDf773ClC9GBE7c3IhHyP+C6IBKTZiWk=; b=eBlABzWRg5YUZgZt8a2xVDeSAv+1XxzFDNZy2gcPHwDvSWtLAF1Wh51cWHCHN5IAHR tsV2tmtZVYWELFxIKBqLBLLIIaM2XwQ5SmoOY0ikOsminYwDkKaE5LHAQO1NIZEH42bK pMW2lmPqH02lupftKwKocDqOhWxJ2EqCxY8p8/2RpHZ0Gb8yI+zQVpdODcrE3rNLe/OZ +1svVYzCukFuv0Q9fu0AMnjyq6Eo+Bo5aeu5eMLa9ugL77lk2uZvd88SNEGUOL3zNSQx VPCYcFX1aR1nH5zhBDAqslFkm/WRyEFollRcESbhnZ0BMFJjBey5RUDRrkCPbivpdvd5 gpnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678179773; 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:to:subject :message-id:date:from:mime-version:x-gm-message-state:sender:from:to :cc:subject:date:message-id:reply-to; bh=A2yhX9boSeeWDf773ClC9GBE7c3IhHyP+C6IBKTZiWk=; b=LfKEV8LfCKD2tIXqQJL6lE/dbMtv7KOtCwxkOnManJ4lvvVs9XZHHvugTpRNE9lytI oJUjxQ0jN90NcBn/QmazuqPSUu2PKnuFUq/jJUsl4b+Dmnk6b+pml+qKx6+ASIm92sZv veU43ptvb/hvL2g1i6asAfA1mnVYZY9RjNxa/UPoUojI2qL/ILrsfg4wa7MWxFw/aYat ebk8cYhjjleP7LB5GmJ2WZ9MW4UdVFQ/J6P0xGAipxKUb/53PW3QHoRbXZ+vUZxDbNZY 5vQgWsVfMDlkKLNEHieSwHW3+52gT+ETkiT9yajgA0/+Hzc/Ohl/m09eDngXhcEOn Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKXFmhjLlDTK7pE4BSqanYDNNEJzi8b2d0xbJDL8fSD9RSVoopKi Jny2kz+N2bufXr8X7r/mmto= X-Google-Smtp-Source: AK7set/L6wxxKvmxhlRpWznkIm5mZNyielpicwD2PlpWpp6blVfAmV4aMYOIsU9OGKy5l/E0qzLMnw== X-Received: by 2002:a17:903:31d5:b0:19a:f9d9:28d4 with SMTP id v21-20020a17090331d500b0019af9d928d4mr5328384ple.3.1678179773443; Tue, 07 Mar 2023 01:02:53 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:7615:b0:19d:16ed:fd02 with SMTP id k21-20020a170902761500b0019d16edfd02ls12483234pll.5.-pod-prod-gmail; Tue, 07 Mar 2023 01:02:49 -0800 (PST) X-Received: by 2002:a17:903:41c3:b0:19c:e449:bbaa with SMTP id u3-20020a17090341c300b0019ce449bbaamr16671947ple.28.1678179769754; Tue, 07 Mar 2023 01:02:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678179769; cv=none; d=google.com; s=arc-20160816; b=D57cXXPaoKmfpSz3P9KmB1oAjUxDC3da64q+RCKfmzygVmoQ2m5nYRDq4iTuSx2IbV HpJXD4h7kn6HzQlE9+yxAzr87XLR+G9BJhto6mPWsB/643BVqPrdncbUMsfxGWlvmL0K 6Q6BIZr5h6mCf6JimtXPR75EAIe4gnQqw3332Mc0ppWOWqiYJhwo0ipSfTGpEPSKfmqN b6giIOqG64VcYMyuh6jJtIXa768YtR5eNo1N0EbJKKIL7/uVT3PewtC/QaCToJTLzvRD KNVPjTg1D6eITrU4GXHdDFPf369sOzKyV1NX8klZmu7lUKNIHoUrZ97jWQ4CnjQbaLGq NjxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=jToNO2NUs0FpgqLWUQwx5LRt6ntyMfhM95eAlVo+6I8=; b=fBMsENc+IIDRJGD97eIzOKa+gdODtDkyZGIlKtAKX/fLMSfbtSs7Rn+//97vurl/BL bxEB87eXph9MdzYi5EYpwcxBdYFtO58ePWLfc49AFRKjLHCh90quYyVCZqGFHwh4jpCj scYRlrs1eYX64h2DIcipSjZ+zehyWD6BjMpxf0XxoyhmI6o8wmnrnhpuyo1wOa+kJbqs FgecgyUJripv/NQLlb2FzNxAUDqlDfhG5DrJf9IX+AesXG3TZVjt/zDccVqMHdelk0C/ rhjM+h4twI5dfr8kCDZ60gb0j4tTt8BhJAuRiSmUI5eL5qPvRKs/8QE61LfRPjfbDx6+ VNfQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=k5BOjJks; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::634 as permitted sender) smtp.mailfrom=amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com. [2607:f8b0:4864:20::634]) by gmr-mx.google.com with ESMTPS id jk19-20020a170903331300b0018712ccd6e0si520971plb.2.2023.03.07.01.02.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Mar 2023 01:02:49 -0800 (PST) Received-SPF: pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::634 as permitted sender) client-ip=2607:f8b0:4864:20::634; Original-Received: by mail-pl1-x634.google.com with SMTP id i10so13325590plr.9 for ; Tue, 07 Mar 2023 01:02:49 -0800 (PST) X-Received: by 2002:a17:90a:a793:b0:237:9ca5:4d5d with SMTP id f19-20020a17090aa79300b002379ca54d5dmr5020967pjq.6.1678179769293; Tue, 07 Mar 2023 01:02:49 -0800 (PST) X-Original-Sender: amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=k5BOjJks; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::634 as permitted sender) smtp.mailfrom=amine.aboufirass-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:32283 Archived-At: --000000000000049e4005f64bad2f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Files test.py def f(x): return x test.md ~~~{ #lst:test .py include=3D"test.py" caption=3D`test.py` } ~~~ header.tex \usepackage{minted} \definecolor{bg}{rgb}{0.85, 0.85. 0.85} \setminted{breaklines=3Dtrue, bgcolor=3Dbg, breakanywhere} Compilation I=E2=80=99m compiling with: pandoc -s -F pandoc-crossref -L include-code-files.lua -L minted.lua -H header.tex --from markdown --to latex test.md -o test.tex latexmk --shell-escape -pdflatex test.tex I get an error upon compilation, because pandoc-crossref defines its own header include which gets overwritten by my -H header.tex. This link provides more information. I tried the solution proposed by @lierdakil in the link provided but get an error: ! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. l.97 $ for(header-includes)$ ? So I=E2=80=99m at a bit of a loss regarding what to do here, Any pointers w= elcome. 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 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/CAMwawgPTeNSdJ7FDbc9tmw8ax06K7n_uGxvB-mCn2fvBzdD%3DUg%40mail= .gmail.com. --000000000000049e4005f64bad2f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Files

test.py

def f(x):
    return x

test.md

~~~{=20
  #lst:test
  .py
  include=3D"test.py"=20
  caption=3D`test.py`
}
~~~

header.tex

\usepackage{minted}

\definecolor{bg}{rgb}{0.85, 0.85. 0.85}
\setminted{breaklines=3Dtrue, bgcolor=3Dbg, breakanywhere}

Compilation

I=E2=80=99m compiling with:

pandoc -s -F pandoc-cross=
ref -L include-code-files.lua -L minted.lua -H header.tex --from markdown -=
-to latex test.md -o test.tex
latexmk --shell-escape -pdflatex test.tex

I get an error upo= n compilation, because pandoc-crossref defines its = own header include which gets overwritten by my -H header.= tex. This link provides more information.

I tried the solution proposed b= y @lierdakil in the link provided but get an error:

! LaTeX Error: Missing \begin{d= ocument}.

See the LaTeX manual or LaTeX C= ompanion for explanation.
Type H for immediate help.

l.97 $
for(header-includ= es)$
?

So I=E2=80=99m at a bit of a lo= ss regarding what to do here, Any pointers welcome. Thanks

--
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://group= s.google.com/d/msgid/pandoc-discuss/CAMwawgPTeNSdJ7FDbc9tmw8ax06K7n_uGxvB-m= Cn2fvBzdD%3DUg%40mail.gmail.com.
--000000000000049e4005f64bad2f--