TransWikia.com

How to auto-complete with comma-separated citations?

TeX - LaTeX Asked by Olivier Melançon on January 27, 2021

I am using TexMaker and I want my editor to auto-complete the parencite{} command for biblatex for any number of arguments.

I already added parencite{#bib#} in User > customize Completion, but I want auto-completion for comma-separated sources. By example:

parencite{fooBar2020, BazBuzz2021}
parencite{fooBar2020, BazBuzz2021, [more arguments]}

Is there a way to achieve that?

One Answer

(This is an extended version of my previous comment.)

I'm not familiar with TeXMaker, but TeXstudio does the desired thing. That is, in TeXstudio,

  • auto-completion for comma-separated citations in cite{...} is supported,
  • if package biblatex is loaded, then that in parencite{...} is also supported.

Moreover, suppose you have newcommandmycite[2][]{cite[#1]{#2}}, then you can make TeXstudio's auto-completion support mycite by adding

mybib{bibid}#c
mybib[post note]{bibid}#c

to a .cwl file under TeXstudio's config path and mark it autoloaded in Configure -> Completion.

Related TeXstudio docs:

Correct answer by muzimuzhi Z on January 27, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP