public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Guido Milanese <guido.milanese-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: YAML: biblio-style, citestyle, bibstyle
Date: Thu, 27 Apr 2023 00:50:41 -0700 (PDT)	[thread overview]
Message-ID: <f3b51db2-410b-4d0e-8e87-0ce66e71273en@googlegroups.com> (raw)
In-Reply-To: <075fcbb1-068d-4089-a475-b2901032e8a6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 2568 bytes --]

Thank you and please excuse me for replying so late -- too many classes to 
teach these days. Your suggestion is perfect: the resulting LaTeX code is 

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

All the best,
g

Il giorno lunedì 24 aprile 2023 alle 12:49:55 UTC+2 Julien Dutant ha 
scritto:

> Have you tried not specifying a `biblio-style` YAML key and setting 
> instead:
>
> ``` yaml
> biblatexoptions:
> - bibstyle=ext-authortitle
> - citestyle=ext-authoryear
> ```
>
> 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=$biblio-style$,$endif$$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex}
>
> Which means that a `biblio-style=XXX` is converted to to the option 
> \usepackage[style=XXX,]{biblatex}, but arbitrary biblatexoptions are 
> reproduced as is.
>
> Best,
> On Sunday, April 23, 2023 at 6:39:00 PM 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  a particular 
>> biblatex style "mixture":
>>
>> ```
>> citestyle=ext-authoryear, bibstyle=ext-authortitle
>> ```
>>
>> For a similar use, see e.g. 
>> https://tex.stackexchange.com/questions/433643/customizing-biblatex-authoryear-labels-in-bibliography-and-format-of-editor
>> .
>>
>> Question: while I normally write, in my YAML header:
>>
>> ```
>> biblio-style: <required style>
>> ```
>>
>> I was not able to find a YAML instruction 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 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.
>> guido (Italy)
>>
>

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

[-- Attachment #1.2: Type: text/html, Size: 4389 bytes --]

      parent reply	other threads:[~2023-04-27  7:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-23 17:38 Guido Milanese
     [not found] ` <c12bf5d1-72d3-4883-b1af-425594f27822n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-04-24 10:40   ` Julien Dutant
2023-04-24 10:49   ` Julien Dutant
     [not found]     ` <075fcbb1-068d-4089-a475-b2901032e8a6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-04-27  7:50       ` Guido Milanese [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f3b51db2-410b-4d0e-8e87-0ce66e71273en@googlegroups.com \
    --to=guido.milanese-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).