Add pabib alias and BibTeX template to papis configuration
- Add pabib alias for quick BibTeX export using 'papis export --format bibtex' - Add BibTeX template file to customize BibTeX output format 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
716d8578dc
commit
168ead6c1f
1 changed files with 21 additions and 0 deletions
|
|
@ -46,11 +46,32 @@
|
||||||
---
|
---
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Papis BibTeX template
|
||||||
|
home.file."Library/Application Support/papis/templates/bibtex.template".text = ''
|
||||||
|
@{doc[type]}{doc[ref],
|
||||||
|
author = {doc[author]},
|
||||||
|
title = {doc[title]},
|
||||||
|
year = {doc[year]},
|
||||||
|
journal = {doc[journal]},
|
||||||
|
booktitle = {doc[booktitle]},
|
||||||
|
publisher = {doc[publisher]},
|
||||||
|
volume = {doc[volume]},
|
||||||
|
number = {doc[number]},
|
||||||
|
pages = {doc[pages]},
|
||||||
|
doi = {doc[doi]},
|
||||||
|
url = {doc[url]},
|
||||||
|
abstract = {doc[abstract]}
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
|
||||||
# Shell aliases for papis workflow
|
# Shell aliases for papis workflow
|
||||||
programs.zsh.shellAliases = {
|
programs.zsh.shellAliases = {
|
||||||
# Bibliography formatting
|
# Bibliography formatting
|
||||||
pals = "papis list --template \"$HOME/Library/Application Support/papis/templates/bibitem.template\"";
|
pals = "papis list --template \"$HOME/Library/Application Support/papis/templates/bibitem.template\"";
|
||||||
|
|
||||||
|
# BibTeX export
|
||||||
|
pabib = "papis export --format bibtex";
|
||||||
|
|
||||||
# File operations
|
# File operations
|
||||||
paurl = "papis addto -u";
|
paurl = "papis addto -u";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue