From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32165 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: Conversion to LaTeX: --resource-path and \includegraphics Date: Sat, 11 Feb 2023 20:14:06 +0100 Message-ID: <87k00om2je.fsf@zeitkraut.de> References: 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="17145"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBLGVT6PQMGQEC42VB6A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Feb 11 20:21:20 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f61.google.com ([209.85.128.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pQvR1-0004D8-Sw for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 11 Feb 2023 20:21:19 +0100 Original-Received: by mail-wm1-f61.google.com with SMTP id o42-20020a05600c512a00b003dc5341afbasf4309764wms.7 for ; Sat, 11 Feb 2023 11:21:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1676143279; cv=pass; d=google.com; s=arc-20160816; b=gX9xcMJasBGbMjQoSMR+IpewAX7DO0Nm3TPUbGavnfHcNM5QUd7gHL+xvDvaSoNFZa hn5bbni31cf7PxihlKL4DAL/3lGE3Xu56trc5iXmI0sOKWJJyHxfim6CV72lAi9548Jn 45UPldWzwgIPbX2esiS68km9atdg/pogx05Uj05oFlrrgPf25Dc59dmIY/s9U++doPA0 TEx1DhCyBC3AhamZK04QZolbEGF61j+CobfG8/VzsszI+qdfooavTesdkhebrBoLhryt HVjXTLpbVb5LXsN5IGqiJCDMPx9AN3iyPSf6d1RdOJnI6Tqo552YJi53FdThOfrWe3fv eDwg== 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 :in-reply-to:date:subject:to:from:references:sender:dkim-signature; bh=LCresttytvWJ/NHKbQ9BPcB7hT5hzgc+szbZzaozIaQ=; b=FIpWQx8iPcMk5aMT7WHZ9w6pQfdm199+YnMq0Sp123XnkPvZD41IuqvZppSc795bog kOJRasmDbAB8E31H5igjrpbAnNsw5v5XgXM0R0kmlvTEitny2tPf09d06tMpmxN+vzGF eR7Xm2RvU1GkOTUwVgizNJtEZFv2NTbQWOBkHwsQpzuSioA6m7ut3yNX+IYeYuEEH9RS iPCoScjenQN7yLxrizPbijGJDa+DjPeHnsd1iLjNY7joGfdetdx6TcD+TaeUEixcok52 ExfSguymVuUjJN4cTFLDLneIuM7J80eKVyKQu0s1KexhKDMOtlE6E6LwA4xaI8X+6JYK x05w== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::201 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; 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:mime-version :message-id:in-reply-to:date:subject:to:from:references:sender:from :to:cc:subject:date:message-id:reply-to; bh=LCresttytvWJ/NHKbQ9BPcB7hT5hzgc+szbZzaozIaQ=; b=eNVMvzd/qhLReVVeo4AO8hkbLdkFfxpoBvcSXKg6t4xpz7g9K0Hu5y8E+VjcDhpLkI DHyuuYXuQSJryNODgslmHNwxipR/vt2etmwm3V2ok3N2OLuoLSu7Dr2RxzrrfVsgN635 wwQqxhMxAAYTL2b7OI0Iyqs68HaSKxIfv8Nv9kcjyJX2D24jXxWsle9Kk+g4nVhrs0/e PiKmZDlWMnZY85Ur/F0VOmJ5PXrxdLbU+0A07UQ9T9Mw4ZhlcIXspDwMoSdVIFB6YXFy mzxF2Ehw1W1pXj+AHRraRRXGc8u1VYcmOuPDr53TML7i0sSMoBB7W4nQXJm8bAOtOBLe YAvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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:mime-version :message-id:in-reply-to:date:subject:to:from:references :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=LCresttytvWJ/NHKbQ9BPcB7hT5hzgc+szbZzaozIaQ=; b=XPwVJmrIS3kCmW3tH8dSn7mMzCxsf7/M0QkNpsyVcqO4VmUa+iCExUAgbN9VTIfgdC cPMEijNldPQUcdhouLg6Yy1nC7JWnJUWqRuVjd6SeKsXKcvsv4CZfpZLFiErWDO2QTvK /9nUCrH9KPABtAgm99x7AckNrjvDrWb7nw/zd+k8fZvy8Nj3QQ+Cyji8AJLxhOhodxof 5I5yafNc4SfNOs45rmhTy4p8ubQ+yN3Dh+qCFAP2xAq6TSGPgHcdw6iPq0vE878r48Gd AiQs1xdodofCxt5qQE95hMrVRt/dawxezFIq63r2j2lLbU Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKUwt1kqW9mZm1M6gWx1iHJkLa17tE21YyZpN0j7aCtQBB3IrpIC 7T4grc+RXbamF8meDZqruv4= X-Google-Smtp-Source: AK7set8wNWm0a+sJRuo6T7tgajTqbtg9MX/Y56gQyHOXUfBgSrJXaPhZ6csdK52wvNG00DqUVhd9pQ== X-Received: by 2002:adf:f242:0:b0:2c3:f680:faa7 with SMTP id b2-20020adff242000000b002c3f680faa7mr540583wrp.312.1676143279385; Sat, 11 Feb 2023 11:21:19 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:3b18:b0:3df:e1d2:cd23 with SMTP id m24-20020a05600c3b1800b003dfe1d2cd23ls5832783wms.1.-pod-canary-gmail; Sat, 11 Feb 2023 11:21:15 -0800 (PST) X-Received: by 2002:a05:600c:4384:b0:3dc:1054:3acd with SMTP id e4-20020a05600c438400b003dc10543acdmr15626416wmn.17.1676143274934; Sat, 11 Feb 2023 11:21:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676143274; cv=none; d=google.com; s=arc-20160816; b=Egq4cHPWQ9/4YPNvin1avXX1JFxMf+XA5zx1yBxsKBu1ZstSgbzUCivktmBEXBJ8Wu GZBH5PtGSSyfqC10gEDKUJnAlyPBJi+4hBhQhf0jJ2Plv92hhru9q/nFaD/ty0x94K5b mcY7U9pAI/IRPzDYTB8xxSyFbhogBSWvYPFCiJJ89qzibejQ3Ek9pP154Iz3RLXuklrP oLBmlnMli9rucD6ukLSqbhE8Pa5dXDz9EkhVrULWI7/KV81jDFXj8MO07AbhEFQNkJus cSmXp1d+7IaASyyGzzl63jEwbtLtGzWS1eY7SHfES3rXUnGrT6Et/kD4BAIKtKQTfV6f +8jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:in-reply-to:date:subject:to:from:references; bh=NEzo6rTE1pCT/V1X8ZeHhtRvYENuAmdv7qtxuLIGwCw=; b=IJE6H+vbQJGUE4XNqTQt49b4SoxvpUW39D3Zd+j0PlNpSnJrcbD4VA3PS9PFhogdyK c5D1obO/Uuq2T1UOdi6XMAPAefPXwfx3whW7fuIHrOO4VJp46c31BvkJh8+9crlOEbDG 4qLyWVMfQ4US3Sh8zhDvC3xlLvTkh7R4mLdKdHUn8qVTHj72etkB2VB1pXSeHPdSS4hk Rc1SZqE14wshIqO1VTg715w5vrvm+moAbRGcrFJmcjaKWDgjW2neEKHGz/4I0FNcq7G/ Ng9wMy4GoAkxm29ZYu5pZ0o0OU8Y2PECUnyM0cjzI8z/5wpHTaF1iv+ByEYs4GoOqiJG rWog== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::201 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org. [2001:67c:2050:0:465::201]) by gmr-mx.google.com with ESMTPS id p33-20020a05600c1da100b003dc537184cfsi953032wms.1.2023.02.11.11.21.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Feb 2023 11:21:14 -0800 (PST) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::201 as permitted sender) client-ip=2001:67c:2050:0:465::201; Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4PDgSR5lK3z9sRB for ; Sat, 11 Feb 2023 20:21:11 +0100 (CET) In-reply-to: X-Rspamd-Queue-Id: 4PDgSR5lK3z9sRB X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::201 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@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:32165 Archived-At: Hello Bruno, Bruno Grenet writes: > When converting to LaTeX (say from markdown in my case), it seems > that the --resource-path option has no effect for \includegraphics > commands. Let's assume for instance the following markdown file > image.md: > > An image: ![My image](image.jpg) > > Then the commands >> pandoc image.md -s -o image.tex > and >> pandoc image.md -s --resource-path=img/ -o image.tex > produce the exact same file. It means that if you put image.jpg in > the directory img/, the resulting LaTeX file will fail to compile > even with the --resource-path option. The resource path takes effect when pandoc tries to actually grab and use the image, e.g. when converting to PDF or docx. You can let pandoc collect all images and place them in the target directory by passing `--extract-media=.` -- Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124