-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Inline bibliographies in pandoc markdown #931
Comments
|
John, I was thinking about proposing this idea to you when I wrote the blog post you link to yesterday :). Although I'm not so sure I would differentiate top vs. bottom. For documents with a small (e.g. not more than 5) number of citations citeproc YAML in the top of the document might also work. |
Yes, I think that if we made the Currently YAML metadata blocks are only parsed at the top of the Another issue is formatting. Pandoc will interpret markdown in YAML |
Citeproc-js (I don't know about citeproc-hs) supports a minimal set of markup (b, i, sc, sub, sup) within titles: http://citationstyles.org/downloads/upgrade-notes.html#rich-text-markup-within-fields I don't know how Citeproc handles LaTeX math. |
That CSL documentation is slightly outdated. While citeproc-js still supports the (it took months to convince Bruce D'Arcus that it would be a good idea to support (non-semantic) inline formatting, and while citeproc-js supports it, it never made it into the spec; another reason is that the CSL spec is rather oblivious about metadata input formats (which can be considered a good thing)) I'm pretty sure citeproc-js doesn't process LaTeX math. I can't recall any discussions on the topic either. |
This should be discussed, I think. Mathematicians (among others) often have formulas in the titles of their articles. They'll never be convinced to switch from bibtex to CSL if it lacks good mathematics formatting capabilities. |
Feel free to bring this up at https://lists.sourceforge.net/lists/listinfo/xbiblio-devel . Are there any small open source libraries for processing snippets of LaTeX math that you're aware of? |
There is my texmath, which converts LaTeX math to MathML and Word equation objects. This probably wouldn't be much help in a javascript project, though, since it's in Haskell. It includes a cgi script, though, which one could call from javascript. |
I've made significant progress on this. I've started to decouple citeproc from pandoc. The new pandoc-citeproc package (currently only on github) includes an executable,
Here The pandoc-citeproc package also includes an executable, |
Correction: the sample above doesn't work as is; one needs to change the date part as follows:
Also, orcid is currently ignored, as it isn't a filed in citeproc-hs's representation of a Reference. |
It might be nice to allow bibliography entries to be specified inline in pandoc markdown, in a YAML format that duplicates citeproc JSON. (See here.)
Not quite sure what the syntax would be, and we might need to change the citation parsing so it doesn't assume that we already have the citation list in state.
The text was updated successfully, but these errors were encountered: