-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
[FEATURE REQUEST] Syntax for citations #179
Comments
Hi @jghauser! Thanks for the suggestion! You happen to have a very coincidental timing as we are just starting to discuss some syntax changes to the general way of how links work (#178 (comment)).
|
Great to hear that this is in the works! I'm not sure if I understand all aspects of your proposal correctly, so please forgive me if the following small comments miss their mark.
Thanks for all the great work on neorg! |
This syntax is called an insertion in the norg format. It can be used to insert automatically generated text into the document (e.g.
Thanks for the suggestion. This is a very specific implementation detail so for now I think we will just note this here and get back to it once we actually start implementing that. |
Thanks for the explanation! I do like the idea of using the place where you 'import' the labels as the marker of where the bibliography will go -- it seems nicely minimalist. However, will it also be possible to have citations without having a bibliography? This is quite a common occurrence. I guess eventually it would be nice to also support file formats other than Bibtex. I don't use these personally, but they do seem to get more and more common. How do you think the CSL information could be included to define the citation style? |
Yes ofcourse. For this we could figure out some extension of the footnote syntax:
Obviously this requires a manual formatting of the reference text.
This is ofcourse also an extension. I just used
This seems to be relevant only when converting to another format. So this would be imo a candidate for |
See also more recent discussion on citation support for FWIW, I had a hand in the To compare the two syntaxes, however, The primary difference is the latter has named arbitrary local citation "styles" and "substyles"; the former fixed symbols. There is a trade-off there, obviously: much greater flexibility (it allows, for example, to support the full range of Also,
It's debatable how critical that is, but for some people it can be, given formatting engines often rearrange the order of the references within the citations. Edit: looks like John is likely to add this to djot's. Otherwise, they are the same from a modeling POV. Here's a good representation of Also, I don't really know the export story for neorg, but it may be feasible to integrate a project like this, say via third party plugin, to provide rich citation and bibliography formatting capabilities: https://github.com/zepinglee/citeproc-lua Though pandoc also has similar capabilities, also using |
@bdarcus that's awesome! If I'll take a look at the syntax for each one and try out some ideas. Norg by its nature prefers symbols over keywords, but there may be a way to get the best of both worlds here, especially since norg links are pretty darn flexible :p I'll wait on mrossinek and we'll cook up a preliminary syntax draft. Then I can post it here where it can be discussed further :) |
I do find the pandoc syntax better if you're just typing in the citation, say with autocompleting on the citekeys. It's very expressive, but compact, so really nicely stays out of the way while writing. With org, it's more verbose syntax is better suited to programmatic insertion, though in my emacs package we support both. |
The meat of the discussion has since moved to the specifications repository (found here: nvim-neorg/norg-specs#15), so I'll close this issue here in the neorg repository to prevent duplication and I recommend anyone interested in the to-be-devised citation syntax to move there! |
Issues
Feature description
Markdown (
[@SomeAuthor2021]
) and orgmode ([cite:@SomeAuthor2021]
) both have syntax for citations. This allows for proper referencing in academic texts and enables the automatic generation of bibliographies. Having something similar in neorg would allow writing academic texts with neorg and, once pandoc exports are implemented, the generation of properly styled pdfs (well, syntax for footnotes might be needed first, too).As the details are quite tricky (e.g. page numbers, citations with or without author name, and much much more), I think the best way of implementing this is to follow one of the existing standards (i.e. orgmode, pandoc markdown). Using one of these well thought-out standards will make sure that neorg accounts for the various needs of researchers regarding citations.
Given that pandoc will be used for converting from
.norg
to other file formats, what would probably be simplest is to take on pandoc's citation syntax, so that the relevant parts of the text can simply be passed on to it. In that case, what would be needed would be the following:[cite:CITATION]
)@
in CITATION would need to be retained as citations of the type-@SomeAuthor2021
also exist in pandoc (the-
indicates that that only the year should be displayed for example when generating pdfs).@document.met
?).csl
) fileAdditionally, it might be nice to have:
.norg
file (instead of in a separate file)I'm not very proficient in lua (or programming, for that matter), and I think implementing this might be beyond my abilities. However, I would love to see this feature and would be willing to take a stab at implementing it.
Help
Yes, but I don't know how to start. I would need guidance
Implementation help
The text was updated successfully, but these errors were encountered: