From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/27459 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zev Spitz Newsgroups: gmane.text.pandoc Subject: Re: How to export .md to MS Word (Windows 10) with sidenotes? Date: Thu, 14 Jan 2021 02:03:32 -0800 (PST) Message-ID: References: <8038ea6e-4d7a-4e0c-aa83-0c028e1cae56n@googlegroups.com> <01631ad8-bbd1-d17d-e9f7-a2027f829a7c@mailbox.org> <627b6a91-ef5e-7992-b6a2-417ba5398b32@mailbox.org> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_370_1830456348.1610618612498" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37240"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDYNB47H7EIBB5NNQCAAMGQECQKBAZY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jan 14 11:03:36 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f62.google.com ([209.85.210.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kzzTc-0009YO-3E for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 14 Jan 2021 11:03:36 +0100 Original-Received: by mail-ot1-f62.google.com with SMTP id x25sf1589080otq.0 for ; Thu, 14 Jan 2021 02:03:36 -0800 (PST) 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=qvVIzNo5nNsC56RYBE3xXdpM5JtH3OEt5CwWU4VixgQ=; b=me68iMnXSr/v/5+NekMLrmZczikrjRcsupUOQAqxVqzfeiXgK1BpfxKQ5B6V7no/iP KyZffX5bi3UJemt1A6SfkfD7BID3XhvjL+KCY6R14yP88HjslBHm7N46zhQCEtdpfkoD LL+NkQ3AHAaoJfEGXhs+ili6FANZQ9AThsY+aLXk9ukzTG3BlcuwLPwkkrryhqf9E2jg hsxdDXa6wFNqSYkprBbrwieeCIcPwxadtrzyADYZ9WBs/xdgwddht23ZBZX4XpclazvS GKi+yoGrUomD3JYIjRq6YS/oYS2UJp3LYc14D3NhKLZjjWhGTD32JqvNyLF+g6jDbDGE W6eQ== 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=qvVIzNo5nNsC56RYBE3xXdpM5JtH3OEt5CwWU4VixgQ=; b=IkdFDT6vt9LlIgR+sof6KSz36ZxuGXZ9qzuHkV5Z21SkI2rR5mjoGD4xV6WrWP7y3O H0PIVX+xRco1DmdpLaoKO0PCUAK8z3bpdVC51LONwC3hEVFeX6Cn1kdcZPqXFF75H2Pi NsUQNk5zeRalfoat8D4cq0E3YVH3kn6F50HxVf6nW03gXG1NYIAvbRtFSM7858Hb0baO VMhE3bVUFeWoM2Um9hqUiZoeJImiiwD0TyNv2XUlACPaaQXHTGFLAiKOgaFCV+GmEzhU BAmx0gEpPDM5/KyP1sQ2X+bGj87P8V0uLKr7WnMKXQB1lz56cwG0UKkhLDI1OQOJF3v9 LdOg== 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=qvVIzNo5nNsC56RYBE3xXdpM5JtH3OEt5CwWU4VixgQ=; b=ekhV4L7CqBIMDHFyxn1DJX1/FbwDn9glCIE70kKyQfK2CerU2TuinFgQlVstbER5VG oGcYZwTGeZ3FSE9CHg04BnoY43EtpDAhYW6sH7Z/kJOCHk1wB47BMi6H7t+nhp1wA72U EABxJY66HTzR84mHkjU3rV3z51twkk+FSkXPRPJ8mBNP3p5GFVbKHdZjSlKZG5JaS7PS WLsUa5N72whbU6T+oHYTnOT6swcrpsTXeyi1qgqmqCId/wgWMmV6N8p4r62rAFztk9of 4Fq/KOCJvpmWh1WFcYq5VO8gmKtN7B7cz103iTdvo/81iy65OKy+SsF+gzzBvmQC+pT6 +Wyg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531BPNvFCseWvawVqf0Zh2CZ5wi3r54yxeJKnf4FMtyOAdTPuE/8 aym37HmyFeWLhv2OdEIjMF4= X-Google-Smtp-Source: ABdhPJzXWPqsJKC79VCbc7e0xIRrmowkjm15aQOWiqS5a7kpRFJ/uh7U7xEixXvze1piDLbinDMaDg== X-Received: by 2002:a9d:745a:: with SMTP id p26mr4191595otk.206.1610618615089; Thu, 14 Jan 2021 02:03:35 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:1204:: with SMTP id 4ls1255801ois.6.gmail; Thu, 14 Jan 2021 02:03:33 -0800 (PST) X-Received: by 2002:a54:4083:: with SMTP id i3mr2096206oii.120.1610618613394; Thu, 14 Jan 2021 02:03:33 -0800 (PST) In-Reply-To: <627b6a91-ef5e-7992-b6a2-417ba5398b32-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org> X-Original-Sender: spitzzev-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:27459 Archived-At: ------=_Part_370_1830456348.1610618612498 Content-Type: multipart/alternative; boundary="----=_Part_371_803028361.1610618612498" ------=_Part_371_803028361.1610618612498 Content-Type: text/plain; charset="UTF-8" If Pandoc doesn't natively support this scenario, you might consider writing a filter to extract and remove the sidenotes into a separate file/location and write an additional program manipulating the docx Open XML or the Word application object model to merge the sidenotes back in. On Tuesday, September 15, 2020 at 11:41:58 PM UTC+3 Denis Maier wrote: > Am 13.09.2020 um 21:44 schrieb Leonard Rosenthol: > > Looks like you can - > > https://wordribbon.tips.net/T010668_Adding_Sidebars.html > > > > You can also do text boxes, pull quotes, etc. However, I didn't dig > > into which coudl be done with custom styles and which would require a > > (Lua) filter. But the features are there in DocX if we figure out the > > best way to expose them... > > Well, maybe... but, the link above is about Sidebars, which I understand > as adding arbitray content in the margins. That's not the same thing as > sidenotes, maybe a visual approximation, but I think there won't be any > link between those boxes and the text. There even won't be a note number > in the text unless we add one. And the worst part might be placing those > boxes in the margins. There are some LaTeX packages that go at great > lengths to keep the sidenotes close to the calling location, but also > move them around if need arise, e.g. when the note is called near the > end of a page, or if there are to many notes. (Does pandoc even have > access to these details?) > > Anyway, all that doesn't fundamentally speak against implementing this. > > Just one remark regarding this particular case: The OP wrote he is going > to send his manuscript to his publisher. So I guess the publisher will > do the layout anyway, and I doubt that the typesetter will appreciate a > docx with notes in the margins. (At least I wouldn't.) > > Best, > Denis > -- 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/d0df75c0-437b-48a7-b251-63c3cf087822n%40googlegroups.com. ------=_Part_371_803028361.1610618612498 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
If Pandoc doesn't natively support this scenario, you might consider w= riting a filter to extract and remove the sidenotes into a separate file/lo= cation and write an additional program manipulating the docx Open XML or th= e Word application object model to merge the sidenotes back in.
On Tues= day, September 15, 2020 at 11:41:58 PM UTC+3 Denis Maier wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex; border-left:= 1px solid rgb(204, 204, 204); padding-left: 1ex;">Am 13.09.2020 um 21:44 s= chrieb Leonard Rosenthol:
> Looks like you can -=20
> https://wordribbon.tips.net/T010668_Adding_Sid= ebars.html
>
> You can also do text boxes, pull quotes, etc.=C2=A0 =C2=A0However,= I didn't dig=20
> into which coudl be done with custom styles and which would requir= e a=20
> (Lua) filter.=C2=A0 But the features are there in DocX if we figur= e out the=20
> best way to expose them...

Well, maybe... but, the link above is about Sidebars, which I understan= d=20
as adding arbitray content in the margins. That's not the same thin= g as=20
sidenotes, maybe a visual approximation, but I think there won't be= any=20
link between those boxes and the text. There even won't be a note n= umber=20
in the text unless we add one. And the worst part might be placing thos= e=20
boxes in the margins. There are some LaTeX packages that go at great=20
lengths to keep the sidenotes close to the calling location, but also= =20
move them around if need arise, e.g. when the note is called near the= =20
end of a page, or if there are to many notes. (Does pandoc even have=20
access to these details?)

Anyway, all that doesn't fundamentally speak against implementing t= his.

Just one remark regarding this particular case: The OP wrote he is goin= g=20
to send his manuscript to his publisher. So I guess the publisher will= =20
do the layout anyway, and I doubt that the typesetter will appreciate a= =20
docx with notes in the margins. (At least I wouldn't.)

Best,
Denis

--
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/d0df75c0-437b-48a7-b251-63c3cf087822n%40googlegroups.= com.
------=_Part_371_803028361.1610618612498-- ------=_Part_370_1830456348.1610618612498--