akopdev / obsidian-bibtex-manager

Create literature notes in Obsidian from BibTeX entries, display formatted reference lists, and instantly generate citations.
MIT License
59 stars 1 forks source link

[Question] Adding custom fields #7

Open Archie-2021 opened 6 months ago

Archie-2021 commented 6 months ago

Hello,

I am new to using bibtex, I think I may add some custom fields in bibtex files but I don't see any option for adding new templates and when I add a field it doesn't recognize it just refuse to fill the template.

I wonder if it is part of bibtex standard or what. I am starting to use papis for managing my stuff/files. It can export to bibtex and it can export manage anything (image , book etc). I wonder if I can make notes for these kinda of stuff too. I am happy to use the defaults for book (which I mainly read), but I like to think of new ways to use it.

Sorry to ask my question here , I did it because I didn't found any discussion section.

Thanks for your effort on making this plugin possible.

akopdev commented 6 months ago

Hi, there is a specification for the BibTeX format, but unfortunately, the majority of popular apps for managing BibTeX entries have their own variations and provide additional fields or different variable spellings.

This plugin should support any BibTeX that follows the core specification. You can also use multiple variables in a single place by defining them like this: {{varname1|varname2}}.

Could you please provide a sample entry that you are trying to process? This way, I can give you more personalized advice on how to define a template.

Archie-2021 commented 6 months ago

Hi, there is a specification for the BibTeX format, but unfortunately, the majority of popular apps for managing BibTeX entries have their own variations and provide additional fields or different variable spellings.

This plugin should support any BibTeX that follows the core specification. You can also use multiple variables in a single place by defining them like this: {{varname1|varname2}}.

Could you please provide a sample entry that you are trying to process? This way, I can give you more personalized advice on how to define a template.

Thanks for clarification, As I trying to replicate the case to send it to you , I figured out what I was did wrong. So no issue on using default template, my only questions right now is how I can make custom templates? I can't see any "Add" or "+" icons.

This plugin should support any BibTeX that follows the core specification. You can also use multiple variables in a single place by defining them like this: {{varname1|varname2}}.

Also this is very cool feature, thanks for mentioning it .

akopdev commented 6 months ago

Any note may become a template, following the core Obsidian concept of plain files and folders.

Here are the basic steps:

  1. Create a note in a folder of your choice (I have a separate folder called Templates).
  2. Add variables like {{title}} and others.
  3. Go to the plugin settings and select the note next to the relevant BibTeX entry type (see the Templates section).

Next time you insert a BibTeX entry, the plugin will automatically pick up the defined note and use it as a template. You can manually select which particular template to use during the creation process.

Archie-2021 commented 6 months ago

Any note may become a template, following the core Obsidian concept of plain files and folders.

Here are the basic steps:

  1. Create a note in a folder of your choice (I have a separate folder called Templates).
  2. Add variables like {{title}} and others.
  3. Go to the plugin settings and select the note next to the relevant BibTeX entry type (see the Templates section).

Next time you insert a BibTeX entry, the plugin will automatically pick up the defined note and use it as a template. You can manually select which particular template to use during the creation process.

I understand and it is supper cool and versicle, but I dont get different bibtex entry types have different templates.