From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28742 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: gnpan Newsgroups: gmane.text.pandoc Subject: Re: Pandoc docx output missing images Date: Thu, 1 Jul 2021 02:44:59 -0700 (PDT) Message-ID: <55eedaaa-078d-4d00-ae06-4cf3892015c2n@googlegroups.com> References: <83d81b83-1a29-4f02-b2c3-3652222f141cn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_636_342832532.1625132699726" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24762"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCMK7GUUXYBRBHM562DAMGQEZ37CPYY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jul 01 11:45:03 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f60.google.com ([209.85.210.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lytFn-0006FX-DP for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 01 Jul 2021 11:45:03 +0200 Original-Received: by mail-ot1-f60.google.com with SMTP id v29-20020a056830091db029045efea1ec9bsf3606358ott.21 for ; Thu, 01 Jul 2021 02:45:03 -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=NvN1MJWgRiux7JUjLyiDklr68Ocj+etspo6pV3ldIQc=; b=VUas81vD+PbyRWpgk5G7k4xHwwAuC7zV6FaPF62PbKVqs8FFkirWJQGqXPgl0c7rda B9Mfo9TxDqaY9B7EOB9ipik68oxcil0TYkJJI3eLlmPJiD3VO9khb2hDFiK38LEHr1kO JzG52UVcZc7nNoxANxGsa7lc7hZupwc87n5SPpokcdm/T356e4K3iGv6Mahfrdl9OObj AR69z7qjexs+4hLDkKAuBxgVcZf48dtPfCJsF3tFF4ESq6ullLtrZCyrpQ7Oofl9dxYJ wFssX8ElDN/FhRBPje51mlwheJMEOsfI7AfiT6XmHoCy/PXVR+ihRdIpiBuyMKX9A737 DyTw== 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=NvN1MJWgRiux7JUjLyiDklr68Ocj+etspo6pV3ldIQc=; b=amS0U0wPk/t2YfRlhO0EwO+jZKzMY/rNEuNTKpJk1G0jUQWT+UjPCireNASyxYFq43 zXQP2lA3Ba4WVnlw/jYMWf89v9SH+hz0HcfN7G3j+++EgpeECRKTqIpveZOm3hgmURpK dZIFvf5Lat430Uzlc668FHqRXyA8CBiat0nKyhHW/f/dWdBkrH1vau6wD05syvuPqHVJ ux7PzoBl5vR3u2BGf1vme4LZgusZ7/JjeazJStL661WsIX4YxrYceGsykQO1MnzfZm3j VR/xJf5Tfobtiwau7Km+r4r6wuIKeENJ8Xtep7CqaiWGkg5fR4ctmv7G0WvEet/3iMM0 52dg== 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=NvN1MJWgRiux7JUjLyiDklr68Ocj+etspo6pV3ldIQc=; b=GGx0k/Jwg8P9o77h5n3r5GqyinMOXGSEFRJ2YOa5Oi09AmAQIb2Y8M5nGIFRDZGFdV L92hKboJhb13qcFxrAPgRtZYLeH/+lNmyHPxZdpy15fZMbbkEkv9zrUt3LB1eHrXjhUY +tbLZfHhUK9H+icrgkYh/7nZUqEE2sAhMpCAMVOe+XykNmC/XTFe8zpDZ1d3Z1SLqNIa Vr7lSNgpYO2oZMohXPLhdAxlw5LEhzgm32Kr8W5ldZq0QL2Dhn4AovOZjSAv6iOROrpY Qzf+Yj78/LqEgqv0U37O1ym3px8R5Bqsylfbjm+Rd3iYm1o/D0crrBmz1/SNCo5Z9orx 9ciw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531+IVX44avCS7lffbt4nrkXWkV6vskcojwuukFFbbcF4KQija3j oSoYM5f4rSrT6/wKVsKbPs4= X-Google-Smtp-Source: ABdhPJwt2kT/x3K6J+h9IsKiOj56Uc75xlWfDbxyitHj8FlxDOPUKMV9qM2hyMLvPk6b8W+p4Wv+fw== X-Received: by 2002:aca:1319:: with SMTP id e25mr6938752oii.173.1625132702389; Thu, 01 Jul 2021 02:45:02 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:1d1:: with SMTP id x17ls1942673oic.9.gmail; Thu, 01 Jul 2021 02:45:00 -0700 (PDT) X-Received: by 2002:a54:438c:: with SMTP id u12mr6846203oiv.64.1625132700536; Thu, 01 Jul 2021 02:45:00 -0700 (PDT) In-Reply-To: <83d81b83-1a29-4f02-b2c3-3652222f141cn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: g.panayotou-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:28742 Archived-At: ------=_Part_636_342832532.1625132699726 Content-Type: multipart/alternative; boundary="----=_Part_637_1642303994.1625132699726" ------=_Part_637_1642303994.1625132699726 Content-Type: text/plain; charset="UTF-8" I can't reproduce this, although I couldn't find your final.docx reference file and I used the default and one of mine. Do you still have this issue with the default template? Also, your solution of adding a one-pixel image reminds me that I used the same solution for a different problem (a pandoc filter for wrapping text around figures, which didn't respect the width I set). Try reducing the size of your image, which is currently 29 inches, to the size you want it in the text, say 5 inches. On Thursday, 1 July 2021 at 03:50:14 UTC+3 paul....-QDVy5qH0ceL2fBVCVOL8/A@public.gmane.org wrote: > > Thanks for the quick response! I've installed 2.14.0.3 and get the same > behavior: no images in the docx unless I put two images in a row. Then the > second image displays. Interestingly, when I get the image, I get no > caption, and when I don't get an image, I do get a caption. > Thanks > On Wednesday, June 30, 2021 at 5:31:04 PM UTC-7 John MacFarlane wrote: > >> >> Can you try with 2.14.0.3, the lastest version? There were some >> relevant changes that may have affected this. >> >> Paul Evans writes: >> >> > Hi, >> > I'm using pandoc 2.14.0.2 on a 2019 MacBook Pro running macOS Catalina >> > Version 10.15.7. I'm trying to convert pandoc markdown to docx: >> > >> > pandoc -o chapter0.docx --citeproc --reference-doc=../ref/final.docx >> > chapter0.md >> > >> > I'm viewing the results with Microsoft Word for Mac Version 16.50. >> > >> > At some point in the recent past (like last summer), I was able to >> include >> > JPG and PNG images without any problem, but recently it stopped working. >> > After a lot of goofing around, I found a really stupid workaround. If I >> > include two images in a row, the second image will display. So I >> downloaded >> > a 1x1 white JPG from Wikipedia, and put it immediately before the image >> I >> > want to display: >> > >> > ![](JPGs/1x1.jpg) >> > ![Figure 1 10 Sep 2013](JPGs/Photo51.jpg) >> > >> > This works, but I'd really rather not rely on an evil kludge to solve >> the >> > problem. If anyone is so inclined, you can take a look at my setup by >> > cloning https://github.com/decretist/Dissertation.git. The Chapter0 >> folder >> > has everything needed to reproduce the problem in its native habitat. >> > >> > Thanks, >> > Paul Evans >> > >> > -- >> > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/CAE4RJyCwfz-3NDcVq%3DW2x-SpwgW2wq_HVtKAw%3DZYnuAAVDvFLQ%40mail.gmail.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/55eedaaa-078d-4d00-ae06-4cf3892015c2n%40googlegroups.com. ------=_Part_637_1642303994.1625132699726 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I can't reproduce this, although I couldn't find your final.docx reference = file and I used the default and one of mine. Do you still have this issue w= ith the default template?
Also, your solution of adding a one-pixel ima= ge reminds me that I used the same solution for a different problem (a pand= oc filter for wrapping text around figures, which didn't respect the width = I set). Try reducing the size of your image, which is currently 29 inches, = to the size you want it in the text, say 5 inches. 

On Thursday, 1= July 2021 at 03:50:14 UTC+3 paul....-QDVy5qH0ceL2fBVCVOL8/A@public.gmane.org wrote:

Thanks for the quick respo= nse! I've installed 2.14.0.3 and get the same behavior: no images in th= e docx unless I put two images in a row. Then the second image displays. In= terestingly, when I get the image, I get no caption, and when I don't g= et an image, I do get a caption.
Thanks
On Wednesday, June 30, 2021 at 5:31= :04 PM UTC-7 John MacFarlane wrote:

Can you try with 2.14.0.3, the lastest version? There were some
relevant changes that may have affected this.

Paul Evans <paul....-QDVy5qH0ceL2fBVCVOL8/A@public.gmane.org> writes= :

> Hi,
> I'm using pandoc 2.14.0.2 on a 2019 MacBook Pro running macOS = Catalina
> Version 10.15.7. I'm trying to convert pandoc markdown to docx= :
>
> pandoc -o chapter0.docx --citeproc --reference-doc=3D../ref/final.= docx
> chapter0.md
>
> I'm viewing the results with Microsoft Word for Mac Version 16= .50.
>
> At some point in the recent past (like last summer), I was able to= include
> JPG and PNG images without any problem, but recently it stopped wo= rking.
> After a lot of goofing around, I found a really stupid workaround.= If I
> include two images in a row, the second image will display. So I d= ownloaded
> a 1x1 white JPG from Wikipedia, and put it immediately before the = image I
> want to display:
>
> ![](JPGs/1x1.jpg)
> ![Figure 1 10 Sep 2013](JPGs/Photo51.jpg)
>
> This works, but I'd really rather not rely on an evil kludge t= o solve the
> problem. If anyone is so inclined, you can take a look at my setup= by
> cloning https://github.com/decretist/Dissertation.git. The Ch= apter0 folder
> has everything needed to reproduce the problem in its native habit= at.
>
> Thanks,
> Paul Evans
>
> --=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 email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.g= oogle.com/d/msgid/pandoc-discuss/CAE4RJyCwfz-3NDcVq%3DW2x-SpwgW2wq_HVtKAw%3= DZYnuAAVDvFLQ%40mail.gmail.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/55eedaaa-078d-4d00-ae06-4cf3892015c2n%40googlegroups.= com.
------=_Part_637_1642303994.1625132699726-- ------=_Part_636_342832532.1625132699726--