From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25871 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Denis Maier Newsgroups: gmane.text.pandoc Subject: Re: How to add a (visible) image caption in DOCX for pandoc transformations? Date: Thu, 13 Aug 2020 22:23:35 +0200 Message-ID: References: <601f7c12-1b83-43df-97ca-4288126ac4e4n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------11C33EC3681D776298A277B5" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24318"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDAN5ZVOUMHBBT6C234QKGQEIKROKYI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Aug 13 22:23:47 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f190.google.com ([209.85.208.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k6JlJ-0006Fp-Up for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 13 Aug 2020 22:23:45 +0200 Original-Received: by mail-lj1-f190.google.com with SMTP id t17sf1207672ljg.16 for ; Thu, 13 Aug 2020 13:23:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1597350225; cv=pass; d=google.com; s=arc-20160816; b=YCuHcl5t3QxYQpbEQyiQq/S8ATeM4x2R38AoAgAR0j6J4dYmtn6Nu/ITzXZIu3DJwt KFzknkxwIYvSxUzMG6+z3uIFf7BVoqVQ8ZfMgltFOXzTQoz3rMtHUdRA2BPf0KS5BbJ3 x7ghQVMmsGrTf8nbmTyO5Y6iQ2D2Gh0kkI3sHUquzTjqFywz/IDnMxM25S8HsKVmo2KO UiuMLW1BygAKq0gGY828cITh5cpB7QuNj+9bK3y5skv7cIyDGDMy+hdp1rA5VUYOXTLU j3zDnTtBZePyEVHUQ12uraVcRvLf7SI4qB6ral7tR5TCVa+up89Dlv7BU9phLUcJcP1P SLbw== ARC-Message-Signature: i=2; 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:in-reply-to:mime-version :date:message-id:from:references:to:subject:sender:dkim-signature; bh=WniFb++IG0uk+Aw+3/RLcWnDRFeGBfeyZBE/T9pyb8k=; b=IXvmI5xShd+cHb6QvzNtzHp1Q5fmbynMoyO5jriOsxTG/+Gd6KPvQK3rAXjdVGrfrP r7OlAwg8/bCsm/QWaHUCQ01COvNPpFXctl05xz9DvDaGIXgVqCQ1+YeCQDDqsGPo7kiD JhkX9FcXbBetFGINPr/7rB7jyVgOF9Ch8OV7Atz8g8xtDpsNdpOmEyxU7Kq+ta09ac2C Lhk5TTuEFcSn/zpfXVenJkx92Od1Ic+1SVpCtxPTI13v+Uk5f1cLh79zVuB7r+HMGZxx igrB6iHzwb0vuwKfWDYtITpg4u5D9Rn+UzmQsB9myb55vsP8NJsJO7VBmJusdCZviui5 T3rA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=Zhdtdt2B; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=MopMHDXc; spf=pass (google.com: domain of denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:102 as permitted sender) smtp.mailfrom=denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mailbox.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:subject:to:references:from:message-id:date:mime-version :in-reply-to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=WniFb++IG0uk+Aw+3/RLcWnDRFeGBfeyZBE/T9pyb8k=; b=gEZfj5Vsy1yf9NeIRrpaqCi79ot2FSyvCD2MlWKI9rzSn+vU2xs+lltGk2zGn6P3RE TSQVcMBPzras2x6cpmEdLBddU2hx3fkUqoCvslIZ2Jxz+hqYMJSwqmSOb+hWMXrxHIiA vuJipZQgNA+mL0xrer7Art8PBUed42xXMq1dH2OrTp+eZ/aQ+FSNTJdvQBmGtUwj2Lo4 uuHUJo9B8NkSk2qNCkgvmsw5ZALujbqQzP41aAS3t/oI2obxsX6dm9fTzWcfqmFXD9d8 isBMNozp333lIhV1li/rh5CrhL2fs9cIf+lkSWjmqPkBkpvsdsVL1DlQ+tdg9gPP/fj0 EWyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:subject:to:references:from:message-id :date:mime-version:in-reply-to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=WniFb++IG0uk+Aw+3/RLcWnDRFeGBfeyZBE/T9pyb8k=; b=WXlZylx0U5IMII7KFE28a0Y4Sawj4KdfzAaC4M3b0UsK93KEhrw3vR8YgN1BGX+IZT eIfWZ3oL9CDW0Wzqsk54TgQkoSCDDtRHc+hJFZEFdi8nAyx9KB7mfF/vRV+jRejIj7a0 l56JA6T1V34qzJkGMMRqDFBRnYxAh4Lhg5R1V7t1VLadK0ZvSrSQBASVJPhyuIkT6Ppz 62Kya71SHuLvGAUv0ZfWSfUYryLCYiCafwFmszXH+9C6i7YHiGw9WLv8IKXqQQdUFSOM hp7JienSzIhzUVpc3kftg1pluEITB/am2h8oEA5X/fEr1bKFUdBgTtUtDpK1fgA4jTr+ kPvw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533VjDwuC9ZDIsGjyxd/po7zj/1IjorDjrQ2reRRIQsYcMePlP8Q zejAyKHPLDKuu4qg+9+R6qw= X-Google-Smtp-Source: ABdhPJym91g7VshIjtsSHTbOyGFleonr+YmdcRdCkTLXobqVwVwtpd8f7DEcdfA6h8nteH65+CAA4g== X-Received: by 2002:a2e:9812:: with SMTP id a18mr2863760ljj.25.1597350225397; Thu, 13 Aug 2020 13:23:45 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ac2:5e33:: with SMTP id o19ls426649lfg.1.gmail; Thu, 13 Aug 2020 13:23:42 -0700 (PDT) X-Received: by 2002:a05:6512:3138:: with SMTP id p24mr402665lfd.143.1597350222428; Thu, 13 Aug 2020 13:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597350222; cv=none; d=google.com; s=arc-20160816; b=JBIj78DmjclTZLiCj1+tlqLeur+L1R2rvMXX+3T/wTz6rKM3ZfhLUAggYoepQAl1LQ 5H4m2S3aaqrGzJc08vSL+V66aMo97yXLyhvuusjoH7/do4IxCLj3z+7EHbWTfgc1OFit SL5+HWCA4hLvD9ICdLnZtygjlrISFPoRQ26OLDX0pF/VaJym3n9f1JwW2t7+bZMaYZvR pbySOyaGpoq8nHn2hiKB/R6WzVB3CvseXTy0QTdNQOH9ypoprAnqCt5k824dlRYDtZSP 8ne37+qr1Sw2cEyMqn6piNypYPI7LmIfQSyfFi1mLjUiBsGqrLxEAQQcNb/n+g4+gOGC GZsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:mime-version:date:message-id:from:references:to:subject :dkim-signature:dkim-signature; bh=QMFJWuN2PVgy8B5yc0xqqsffJtGxJGkG+SZ2OrrvRWw=; b=QyNI+NEh6QXcsD+BXWxH9LYnfv01rbaxbcwFaeAi87AGGKb2T2c6BGa5mEv31g+s52 abdB4+eduuPw/+rRF8OL7DHZRIxurWot0n1FNbqrqrJC2ct3j4wULPg5g3BWO9/kVl7H BQ/k6063KBKnTCzpTw0ebusUphQsWs6vrH/griNL4iqFnDx10dH6d/3TFysqVBtA2uIp Pp7zFt7QK0xwDSYWJ1TYTksxO5mA/KnEUz2J9TYCUpQDtP1pd1yibsVrr2T2ZWOOiwHU G84YMfxu4KipqpD5uXO9HfbTInEsSLinqIjQLBKf6J0NB8Et+ZWKrpGjY5Zlf1IgHn+4 5j2w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=Zhdtdt2B; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=MopMHDXc; spf=pass (google.com: domain of denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:102 as permitted sender) smtp.mailfrom=denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mailbox.org Original-Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org. [2001:67c:2050::465:102]) by gmr-mx.google.com with ESMTPS id o13si273928lfc.0.2020.08.13.13.23.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Aug 2020 13:23:42 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:102 as permitted sender) client-ip=2001:67c:2050::465:102; Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4BSJ1T59RTzKmhs for ; Thu, 13 Aug 2020 22:23:41 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id Ba8eqoOzyWZG for ; Thu, 13 Aug 2020 22:23:37 +0200 (CEST) In-Reply-To: <601f7c12-1b83-43df-97ca-4288126ac4e4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Rspamd-Score: -3.18 / 15.00 / 15.00 X-Rspamd-Queue-Id: E6AA1181E X-Rspamd-UID: af00a0 X-Original-Sender: denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=Zhdtdt2B; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=MopMHDXc; spf=pass (google.com: domain of denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:102 as permitted sender) smtp.mailfrom=denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mailbox.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:25871 Archived-At: This is a multi-part message in MIME format. --------------11C33EC3681D776298A277B5 Content-Type: text/plain; charset="UTF-8"; format=flowed Hi, not really a hint, but have you tried doing the conversion in the opposite direction? How does the DOCX look like when you use the expected result as input? Best, Denis Am 13.08.2020 um 22:09 schrieb Philipp Zumstein: > I would like to create some DOCX document which will then translate to > Markdown containing an image with its caption (in the square bracket), > i.e. the result after the pandoc transformation DOCX -> MD should look > something like this > > ![Abb. 1: title](ip-logo.png){ #image1 } > > I tried to add the caption "Abb. 1: title" in Word on a newline after > the image and choosed the style "Image Caption", but that did not > work. Also if I use the Word functionality to add a caption to the > image, that was again only parsed as an additional line of text. The > only thing which works is to format the image in Word and add some > alternative (hidden) text. > > Is there a more visible way to achieve the above markdown line from a > word document? How should I use the styles "Image Caption" or > "Captioned Image" in Word correctly such that pandoc will do something > with them? Is it normal that I don't see these styles in the native > ATX output? > > I am using a German version of Word on a windows machine with pandoc > version 2.10.1. > > Thank you very much for any hint! > Philipp > -- > 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 > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/601f7c12-1b83-43df-97ca-4288126ac4e4n%40googlegroups.com > . -- 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/a2555e89-5f0b-b0cd-2d52-bec1c9290168%40mailbox.org. --------------11C33EC3681D776298A277B5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi,
not really a hint, but have you tried doing the conversion in the opposite direction? How does the DOCX look like when you use the expected result as input?
Best,
Denis

Am 13.08.2020 um 22:09 schrieb Philipp Zumstein:
I would like to create some DOCX document which will then translate to Markdown containing an image with its caption (in the square bracket), i.e. the result after the pandoc transformation DOCX -> MD should look something like this

![Abb. 1: title](ip-logo.png){ #image1 }

I tried to add the caption "Abb. 1: title" in Word on a newline after the image and choosed the style "Image Caption", but that did not work. Also if I use the Word functionality to add a caption to the image, that was again only parsed as an additional line of text. The only thing which works is to format the image in Word and add some alternative (hidden) text.

Is there a more visible way to achieve the above markdown line from a word document? How should I use the styles "Image Caption" or "Captioned Image" in Word correctly such that pandoc will do something with them? Is it normal that I don't see these styles in the native ATX output?

I am using a German version of Word on a windows machine with pandoc version 2.10.1.

Thank you very much for any hint!
Philipp
--
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-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-d= iscuss/601f7c12-1b83-43df-97ca-4288126ac4e4n%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 https://groups.google.com/d/msgid= /pandoc-discuss/a2555e89-5f0b-b0cd-2d52-bec1c9290168%40mailbox.org.
--------------11C33EC3681D776298A277B5--