Docx has a built in reference tracker, which keeps the references in an xml file in the document (and can change citation format on the fly). The docx reader could read these and convert them into pandoc citations.
Ideally, if we're going docx->markdown, we'd expect the citations to be similarly built into the markdown file. @jgm, do you think it would work to have this conversion produce yaml-block citation entries?
+++ Jesse Rosenthal [Dec 11 17 13:45 ]:
Ideally, if we're going docx->markdown, we'd expect the citations to be
similarly built into the markdown file. [1]@jgm, do you think it would
work to have this conversion produce yaml-block citation entries?
Sure, this could be done. It's just a matter of adding a
references field to the metadata (or adding items to an
existing references field).
Okay -- I'll take a look at how bearable the xml format is. Although I
wonder how many people use this, vs zotero or endnote or whatever.
I'll also take a look around and see how much (a) people seem to use
this feature, and (b) how easy it is to export citations into
zotero/endnote/etc. If it looks useful, it might be worth considering
putting it the writer (sort of as docx analogue to
--biblatex/--natbib).
John MacFarlane notifications@github.com writes:
+++ Jesse Rosenthal [Dec 11 17 13:45 ]:
Ideally, if we're going docx->markdown, we'd expect the citations to be
similarly built into the markdown file. [1]@jgm, do you think it would
work to have this conversion produce yaml-block citation entries?Sure, this could be done. It's just a matter of adding a
referencesfield to the metadata (or adding items to an
existingreferencesfield).--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/jgm/pandoc/issues/4140#issuecomment-350761949
Hm, I know of no academics who use the Word Citations feature, it is very basic (manual entry) but quite elegantly integrated in Word, Endnote is sadly the king of the hill for most people. Being able to retain reference data from the reader into YAML metadata would be neat, but I suspect the number of users would be exceedingly small :-)
I do wonder if Endnote uses the same XML store for its travelling library (it can store refs in a word doc), if this was the case being able to import the references would become a much more useful feature!!! But I imagine Endnote deliberately separates them, I'll have a look at a sample docx and see...
Endnote places all reference data in document.xml directly as escaped xml:
<w:bookmarkStart w:id="0" w:name="_GoBack"/>
<w:r><w:fldChar w:fldCharType="begin"/></w:r>
<w:r><w:instrText xml:space="preserve"> ADDIN EN.CITE <EndNote><Cite><Author>Zeki</Author></Cite></EndNote></w:instrText></w:r>
<w:r><w:fldChar w:fldCharType="separate"/></w:r>
<w:r><w:rPr><w:noProof/></w:rPr>
<w:t>(Zeki and Shipp 1989)</w:t></w:r>
<w:r><w:fldChar w:fldCharType="end"/></w:r>
<w:bookmarkEnd w:id="0"/>
iandol> Hm, I know of no academics who use the Word Citations feature, it is very basic (manual entry) but quite elegantly integrated in Word, Endnote is sadly the king of the hill for most people.
on the contrary, in my region i have seen (among the MSWord users) users using Word citations feature heavily, and only one using Endnote so far.
Hence, it will be a really useful feature.
It's definitely on my to-do list.
Hello! Has there been any further development in this area? I have come across several manuscripts which make use of Microsoft Word's built-in reference management tool.
For my use case, I would like to go from docx -> markdown and have Pandoc extract the references which were made using Microsoft's reference management tool.
I was also wondering if this issue could be addressed in the near future.
Not quite the same, but possibly helpful: https://rintze.zelle.me/ref-extractor/
Most helpful comment
Hello! Has there been any further development in this area? I have come across several manuscripts which make use of Microsoft Word's built-in reference management tool.
For my use case, I would like to go from docx -> markdown and have Pandoc extract the references which were made using Microsoft's reference management tool.