Add dynamic type field to BibTeX template

- 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 <noreply@anthropic.com>
This commit is contained in:
Yan Lin 2025-07-31 12:45:06 +02:00
parent 59111b4ccf
commit 77fff99614

View file

@ -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]}}},