From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29413 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=C3=A9ment_Aubert?= Newsgroups: gmane.text.pandoc Subject: Re: Citing inside latex block with citeproc Date: Fri, 29 Oct 2021 12:53:01 -0400 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008b48a005cf80aaf7" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16707"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To: John MacFarlane Original-X-From: pandoc-discuss+bncBCM37TODUUORBCGO6CFQMGQERBYXSEI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 29 18:53:31 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f63.google.com ([209.85.161.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mgV8F-0004BI-3W for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 29 Oct 2021 18:53:31 +0200 Original-Received: by mail-oo1-f63.google.com with SMTP id c7-20020a4ae247000000b002b8be729ccdsf4684723oot.13 for ; Fri, 29 Oct 2021 09:53:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1635526410; cv=pass; d=google.com; s=arc-20160816; b=tFHzd0JZfsk3bqDEYzR2DD1LZGzUWmVzRaKNy3WQV7mMsNZCUMNDrhzAyY/6As95Ma Qhqt8HZnIKkC15r3YSsDItE7c8277MKhUd7qrI7hTrNQ6TEa0W8YZTvamyF30G0uSCye aJtGJsQE64yuulAB2MMTmDF9kVKmWKqNY/CJue0C8VQGAIfMiHNEslmmgZxHYW93bujX qaNIdktRtR2yEdMfLwqiZD6eIEbGzMh+s39SRpb/5gBZ7eA3QnIqkyikRsPT17SD8Kto ldtaAF2crKP6Krt9vtRm0SXkPHQTfZwo7YkTPhLltnCVdvAlhE2f9VBcFkZN7DDm/1Dw 22Mw== 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:cc:to:subject:message-id :date:from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=ZEb+HwC+Svqo5lMYhltx4Z9w9li6L1XqTyFXsLyT2WE=; b=kNJEHunYCMjsQl2Nb204Aio92ceU5cKSRDuLPqVjqBAgpwDIJKxqQPURjUWyBE6f3E WdaaFnJaO84mByftT3uaEYq1VIhRo1QL4WRWUAT/McqdoUoK89Z7pvYUAN6CYEMgGQEI rpamEiXkkAJ9wQAxz5Z7IJpVgC67q57EEAvJAmbJrgs4K9zgQJrpOHn+sRuZaTDv3vxq 03Enr1grqNQiQwkuzukIC3Hx0riZSA8iQlpIwTCnJQYROK8XeD4O0WHTwZXha7FzFu1P F81YjlSe/dhlfwAJ/KjPN0tOJsfER6nmo23sD9SsvE8XR70EHkOB81oIL+dA2VwOfAjI PKgA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Aq1ua9yB; spf=pass (google.com: domain of aubert.clement-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::630 as permitted sender) smtp.mailfrom=aubert.clement-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; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:cc:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=ZEb+HwC+Svqo5lMYhltx4Z9w9li6L1XqTyFXsLyT2WE=; b=dp4cvJ3X06bNtKcBBTDRRlsoPMfd/LYkhEFTaGpG2+aQvHd2YNmKuyZJLBVmNZXvEP NJ8n0OeEgxHbdNmqq+PeGR3hVK9DzfT/7IUx7p5IIip/4KAKSgXUlwNYVOlrJUPCZSHa 2MlHlqZTdkPuEosnr0wkpsEls+Q9M+PL3JrHI9CpjnQexBK+W/Efeb/NwltfY76vKAiV 7P3fAZLwERyJcEYGuIhor2Z+8WFVQRf7k6ETInJCFkEb81PV1GN+dh3Z5G1+nP+jG2u9 3YrQ9LZM3QdglI9Cn90QwEraBE1gMkar0zILNh2tdBa/US9Ug41HLckJqP0sAw3+wQ1H 6Rig== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=ZEb+HwC+Svqo5lMYhltx4Z9w9li6L1XqTyFXsLyT2WE=; b=f8tGOn+HTVrkPL3SR21J9P+76rv44cnDrO0zwvxfX6kyAGe2XLvnsH0mYNlfQ0LtLG scGr1DLDLi/vRMjl2DEAJ05KVUti4RwdVO0NcjJZDrlcpBKqg7KpejJKHX09mRcUySZ6 vOXnpcJrjlPxv6BQAV+kIBXYsJR67vcgpzvayrErJnajPVVzahs4L13OZ5q/JUyBEWnW 3YuVfHrOgI5yDOFDU2ERy3RYKCBaF2uW1pqnhWJKUx/Tl11RGhw01Qb60dKrGcijIEqm y3zv9whNjYo2xVxnX8tTlxqaGjWQ1efgale2EeHAqO/7KXKZmXs2kO3gjTbzpJ29qe3o +Gug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:cc:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=ZEb+HwC+Svqo5lMYhltx4Z9w9li6L1XqTyFXsLyT2WE=; b=BV/uL9Gqgkt5YIxbz5CGplULLzrey/QEPgEj0SCUu/CWolzkCDeO1xwB1v0qb4O7O1 6ZHdBSEveEG6zL0saLjHNRT2ANUUXDZ826XsINk7KxCHLFUnUsa4y06+/wAh9YzSgS5T cDBrldeilVym3PoQv7fz9rj7Kkr4mUqn5eNxD0oybZnCLgQD4N5AGSFdZoiDTWlhnz0Z LR25/I7Hbua83Zi0AlmUvrKr9gZ3udCzsq8ecV9+167nNG9deRFETgasM0UlYAFssDO5 NulAkS9+CqJgD8H4eqOrx9LMs7+de7ORXTZo3QmkJp3LnRc8WwyH1miSeEYcH0AAFk/k gu9g== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532Jdx3hcE+93wjMIWBwYE+XSL5owHGGiH8zGbsn59U9xcEXkNAT ufBvJtwz34FahR2KhwoEn/Y= X-Google-Smtp-Source: ABdhPJxMLf+pmGnFNXk1wWJx87X0HjOVXfNAxgrTMyPusYNXL3oGKfE0tjKyevbMKNPeKjU3vMSNSA== X-Received: by 2002:a05:6808:1829:: with SMTP id bh41mr6110796oib.105.1635526409898; Fri, 29 Oct 2021 09:53:29 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:e755:: with SMTP id n21ls319674oov.6.gmail; Fri, 29 Oct 2021 09:53:28 -0700 (PDT) X-Received: by 2002:a4a:a605:: with SMTP id e5mr2421780oom.42.1635526408334; Fri, 29 Oct 2021 09:53:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635526408; cv=none; d=google.com; s=arc-20160816; b=CuF8ATNVyMrFlBACsDu881B8DGuZMbXKxp2o11ucdisqTlFMAQJmXFO2bw5n66mw8Z 96mtNED/p2GdjTv3EnQVTS7Wo+cRFCmwq8QMdEFo4+j/5kI7pgX1w0F+6xaFudeod9H2 aqlk1/p/ltgrwbjuKUBg0hFcokSAEfnBhAX7EXNENp/Lf1r1eRocxDQVP/2oWaYS7s/U WJkzz9yON08SIXe+KIhND4E89XIXHlKLo/7XQPyPJKiJYl+hceNohpJsMSkIz2jd5MV4 lNCCJwSH/iWTOz3Hmuigh796hRgxg3Oxsd80f/vnL/mSZOP8nStiiTYdlR66p40Pqj/q y18A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=hezwU9tdGwR5ZBc3IQg6FOdnokvt73hoqCgPRl+bMvY=; b=jwQLPc8HUOtM+tABs9V15GBB0n+ShlJdERYdT+kkl3w9zM9+0AL+ExyHzUbmc4Xn4I UTTXqvXt6Dz6aJhFiBC21dTlcxLL68xyVK2X57Mvha8EKwL80NRmO87jzepHIPhlNSyr q7psIaAVwzNvWQ6JrDG4pUrU6jVj6VFJTczeaYJWAA3D4rb0RVjVWchabXxJWz9+miiY BznasKby7EvrrQ/xbO26/83OuVMUC0nAaofKp+ZJwhTQQdLhFY3a6qb8LjeTfO/13eh2 INknsbDPpvhWS+nQjm7pGFxx+8WgZ8mZKa7eGfirS0aT4RR3Vk+A2h9x/HKGwnOlCtgm csPw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Aq1ua9yB; spf=pass (google.com: domain of aubert.clement-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::630 as permitted sender) smtp.mailfrom=aubert.clement-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com. [2607:f8b0:4864:20::630]) by gmr-mx.google.com with ESMTPS id g64si505603oia.4.2021.10.29.09.53.28 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Oct 2021 09:53:28 -0700 (PDT) Received-SPF: pass (google.com: domain of aubert.clement-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::630 as permitted sender) client-ip=2607:f8b0:4864:20::630; Original-Received: by mail-pl1-x630.google.com with SMTP id t21so7209587plr.6 for ; Fri, 29 Oct 2021 09:53:28 -0700 (PDT) X-Received: by 2002:a17:902:768b:b0:140:25e1:9914 with SMTP id m11-20020a170902768b00b0014025e19914mr10902507pll.1.1635526407569; Fri, 29 Oct 2021 09:53:27 -0700 (PDT) In-Reply-To: X-Original-Sender: aubert.clement-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Aq1ua9yB; spf=pass (google.com: domain of aubert.clement-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::630 as permitted sender) smtp.mailfrom=aubert.clement-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:29413 Archived-At: --0000000000008b48a005cf80aaf7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ok, thanks a lot. A "reasonable" pipe-line would be pandoc test.md -t latex --biblatex | pandoc --pdf-engine=3Dlatexmk -o test.= pdf or is there anything more clever? Thanks! Le ven. 29 oct. 2021 =C3=A0 12:47, John MacFarlane a =C3= =A9crit : > > There isn't really a good way to do this, no. > > One option would be to use the --biblatex or --natbib option > with pandoc instead of --citeproc, if you're targeting LaTeX > anyway. Then you *could* just use regular LaTeX \cite > commands. (Note however that pandoc's pdf output won't > run bibtex or biber itself; you'd need to use > --pdf-engine=3Dlatexmk, or generate the tex using pandoc > and compile it yourself.) > > Cl=C3=A9ment Aubert writes: > > > Good morning, > > > > Tldr: I don't understand how I can cite inside latex blocks using > > --citeproc. > > > > Long version: > > > > If I use > > > > pandoc test.md --citeproc -o test.pdf > > > > to convert an md file into a pdf, then I can use [@key] for references, > and > > I can also use most of LaTeX commands inside my md file (such as > \label{=E2=80=A6}, > > typically). > > Inside a latex environment, everything has to be in latex, if I > understand > > correctly, so that > > > > \begin{definition} > > - This > > - Is > > - A list > > \end{definition} > > > > would not work. Hence, > > > > \begin{definition} > > [@key] > > \end{definition} > > > > would not work either, but since I use citeproc, I cannot use \cite{key= } > > either. > > So, is there any way to make a reference from within a "latex > environment" > > using -citeproc? > > (And, just to be clear: the definition environment is just an example > here, > > I don't particularly care about this specific environment). > > > > Thanks! > > Cl=C3=A9ment. > > > > -- > > 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/msgid/pandoc-discuss/CAPGHSewQHSJ4O3i-PUpEw8i= Sw_2sfyHum0acE%3Di0uAHaQvgk1A%40mail.gmail.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/CAPGHSex4ezmFVkRyV7MnDZ5Hk2DKKRR9zOnkDa8iAgZYTQkWQw%40mail.g= mail.com. --0000000000008b48a005cf80aaf7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Ok, thanks a lot.

A "re= asonable" pipe-line would be
pandoc test.md -t latex --= biblatex | pandoc --pdf-engine=3Dlatexmk -o test.pdf
or is there = anything more clever?

Thanks!



Le=C2=A0ven. 29 oct. 2021 =C3=A0=C2=A012:47, John MacFar= lane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> a =C3= =A9crit=C2=A0:
<= br> There isn't really a good way to do this, no.

One option would be to use the --biblatex or --natbib option
with pandoc instead of --citeproc, if you're targeting LaTeX
anyway.=C2=A0 Then you *could* just use regular LaTeX \cite
commands.=C2=A0 (Note however that pandoc's pdf output won't
run bibtex or biber itself; you'd need to use
--pdf-engine=3Dlatexmk, or generate the tex using pandoc
and compile it yourself.)

Cl=C3=A9ment Aubert <aubert.clement-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Good morning,
>
> Tldr: I don't understand how I can cite inside latex blocks using<= br> > --citeproc.
>
> Long version:
>
> If I use
>
> pandoc test.md --citeproc -o test.pdf
>
> to convert an md file into a pdf, then I can use [@key] for references= , and
> I can also use most of LaTeX commands inside my md file (such as \labe= l{=E2=80=A6},
> typically).
> Inside a latex environment, everything has to be in latex, if I unders= tand
> correctly, so that
>
> \begin{definition}
> - This
> - Is
> - A list
> \end{definition}
>
> would not work. Hence,
>
> \begin{definition}
> [@key]
> \end{definition}
>
> would not work either, but since I use citeproc, I cannot use \cite{ke= y}
> either.
> So, is there any way to make a reference from within a "latex env= ironment"
> using -citeproc?
> (And, just to be clear: the definition environment is just an example = here,
> I don't particularly care about this specific environment).
>
> Thanks!
> Cl=C3=A9ment.
>
> --
> You received this message because you are subscribed to the Google Gro= ups "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://gr= oups.google.com/d/msgid/pandoc-discuss/CAPGHSewQHSJ4O3i-PUpEw8iSw_2sfyHum0a= cE%3Di0uAHaQvgk1A%40mail.gmail.com.

--
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/pandoc-discuss/CAPGHSex4ezmFVkRyV7MnDZ5Hk2DKKRR9zOnkDa8i= AgZYTQkWQw%40mail.gmail.com.
--0000000000008b48a005cf80aaf7--