* Unexpected behavior -f DOCX+citations with Mendeley
@ 2023-08-08 7:42 Brenda M
0 siblings, 0 replies; only message in thread
From: Brenda M @ 2023-08-08 7:42 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1797 bytes --]
The citation extension is supposed to support embedded Mendeley citations
in docx since pandoc 2.18 (2022-04-04).
It doesn't seem to be working at the moment. The Mendeley fieldcode in the
DOCX shows that assigned citekeys are unique per paragraph (not per
document), starting with `@ITEM-1`, then `@ITEM-2`, etc. If the document
contains many paragraphs with references, then the citation keys get
sequentially overwritten. The YAML citation metadata only keeps the
metadata corresponding to the last citation keys.
I tried the file provided at
https://github.com/jgm/pandoc/issues/7886#issue-1122560713. Then I modified
it to this file to check that the extension wasn't limited to hold just two
citation items.
command:
`pandoc -s -f DOCX+citations Mendeley.docx -o DOCX_citations.md`
pandoc version: 3.1.6.1 (Windows)
input: Mendeley.docx (attached)
output received: YAML with 5 references, scrambled citekeys
Excerpt:
```markdown
This is a Mendeley test [prefix @ITEM-1, 123 suffix].
Another test [prefix @ITEM-1, 10-20 suffix].
Originally the last test [@ITEM-1; @ITEM-2].
Let's assume I want to add a new reference [@ITEM-1].
And just testing if two citekeys are not a top
limit[@ITEM-1; @ITEM-2; @ITEM-3; @ITEM-4; @ITEM-5].
# References
```
output expected: YAML with 5 references, correct citation keys
Am I missing anything? Shall I log this as an issue?
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/07f74c25-6db6-4cb4-859c-c2f556801e1fn%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 2305 bytes --]
[-- Attachment #2: Mendeley.docx --]
[-- Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document, Size: 18713 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-08 7:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-08 7:42 Unexpected behavior -f DOCX+citations with Mendeley Brenda M
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).