For a temporary solution It looks like you have to modify Pandoc's LaTeX template. The biblatex manual says that citestyle has to be given as \usepacakge option. 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}
```
You could insert a command to use a cite-style variable here. Save the default template by running `pandoc -D latex > mytpl.latex`, replace line 400 with:
```
\usepackage[$if(cite-style)$citestyle=$cite-style$,$if(biblio-style)$bibstyle=$biblio-style$,$endif$$else$$if(biblio-style)$style=$biblio-style$,$endif$$endif$$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex}
```
(This generates `citestyle=<cite-style>,bibstyle=<bibstyle>` if both are present and `sytle=<bib-style>` if the YAML doesn't define a `cite-style`.) You can then add `cite-style: ext-authoryear` to your YAML block and run Pandoc with --template mytpl.latex. You can place the template in your pandoc user directory so it can be used anywhere with --template mytpl.latex, e.g. $HOME/local/share/pandoc on Linux. See https://pandoc.org/MANUAL.html#option--data-dir
The downside is that you might have to redo this in further Pandoc updates (unless Pandoc's own template introduces a cite-style option).
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
```
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/012f9280-1c53-4146-a8bd-55128d816274n%40googlegroups.com.