From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/24729 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Andrzej Wodecki Newsgroups: gmane.text.pandoc Subject: Re: generate bibliography from citations keys in docx? Date: Wed, 25 Mar 2020 09:14:16 -0700 (PDT) Message-ID: <7e7dfd7e-1bf1-4557-a5f0-e686d48e2438@googlegroups.com> References: <4d035407-d692-4ada-ac1a-b2668c8c80bc@googlegroups.com> <30f53079-9e7a-2046-f458-b23f9736ac48@reagle.org> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2678_1330115730.1585152856707" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="70274"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCAJTAHOV4CRBWUG53ZQKGQEFVNXJHY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Mar 25 17:14:22 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f63.google.com ([209.85.210.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jH8fd-000I9l-Bs for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 25 Mar 2020 17:14:21 +0100 Original-Received: by mail-ot1-f63.google.com with SMTP id 22sf1983191otg.21 for ; Wed, 25 Mar 2020 09:14:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=8LdmlFM+6QMBk/6U66Rv7jV/k8oJ2wLmAhSvLDssTjw=; b=P4KjEimFKQEIgNVCAPjjaWEp6KrWXjp9AwSytkTcFrV21MusPGylNQ2Y81X0kEAzBm wuVIZswtwFUwsGz0MedoKFGMG11InIIR3wwuWDmATxdl80NR6VFDHXXADQaA/b+4H49K tqgwR+VDsao6NWaz5HHF7sKoECTnntPGwyxW6B1/6nzrQxli1fOk5bISAmUoDxEnb0vN ukcUc9zDkmhZInGR0xf7lPkSap0ck9KOwSlQFtlf6UCGXj0N2VfQuPkOueWG2hh7yICd /jJxGMRgpRGsC/Sst32w1CHV+RHJl/OpasmJbn5I3Jbdg86mavgXrHtKF0mEHOe2CVpa /PDg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=8LdmlFM+6QMBk/6U66Rv7jV/k8oJ2wLmAhSvLDssTjw=; b=otufj43Kg9UcZMMHmtAojvMarFhjVs5gOaQaocoV81rIejFRHk+fSbjub7djTMQgj9 NRN3Gy49hmx8xC8cnr4liahsu/q3i2uGcgt9BNYx6vib1CyQqVhxqC28qjc85nC1kTeI ZP2uNnNAHRpZsrXffkv9Lz5ebLzi4ymuIsL18cNDHDTjHuiJzghW0lfn30hBHb+JWs4q soMizIidsvQ927DbFgMjnVyGo0YsS7x2Fs0OT4Y4mtPoegTxHgh9KCcFRxR70jY0Xy8u NVc1jc5NGUl/0Sw62tlVwy0Qt3vZjkOrulmuPQ6nhju5cx5E1yCn9Tq2jQfHGfrtzZMd DRjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=8LdmlFM+6QMBk/6U66Rv7jV/k8oJ2wLmAhSvLDssTjw=; b=A17dPUH7tzQtwuL5hoOizFgbdMDIj5plVBLGbLENkhK4ahgVASGLfyQJ3aFQRdF/90 R376LAeVI71EpCnU7LDh/gnfk/mSc6thk8E+SscSPEVMMp/v2X1Hly6xgAaqM3N0Oj7Z QxWpZd6yisHJLBRurJr1NkhAjqvkkNMNXfearbQ/jNNvBBq1UxcJJoOt3v2UxEFalCu5 2DGIg6PZAcAJ8z3MHzWJ5lY3l1AsOZcrGHJil9/xwbmUm1N3Xp+QgYkoSW5sE/xP+Gm2 s+NqfmxJ42TBcvaX4aGxoX7IioVtu5Gl9I4HnGAqV2uNi8AHSIwg2JTiDn3FGRWp+uEb SQoQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANhLgQ1L0PrASwCp1iOB0jxm7aFSuLk8AaY3yP8qi1nPd4nxrwSh/TSN AVmVmN6ikkf1Z+vxelmAXt8= X-Google-Smtp-Source: ADFU+vsIeYyQvXButQf29lDepijjlieFSVVThQ9BWXJrMWjbVmkJRGF6YeZM9PlDiM1HR+1RH638KA== X-Received: by 2002:a05:6830:2014:: with SMTP id e20mr3047080otp.317.1585152860298; Wed, 25 Mar 2020 09:14:20 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:3089:: with SMTP id f9ls852416ots.0.gmail; Wed, 25 Mar 2020 09:14:17 -0700 (PDT) X-Received: by 2002:a9d:7c90:: with SMTP id q16mr1011311otn.104.1585152857463; Wed, 25 Mar 2020 09:14:17 -0700 (PDT) In-Reply-To: <30f53079-9e7a-2046-f458-b23f9736ac48-T1oY19WcHSwdnm+yROfE0A@public.gmane.org> X-Original-Sender: andrzej.wodecki-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:24729 Archived-At: ------=_Part_2678_1330115730.1585152856707 Content-Type: multipart/alternative; boundary="----=_Part_2679_1444668213.1585152856708" ------=_Part_2679_1444668213.1585152856708 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The reason I have citation keys in MS Word is a consequence of my original= =20 workflow: Scrivener > markdown > pandoc-citeproc > MS Word, BTW described here:=20 https://medium.com/@andrzej.wodecki/scrivener-for-scientific-writing-setup-= af5edf4482b8 But at the final stage of my writings I escaped from Scrivener (export to= =20 MS Word), with only citation keys left in my doc. If only I start from scratch in MS Word that wouldn't be a problem, but... My temporary workaround (very primitive, but works) is: 1. docx > pandoc > markdown 2. markdown: replace all \@ by @ 3. markdown > pandoc-citeproc > docx Anyway, if you have any ideas for anything smarter would be nice to hear :) Yours,=20 Andy W dniu =C5=9Broda, 25 marca 2020 14:11:06 UTC+1 u=C5=BCytkownik Joseph napi= sa=C5=82: > > > On 3/25/20 8:01 AM, Andrzej Wodecki wrote:=20 > > Second trial =20 > > with in.docx:=20 > > Pandoc doesn't expect to find markdown (including pandoc's citation=20 > syntax) in a Word file. That only works in markdown files (and perhaps or= g=20 > files). So when it sees a citation in word->markdown, it takes it=20 > literally, and escapes the brackets so it remains so in the markdown.=20 > > Perhaps someone else can recommend a configuration that won't escape=20 > citation syntax, allowing you to go to markdown, and then from that back = to=20 > Word.=20 > > This seems convoluted though. If you're using Zotero, why not use the Wor= d=20 > plugin for that? Or, why not stay in markdown as your source document?=20 > > --=20 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 e= mail 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/7e7dfd7e-1bf1-4557-a5f0-e686d48e2438%40googlegroups.com. ------=_Part_2679_1444668213.1585152856708 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The reason I have citation keys in MS Word is a consequenc= e of my original workflow:
Scrivener > markdown > pandoc-citeproc= > MS Word, BTW described here:=C2=A0https://me= dium.com/@andrzej.wodecki/scrivener-for-scientific-writing-setup-af5edf4482= b8

