From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29915 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Spaces in image filenames Date: Thu, 06 Jan 2022 16:01:53 -0800 Message-ID: References: <33416aa7-4f25-41a4-b216-763cd799a90fn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34372"; mail-complaints-to="usenet@ciao.gmane.io" To: "jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBBMG32HAMGQEIEGMHKI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jan 07 01:02:17 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qv1-f62.google.com ([209.85.219.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n5ci0-0008iF-Pm for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 07 Jan 2022 01:02:16 +0100 Original-Received: by mail-qv1-f62.google.com with SMTP id gv14-20020a056214262e00b0041192fab00dsf3473284qvb.23 for ; Thu, 06 Jan 2022 16:02:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1641513735; cv=pass; d=google.com; s=arc-20160816; b=e90a1tWhuzI97XWpPIQv2Hf5NWuIc7DCBtPxk46FfhjqKnHIK1HSGjse+yVBYieSDl nWs9EddUcLShzoeZ/jL8arxHvy+LZFgtwufJ4fQPXBCUxIVxHfdeGC2ZMZQeKKw8P53t GYW4SOwAA6tFnxV2KeW//66e/Q21pjRRos7FvW026IoWeS6k3ifWJ0pxrrWGkzAp2xdF WkRjMDJ1XJ6hHwwDfWZTvVHgQUm61XmStEYxj2FWeVWREkeov5BXHzX6OUYzartsP8ZC FuzR44yrJJ3PRmTsFl+APcm2iwd+o2QLQ5F8rR9LnYH6DgM5hR7jcwg0VpQKqYWG8ovk 0d4w== 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:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=4qlIPSwosCUBUxZQzgaqUzYe/nPSa1FRCL2DD+PK9+M=; b=rhM5Dk2ViEPIJ4A8np/RbUpyZhQAiyAYRboH5fsCK5w0mV1/EYJCnF/ba+ACG7V+33 hjLjCDB+7FMfhCkb6TuY0jHip3gcGCgTiuOMVlx9xQWmMzimv7EDC+gJq+xLHsUeqQ7k Jv8VegV3W4JhW0G0hQiMypB4TAbfjYsHDbMPOvD3z6w7RfbVq5TlG1KYayAWxxJcCP7t /cldTyyrfPd8IQkz3K6SrdX9QuDM2nChoM5jA0ksUor7MXPCieAg4Inne83JDoiFiFFH 0pGhUbx45GpwXCGFfuFW1Ion98IKvJyCfi6mGsqFFbk4DwHC8yh6GxmmQdeHQLOjCzjT N8Zg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=qMOjACHR; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102d as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version: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=4qlIPSwosCUBUxZQzgaqUzYe/nPSa1FRCL2DD+PK9+M=; b=uBgg1PPlPvgNuRhRBksPMz0o9tbsKDu7Lie2tbvFQnuGS7xfyGFAb5xtPgi99hJYbH qVzI+9hx4F4b755qFQpj9t/FEsJ/EnCxfwQHpmM06p835sKIsAAFiyPMl1PHsca9njYJ lAboUSti5WP2E0oq3RTT0M9u4dvJKQdUQauvX50yYYUln0pI7bgbdZ5APDJU3hWe1B2/ YYS83PIfM4V5m5+xpl6gmTW34PYppIJdR+Wj1YI7HcXSHrjL9pht7AtkweIoQtaObQIJ 62eAvKdwmjitFQ0rkSdlCvODuqyC9gCRuTFiKO1zTQ+sRBCdV0ArGC+7isvB8gJ/XLxZ YUMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version: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=4qlIPSwosCUBUxZQzgaqUzYe/nPSa1FRCL2DD+PK9+M=; b=6uxcAy/XspcVQfCxSKdU0/ydfbYI6eESL/PkKP79/CZ792tQWpuXQzjrmPKOwJfNow P7NZFlp08fq8yyhHEXH7xNgLhZXe7d9oEgwlsBo+gIG7CuLII7fOh24LfDaawvzdGvic ABhEOZtj2YWA2tVtdq7EyfqdbxZ58Xft+5m/b6ymVivzB4vBvBHkqECVXQhxg4hYjD0W 7JlNkLsc05XRGiIB7JsopMAl/ATecnytQFAn9iiYF5Wk9P0ZtrAp/sKq4xLMR4Yq9TOK i6Mzxee8fexq1NH7+v5SPHAgdcaXI564t10s3a9bwz6g5DMERfF4KgYHeiroS7e1TM6s w4zg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533Mn+JfJ6DLtAIL7ss3B2hFEoj2NWUN4IBYHj8UhT6BGE4svIfg tWzm4Q/g+wiHgePdRMMG6XQ= X-Google-Smtp-Source: ABdhPJwK39mTQf87E4iqawzBP6a+e11v2jsKB4gvtO24679srGB80+nzjxXtNM2uPesdictfuXegiA== X-Received: by 2002:a05:6214:29e6:: with SMTP id jv6mr2335374qvb.68.1641513735359; Thu, 06 Jan 2022 16:02:15 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ac8:7e88:: with SMTP id w8ls1987223qtj.3.gmail; Thu, 06 Jan 2022 16:02:13 -0800 (PST) X-Received: by 2002:a05:622a:1908:: with SMTP id w8mr54656858qtc.564.1641513732747; Thu, 06 Jan 2022 16:02:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1641513732; cv=none; d=google.com; s=arc-20160816; b=SErq58OyF2nDk7g0r5nqc9LbQmO36O5NhgbuxxRRTcyAx90z42zGhtyyKv+m2cI8dy 70B6eohoRzcuiRTU8cPMRgjrzXd8tjtxxcZYUdneBdPHk+Y0D6THtQTsPNGFYWo66Zft TBUJFq+RzEfnq9AHE6o3QQzNO+6lgMrN2x9zBDBLiz7vSq0QBvbpnFWqcMeRREX5tmKF +V6NIWyUXe+qYKsZIZYAGFvWwW8nrpM2Noex4Br3iICwNOAu7+1CmXiK6XGVewHHJXj+ uOlDhWsdUS81Ux7wEpPnzmjO0agydU7yCTXmNvq7eZsSXOChkLq+N09F7y45oAZEgj9k jKRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=3LE4Fv2CgEf6f3xJROtCFQuVCcpos7DPdkOqvJE7Nvg=; b=m7Ne+VuJ8TK5c+IBTzJxZz9yqWUAbZVFNJtjRYVmPayAuce0zGZh/iMHBo0A6mdhtb /0yIKbtOGU4t8owDmCHlOuE2FaM1izZgTgAWsZ6+KwKBrIa/TDq8uGjJ5IHLJFP32fbR 4sG6Md9u2Ej3gkTSbXEdOiBIutt8MMyUps3+NJiHm1xHp5wI/olpZ4bwOr7KdWzO/1Vz hK9jx18xJOioAfKXozGn6MWy5oZeglb9qAnptsTQcp/ZnqoTv8+/ozwaXSXWxGKA8oKM UqY0BFaqaTDiHNbhYSYhBSoGVS0avGORBtYTTpLVfh93X1mt13qSJOnomWnqaPFePgA7 yIPg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=qMOjACHR; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102d as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com. [2607:f8b0:4864:20::102d]) by gmr-mx.google.com with ESMTPS id v13si483996qtc.1.2022.01.06.16.02.12 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Jan 2022 16:02:12 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102d as permitted sender) client-ip=2607:f8b0:4864:20::102d; Original-Received: by mail-pj1-x102d.google.com with SMTP id c9-20020a17090a1d0900b001b2b54bd6c5so10301191pjd.1 for ; Thu, 06 Jan 2022 16:02:12 -0800 (PST) X-Received: by 2002:a17:902:e549:b0:149:22b4:530c with SMTP id n9-20020a170902e54900b0014922b4530cmr59109533plf.17.1641513731683; Thu, 06 Jan 2022 16:02:11 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id y11sm3407471pfn.7.2022.01.06.16.02.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jan 2022 16:02:11 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 7B2F0A29D; Thu, 6 Jan 2022 19:02:00 -0500 (EST) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=qMOjACHR; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102d as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:29915 Archived-At: Here's the root of the issue: % pandoc -t native ![moon](La Lune.jpg) [ Para [ Image ( "" , [] , [] ) [ Str "moon" ] ( "La%20Lune.jpg" , "fig:" ) ] ] As you see, the markdown reader converts the space to %20 in the image path. This is fine for HTML but when pandoc tries to create a PDF, it causes problems. I need to explore further, but I'm convinced that's it, because if you try `-f native` with the above, it fails, but replacing %20 with a space, it then succeeds. "jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" writes: > Here's an example: > > ``` > ~/Pictures/ > pandoc -o Downloads/test.pdf -f markdown > ![one](file name.jpg) > Error producing PDF. > ! Package pdftex.def Error: File > `/private/var/folders/yl/xd3tsv2x1959s23ts4k1q > t9m0000gr/T/tex2pdf.-a4cc305331e7cf2c/file name.jpg' not found: using draft > set > ting. > > See the pdftex.def package documentation for explanation. > Type H for immediate help. > ... > > l.70 ...T/tex2pdf.-a4cc305331e7cf2c/file name.jpg} > ``` > > If I use the full path to the file, it works fine. > On Thursday, 6 January 2022 at 18:13:33 UTC-5 John MacFarlane wrote: > >> >> What exactly do you mean when you say "generate errors"? >> >> "jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" writes: >> >> > I feel like I'm missing something obvious, but I've just noticed the >> spaces >> > in image filenames generate errors unless they occur with a full path. >> For >> > example: >> > >> > This works: >> > >> > `![One image](/Users/username/Pictures/file name.jpg)` >> > >> > This doesn't: >> > >> > `![Another image](file name.jpg)` >> > >> > Nor does: >> > >> > `![A third image](./file name.jpg)` >> > >> > I've tried quoting the filename, too. >> > >> > The command I'm using is the following from the directory where the >> files >> > live: >> > >> > `pandoc -o test.pdf test.md -f markdown` >> > >> > -- >> > 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/33416aa7-4f25-41a4-b216-763cd799a90fn%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/e06ad7a4-019a-4ab7-8224-3b61ea32a07bn%40googlegroups.com.