From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29914 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" Newsgroups: gmane.text.pandoc Subject: Re: Spaces in image filenames Date: Thu, 6 Jan 2022 15:32:21 -0800 (PST) Message-ID: References: <33416aa7-4f25-41a4-b216-763cd799a90fn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_214_503951464.1641511941625" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8562"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCX7HCFDXYLRBBXY3WHAMGQEK3M6WAA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jan 07 00:32:25 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f56.google.com ([209.85.161.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n5cF6-0001zu-Qq for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 07 Jan 2022 00:32:24 +0100 Original-Received: by mail-oo1-f56.google.com with SMTP id s14-20020a4aa54e000000b002db004adebdsf2405385oom.4 for ; Thu, 06 Jan 2022 15:32:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; 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=fIEjGtV0YZnBzb7tIFga86r3PVOOItiqqGjick086Mg=; b=l7uyI8zOvsd+2U11kK6k6A0DU1Z7NoO/1GaWQu0suKddEEamWHvHT6EkzQSjYowhXZ 6xdT7dbrfm9INvbvZZr9DCUS0j62FOHoqwfXgYhVV7VwE1jMzZdVn+o9ECl1zWQG7s5B lTEahoTO5wLvKgF4KH9Im46Y0m3F/1q3AfGT7DtFpnclH01NceKVIvuo44/NCiJ5OCEp 7cx/QrzV8IDx2BmuWDylzZeS5pIVlGOq6/yw9jd8vzYQaIMxXZQ/cod7QxX6uAxBlMWk WiByTdfjoieH4gu6zi3Q9DedaEn3QMuCmQHklDlZW4LuNJs20tZmHXlHJGM3F5nTV6nq 6FMw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=fIEjGtV0YZnBzb7tIFga86r3PVOOItiqqGjick086Mg=; b=SZVbyKhwvz7cGMVnfNvuz6COpBXd8BbEW3NerUTRWFpysrVhizMRSwD6CoY6SO3WW8 xCGL+TNYo1QIWl0PiFPf1BtNhVbA7TqfhKWGINBqCRFyLSSOT7wHGYZUvtsHLL5GGlqC 9N8jio7aEaRYsEDG6CNH8ZQpe+POkPoe/E/wXMFQX9qLKfElWRPC0ZsbkcCAyKstWKdK yiibzzjpRimff4rT3dZ70ykMLZMwEF44GJf187GHPzOznFuELrmfz05sU5aDrAUarShU 25TEI04uoS9CJ63hbjBuVRffVERcgQnHKzkeFBX91S8ZBjCCbndhl2LL2S2YeH2UN5bW +6Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=fIEjGtV0YZnBzb7tIFga86r3PVOOItiqqGjick086Mg=; b=k2TC63n1VsJWkcHQROV5f2UvMJO+VSfhx2rBWACYYBi7g8w5gTiziAesWGrwIRfrW7 xuzD67b8G69xdCI60JhjzGNpKb31mTSxYxZNej7a5wLYzO5E1B6a+tl1eqquoIVZDoiY B0Oy/b6stG74Azx0nnr9qJJuv7EV1ejsJiXFvt74jz71AmxNwt/uPhJ2bofZ6flgZc6Q 2LAYGcuBCLYmQesR2P7FqtIu68Cs8sgH5Uc8D7iKUPvdfsaqK8rncmIChg/unOfbMubl 1jtaxtaSu2sQymXAjwpAPlJhX1P882K5RwSOudyXQUMsjyi8Uo0hs5fuOtntTpzjCgI0 PmbQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531qa1u0fKgVbCIWvpmAi+oRFzn/GTOHb6esUcfoK9R9Cud3YuxK KhF/BObZIni2eHX5n0l5IIo= X-Google-Smtp-Source: ABdhPJxPIYYB3SqGE6xm2diNvdUjGW0BJiiVdzfYFNhwyBFYJy+pjHtA3wsFqIZwadLR6ZgWxzy+uQ== X-Received: by 2002:a9d:d68:: with SMTP id 95mr42170412oti.188.1641511943803; Thu, 06 Jan 2022 15:32:23 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:171b:: with SMTP id bc27ls819882oib.8.gmail; Thu, 06 Jan 2022 15:32:22 -0800 (PST) X-Received: by 2002:a05:6808:144c:: with SMTP id x12mr4646097oiv.25.1641511942203; Thu, 06 Jan 2022 15:32:22 -0800 (PST) In-Reply-To: X-Original-Sender: jmuccigr-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:29914 Archived-At: ------=_Part_214_503951464.1641511941625 Content-Type: multipart/alternative; boundary="----=_Part_215_1741673121.1641511941625" ------=_Part_215_1741673121.1641511941625 Content-Type: text/plain; charset="UTF-8" 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. ------=_Part_215_1741673121.1641511941625 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Here's an example:

```
~/Pictures/ > pandoc= -o Downloads/test.pdf -f markdown
![one](file name.jpg)
Error produc= ing PDF.
! Package pdftex.def Error: File `/private/var/folders/yl/xd3ts= v2x1959s23ts4k1q
t9m0000gr/T/tex2pdf.-a4cc305331e7cf2c/file name.jpg' no= t found: using draft set
ting.

See the pdftex.def package documen= tation for explanation.
Type  H <return>  for immediate = help.
 ...

l.70 ...T/tex2pdf.-a4cc305331e7cf2c/file name.jpg= }
```

If I use the full path to the file, it wo= rks fine.
On Thursday, 6 January 2022 at 18:13:33 UTC-5 John MacFarlane wrote:<= br/>

What exactly do you mean when you say "generate errors"?

"jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org&= quot; <jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org&= gt; writes:

> I feel like I'm missing something obvious, but I've just n= oticed the spaces=20
> in image filenames generate errors unless they occur with a full p= ath. For=20
> 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 wher= e the files=20
> live:
>
> `pandoc -o test.pdf test.md -f markdown`
>
> --=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..= .@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3= 3416aa7-4f25-41a4-b216-763cd799a90fn%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/e06ad7a4-019a-4ab7-8224-3b61ea32a07bn%40googlegroups.= com.
------=_Part_215_1741673121.1641511941625-- ------=_Part_214_503951464.1641511941625--