From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33278 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.text.pandoc Subject: AW: Preserving citations between docx and markdown conversions Date: Tue, 7 Nov 2023 15:33:20 +0000 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_GV0P278MB02117A2D92683B79046B9E8E83A9AGV0P278MB0211CHEP_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29661"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: pandoc-discuss+bncBCZ27W53TUFBBRNRVGVAMGQEE3KON7Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Nov 07 16:33:33 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f183.google.com ([209.85.208.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1r0O56-0007Tb-Hd for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 07 Nov 2023 16:33:32 +0100 Original-Received: by mail-lj1-f183.google.com with SMTP id 38308e7fff4ca-2c50d73e212sf63978751fa.1 for ; Tue, 07 Nov 2023 07:33:32 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1699371212; cv=pass; d=google.com; s=arc-20160816; b=acYV2szjFfQNbhHQYJyiiDCNrPeLz3kufyQWkW75nmcibpXu+tNCsDZLF0+oKRHeSb oTM8dyGmzeiPlzeVGiZTVhYlJkN7b5DswZFWXTNzCbuLzib6kgCgf+AJcELrRgYdZ8Tc FBbK7L5UUHGWSEyILaARWOB33LQrAx3SUYMb2b5AMp7fEH3AEt0NEpFIGbMpvx2gT0z+ L7fGEO9L426g96hayu6zo4kZinSfhrdOotf2QUNXzg2IAeNvYi9INpFZA/uAeuXynHHm xUFVx+0S5Yio7vX9xI+AcAkM7IA8wnCvF4OZ44ZVpA4DyPQw42/O8quJVFxV3stw/8xU dZ6A== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:sender :dkim-signature; bh=p1jxQtopJ4Dv+yTJfgqs8kkvyQ+UjeTOh2XiyJAVabY=; fh=UyxIHVUYZvjWyFF68CRt+7uyuGox5bGx8I7lV7uHzjE=; b=Hl5z/Ez1RwhRDd8BLx5XFTcX+zO+Ave/u0lKusC7KuISfsZoh7Fwej1M7W4KOjsk+1 z1c4f6qhGXayDZ7UwXYbNLaj/IiZQ8MGW5YRoMnQITj+WGFTI8VPO8uaOwBtqt7Pg6/E rhzgwLCoHEeBzuwpBDPokduK6z7mub+tgb/aA1bdwMB2cMIIIag9BRTOVBUm+mf+6iEz P2bO22dPnWjvd+u+JyuGnpQur/O+83c1vPVHXqQU6d6osmynp0nsYk7OpHAV2g89MSqa g23TJ6Eke26c9Xy1mUlJs8ncHSH2SUcpTLijt3T4BjzETgA7M/lW4wOaJbcDct6H3k+0 ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@unibe.ch header.s=selector1 header.b="nW/YPinu"; arc=pass (i=1 spf=pass spfdomain=unibe.ch dkim=pass dkdomain=unibe.ch dmarc=pass fromdomain=unibe.ch); spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 2a01:111:f403:4023::716 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1699371212; x=1699976012; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:sender:from:to:cc :subject:date:message-id:reply-to; bh=p1jxQtopJ4Dv+yTJfgqs8kkvyQ+UjeTOh2XiyJAVabY=; b=ErnEdAqn2CKKfhkZ8vbetorYfJEM/YfRetyKcaxxHMDXDkXXjvY6qeYyM1eyILkK7L sapLBNFI0KaTcC0bKmfv8cUBUkdjE7YQz/fLs9WnzbiCkP+sf4Hdc5no7HiUjwqIuwct ltYn4MLJUc34Zsoq2Az9+mYOckJ2jHwWI0AhAAvbJd3G2I9AUVAirRYcy0Yz7q/3af+N oXWSKNd90j8yobbsoeEPXJDv/JGCuu54eMXMcI68jiX0zfK3GSqBZ2lRnUBW2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699371212; x=1699976012; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=p1jxQtopJ4Dv+yTJfgqs8kkvyQ+UjeTOh2XiyJAVabY=; b=rKSb6A0KHMOCYMJn4boIqx820aEVG23U1q8FMWTa0mbBhtWV+wc32+UEB2ZrTostRx FQQ0qs7BrGlZqrycWQZwwIL23RqbyMwNLiFXBO0mGmFU0sSEBLiSO8YdCh8504+5oddF UGXlkzS6bOGg0mVgc8ZxvM79nu6QLy6fl8ov8578DS4SyAfx2hXGt3jRrYkzOzyHnT28 nE3SxZ7L9Lcvgr6 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YyUDJSsytO/mM6cFzDuaJDpO2+uQLg5UvRBvYObbjRRY32TXzXn tJB5t7/hwdYdz2jToQ+Wvuw= X-Google-Smtp-Source: AGHT+IEP21gfCp46oSTcS1P3JhEhfZrgxx6WAlC9KnhhLk+7iqcWYq/dhGs0CKAKJaQY6ewGpJTz4g== X-Received: by 2002:a2e:86c3:0:b0:2c5:94a:ac96 with SMTP id n3-20020a2e86c3000000b002c5094aac96mr27836955ljj.9.1699371210560; Tue, 07 Nov 2023 07:33:30 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a2e:be12:0:b0:2be:58d1:dc38 with SMTP id z18-20020a2ebe12000000b002be58d1dc38ls1066015ljq.1.-pod-prod-06-eu; Tue, 07 Nov 2023 07:33:23 -0800 (PST) X-Received: by 2002:a2e:b4aa:0:b0:2c2:9e5c:2c82 with SMTP id q10-20020a2eb4aa000000b002c29e5c2c82mr22465775ljm.46.1699371203319; Tue, 07 Nov 2023 07:33:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699371203; cv=pass; d=google.com; s=arc-20160816; b=MDUXwfAtnQQawZ363AhJproWnoKx1gVY2pukeykgQBO+gMpO4VAlDNELaHcOGCxFf5 SnGDj+i3TyEeYOgeWKVclDNYMoeNMmyvV3h1h+n5cRGfGv+5ooPjRnHUAevtBdn8GAvr yNvFZgRMkTkS5QnboPqxBpGenGMCPC+0UBoL4++MZzdBgTfoS+PrxgEVZp5NYOf9zfR/ Ajy0zaXvE8xcDctb86iXL4UyDXVnWs3JutggJXXbqBegwI0M1uO99lpnvX3W7SkHFUPS NH1m6l5zWJCse4MY9KR6Nc0O8Jg0qCjSmgoaPatgfjPsRYvNixvOHyPeI1AEtA+ydMhx jnGg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:to :from:dkim-signature; bh=YUUvj4m1fW26AppRSArKagMROtGPXip9crwMT9JgPZI=; fh=UyxIHVUYZvjWyFF68CRt+7uyuGox5bGx8I7lV7uHzjE=; b=lj50LTCUyjwLBb21797zX6GI30Itl0dPWWzbBapvkQKZO96r+VrgdH8N+Vf3wYkD+t gCjubYngWi+uwyNhI/bKLtyeHQn2tvbbfujxo05QyJU3FYXi16meb1Xes8pWkPSHhz5E T3s68zDr58AbPl7GpBfpVS4iQb7FN+wjvE7otMG65pK6uJEsjCm+RoH+siGCX1y8tDhL MRseNmTyGMwDm/34VIqwjKpkMDnJpT2tlU6JtK6YQYMvijjydtkGekkFlWmV2iaN+VEb RuoMsT1Q5xqg2VcLpUlRtID8CqHOMZeUUU5lIWIb8aps1N64wT3rV+klov/X5hL31IIs 2YdA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@unibe.ch header.s=selector1 header.b="nW/YPinu"; arc=pass (i=1 spf=pass spfdomain=unibe.ch dkim=pass dkdomain=unibe.ch dmarc=pass fromdomain=unibe.ch); spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 2a01:111:f403:4023::716 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch Original-Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01on20716.outbound.protection.outlook.com. [2a01:111:f403:4023::716]) by gmr-mx.google.com with ESMTPS id l21-20020a2e99d5000000b002b6f8d5f93csi585541ljj.2.2023.11.07.07.33.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Nov 2023 07:33:23 -0800 (PST) Received-SPF: pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 2a01:111:f403:4023::716 as permitted sender) client-ip=2a01:111:f403:4023::716; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NnBL9gq5I+g1/oWBnGwsELBvPTYW6jp2niiiGqXfGl9StopADPjN3OVbjTe2R/qk4DjSDpfZbX0jkIfhEdN23wgaAgq/sys9jm/qxhYYMwFrOSeHnpY7YVwuLu/IXBc04icVgXqXQbg042DMOS9Ld2LdwNdsQC4A5/0TtPVcJs2+Du4LNwMXMGROtxmU/r78nNvCuHl0U/Swa5acG9vLzPbopSC6ntIJj7SK4PFyEsNuRkufqROA8Za/JAI08vz8Ndwp4xJAmShyYV07JU/0cWONoCtZByrR5qQZ1V2rojToHpLzKHP531qIWTqpJMokvPQCB/rFKavbSFCQK7hChQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YUUvj4m1fW26AppRSArKagMROtGPXip9crwMT9JgPZI=; b=m3zumpJEQNWFco4reX0lg91YGaIN2cmfSeQfAoC000fE/r+utzub+D48BAQA4pHb9tE8kWSI230Y4iW9SRLnChYqwf9+1lIiJ8Cb3QJOdLv7Hrs7AFrvacrjaVGgDvMqr/gWFm+rdxv5ZjBC4VEpFnxl2Lyt4GqorjAymvSf9hrymK7R+tBy8LRBUySP/DcJfwkXHP1j9lc2MHOgtN6Y0f8lhxzokGhHxjLFP9e7uiox1t0C/auygQS9zli6rfH4XvAOxdcr4lvseBgqVCJEWLDks1mvkhQjZrj5+4KchdXRVulu7/KkrLGQ4IEXI1Wa08qd9g0zw/vXog26ss2SRA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=unibe.ch; dmarc=pass action=none header.from=unibe.ch; dkim=pass header.d=unibe.ch; arc=none Original-Received: from GV0P278MB0211.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:30::7) by ZR1P278MB1117.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:58::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.28; Tue, 7 Nov 2023 15:33:21 +0000 Original-Received: from GV0P278MB0211.CHEP278.PROD.OUTLOOK.COM ([fe80::3b2:e06f:5d32:8430]) by GV0P278MB0211.CHEP278.PROD.OUTLOOK.COM ([fe80::3b2:e06f:5d32:8430%6]) with mapi id 15.20.6954.029; Tue, 7 Nov 2023 15:33:20 +0000 Thread-Topic: Preserving citations between docx and markdown conversions Thread-Index: AQHaEY26LNeu48iKBUuT9RqvJYawSLBu+rWw In-Reply-To: Accept-Language: de-DE, en-US Content-Language: de-DE x-ms-publictraffictype: Email x-ms-traffictypediagnostic: GV0P278MB0211:EE_|ZR1P278MB1117:EE_ x-ms-office365-filtering-correlation-id: 89c2b52d-09fd-401b-a5cf-08dbdfa6df6c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: XvPtySZghZXekcwAitPwYLv/2eYnnmc26eCkuPusGbfRV2hjXh5R4s/oph8eyEXJsKMrM+DwSLMsAQuKUjSccjEJA6UGRzXJzrFjv1HiHCI8V1/Hdc7cZc2/iRy6IjWiXdjsMpTJCgJ+eSC/4ng6xXes/RoCwsCvsq/Mk9v6nGgYZUQGK6k4gDz7m7alweiGxmH9Ak3PP1NOtvq5qQIpniB4/l5UffRgCvrjEdPqlQxh43qKLDGfcP1F43d9sY8XPhPRB5aFZ2XaDkJexseJ0D3gnlSgHO1ubzngc5nQw6RPHF+jDBIt0rc/3zkV1rMC/uOIYIoQqgdDlbCMJB+K9xsg4PCCy/PY3XcZfsCZmcEwV97ae+DDh6FHkjdRL9oHkAL+2OFceobtZ3X6mZeQ+S14r7qJnDJLFJ86tZAD5RL3omwu0gAZRIt6C/X1SxgUAbkbhKLl7uaWrLTx7XUxufRuah8pmibA6QULmevmTCkhmQCun1jvo/O9z1SnYskgBpUS3oon81Wq/d8c40IY2BOQZwpe4JR9H8cEfwVgo9Z0hDCbSfjdKJpb63jF/ZEEMoLSgN1y6Hb00rgEhPr0MUc3shFSrCvBQB0bUmeaQZVjrILnF3CnwzyhoogIDEWpLhk0md1bRMQh+lmqZdZyKg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GV0P278MB0211.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(346002)(39860400002)(396003)(136003)(376002)(366004)(230922051799003)(451199024)(64100799003)(186009)(1800799009)(66899024)(55016003)(7696005)(9686003)(6506007)(41300700001)(166002)(38100700002)(122000001)(86362001)(33656002)(52536014)(5660300002)(2906002)(966005)(8676002)(8936002)(71200400001)(38070700009)(6916009)(83380400001)(66556008)(66946007)(76116006)(66476007)(64756008)(66446008)(478600001)(316002)(786003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?CcYxUETGAWzNSJooUyNfhT2dyak+yjO+BdYBL4vLBERBaCUJ0cEWbP6TjxjZ?= =?us-ascii?Q?EvGsOA6tMC1N8z39N9X3q4K3Oi5LqkVmXqlf4vtAiIVuZielYhrRSVvnR9ai?= =?us-ascii?Q?vlupiBHaQkoFRPO6ZX+cWvSXQ6F38Y7cevFbuXOrK65zvkwvkbLFOuL0HlvU?= =?us-ascii?Q?VaEgYYj8jWJqITfp3uNEHDV7raC1GuqBETX1CiGoKxODwtIjx/LJFi5biBZ7?= =?us-ascii?Q?Be1pEU9ewQSRwCgsdm86jX+EyjQPJ2viDEeJF7eFS4SoIV5exjCuPh8SVAjQ?= =?us-ascii?Q?HrQQ7T1XO4nQrpxs9aSBZEHW1k3AGXaLWw01OstfdKvxWZ4GyXV4XLMMoLZX?= =?us-ascii?Q?fDlpkgdceX3zDOo93SkZOkkABH4kxDMsNmmopUGr5vf1oM1AG+qfMFvfBjov?= =?us-ascii?Q?r8LOA+Le+1qtsoofYt46LOoz2oWiw5lcyYhLY0yJYDwz6Ur5d5Z7iOZDnURR?= =?us-ascii?Q?l9RRES7wrBUMsVkU/nxSRJzzInXb38yPVzmyzLCI2asWGlm8ApCyq9Ammlqr?= =?us-ascii?Q?/NcUiQ1RI0W5azl4j9r7On6a8SwDr/AD0y2JdALOPCRvyFJEt4tjL9v8WNz1?= =?us-ascii?Q?lOc4DZOSD614p6dyuXONqqKN8Hue20ywU5KfmFdZ6vhomJ4kbbfaSPQJBFl7?= =?us-ascii?Q?0e X-OriginatorOrg: unibe.ch X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: GV0P278MB0211.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 89c2b52d-09fd-401b-a5cf-08dbdfa6df6c X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Nov 2023 15:33:20.8903 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d400387a-212f-43ea-ac7f-77aa12d7977e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 6SYsC2WAFFd6T34LpmJo505kFwHm15QQwLkTamzQkkMGr3fR+8uwMab8fxIohdqAzYRpsEl1Grv1qJNt++eCpg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZR1P278MB1117 X-Original-Sender: denis.maier-NSENcxR/0n0@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@unibe.ch header.s=selector1 header.b="nW/YPinu"; arc=pass (i=1 spf=pass spfdomain=unibe.ch dkim=pass dkdomain=unibe.ch dmarc=pass fromdomain=unibe.ch); spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 2a01:111:f403:4023::716 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch 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:33278 Archived-At: --_000_GV0P278MB02117A2D92683B79046B9E8E83A9AGV0P278MB0211CHEP_ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Pandoc will resolve citations when converting to docx. Your < -t docx+citat= ions > seems to have no effect here. However, there exists a filter that might be useful here: https://retorque.= re/zotero-better-bibtex/exporting/pandoc/index.html#from-markdown-to-zotero= -live-citations This will enable you to convert markdown citations to Zotero fields. Obviou= sly, this means you'll need to manage your references with Zotero. Converting them back to Markdown citations should work out of the box since= 2.18, see the changelog : https://pandoc.org/releases.html#pandoc-2.18-202= 2-04-04 Docx reader: * Enable citations extension for docx reader (#7840). When enabled, Zotero, Mendeley, and EndNote citat= ions embedded in a docx are parsed as native pandoc citations. (When disabl= ed, the generated citation text and bibliography are passed through as regu= lar text.) The bibliography generated by the plugin is suppressed. Instead,= bibliographic data embedded in citation items is added to the references m= etadata field so that it can be used with --citeproc. So, here you'll also see what the citations extension does for docx... Best, Denis Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Im A= uftrag von Alex Gesendet: Dienstag, 7. November 2023 10:03 An: pandoc-discuss Betreff: Preserving citations between docx and markdown conversions Sie erhalten nicht oft eine E-Mail von ac.ringeri-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org. Erfahren Sie, warum dies wichtig ist 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-integra= te 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 m= d. 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 o= r the docx to md step. (I am not familiar with the how word even stores cit= ations) 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 e= mail to 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. --=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/GV0P278MB02117A2D92683B79046B9E8E83A9A%40GV0P278MB0211.CHEP2= 78.PROD.OUTLOOK.COM. --_000_GV0P278MB02117A2D92683B79046B9E8E83A9AGV0P278MB0211CHEP_ Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Pandoc will resolve citations when converting to docx. Your «&n= bsp;-t docx+citations » seems to have no effect here.=

 

