From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28746 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Evans Newsgroups: gmane.text.pandoc Subject: Re: Pandoc docx output missing images Date: Thu, 1 Jul 2021 12:58:13 -0700 Message-ID: References: <83d81b83-1a29-4f02-b2c3-3652222f141cn@googlegroups.com> <55eedaaa-078d-4d00-ae06-4cf3892015c2n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000000f10105c615435c" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7825"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCRLBJ7E64NRBYN47CDAMGQEKQAS5XQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jul 01 21:58:31 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f61.google.com ([209.85.167.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lz2pR-0001q8-0H for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 01 Jul 2021 21:58:29 +0200 Original-Received: by mail-lf1-f61.google.com with SMTP id x5-20020a0565121305b029032696702876sf2204029lfu.5 for ; Thu, 01 Jul 2021 12:58:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1625169508; cv=pass; d=google.com; s=arc-20160816; b=V67mj4YfQd9X5XaPsuploxWDl+t8zx2UvapYzhyJ9FUUGDIs168p0W4zcLJwjoYJ9K 2cuwMfx8NWGUkwAb5ASnva6VhvikbzYjPGyC0DNXZz5w4hdk8frY+XtW1VvWX+n4ZBKd E7OweBQuaZjhRycPQqglsetxOFALraaWOObKCKqEK05g9BMawqbsA50fqs33Bjww8KQE AmEilwAPFfHGQjWuLABG9rYm8/gw3NOHAxPa1XCU//jycAnzIZSaUoYPcmMtP0dbczKA Ma2oXycc7UqzdPPnvF7V6qQtuiMNB22pFRTvrGl65puRzURyCkCIAHEqeB98UozsdcEy hQSw== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature; bh=+qpl2Ya/li17yAeq50pUPEkaJW5u5FV8NWCBbR02NGE=; b=my8C6ztZH2AHnbVwNnO74H4ay7lO5YNOqDFsk/dnn+yWgANgap0bXPScIpW4yhzFJu bkNtOPrFS87kYcom6z4lu6Gbic5CzAmYMkzeYpMEDU9VoAQkA/VZ3wXPBdpW/nzFBLzM eM/5KU2r+Ezz+x+abjyWpFoss/imkhC2BQRx4N6n7dwmanvDODZwB0tDBdc0AfXdClcF G5HIMjKRZqiu79G+OuWUG25I0/3WDppN289ibInUVCflzVjD/y2OuyY/27yC+fWOFfNO hLE/4xY/+SmbCFm6znMv7s4UINMYy/isIi3spO6PA43mzHt8GoEASZI3bYlcFs0pO4JN HmsA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@yale.edu header.s=googleprd header.b="MNqM/+ZE"; spf=neutral (google.com: 2a00:1450:4864:20::135 is neither permitted nor denied by best guess record for domain of paul.evans-QDVy5qH0ceL2fBVCVOL8/A@public.gmane.org) smtp.mailfrom=paul.evans-QDVy5qH0ceL2fBVCVOL8/A@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yale.edu DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject: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=+qpl2Ya/li17yAeq50pUPEkaJW5u5FV8NWCBbR02NGE=; b=pd41Ts4JA97xuAHzGyn8g+N0pU9cBYixIlfguPy75SXuwh4mRPETdKFkVF4T1+5reW 2iujHwCn5wRcsImVARKGXRyVkSSw4oS4KtXr4BJ8bQLo7L5FZwLx0/b7smRkpq+eULp8 P21Kjtf3oWnUA8gA0PNnbzWqhXVqToA3MzyTp54GZwjY6gUtGfzkYQqf99VJ186eGp5w ZzOM5bAcbByG30JzMgHPzk0pKqUabSdNGoAcY3NquUgbSxiP82AYCtegMw27Fs7Vqqu9 g9QZeg4hF1KV++hqBVCM9jvQypqGBGMqg9IFRCXCN8/DRsS2lAmc82Z9ad8AouSInK9Q FB+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject: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=+qpl2Ya/li17yAeq50pUPEkaJW5u5FV8NWCBbR02NGE=; b=rC6ejkvrPXjqssArABP359X3NGv4j15wv5IpGGwpwFXPfun9ESyqyKmLQ4E80tsxSP 23ugc+pfqSvy+T9AKqsEfMhiyoZL/+zv4z/ji3A48wU7GzNJHCM0o6KwuMRO5AdkQVAZ frsFCU3ROuWNsc1n3Ew6hIBzK6xjoZFwya7B7Muyf6KqPJZPl41s8LEbsyzgxCDOFPpr oTu1FZY46L5rNHM6taDRoC+nyZCil30j/kwQvNzTKAOLt7xFneEtK/QZiEnlva7xRDUM 8O86rpOpw6SRvhsotFCfvKsVFPKPloRM7HqYT9umo0npfb6H4d1DECk3UwgjME+lNPSq LmsQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532VjwNqPmErxltrCcWnongMWMHMi/ohaGnB1voX8WrhPHPFAdJt iqcdOZjREhGjx0nFU+NsDVw= X-Google-Smtp-Source: ABdhPJyoTFNKyBwMnY2uB28M8H+hiq7tnbnVIOjnX7UPGmiYob88z6etRD7QHZ3I7ROvMn1sQ3AGFw== X-Received: by 2002:ac2:5299:: with SMTP id q25mr945131lfm.425.1625169507969; Thu, 01 Jul 2021 12:58:27 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ac2:508b:: with SMTP id f11ls1379284lfm.2.gmail; Thu, 01 Jul 2021 12:58:25 -0700 (PDT) X-Received: by 2002:ac2:4294:: with SMTP id m20mr1007927lfh.6.1625169505063; Thu, 01 Jul 2021 12:58:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625169505; cv=none; d=google.com; s=arc-20160816; b=jLbPhCCy5RcBpVy35RrB4vRncg3jQBFJMO5MqMvgU8CvL0ykgphtBiuHyJzM/e13zN 44z3ZLDMizOAF29V76XgJcZVaNIzH9dN2IXpUQGLN9JIvodo7mv3brOTskhgJGzGe2gb qjpU7lobV/nfSIsyeM55fj5pPm8huMz5aDv1ERXMfkIvaCNhb+zHGcPGNYWu45szg+fN C9FyCNgnmZaLf4jCF9rHBybIpnW/2XR/VqoVaJiVhgpHSoOHRSpkBCYHc4wBaLBaqDkP lyuJb+3jUz1xDEywztywb0jmTp36sUWCik9mwsWlosGKosSfK8jQInD874JLpwZHF+AM IQSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=qaEyVcILi4IrpitFcEeizuxwtHO3S04h/u0aPTVyRNI=; b=ox89S3pfu/hA2XWrcrSiKK/AozjjH84H7YuA6IhcGHS8zjUvqknIMrehWzQMN0L2di wMTtTHZZeDHz/T4jGU8lttxpAFBd9W81MeZuB5ialkc9ix0TdlJIHtljDEXIFwY35XYH PgXQkfIKNU4jD9318m714COeVsvIPcI6r3XZWR0wRSPdzQU0r9BMzvgER9sX8o7e6CpO jHc2Bo+Z2lNhwte4MJGGv+Rlkp6JrZagAhV7aWjat3llwNyDFHKB0WA0vqRj1dV2vP0i lMaHVxYS1WeU7Q+LCDfow818JeQZYpyquvfnYbWFGnuumt4FFmvl6F3TgNHBr1CssvVx F5aQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@yale.edu header.s=googleprd header.b="MNqM/+ZE"; spf=neutral (google.com: 2a00:1450:4864:20::135 is neither permitted nor denied by best guess record for domain of paul.evans-QDVy5qH0ceL2fBVCVOL8/A@public.gmane.org) smtp.mailfrom=paul.evans-QDVy5qH0ceL2fBVCVOL8/A@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yale.edu Original-Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com. [2a00:1450:4864:20::135]) by gmr-mx.google.com with ESMTPS id i12si42330lfc.10.2021.07.01.12.58.25 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Jul 2021 12:58:25 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:4864:20::135 is neither permitted nor denied by best guess record for domain of paul.evans-QDVy5qH0ceL2fBVCVOL8/A@public.gmane.org) client-ip=2a00:1450:4864:20::135; Original-Received: by mail-lf1-x135.google.com with SMTP id bu19so13905412lfb.9 for ; Thu, 01 Jul 2021 12:58:25 -0700 (PDT) X-Received: by 2002:a05:6512:374f:: with SMTP id a15mr970210lfs.208.1625169504296; Thu, 01 Jul 2021 12:58:24 -0700 (PDT) In-Reply-To: <55eedaaa-078d-4d00-ae06-4cf3892015c2n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: paul.evans-QDVy5qH0ceL2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@yale.edu header.s=googleprd header.b="MNqM/+ZE"; spf=neutral (google.com: 2a00:1450:4864:20::135 is neither permitted nor denied by best guess record for domain of paul.evans-QDVy5qH0ceL2fBVCVOL8/A@public.gmane.org) smtp.mailfrom=paul.evans-QDVy5qH0ceL2fBVCVOL8/A@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yale.edu 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:28746 Archived-At: --00000000000000f10105c615435c Content-Type: text/plain; charset="UTF-8" Thanks for that suggestion. The problem does *not* occur using the default docx reference file. So I'll just have to go back and recreate my reference files. On Thu, Jul 1, 2021 at 2:45 AM gnpan wrote: > 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 > > . > -- 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/CAE4RJyBxSGtrOkdv4qcdbei91OR5XwuDMysuoJ7utfR11qCN2A%40mail.gmail.com. --00000000000000f10105c615435c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Tha= nks=C2=A0for that suggestion. The problem does not occur using the d= efault=C2=A0docx reference file. So I'll just have to go back and recre= ate my reference files.

On Thu, Jul 1, 2021 at 2:45 AM gnpan <g.panayotou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
I can't repro= duce 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 d= efault template?
Also, your solution of adding a one-pixel image remind= s 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 th= e size you want it in the text, say 5 inches.=C2=A0

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 instal= led 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 ge= t a caption.
Thanks
On Wednesday, June 30, 2021 at 5:31:04 PM UTC-7 John Ma= cFarlane 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/Dissertatio= n.git. The Chapter0 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.google.com/d/msgid/pandoc-discuss/CAE4RJyCwfz-3NDcVq%3DW2x-SpwgW2w= q_HVtKAw%3DZYnuAAVDvFLQ%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 pandoc-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-4cf3892= 015c2n%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/CAE4RJyBxSGtrOkdv4qcdbei91OR5XwuDMysuoJ7u= tfR11qCN2A%40mail.gmail.com.
--00000000000000f10105c615435c--