From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32431 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: customize to handle image not exists Date: Thu, 30 Mar 2023 22:37:20 -0700 Message-ID: <8826C552-7F45-499B-A4A2-59ADA868D720@gmail.com> References: <17DDA913-35EA-4F94-99EB-378C0572C454@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.2\)) Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29832"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBFHDTGQQMGQEFYPN6IA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Mar 31 07:37:28 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qt1-f190.google.com ([209.85.160.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pi7S4-0007Yv-2h for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 31 Mar 2023 07:37:28 +0200 Original-Received: by mail-qt1-f190.google.com with SMTP id n10-20020a05622a11ca00b003e4e30c6c98sf11214600qtk.19 for ; Thu, 30 Mar 2023 22:37:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680241047; cv=pass; d=google.com; s=arc-20160816; b=FfRXigSYxnPWXVs2/H3ed5xrw36MJSYoRAdWy54L9f0tnH98oxrhuTkz3j663f8RUb tcSP0LB9GlKeFoS0lE3lrbCjLxWUaHweBiG6FxTVJ9TSMGE5BGm/4Im/pvaQKuXc8P0o 1oO65DYQybIa9SDzQ/HPyX2gMKOvBi7aY6qI17HmXAxlocxLgp5ybCOJLhPFE9rC8kXE EGsQIMbe+AddI/WtZuhFksaglbRtHGqkT3csnqZ6PttdVV2HA6Vpb9uatdlwr0gu8+5u Qa7yUmqn/Q9H6vq77QvsKLNpW/nGOnQ4699lRSgqbvjMpomymrGngeO0ls85F1L9dO3w b+qQ== 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:message-id:in-reply-to:to :references:date:subject:mime-version:from:sender:dkim-signature :dkim-signature; bh=YXivJAJMEiIZ68xVzmS8dF6/DoOCPy7o1TYTWI2jKh0=; b=uaWfpSG1S2+/iR7eFvf+K65IHb94EmtS33/+kQ6Tyd2YCLr3fGaCwvT2acFYZxSWus 1nf8Cr7QA8vIaOS8/djPFWlYQQchnc2JCxuc+sDPQrIKFW8FpLz7qRZEAzcxdd2lc2yZ nizUJpXsFwh1u7Ol6knCG/NKx+FumFJhdFgvhsUWh9v0Dx9JxJv0+0PklcA0tGLbfUGr 1p/J4wGCEAHCYXA6PabMoRE1BXt+x3ZlrSs+OJYXXnrNp+Y18NmsSppZs8oDcB48ghfF xF7klBoHLHYuxLkf+ZA9I4WqUtBKTmtk1p3ufsR3Sd16mlABuCaysn98+k1PxQVqolcm AGJw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XdH6trDu; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::636 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1680241047; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version:from:sender :from:to:cc:subject:date:message-id:reply-to; bh=YXivJAJMEiIZ68xVzmS8dF6/DoOCPy7o1TYTWI2jKh0=; b=l/I7KfKPFNeEXieQz9zEJn9voMl6KR+b0s0Xo8IFPCC/n15PMdaX583Bs6sX2QcLCk HKUthcIIp4c1hrmEV0ZF0n375XyOKl2H1Dm9eMk0llccANFRq820O12iSoo1gVdNspvh YXgekZ8FoCv+0SEZ3bCJEXdrtrNflw5pryBvQbgvytgaOoZpaJcFGv0OiaQqFF6mRxr6 2ip2UtCAHXk5pkiGz2n1BI+dp2hra4O/yejpIJv8xXIsVj0adjKXONlhKvjL4BaxjonF Avb/pJNvSP2U8sjPCarFWxa0AFIpB5pfCsSc6wDD+isZ9JSjJX36gCChDebTaxi0stJi 9b5w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680241047; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version:from:from:to:cc :subject:date:message-id:reply-to; bh=YXivJAJMEiIZ68xVzmS8dF6/DoOCPy7o1TYTWI2jKh0=; b=bJdu+N//P0GBsNIotANGz1WSckAbNm/dhXtg15zzMHz7HSa0p26rkPxPuVtc1MtqmN XDJ1RZNAIvFPfh1x23CNHn3XQTOa4X9hipDRdjadpMUwrYXKZdM6ec+zJzeP3KOLOXHy gmGZKTtkzvLKqir26VSyKc5INHx/hVymPzQOhq40BdKFt7I3sTzptzsbkHKtoranI6VI RV0Wph0qRikxwsaAz/W1CGGO6S/HEP49U7BRUHrV5h5Y96YCTdjL3wJMSebb3bXTL6lW b3VQu6AXm6vq4l2PteepKOCUJkX0eeI3QgEWdjFBRynG3j/FRRzN3dTTxMWAHO4zIAoH wdtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680241047; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version:from :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=YXivJAJMEiIZ68xVzmS8dF6/DoOCPy7o1TYTWI2jKh0=; b=xSgOl0ko3EOqhiYnv6sLECDoSCHTGsNX32YsdjNatXs1slVnQZqKLQ4v+MiJSZhFLp EAl1Y7vsGhnpQ9OEb6/YYB3NLvth9U2+33uWo8rP2mY6m7a+y2SHaZFqY8QLQeUPSPmA PdAghgwB0gvMcZbw6LW6fgApgg3CYJ/O0qn/030c4NIfpZOYuoWEXMeXpEMr+m7y+xYo p/RClaoBAzn4GtNXkFEqP2L6DqWKzL71Uj+xWVYSNhaFRrNARW1fijc0DTAb4Ih/ruqf WUkSkL84enNwW6A4s1q0AvlSVGM4onOo Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AAQBX9dEGTc5R+C2szvxNsqDezxnM35O9KFVk2uI9/s3JfI1ijjfRW1L QFdmKivyjNdLfcT2Px7P6iE= X-Google-Smtp-Source: AKy350bZWOu9eyrDQqPaXLLuHvvFFBd5s1o9wFq4sO+VfSw5bn6zyVqQaLN8jlKAxmcN13ZfExIYQg== X-Received: by 2002:a05:620a:2407:b0:746:75f7:c8a2 with SMTP id d7-20020a05620a240700b0074675f7c8a2mr2366133qkn.4.1680241047137; Thu, 30 Mar 2023 22:37:27 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6214:5d93:b0:57a:efe1:9777 with SMTP id mf19-20020a0562145d9300b0057aefe19777ls2857916qvb.4.-pod-prod-gmail; Thu, 30 Mar 2023 22:37:24 -0700 (PDT) X-Received: by 2002:a05:6214:409:b0:5bd:4363:fbec with SMTP id z9-20020a056214040900b005bd4363fbecmr43515020qvx.27.1680241044120; Thu, 30 Mar 2023 22:37:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680241044; cv=none; d=google.com; s=arc-20160816; b=Z9Z2Bez/SZsOpqTBc98D50tRZ7GcyTK4M8nPISKnHJj6ZSTq2RFvDISY87JjOfCcbD 0psfS9olL1btiShtZKbcGCB2kmuDBSK0xIME9WIObTD2TMGcs5KzZdqldXHMqzxQ0DTE tRTbJo6MEVSmIsIXgxGCwyGTh7Js9fpybUITc6dPz4KfJLj6wPL/Ye/SvTM+aStq8yXj I1RZcZg9o3oov4IXBOx0n5W3HT1O8wea9YghgoCLFlYC/dGIw/2G0Sts6EYZn/Ul7e7+ X/wl7IfN0TTTEPil/qX0pqO+1+sHzAgMvmH80sq7lgYJhWerC7m2NwlwdseSmK/WXLaP 1vLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:dkim-signature; bh=jWVfbJ2NGhCVaF1NsEHRZ/Yb7IlNnnvoX0PwOIQ9Sy4=; b=0RPy+cNNdIlyjPy16cD+C1Vyj6xWfx0D6wZGM4hbw5oEZlqaDeiJS596fzCqmNAtRG dK8a+knN1GWEd+GOXxhn4ymhTokaKyD24xYla2ERpNPRDgLTU4MVzg5RyiZwr/EYG5L0 5uIxp1w84wUdouJ8RD5X3LWUNWOGfJzrPoFFzVNcKeWORcKS6W2VHpo9KcfzNa6ZtM6x 8HjuXMxpMDyuPK19505QqSc64O2uYjtVfMD0pYEorosKDJz9p2Pun+Q31RuwXOWbDm4j XU2icmDoB2TASKhM63e2ed+LknEkkOytTsK2akeR2O+VY5sdBiKDveZsHK1tvaxgcFfx MVZQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XdH6trDu; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::636 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com. [2607:f8b0:4864:20::636]) by gmr-mx.google.com with ESMTPS id on25-20020a056214449900b005dd8b74917esi40962qvb.1.2023.03.30.22.37.24 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Mar 2023 22:37:24 -0700 (PDT) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::636 as permitted sender) client-ip=2607:f8b0:4864:20::636; Original-Received: by mail-pl1-x636.google.com with SMTP id ix20so20275571plb.3 for ; Thu, 30 Mar 2023 22:37:24 -0700 (PDT) X-Received: by 2002:a05:6a20:4d92:b0:da:aaec:9455 with SMTP id gj18-20020a056a204d9200b000daaaec9455mr22285955pzb.43.1680241042910; Thu, 30 Mar 2023 22:37:22 -0700 (PDT) Original-Received: from smtpclient.apple ([2601:644:4700:2110:51d9:9a23:6c03:9b51]) by smtp.gmail.com with ESMTPSA id x24-20020a62fb18000000b00582f222f088sm806146pfm.47.2023.03.30.22.37.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Mar 2023 22:37:22 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3696.120.41.1.2) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XdH6trDu; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::636 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:32431 Archived-At: > On Mar 30, 2023, at 7:51 PM, jiewuza wrote: > > Well, I am still confused about the difference between the two processes. > > In the process "html->latex->pdf", I use pandoc to convert html to latex first, and call latex engine to produce pdf manually. While in the process "html->pdf", pandoc > does everything by itself. > > I passed the same cli parameters to pandoc during the two processes. The final pdfs are all the same except for the non-existing images. So I guess in "html->pdf" it also generates latex temporary file first before producing pdf, right? Yes. > If the answer is yes, it seems an inconsistent behavior of pandoc treating resources, which could surprise users. > IMHO, a warning is enough, but do not modify the content by replacing image with description. Well, then the latex process would raise an error, without special custom handling (as you seem to have). I think current behavior is better. > > BTW, I did not see the description in the pdf for the non-existing image. Is it a bug? Maybe there was no alt text in the input?