From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32486 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Julien Dutant Newsgroups: gmane.text.pandoc Subject: Re: YAML: biblio-style, citestyle, bibstyle Date: Mon, 24 Apr 2023 03:49:55 -0700 (PDT) Message-ID: <075fcbb1-068d-4089-a475-b2901032e8a6n@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_7610_848599596.1682333395079" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33143"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC5Y3356IYINJPMZUIDBUBAMHE5IE-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Apr 24 12:50:00 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f183.google.com ([209.85.167.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pqtlf-0008PT-KS for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 24 Apr 2023 12:49:59 +0200 Original-Received: by mail-oi1-f183.google.com with SMTP id 5614622812f47-38e4f308c49sf2994423b6e.1 for ; Mon, 24 Apr 2023 03:49:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1682333398; x=1684925398; 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=D0gxfkXItrCkIBY5mL4MnsEYraaFarJlgMR65XNAGiU=; b=qkFG1xQQ3E4N54AQrKyepkL1Dl655puuobwKEBIjrOnlo/6JsP0W8Y95HRF8BQEEAE KLWkzLLo11+N4jumupbr5m5VsqlfwuOVJUK5qMd6InpAYfCfHFTr6kyBQJNFAlTGV/YH JY0mvlTZGGqrw9vD53ga+w2F2jRgvGCc94Q4my8Xp+gvN6kZA7MKS4on0Yv7EBjFlAJ7 lLA+cbSpIqJklJl0odZTUV4QhivkKhGZzZbr40wEmi5CYXynWEl+LrsjB9L68w5bNXSn iS1VDNBocWCkmJKYKYeWY4NeasmRlIrzAn4r0F4ch3CfwfpO+dIH0kXSSflFMWjC5Vo4 5aTw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682333398; x=1684925398; 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=D0gxfkXItrCkIBY5mL4MnsEYraaFarJlgMR65XNAGiU=; b=fnFD67n2oh3g6uNIx2HmXjkhD4u2eqohkyBRvbPkSdOJ6bSb7LmUpkUAUdMmeUXtJh XGJhNDkPok2sPatlGMzZzFQzQAZuL8Hx6zrduwN9DTJC8Pxyl6sGNo991I9t4NloXO9X Mk1WEA7kUFb+P69XyNio/mLjNJT2u2lBDG15nBVV6NeO/bEqlw2PiBpsKtxxqRRlDZQ8 lS47FtoYQVHpYrEchEcS7DtVrd8UPmAFFEqixTIYDqZkZ06hXLyHO58ZqNgZH5PONJgI Ovz3Bp/2FhLanaj86D5NKvD0yLU6CQZfwdLxaYy6OEO8uUQdrZMmx1eKkZQMrAb97Ds3 34lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682333398; x=1684925398; 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=D0gxfkXItrCkIBY5mL4MnsEYraaFarJlgMR65XNAGiU=; b=Ejvk9kBEfT5WnMDE7OB2fToZS3EU0SubMOkuiM39JU0gqScgy1hAHkowBt4jArQ+yV SbgL+PHvQkCy60lu7eMDA4MU5qmOWchwJxLKv1yc2I77vmRAGmvy01JhB0o1uHNiLOzH 6DnMcp7yU+h5nyHkxZSaPhGHJUeMcSuuO4UCgZK+ChQtVZE4L0j+AlXUT4MyMPftL+zI JrM8eClntLBa1owKmGb7d6Yqm7AZ+c7Yhr005q8u3KF/f1L7ey7THiBde7xGkbHVidFL A9UnJFHQKNsFsf662IJxvx44Ow1o68Qs0tFEODHAurIB0P3nRJ Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AAQBX9f/Qp3rOVn11UsvEeu7axbJwCfk4YwMVr8ClmoO9VFdliTgEjCu MJlx/ldqb15XTScTdbtpzsfEYA== X-Google-Smtp-Source: AKy350YZfhIbSarq9++v67+7bgtvkAX/wcREecgukp/r5KMQ5biG7bJphVmFzS5BUDpBMt8zCD9S4A== X-Received: by 2002:aca:f382:0:b0:38b:4fc0:40bf with SMTP id r124-20020acaf382000000b0038b4fc040bfmr2494370oih.0.1682333398378; Mon, 24 Apr 2023 03:49:58 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:1987:0:b0:6a5:f57b:c269 with SMTP id k7-20020a9d1987000000b006a5f57bc269ls1631466otk.3.-pod-prod-gmail; Mon, 24 Apr 2023 03:49:55 -0700 (PDT) X-Received: by 2002:a9d:4c1a:0:b0:6a1:312a:e197 with SMTP id l26-20020a9d4c1a000000b006a1312ae197mr3839180otf.5.1682333395691; Mon, 24 Apr 2023 03:49:55 -0700 (PDT) In-Reply-To: X-Original-Sender: julien.dutant-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:32486 Archived-At: ------=_Part_7610_848599596.1682333395079 Content-Type: multipart/alternative; boundary="----=_Part_7611_1035819496.1682333395079" ------=_Part_7611_1035819496.1682333395079 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Have you tried not specifying a `biblio-style` YAML key and setting instead= : ``` yaml biblatexoptions: - bibstyle=3Dext-authortitle - citestyle=3Dext-authoryear ``` >From Pandoc's LaTeX template=20 (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(biblatexop= tions)$$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 wrote: > 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 particula= r=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-autho= ryear-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/075fcbb1-068d-4089-a475-b2901032e8a6n%40googlegroups.com. ------=_Part_7611_1035819496.1682333395079 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Have you tried not specifying a `biblio-style` YAML key and setting in= stead:

``` yaml
biblatexop= tions:
- bibstyle=3Dext-authortitle
- citestyle=3D= ext-authoryear
```

From Pa= ndoc'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(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex}

Which means that a `biblio-style=3DXXX` is converte= d to to the option \usepackage[style=3DXXX,]{biblatex}, but arbitrary bibla= texoptions are reproduced as is.

Best,
O= n Sunday, April 23, 2023 at 6:39:00=E2=80=AFPM UTC+1 Guido Milanese wrote:<= br/>
I have b= een using pandoc + LaTeX + Biblatex for several years now as my normal tool= for scholarly writing, and I find the biblatex filter really excellent. Fo= r some reasons, the style of a journal requires=C2=A0 a particular biblatex= style "mixture":

```
cite= style=3Dext-authoryear, bibstyle=3Dext-authortitle
```
<= div>

Question: while I normally wr= ite, in my YAML header:

```
bibl= io-style: <required style>
```

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

Many thanks for everything.<= /div>
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/075fcbb1-068d-4089-a475-b2901032e8a6n%40googlegroups.= com.
------=_Part_7611_1035819496.1682333395079-- ------=_Part_7610_848599596.1682333395079--