However, = there exists a filter that might be useful here: https://retorque.re/zotero-better-bibtex/exporting/pandoc/index.html#from-m= arkdown-to-zotero-live-citations

This will enable you to convert markdown citations to Zotero fields. = Obviously, this means you’ll need to manage your references with Zote= ro.

Converting the= m back to Markdown citations should work out of the box since 2.18, see the= changelog : https:/= /pandoc.org/releases.html#pandoc-2.18-2022-04-04

Docx reader:

  • Enable citations extension for docx reader (#7840). When enabled, Zotero, Mendeley, and EndNote citations embedded in a docx a= re parsed as native pandoc citations. (When disabled, the generated citatio= n text and bibliography are passed through as regular text.) The bibliograp= hy generated by the plugin is suppressed. Instead, bibliographic data embedded in citation items is added to the references metadata field so that = it can be used with --citeproc.

So, here = you’ll also see what the citations extension does for docx…

&nbs= p;

Best,

Denis

&nbs= p;

Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Alex
Gesendet: Dienstag, 7. November 2023 10:03
An: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Betreff: Preserving citations between docx and markdown conversions<= o:p>

 

Hello! I am investigating using pandoc for my academ= ic 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 l= ike a way to re-integrate the edits back to markdown while keeping the text as close as possible. (md -> do= cx -> md)

 

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

 

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

 

I would like a way to preserve citations when conver= ting 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 re= ference to one of the entries in my bibliography (Aigrain
2021).

 

I am not sure whether the citations are being lost i= n the md to docx step or the docx to md step. (I am not familiar with the h= ow 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 -> d= ocx):

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 &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discu= ss+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-a3= 65c852e0cbn%40googlegroups.com.

--
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 http= s://groups.google.com/d/msgid/pandoc-discuss/GV0P278MB02117A2D92683B79046B9= E8E83A9A%40GV0P278MB0211.CHEP278.PROD.OUTLOOK.COM.
--_000_GV0P278MB02117A2D92683B79046B9E8E83A9AGV0P278MB0211CHEP_--