public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: <denis.maier-NSENcxR/0n0@public.gmane.org>
To: <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: AW: Preserving citations between docx and markdown conversions
Date: Fri, 10 Nov 2023 21:15:48 +0000	[thread overview]
Message-ID: <GV0P278MB021142EDAEA08B3C2C09D8A883AEA@GV0P278MB0211.CHEP278.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <GV0P278MB0211D7FB7C6886B4EC81C53C83AEA-WJyuHYKDu6H9IsystIVlkKYLGPO4stheiGd9ebBGJoev3QGu/rdwKA@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 5742 bytes --]

However, while you can just omit `--citeproc` when targeting docx, once you go back you’ll end up with citations like `\[@doe\]`, i.e. brackets will be escaped in the markdown. It’s obviously easy enough to take care of that with search-replace, but it’s not a fully automatic solution.

Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von denis.maier-NSENcxR/0n0@public.gmane.org
Gesendet: Freitag, 10. November 2023 22:12
An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Betreff: AW: Preserving citations between docx and markdown conversions

Probably a good suggestion.

Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von Paul M.
Gesendet: Dienstag, 7. November 2023 16:43
An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Betreff: Re: Preserving citations between docx and markdown conversions

Sie erhalten nicht oft eine E-Mail von pmmagic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<mailto:pmmagic@gmail.com>. Erfahren Sie, warum dies wichtig ist<https://aka.ms/LearnAboutSenderIdentification>
Might it be simpler to leave the citekeys unprocessed during the initial conversion to Word?

I think the citekyes format is simple enough to be self explanatory, and the markup is no more disruptive to reading then a standard author date citation style. You can tell your collaborators that these will be replaced by appropriately formatted citations at the final edit stage.

On Tue, Nov 7, 2023 at 10:18 AM Alex <ac.ringeri-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<mailto:ac.ringeri-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> wrote:
Hello! I am investigating using pandoc for my academic writing. I intend to do the majority of the writing in markdown but will have others reviewing and giving feedback through word (docx), and would like a way to re-integrate the edits back to markdown while keeping the text as close as possible. (md -> docx -> md)

In my markdown I have citations using the [@citekey] format:

Here is a reference to one of the entries in my bibliography [@Aigrain2021].

I would like a way to preserve citations when converting between docx and md.
I've tried the following approach but just get plain text (in the markdown) where the citation was.

Here is a reference to one of the entries in my bibliography (Aigrain
2021).

I am not sure whether the citations are being lost in the md to docx step or the docx to md step. (I am not familiar with the how word even stores citations)

Is what I want to do supported?
I have the files:
main.md
main.bib
nature-conservation.csl

The command I'm using to convert to docx (md -> docx):
pandoc --citeproc \
--bibliography main.bib \
--csl nature-conservation.csl \
-t docx+citations -o main.docx \
-f markdown+citations main.md

The command I'm using to convert back to markdown:
pandoc -s --citeproc \
--bibliography main.bib \
--csl nature-conservation.csl \
-t markdown+citations -o main.md \
-f docx+citations main.docx

Any ideas would be much appreciated. Thanks!
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/eead1157-56fa-4259-a223-a365c852e0cbn%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-discuss/eead1157-56fa-4259-a223-a365c852e0cbn%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CABoaWcXmivZz6kL_GcwVFn7Co-Qo7RfX8m1Gec_bqDyFmLJS-w%40mail.gmail.com<https://groups.google.com/d/msgid/pandoc-discuss/CABoaWcXmivZz6kL_GcwVFn7Co-Qo7RfX8m1Gec_bqDyFmLJS-w%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/GV0P278MB0211D7FB7C6886B4EC81C53C83AEA%40GV0P278MB0211.CHEP278.PROD.OUTLOOK.COM<https://groups.google.com/d/msgid/pandoc-discuss/GV0P278MB0211D7FB7C6886B4EC81C53C83AEA%40GV0P278MB0211.CHEP278.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>.

-- 
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/GV0P278MB021142EDAEA08B3C2C09D8A883AEA%40GV0P278MB0211.CHEP278.PROD.OUTLOOK.COM.

[-- Attachment #2: Type: text/html, Size: 14390 bytes --]

  parent reply	other threads:[~2023-11-10 21:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AQHaEY26LNeu48iKBUuT9RqvJYawSLBu+rWw>
2023-11-07  9:03 ` Alex
     [not found]   ` <eead1157-56fa-4259-a223-a365c852e0cbn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-11-07 15:33     ` AW: " denis.maier-NSENcxR/0n0
     [not found]       ` <GV0P278MB02117A2D92683B79046B9E8E83A9A-WJyuHYKDu6H9IsystIVlkKYLGPO4stheiGd9ebBGJoev3QGu/rdwKA@public.gmane.org>
2023-11-08 21:32         ` Alex
     [not found]           ` <c85d1876-2c1e-41cf-a735-15ca9a5be81en-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-11-09  8:53             ` AW: " denis.maier-NSENcxR/0n0
2023-11-07 15:43     ` Paul M.
     [not found]       ` <CABoaWcXmivZz6kL_GcwVFn7Co-Qo7RfX8m1Gec_bqDyFmLJS-w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-11-10 21:12         ` AW: " denis.maier-NSENcxR/0n0
     [not found]           ` <GV0P278MB0211D7FB7C6886B4EC81C53C83AEA-WJyuHYKDu6H9IsystIVlkKYLGPO4stheiGd9ebBGJoev3QGu/rdwKA@public.gmane.org>
2023-11-10 21:15             ` denis.maier-NSENcxR/0n0 [this message]
     [not found]               ` <GV0P278MB021142EDAEA08B3C2C09D8A883AEA-WJyuHYKDu6H9IsystIVlkKYLGPO4stheiGd9ebBGJoev3QGu/rdwKA@public.gmane.org>
2023-11-11  1:41                 ` Alex

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=GV0P278MB021142EDAEA08B3C2C09D8A883AEA@GV0P278MB0211.CHEP278.PROD.OUTLOOK.COM \
    --to=denis.maier-nsencxr/0n0@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).