public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Denis Maier <denis.maier.lists-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: How to add a (visible) image caption in DOCX for pandoc transformations?
Date: Thu, 13 Aug 2020 22:59:03 +0200	[thread overview]
Message-ID: <fa0d0129-89db-209c-3d4b-0f54fbc34dc3@mailbox.org> (raw)
In-Reply-To: <CAAjpKCQxWSdbcYLQ0hEDNM-G0RZEzaST0a6QPBd40aJGtHs1og-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

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

Just for the record. I've just tried, and roundtripping doesn't work.

That's the input document:

```

hallo.

![Abb. 1: title](texworks.png){ #image1 }
```

Converting to docx produces an image with a caption (style is "image 
caption"). Converting the untouched document back to md gives me:

```hallo.

![Abb. 1: title](media/rId20.png){width="3.5555555555555554in"
height="3.5555555555555554in"}

Abb. 1: title
```

But, I also have a German localized Word...
Some time ago there was an issue that styles weren't picked up properly 
if localized styles were used. But that doesn't seem to be the case here 
as I have not saved the docx with word. The styles as produced by pandoc 
should still be there.

Best,
Denis


> I right click on the image and choose "Beschriftung einfügen..." in 
> Word. However, this is then transformed to a separate line in MD:
>
> ```
> ![](media/image1.png){width="1.3888888888888888in" height="1.375in"}
>
> Abbildung : title
> ```
>
> Is this working for you?
>
> Is there possibly a difference if I do that in a German localized Word?
> Thank you and best regards,
> Philipp
>
>
> Am Do., 13. Aug. 2020 um 22:22 Uhr schrieb Leonard Rosenthol 
> <leonardr-bM6h3K5UM15l57MIdRCFDg@public.gmane.org <mailto:leonardr-bM6h3K5UM15l57MIdRCFDg@public.gmane.org>>:
>
>     AFAICT from a quick read of the DocX Reader - if you set the
>     caption in w/ord using its "Insert Caption" choice, that will come
>     over into the Markdown.
>
>     Leonard
>
>     On Thu, Aug 13, 2020 at 4:09 PM Philipp Zumstein
>     <zuphilip-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <mailto:zuphilip-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> wrote:
>
>         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
>         <mailto: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
>         <https://groups.google.com/d/msgid/pandoc-discuss/601f7c12-1b83-43df-97ca-4288126ac4e4n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
>     -- 
>     You received this message because you are subscribed to a topic in
>     the Google Groups "pandoc-discuss" group.
>     To unsubscribe from this topic, visit
>     https://groups.google.com/d/topic/pandoc-discuss/Pm6_hoJ2Zao/unsubscribe.
>     To unsubscribe from this group and all its topics, 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/CALu%3Dv3Jic%2BxJzRqZqKc68bgq9%2BhJu4ggT8QVYywREoNjxJJ9Tw%40mail.gmail.com
>     <https://groups.google.com/d/msgid/pandoc-discuss/CALu%3Dv3Jic%2BxJzRqZqKc68bgq9%2BhJu4ggT8QVYywREoNjxJJ9Tw%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/CAAjpKCQxWSdbcYLQ0hEDNM-G0RZEzaST0a6QPBd40aJGtHs1og%40mail.gmail.com 
> <https://groups.google.com/d/msgid/pandoc-discuss/CAAjpKCQxWSdbcYLQ0hEDNM-G0RZEzaST0a6QPBd40aJGtHs1og%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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/fa0d0129-89db-209c-3d4b-0f54fbc34dc3%40mailbox.org.

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

  parent reply	other threads:[~2020-08-13 20:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-13 20:09 Philipp Zumstein
     [not found] ` <601f7c12-1b83-43df-97ca-4288126ac4e4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-08-13 20:22   ` Leonard Rosenthol
     [not found]     ` <CALu=v3Jic+xJzRqZqKc68bgq9+hJu4ggT8QVYywREoNjxJJ9Tw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-08-13 20:43       ` Philipp Zumstein
     [not found]         ` <CAAjpKCQxWSdbcYLQ0hEDNM-G0RZEzaST0a6QPBd40aJGtHs1og-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-08-13 20:59           ` Denis Maier [this message]
     [not found]             ` <fa0d0129-89db-209c-3d4b-0f54fbc34dc3-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org>
2020-08-13 22:25               ` Leonard Rosenthol
     [not found]                 ` <CALu=v3KF2OLWfzNVFuConLm07t6cT-WHW0McykWoX3Rk1oLgag-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-08-14 21:20                   ` Philipp Zumstein
     [not found]                     ` <CAAjpKCR8ROFDn8pmGoh=HWMLGyuVq7L=GVx4X9nG+eTmKv4KgQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-08-15  9:25                       ` Philipp Zumstein
     [not found]                         ` <CAAjpKCSks1XoOZDm=JtN05p3yt0JJVbnRkdVe+widioOmtncyw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-08-15  9:57                           ` Dmitriy Krasilnikov
2020-08-15 13:54                           ` BPJ
2020-08-15 16:20                             ` Philipp Zumstein
     [not found]                               ` <CAAjpKCSUwiw6sFXAfxoAmiME6L2nYtPym03PcWACY_tK9BxKCw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-08-15 16:40                                 ` BPJ
2020-08-13 20:23   ` Denis Maier
     [not found]     ` <a2555e89-5f0b-b0cd-2d52-bec1c9290168-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org>
2020-08-13 20:49       ` Philipp Zumstein

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=fa0d0129-89db-209c-3d4b-0f54fbc34dc3@mailbox.org \
    --to=denis.maier.lists-cl+vpiynx/1afugrpc6u6w@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).