From 77fff99614b9e691c34005ec507b9d9353d47b84 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Thu, 31 Jul 2025 12:45:06 +0200 Subject: [PATCH] Add dynamic type field to BibTeX template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Use @{{doc[type]}} to dynamically set BibTeX entry type - Add back booktitle field for conference papers - Properly escape braces using double braces for literal output 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- modules/papis.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/papis.nix b/modules/papis.nix index 2de2ffe..8d42a4d 100644 --- a/modules/papis.nix +++ b/modules/papis.nix @@ -48,11 +48,12 @@ # Papis BibTeX template home.file."Library/Application Support/papis/templates/bibtex.template".text = '' - @article{{{doc[ref]}, + @{{doc[type]}}{{{doc[ref]}, author = {{{doc[author]}}}, title = {{{doc[title]}}}, year = {{{doc[year]}}}, journal = {{{doc[journal]}}}, + booktitle = {{{doc[booktitle]}}}, volume = {{{doc[volume]}}}, number = {{{doc[number]}}}, pages = {{{doc[pages]}}},