From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29923 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: Fri, 07 Jan 2022 12:00:36 -0800 Message-ID: References: <33416aa7-4f25-41a4-b216-763cd799a90fn@googlegroups.com> <1c8dd209-5629-4681-a5c3-9d030d99a553n@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="40248"; mail-complaints-to="usenet@ciao.gmane.io" To: "jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB4NX4KHAMGQEHCYIYOI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jan 07 21:00:53 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f190.google.com ([209.85.215.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n5vPw-000ACf-Qc for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 07 Jan 2022 21:00:52 +0100 Original-Received: by mail-pg1-f190.google.com with SMTP id g12-20020a63200c000000b00342cd03227asf949116pgg.19 for ; Fri, 07 Jan 2022 12:00:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1641585651; cv=pass; d=google.com; s=arc-20160816; b=Q4Vlq+g0fGiz5x8SRqO+2wpzC/J6FHErVr8XrM1DJdIqjHwxFDlRjX4XcR2nmAGPpX Wniv7Rm3nixrXTscTcnR+FgNiK24g0xrJW7CtlUrZNhIiRaDk9D0OiWg8/e097XT6Vbi a5eARy2Vgs2XxaC8wXdzY1Gk5pXv/gF6kuPU/1b/68bkPCtGh6mwsYn/O9tmIe7yfAfd ZfTMbB9f5j30X89C9s7EQmQEWBA4eCOPeR2/y8W4YdIXkUrJnCXnCxJfpF7tn5w6YeGG 8aI4JI7dFLgbm0Tz9YthuuOybLQQtrv/BbBatJksMlHcPtPzrSJ3CZoSAGipFQ3/kcgM YphA== 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=bDZZMy4e7oIW/wDC+DkL8OYdBNae/TzMM4QnVTOTZlc=; b=dBRUryEs/1wQbeCo230gVnyulM1EdWYqrJUtBemTRraPeI5/IlwmN/5vUtnmNZ5kH1 TsmLSntXmO7L+cWytrANJSlTeGESIIih+75sSHHmZ33dhPA70gOs6V9phTS3Nvl3BO0e Hg2XcosurKjvQhIhsoCxJFAnoF+S3JjNuQtNIc0BtSjMvlx2Iwkp5KtFBW8bNqVYZEvf cpNeLoTu4DKbUwi1rE24U+55c2GS21qa6C7K8G8CkxnufYidaJgw7tPNElQg5KPH66qR KO7p1GbMqNBt07Ik8+idwd41+G4QtaWdcucGq+qhVimDdWVFArP4p1iFR05FvYKTrA0x SeKQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=IDpuV2J4; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::629 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=bDZZMy4e7oIW/wDC+DkL8OYdBNae/TzMM4QnVTOTZlc=; b=MFbil6Fx13bYUVGIo6yc+NOQZ9ofSLIuJSRmfgeJ26fCnD1l8VzmD//yJaDl3050fG GRE9uD9RYgnHBtS84C1FGE7NyLoOiIi+Lgy0lSY23NQkHy7WRu42DjJUW8G3exLZF88t gh57bmujnR69FrR89Tm9hbAOdIjhl30zfs2fl4MZnuqv1IF0aC93NGJoiptsXv0U8kIH Uv1Vm4+VDuaoML6UEQblUObeRvbpCnxy7TeaRb2UwvF2gxVs+LcsHoUmim4whdqqrfSA Cb+nkdmnvE9fRm7nzXhCuWDfe5IjJ22I6fKMyOTu/3icQFMOLWePWuRfNxrMG34kpvLq cHAg== 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=bDZZMy4e7oIW/wDC+DkL8OYdBNae/TzMM4QnVTOTZlc=; b=QqaZzuvFJqtypvFyo/Cw/HcwmduqSbCG4kNlilx9reKnrdVAy8cKiJxj9uofSNywkK 8QL8pXJE2S3v6LkGGCCf54Iormkla3BsgyHgDC2eFoev2ChXsl4NNtbINflVgR1HGuri xI6aRZLuDAolB60riqoOn057EmaWySndX5VxaZ2qrVrmDITxXDr/p9LTCeG8Aks6nToS EgRbRcIsbgZJLXJLtSaaHrD464RfK5apqX7akOlWLW2YPJa7Z/PxOxsRfQEzcAHUHeoo Fqj3OSmg8P1rFL8AEaOF0GDPMFMgbL/hEPe0cDkKKcTBgzn1XUwVmNl74U9vpb9UnFbw VBUQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530VGWzo9AmOd4J8q/DaMbMtG4uWNO7BFvJv6/4f/VF5iZkTr9// XEmNWmB4tNxThGDUbxkFjqw= X-Google-Smtp-Source: ABdhPJx/OTE3gNUAudVqTlXO1mgPe6tXdvQWhnma8wOUz4yGBquWQTBq3KkBFNymK1ncivVXmARgxA== X-Received: by 2002:a63:3718:: with SMTP id e24mr3290814pga.46.1641585650998; Fri, 07 Jan 2022 12:00:50 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90a:1f8d:: with SMTP id x13ls6786572pja.1.canary-gmail; Fri, 07 Jan 2022 12:00:48 -0800 (PST) X-Received: by 2002:a17:902:7e06:b0:149:c32c:90e with SMTP id b6-20020a1709027e0600b00149c32c090emr19619623plm.137.1641585648869; Fri, 07 Jan 2022 12:00:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1641585648; cv=none; d=google.com; s=arc-20160816; b=y8dWV7ZYXtmYCiGA6R9W0imM3g18oh9YOFy2ZZDzs4EHfKzrMZnulfY9uSnEyWVyYb 7DSjSPHxiU+ic2YE31i2BwIdxA0CAm4NJn/8+qsUVhH7dTFcATo9gX9XAqWO5lpS1Czq PdI46xDcsoR0D5gp7CMz04Yl9k/MmjZxbHVnRIvCxOe7dX9BbSn8N0YeUu80lbmeKIFL okfmYMxGFY+UyqcAocIDYRLo8U2obluS1rl9MkQVGec/RAaPsW9XnXggC2qHhkTM7fcB GUK4JjP4EhIo6vNjDcs6nmby9bGmyKBuymKKn2kb+4FFH9P/c/hXTHK+5q9XBrcqKpEF zJBQ== 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=rhRIOoBTzmSX/q6MFKms9k9kgk9vUmX+H9z5Lnh20vo=; b=x904VqkAhKLfvVbjapuEagUe44A/p818iZEaVCKx0997XT7tVIiYWO4HUDW8Jv0fc3 oLhsxAQldRRXnpG3RMV17KS3hg7ke2ic2V1IPfMku0tJu7SP4bCBWFEFrRJkPfFELkVO NGZjI98PFB6K6sZxebhW5y5EGJMwebIotZf8vKd84Uo4CHdSAviaPM4ZmFP1iwOV9o79 QtDoKK8GS3WbAHpIkSpeoaKmF7UxSF6T0WO6qeJviALD4f8dbgdCq1QnC5dUYwJTCN5V Y2FUiOXlB5ICSR6xBOcA9gEJjIrhZlcsN8iViAgrcKtHdb1ZuRSESF68iplxlYFoMx/F TfmQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=IDpuV2J4; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::629 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com. [2607:f8b0:4864:20::629]) by gmr-mx.google.com with ESMTPS id nv4si921288pjb.3.2022.01.07.12.00.48 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Jan 2022 12:00:48 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::629 as permitted sender) client-ip=2607:f8b0:4864:20::629; Original-Received: by mail-pl1-x629.google.com with SMTP id l15so5638736pls.7 for ; Fri, 07 Jan 2022 12:00:48 -0800 (PST) X-Received: by 2002:a17:902:d492:b0:149:ea03:d234 with SMTP id c18-20020a170902d49200b00149ea03d234mr10439806plg.108.1641585648185; Fri, 07 Jan 2022 12:00:48 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id c13sm6676069pfv.20.2022.01.07.12.00.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jan 2022 12:00:47 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id E91A7A29D; Fri, 7 Jan 2022 15:00:36 -0500 (EST) In-Reply-To: <1c8dd209-5629-4681-a5c3-9d030d99a553n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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=IDpuV2J4; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::629 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:29923 Archived-At: I don't know, actually. This should be an issue on the tracker, if there isn't one already. "jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" writes: > I can see that, but I'm not sure why giving the entire path removes the > problem. > > If it helps, I don't think this was a problem before (though I couldn't say > for sure or which what version). > > On Thursday, 6 January 2022 at 19:02:16 UTC-5 John MacFarlane wrote: > >> >> 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-discus...-/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 >> . >> > > -- > 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/1c8dd209-5629-4681-a5c3-9d030d99a553n%40googlegroups.com.