public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* graphicspath for finding images
@ 2023-03-30 19:00 Stephen Eglen
       [not found] ` <580a17da-f1d9-4340-8054-d9787a0410d3n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Eglen @ 2023-03-30 19:00 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1290 bytes --]

One thing I like about tex is that it allows you to set a search path (via 
\graphicspath{PATH1:PATH2}  or TEXINPUTS variable) to look for images if 
they cannot be found in the current directory.  

e.g. if I have some markdown like

![alt text](foo.png "title of image")

then if foo.png is not in the working directory, tex will go looking in the 
graphicspath to find it.  (It may rely on the kpsewhich tool which caches 
the location of files, I'm not sure.)

How best could I get a similar functionality when converting from markdown 
e.g. to html?

I'm partly being lazy as I prefer my source files to look tidy with just 
the filename, without the full path, as often the full path could be tucked 
away somewhere else on my home directory. 

Would this be where I woud look to using a pandoc filter to e.g. subsitute 
'foo.png' with the output from 'kpsewhich foo.png'?

-- 
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/580a17da-f1d9-4340-8054-d9787a0410d3n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1739 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: graphicspath for finding images
       [not found] ` <580a17da-f1d9-4340-8054-d9787a0410d3n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2023-03-30 19:22   ` John MacFarlane
  0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2023-03-30 19:22 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

--resource-path

> On Mar 30, 2023, at 12:00 PM, Stephen Eglen <stephen.eglen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> 
> One thing I like about tex is that it allows you to set a search path (via \graphicspath{PATH1:PATH2}  or TEXINPUTS variable) to look for images if they cannot be found in the current directory.  
> 
> e.g. if I have some markdown like
> 
> ![alt text](foo.png "title of image")
> 
> then if foo.png is not in the working directory, tex will go looking in the graphicspath to find it.  (It may rely on the kpsewhich tool which caches the location of files, I'm not sure.)
> 
> How best could I get a similar functionality when converting from markdown e.g. to html?
> 
> I'm partly being lazy as I prefer my source files to look tidy with just the filename, without the full path, as often the full path could be tucked away somewhere else on my home directory. 
> 
> Would this be where I woud look to using a pandoc filter to e.g. subsitute 'foo.png' with the output from 'kpsewhich foo.png'?
> 
> -- 
> 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/580a17da-f1d9-4340-8054-d9787a0410d3n%40googlegroups.com.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-30 19:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-30 19:00 graphicspath for finding images Stephen Eglen
     [not found] ` <580a17da-f1d9-4340-8054-d9787a0410d3n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-03-30 19:22   ` John MacFarlane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).