Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for BibTeX "entry types" #10

Closed
kerim opened this issue Jul 9, 2022 · 7 comments
Closed

Support for BibTeX "entry types" #10

kerim opened this issue Jul 9, 2022 · 7 comments

Comments

@kerim
Copy link

kerim commented Jul 9, 2022

Ideally an app of this kind would support the full range of 14 entry types in the BibTex format. That would mean two things:

  1. Being able to use a {type} placeholder in templates which would enter "book," "article," ''MA Thesis" etc.
  2. Producing differently formatted inline note templates depending on the type. For instance, a book might be: {author}. {year}. *{title}*. {address}: {publisher}. Whereas a journal article would be: {author}. {year}. "{title}." *{journal}* {volume} ({number}): {pages}.

1 seems a lot easier than 2, but is very useful because one can then filter one's literature notes by type if this is included in the page metadata. 2 might be something to think about for future development. For now I have a template which lists both and then I delete the incorrect one.

@sawhney17
Copy link
Owner

  1. Should already be working.
  2. This would not be possible in the current settings view of logseq. This would require manually editing a json file to create this. Similar to how the banners plugin implements custom links based on page types. Would that work?

@sawhney17 sawhney17 reopened this Jul 9, 2022
@kerim
Copy link
Author

kerim commented Jul 9, 2022

I don't mind editing the JSON file - for new users you'd probably want to have some default settings.

I'll test out 1 again.

@sawhney17
Copy link
Owner

sawhney17 commented Jul 9, 2022 via email

@kerim
Copy link
Author

kerim commented Jul 9, 2022

I can't get {type} to work with any citation. I've tried several books and articles and it is always just blank.

@sawhney17
Copy link
Owner

sawhney17 commented Jul 9, 2022 via email

@kerim
Copy link
Author

kerim commented Jul 9, 2022

I entered the following line:
source:: {type}

and I get:
source::

So it isn't that.

sawhney17 added a commit that referenced this issue Jul 11, 2022
github-actions bot pushed a commit that referenced this issue Jul 11, 2022
## [1.6.8](v1.6.7...v1.6.8) (2022-07-11)

### Bug Fixes

* **parser:** type [#10](#10) ([d7805a1](d7805a1))
@kerim
Copy link
Author

kerim commented Jul 27, 2022

This issue is fixed, right?

@kerim kerim closed this as completed Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants