From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32496 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Guido Milanese Newsgroups: gmane.text.pandoc Subject: Re: YAML: biblio-style, citestyle, bibstyle Date: Thu, 27 Apr 2023 00:50:41 -0700 (PDT) Message-ID: References: <075fcbb1-068d-4089-a475-b2901032e8a6n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_618_1900774353.1682581841712" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11939"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDA67UUSU4JRBU6SVCRAMGQEODHF7II-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Apr 27 09:50:46 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f187.google.com ([209.85.167.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1prwOs-0002xL-4L for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 27 Apr 2023 09:50:46 +0200 Original-Received: by mail-oi1-f187.google.com with SMTP id 5614622812f47-38ec6dda713sf4295916b6e.1 for ; Thu, 27 Apr 2023 00:50:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1682581845; x=1685173845; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=2V4B1it0L1XLXYLYn9lytHhXsg9GAXm6BNhwzbt7JZc=; b=eK34UfLNTrUIPbwnYZCXcKkDFbP7zJ7ripZ/UZUuyIvqLJtIZR4FeG1/U4Ux2E7o0d 2GC5fBoParpNxrb/pBqXooaPVNaIKCgdJmWw21DCtn+8wZrBP2nOPdf3vwVFyi5uIQ2P u3Fdy44o/oDXMtSKDs8Vq/tAEk7iBxCiG6SuO5Fda+j3Ue0GAx65e7RiIoTX/qOye3PS KMNZaBWTMQiLfx3IJXgo0njMBY2BkYVPSs96qdSZuykhqGo5SDV2VxiGZVejxOiiYlTn r/lmnM78vzKxKMJDx5WHc+bLF8rWSD1I0kxUamxjkD4q/WhRHNwnytV3zgQf4LeyjwdM y8xw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682581845; x=1685173845; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=2V4B1it0L1XLXYLYn9lytHhXsg9GAXm6BNhwzbt7JZc=; b=lqppCascIpjWbxrkjAUpee/L603vwy/JBWvjUhtEIMGUH1WZ3zEEAMicwCpWVK4mNJ jF/iExy3Cy/TKOrQY/urkuG/Ee6Ymwd0/RCGcp5PglBFvLj91tfnQMYvQiCfXyUhG3UE S9S9NXgkJ1561jWLn5rXfd47XJohEugqXdx/oawgSzX9E8fA7wxubHAKk/gXabFAYbqu Wa5SIpRJ3lLC/OdIxzvSaPvrBltsmgajPsq3CS72hzMd2jiUXxLEkfm95N1/BI8mKBAc Qsb73O1crvtqPwgarlPGHVGbjmD/J3oUpu6T0cT3jfDBnT1I43D1DBbgLn5EnteB13xi ZfXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682581845; x=1685173845; 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-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=2V4B1it0L1XLXYLYn9lytHhXsg9GAXm6BNhwzbt7JZc=; b=E0+BQZ5O9IyjMuiuS4KZUD0pN4I8F61CPwoIn1h0glxN0xNvK72vH0B5BZmrpFE42q KiEUevlz0++EGOhJV/kwG7vRMppQiuxTg01eTJnweP7lHoEVQz3ISThJYP6FpyTCY24R 6/r8yZKD4ghXHyF5evuFJfPTcrG7+CGFEpu/ov6cnlSVnBHSjw2WT4Q3lZCDnFbtG4f9 f/B4ZpUG3bOjGtU84Z64jCca/SF17msQsryvhajTxp3LY4/amUtQs4YYSMHbTudsVDG2 GGCo5E5Cgz85MLF0jfXi1LF+iJrL7J/EdenkIdnQArLWZjgvpO Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDyztCvtwz6AxuH8ZFu2DXCuTh2yT7P4a7CvVR25PLfgZfTnESJ+ 9gk4tSFjzB6v7p6T0u7Qv/0= X-Google-Smtp-Source: ACHHUZ7vlA3BXxE4fuqGMLDgvGRwo57Xnqoqw5yoS4zB1ATF7mxmayf6u+KRI0deb/7Zk8aOE9Cx8Q== X-Received: by 2002:aca:f109:0:b0:390:7cf9:3403 with SMTP id p9-20020acaf109000000b003907cf93403mr156966oih.7.1682581844883; Thu, 27 Apr 2023 00:50:44 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:3891:b0:6a6:3ba:389f with SMTP id bq17-20020a056830389100b006a603ba389fls147370otb.5.-pod-prod-gmail; Thu, 27 Apr 2023 00:50:42 -0700 (PDT) X-Received: by 2002:a9d:6a86:0:b0:6a5:ee63:94b1 with SMTP id l6-20020a9d6a86000000b006a5ee6394b1mr123341otq.4.1682581842586; Thu, 27 Apr 2023 00:50:42 -0700 (PDT) In-Reply-To: <075fcbb1-068d-4089-a475-b2901032e8a6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: guido.milanese-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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:32496 Archived-At: ------=_Part_618_1900774353.1682581841712 Content-Type: multipart/alternative; boundary="----=_Part_619_522396018.1682581841712" ------=_Part_619_522396018.1682581841712 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you and please excuse me for replying so late -- too many classes to= =20 teach these days. Your suggestion is perfect: the resulting LaTeX code is= =20 ``` \usepackage[citestyle=3Dext-authoryear, bibstyle=3Dext-authortitle]{biblate= x} ``` which exactly what I need.=20 All the best, g Il giorno luned=C3=AC 24 aprile 2023 alle 12:49:55 UTC+2 Julien Dutant ha= =20 scritto: > Have you tried not specifying a `biblio-style` YAML key and setting=20 > instead: > > ``` yaml > biblatexoptions: > - bibstyle=3Dext-authortitle > - citestyle=3Dext-authoryear > ``` > > From Pandoc's LaTeX template ( > https://github.com/jgm/pandoc-templates/blob/master/default.latex, line= =20 > 400) you'll see that the command is generated by: > > > \usepackage[$if(biblio-style)$style=3D$biblio-style$,$endif$$for(biblatex= options)$$biblatexoptions$$sep$,$endfor$]{biblatex} > > Which means that a `biblio-style=3DXXX` is converted to to the option=20 > \usepackage[style=3DXXX,]{biblatex}, but arbitrary biblatexoptions are=20 > reproduced as is. > > Best, > On Sunday, April 23, 2023 at 6:39:00=E2=80=AFPM UTC+1 Guido Milanese wrot= e: > >> I have been using pandoc + LaTeX + Biblatex for several years now as my= =20 >> normal tool for scholarly writing, and I find the biblatex filter really= =20 >> excellent. For some reasons, the style of a journal requires a particul= ar=20 >> biblatex style "mixture": >> >> ``` >> citestyle=3Dext-authoryear, bibstyle=3Dext-authortitle >> ``` >> >> For a similar use, see e.g.=20 >> https://tex.stackexchange.com/questions/433643/customizing-biblatex-auth= oryear-labels-in-bibliography-and-format-of-editor >> . >> >> Question: while I normally write, in my YAML header: >> >> ``` >> biblio-style: >> ``` >> >> I was not able to find a YAML instruction suitable for this particular= =20 >> need, i.e. two searate style for citation and for the final bibliography= .=20 >> Not a big issue, since I can edit the TeX file with s simple sed script,= =20 >> but I was just curious to know if it is possible to incorporate this=20 >> instruction within a YAML header. >> >> Many thanks for everything. >> guido (Italy) >> > --=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/f3b51db2-410b-4d0e-8e87-0ce66e71273en%40googlegroups.com. ------=_Part_619_522396018.1682581841712 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you and please excuse me for replying so late -- too many classe= s to teach these days. Your suggestion is perfect: the resulting LaTeX code= is

```
\usepackage[citestyle= =3Dext-authoryear, bibstyle=3Dext-authortitle]{biblatex}
```
which exactly what I need.

All the = best,
g

Il giorno luned=C3=AC 24 aprile 2023 alle 12:49:5= 5 UTC+2 Julien Dutant ha scritto:
Have you tried not specifying a `biblio-style` YA= ML key and setting instead:

``` yaml
=
biblatexoptions:
- bibstyle=3Dext-authortitle
- citestyle=3Dext-authoryear
```

<= div>From Pandoc's LaTeX template (https= ://github.com/jgm/pandoc-templates/blob/master/default.latex, line 400)= you'll see that the command is generated by:

= \usepackage[$if(biblio-style)$style=3D$biblio-style$,$endif$$for(biblatexop= tions)$$biblatexoptions$$sep$,$endfor$]{biblatex}

= Which means that a `biblio-style=3DXXX` is converted to to the option \usep= ackage[style=3DXXX,]{biblatex}, but arbitrary biblatexoptions are reproduce= d as is.

Best,
On Sunday, April 23, 2023 at 6:= 39:00=E2=80=AFPM UTC+1 Guido Milanese wrote:
I have been using pandoc + LaTeX + Biblatex for= several years now as my normal tool for scholarly writing, and I find the = biblatex filter really excellent. For some reasons, the style of a journal = requires=C2=A0 a particular biblatex style "mixture":
<= br>
```
citestyle=3Dext-authoryear, bibstyle=3Dext-= authortitle
```


Question: while I normally write, in my YAML header:
<= br>
```
biblio-style: <required style>
```

I was not able to find a YAML instruct= ion suitable for this particular need, i.e. two searate style for citation = and for the final bibliography. Not a big issue, since I can edit the TeX f= ile with s simple sed script, but I was just curious to know if it is possi= ble to incorporate this instruction within a YAML header.

Many thanks for everything.
guido (Italy)

--
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/f3b51db2-410b-4d0e-8e87-0ce66e71273en%40googlegroups.= com.
------=_Part_619_522396018.1682581841712-- ------=_Part_618_1900774353.1682581841712--