emacs-citar / citar-org-roam

citar/org-roam integration
GNU General Public License v3.0
101 stars 9 forks source link

Question: On setting title for notes. #45

Closed MadFisa closed 1 year ago

MadFisa commented 1 year ago

Hi, I am a recently converted Vim user switching to doom emacs and a complete noob. I believe this wonderful plugin is part of the biblio module of doom and is trying to configure it to my needs. In particular, I have been trying to set up a template for roam note title using

(setq citar-org-roam-note-title-template

but I am unable to do so. I want the title be of the format " Author et al year". I tried using (setq citar-org-roam-note-title-template "${author:%etal} - ${year:4}")

But it did not work as expected, instead giving a blank for the author and sometimes giving a blank for year too. What is the required configuration to achieve this?

Similarly, I have tried setting up template using the example given in the readme for org-roam-capture-templates, It prompts me citar-citekey,citar-date etc. I believe this is similar to #24 , at least to my limited understanding. How can I get this to work?

Also, what are the full range of variables available for this templates? I am unable to find the documentation for these, but it could just be that I am looking at the wrong places, being new to the emacs.

I am pretty much using a doom config that is close to default.

bdarcus commented 1 year ago

Just quickly responding, try prefacing the variable names with citar-, as in the README?

The variable names are defined in a defcustom, so you can confirm what they should be, or change them.