But at the final stage of my writings I esc= aped from Scrivener (export to MS Word), with only citation keys left in my= doc.
If only I start from scratch in MS Word that wouldn't b= e a problem, but...

My temporary workaround (very = primitive, but works) is:
1. docx > pandoc > markdown
=
2. markdown: replace all \@ by @
3. markdown > pandoc-cit= eproc > docx

Anyway, if you have any ideas for = anything smarter would be nice to hear :)

Yours,= =C2=A0

Andy


W dniu = =C5=9Broda, 25 marca 2020 14:11:06 UTC+1 u=C5=BCytkownik Joseph napisa=C5= =82:

On 3/25/20 8:01 AM, Andrzej Wodecki wrote:
> Second trial =C2=A0
> with in.docx:=20

Pandoc doesn't expect to find markdown (including pandoc's cita= tion syntax) in a Word file. That only works in markdown files (and perhaps= org files). So when it sees a citation in word->markdown, it takes it l= iterally, and escapes the brackets so it remains so in the markdown.

Perhaps someone else can recommend a configuration that won't escap= e citation syntax, allowing you to go to markdown, and then from that back = to Word.

This seems convoluted though. If you're using Zotero, why not use t= he Word plugin for that? Or, why not stay in markdown as your source docume= nt?

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/7e7dfd7e-1bf1-4557-a5f0-e686d48e2438%40googlegroups.co= m.
------=_Part_2679_1444668213.1585152856708-- ------=_Part_2678_1330115730.1585152856707--