From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32164 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruno Grenet Newsgroups: gmane.text.pandoc Subject: Conversion to LaTeX: --resource-path and \includegraphics Date: Fri, 10 Feb 2023 01:20:45 -0800 (PST) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2962_366655599.1676020845241" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6439"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCI3RRMGYQKBB3UYTCPQMGQECTCLQZY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Feb 10 10:20:50 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qt1-f189.google.com ([209.85.160.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pQPaL-0001WR-Tq for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 10 Feb 2023 10:20:49 +0100 Original-Received: by mail-qt1-f189.google.com with SMTP id j26-20020ac84c9a000000b003b9b7c60108sf2727507qtv.16 for ; Fri, 10 Feb 2023 01:20:49 -0800 (PST) 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-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=XC0OnqUaP76nAG98Ym2cByTUV0ovHzdZFB9iEn1XtPE=; b=AJIe06k+7nWajmtwLSPck20yWtzZFo4SXL5q6FjmwsLwLGyd6mS+UBIFV73JYY1T41 MBvQ5ZUVkiNGjTnxS0lL4mE2rYQOVF7Q8z6GyKy6O7lcjDPark+wxE2MQnKEJuVFzz+a oVujxfY2OZ5jRSKlBSr9melR0fYhnrAFytYk2/8CiV7CwZLLfG/AjGQRIadw8HdqYEDX WiVkqDJGPgb93EQXnfyX8znuCeDBFnq3AUnhTIFE1Z3ru9wfdelOqdbMvBWvkdazszLX hczBA2yr2Oe8tIhpmOwHPca5VmmS0boUJ16caNXOSoA/jDXH+yURSyezZfxKKpHGL6XH xiQw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=XC0OnqUaP76nAG98Ym2cByTUV0ovHzdZFB9iEn1XtPE=; b=goAyk/C43L4KXbsxZ6q0gKf8ieEC+6Qoc5Bgop+7eLzWdjwhNkaUlh46o+d1zmhY3U MMfps0FxMUCWe5lBd5Hs3mKCzItfwnrXVWnuN98FAyhMkltIgBdh20wNfpxHiyokyi9Q lhotjchpvET4XZLvs/dxH9g/A+dV2UnuNHjgh/ZlteGmFGNZhBBsuSHSx0Z4N3AmPOZC vp238kPlEMLcOp3M8+/8iD2IjmmzmiARFBSCaMeZuZrJJyNOFPalTXLIRBI0GMFVkIGz ceXpwDviNjPWct8KejpcvDOCFk+75ubFhXUts5uiBOkER2CQqcAFf257YVbXYol8ZcLX qpHQ== 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-sender:mime-version:subject:message-id:to:from:date :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=XC0OnqUaP76nAG98Ym2cByTUV0ovHzdZFB9iEn1XtPE=; b=BBmCy5g93Ih0Jwh0Muziet5lvsq55ygXFOgHAwzIi+g5czZ9R9pm52F77lD7k2w7ls PDXf0ThmQkdLytv+vp0fXVcrm1cakh6j3ylKFaKJliuHa3hr78YyAaPItVC+TiUHFRzA ioTefTuNz+Obksf3JDXNE+IFFg7fi+MVS+Y5B0XPeyggJ/1tdBqxktfp51aFmUr6/SwS vARE8Hj6NHSyokJvFwwn5N5Jj0w+2MLdFCBT600cN9jP7nUOg/rgRD5Giygo3QCNTnNL w67p57LQjWjDExYeNntoao8aWVSP7q/ggvQ1okoq7vijEUhg2t6/7wOWGqF6RXMQ9Z5b J0Gg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKV3xo7lXaU4ArBo4RvrUqoPnBqNQR/OFJEygraO0TYzpVU+E5mN WzGMXaiVVcdNn90Up1zWCpdHJg== X-Google-Smtp-Source: AK7set9ZYmR8AmEJZqyp9HbkbCMJ736hKzdIjn71SY4tikaRKxSbf3R7ry/vC24lF5o0F9/lL8pZ/Q== X-Received: by 2002:ac8:5946:0:b0:3b9:c212:c48d with SMTP id 6-20020ac85946000000b003b9c212c48dmr2427558qtz.368.1676020848828; Fri, 10 Feb 2023 01:20:48 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ac8:7c84:0:b0:3b8:2529:98c4 with SMTP id y4-20020ac87c84000000b003b8252998c4ls5216438qtv.9.-pod-prod-gmail; Fri, 10 Feb 2023 01:20:46 -0800 (PST) X-Received: by 2002:a05:622a:1a15:b0:3b8:4adb:c602 with SMTP id f21-20020a05622a1a1500b003b84adbc602mr2262491qtb.411.1676020845827; Fri, 10 Feb 2023 01:20:45 -0800 (PST) X-Original-Sender: bruno.grenet-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:32164 Archived-At: ------=_Part_2962_366655599.1676020845241 Content-Type: multipart/alternative; boundary="----=_Part_2963_1953320631.1676020845241" ------=_Part_2963_1953320631.1676020845241 Content-Type: text/plain; charset="UTF-8" Dear all, 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. I can see two solutions: 1. Produce a \graphicspath{{img/}} command when --resource-path is used; 2. Modify each \includegraphics to add the full path. I expect the first one to be good in standalone document while the second better for non-standalone ones. And the first one is probably usable with multiple paths in option while the second is not. My questions: It the current behavior the intended behavior for some reason I do not understand? Is any of my solutions desirable? Thanks! -- 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/bca89deb-5e4d-4506-9262-b6b034340b14n%40googlegroups.com. ------=_Part_2963_1953320631.1676020845241 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear all,


When converting to LaTeX (say from markdown in m= y case), it seems that the --resource-path option has no effec= t 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=3Dimg/ -o im= age.tex
produce the exact same file. It means t= hat if you put image.jpg in the directory img/, t= he resulting LaTeX file will fail to compile even with the --resource= -path option.

I can see two solutions:
  1. Prod= uce a \graphicspath{{img/}} command when --resource-path is us= ed;
  2. Modify each \includegraphics to add the full path.=
I expect the first one to be good in standalone document while th= e second better for non-standalone ones. And the first one is probably usab= le with multiple paths in option while the second is not.

My qu= estions: It the current behavior the intended behavior for some reason I do= not understand? Is any of my solutions desirable?

Thanks!

--
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/bca89deb-5e4d-4506-9262-b6b034340b14n%40googlegroups.= com.
------=_Part_2963_1953320631.1676020845241-- ------=_Part_2962_366655599.1676020845241--