From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28681 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Do not build context file in /tmp Date: Thu, 24 Jun 2021 16:07:29 +0200 Message-ID: References: <20210624055435.GA11054@sokrates> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008ca79105c5838b6f" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37764"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBKND2KDAMGQEKVKM2SI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jun 24 16:07:40 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f62.google.com ([209.85.167.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lwQ15-0009fU-RA for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 24 Jun 2021 16:07:39 +0200 Original-Received: by mail-lf1-f62.google.com with SMTP id f9-20020ac253290000b02901d2e8dd801dsf412890lfh.6 for ; Thu, 24 Jun 2021 07:07:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1624543659; cv=pass; d=google.com; s=arc-20160816; b=oVuVq1UyssrU3/G+rWvy2nxlJh4w7ZOtyHiq0FqzEjZXdfXxxpXBuFdmSPAo+4aGEX g8tnAvH7Mnvtu8DcYCJ/F1VNOO0sOnIIHy0NMPt0S7dOhjzr9OzGHo+lRK3XgFUTF/ZI Iz1/jXXpa1Xp6q5FwRaJ5+cJIEYrkAx/Q9PDa9+8qL4LjtO5fkQG37M7eHBq/1SHeGc3 3Tj0lefQHTv0q+aKJ3oEcGqsDyM2HNg41QmLDh4w/iIrcYo4nbI4kkEElHuA3rMm6iCJ tW9UcWW7/r2fwpYD9EAuh2CdJOmuZ8GSj+ztaKpDHnL0YeLRIeZnUa+XfnVa+p4bUDlO Ukzg== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=466+kxw3Ow2aSLqQ42fzMCJ94YnF+199ylgP8wCLBQo=; b=uT/AJcRAQjh7PhRwi3uT1R01J8sb6lHfHc3oNg+k/dcVKsgR2xxHzTuHp9J6KZStBo r8iNHmL4dQ9UC7Zs8hm4QDMhnJl40mm+URNHxzHUjULvQ7TBPoeCrtLnhk52iE9zWNmW FitTFngWqdTSWViW2JSBXsNNlQZAVvWDnMxFKjE0U7ueyLWRrmHVEgTUBNs2blDISSc+ 9dKUnVUQPmsx+tdgtYGXPaB8AeI1r/HgkHOc/GJ2oSQ6JUpTPcBvD1MWpZ7RrdT9TiN0 SbhM6wNjXA65JTtcrX6/sg9D/Zxk4TLpDhtWlNSqJ3Ah/K1Ae3o+MuLEzAy0TLXym4+n dOLw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="WIWnXqp/"; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::22a as permitted sender) smtp.mailfrom=melroch-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=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to: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=466+kxw3Ow2aSLqQ42fzMCJ94YnF+199ylgP8wCLBQo=; b=GF3M6DngNBhlHFhHS8rXlXStPhJ2RrO6NEt8S21YW4apWq2s/7sAOw5A5YbiDVGO9f 6vNHUu9MVZu9uaELqRTMxU4s5m9U9Qwprjds7g7aLJjDt+ATzRiBZinudk7BTH+dmF7D XOZ4qux7mcQPjSHMna8OJb8QBH8O6bOqGqd+iMgmvQuSfI6FAcLagdiokPmg+KPTYpAd w4kqsaj7bFAfLdsXoiFG4VoivwO8vwTkV6ppqwR/9JjT2oMe3c1/ZfNi1rgBilfEKb22 33KsIk6xr/z+JLUpL5valDIp+gY/lLQW0O3TYyLD842DO8vSD39ag9DFmQPvaCEFk9pW Xm4Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :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=466+kxw3Ow2aSLqQ42fzMCJ94YnF+199ylgP8wCLBQo=; b=IQ7WqEDPnWxGDPUC+uMzvcIYBkVoXDA2Epu3U/LehAWJBLxDmdrNGojJwSFHMPQNoh uMiQrGwez295LSNYR51VtwDNVz/FJ2C9Pixum/KKti3yS/+EQUv4wK0xVu+KfHkbVtk5 xBxJdwYHBkqhd/4TDrO0UnMZHMRtREmrd9kwWuNJI7ROXf7dBhlvQZB9aJgZDCepc4Ly l//DQc4wARBVof08BYNGAKgZpnpS1HVt9szYAFbF0W03AqxODZ8SmyVdjl573oyDH/pa 8gL+nh9DgXSWDs8xrJPjBa0wLOslWk9tWY276GxScILAfNxjUrNl2UuSMBmk1IYzc6hT EWWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to: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=466+kxw3Ow2aSLqQ42fzMCJ94YnF+199ylgP8wCLBQo=; b=UYOm6jHHOvQVA+hnF990n/c4UNVcuGsl0HUcW86z9Il2sSnSCsxMQWTabSzdvk73JY oTCijGnO8eDUugaU2ejkcn4Ai0ysvlhs7yC0dMt4nhouUF4F7RX4BUd+lswpy+6LLyC7 KRbdU+1RsipOYmPIB8vcvYcy0GKH+w0vt4fhH1MjQCkc/0s++bAD1thXi7f67oT3ZcDC pMbm9dn5sLi0cv/4xmle10RovwYoLSPnR2tj54EWwt1JomsKk5TEcyKoXV9xf1bmB2zH 8T+iFJYIT+cHld0HgRyS31yK2RqR1HYf5tzReKMx+dlQi8yCrTLET1NpnE2O81xi/YNF Fv1g== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533NqSenYlB4bDLtjplBa8PgGnAn4ia2MZvSak8EO16o+mEiDCF9 2W3LfF9ZKjyS1xfbglhOU0A= X-Google-Smtp-Source: ABdhPJwHA1OMdzrCy0OBniNIGEkHlGYy444q02WKjiBSwBKW5N3Yw8SOQ2WmT31fHUH55iBcyTm28w== X-Received: by 2002:a2e:86d3:: with SMTP id n19mr4262748ljj.156.1624543659299; Thu, 24 Jun 2021 07:07:39 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a19:f515:: with SMTP id j21ls734390lfb.1.gmail; Thu, 24 Jun 2021 07:07:36 -0700 (PDT) X-Received: by 2002:ac2:430e:: with SMTP id l14mr3997229lfh.418.1624543656557; Thu, 24 Jun 2021 07:07:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624543656; cv=none; d=google.com; s=arc-20160816; b=ePeLkY/NqryXfeZ/dCJf6YWnl8ShYJ3zmvXll8575FZYn3d/fuFtLge86Gi2L8IzUH 3GIERFQ7VKq2GXh2mfDn/ljnw8x4L0BDs7uBL11t/jNGlVEfu0CSWNJXcxgCBlENeTIf O6zp+I72mquMuicTpYA+JgsvX3wWm7oK3W3sSEbq8PNOS5jZCccGU7Egi7rm6VfQqEfG 2uroDwnPOJDppr1fX08oLdBIIkFDddXEopKWRDHo9DbUCbMR9r/pWXjrvArsWJxBnqtt RHOIx9wON2TwDNIKUzRJUWKdqjwVQ0ql2OWXz8Sw2rqNwa/UUaxuZmSTaV+gff4C8POP IAhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=WI1kD3kTPtCLWFJcc0Ck/egnnann6hTIXndgMJoNk9U=; b=FjgftxbbYn1uaDGKLogCgDFx8+44+BdcDImyNyBx8cvsYMMkvyDwCLq0ggfStqL0A7 lFJuII5fblQaJgGxXRgq/vYjtBUDFr9Av5FNLowYyNpyrRsiFkpQ7yefMR52oJ992ZnA m7q+RwlgSmketRGAwjh5GDdSHo+gDVbjnYFVxBMvbjjl7eAXgTyU5DmIEM0DaFMZBG3+ oGbU7Jf0GgZeUdEb7evfn05ZS6YF/+NHjQyVGVS6eJn7FWEx1/RM6myQgk/UCbll4mhE 7WLVQB+5HddGvJbw1WBE8wb4KfEQQsWVpUO2oPiljxXsZ7Kc6GDuU8MHlL194iq011p7 W80A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="WIWnXqp/"; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::22a as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com. [2a00:1450:4864:20::22a]) by gmr-mx.google.com with ESMTPS id e14si98948ljn.2.2021.06.24.07.07.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 24 Jun 2021 07:07:36 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::22a as permitted sender) client-ip=2a00:1450:4864:20::22a; Original-Received: by mail-lj1-x22a.google.com with SMTP id c11so7899769ljd.6 for ; Thu, 24 Jun 2021 07:07:36 -0700 (PDT) X-Received: by 2002:a2e:9d86:: with SMTP id c6mr4128498ljj.75.1624543656190; Thu, 24 Jun 2021 07:07:36 -0700 (PDT) In-Reply-To: <20210624055435.GA11054@sokrates> X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="WIWnXqp/"; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::22a as permitted sender) smtp.mailfrom=melroch-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:28681 Archived-At: --0000000000008ca79105c5838b6f Content-Type: text/plain; charset="UTF-8" I guess the proper workaround is to use a Makefile (or any build system/script of your choice) and have it build/assemble things with pandoc/context right in your project directory and then remove any junk automatically, rather than relying on pandoc running context. The learning curve of make is kind of steep, especially if you use it for things which differ from the most typical use cases but it pays off and gets less steep fairly quickly. https://www.google.com/search?q=alternatives+to+makefile Den tors 24 juni 2021 07:55'juh' via pandoc-discuss < pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> skrev: > Hi all, > > am I right that pandoc uses /tmp to build the intermediate context > source file? > > My problem is that I have a hierarchy of supporting files relative to > the directory of the markdown source file which context needs to build > correctly. > > While: > > pandoc -t context -o test.tex test.md > context test.tex > > works fine > > pandoc -t context --pdf-engine=context -o test.pdf test.md > > throws error as multiple context environments are not found. > > There is a work around by putting all supporting files in a special > folder of the context distribution > > context/tex/texmf-local > > You have to call "context --generate" the make any changes in this path > known to context. This is annoying but possible. > > But the path to the original source folder is lost so that it is > impossible to include things stored along with the source file. > > projectdir/source.md > projectdir/image.png > > When context is called inside the project folder it is of course > possible to include the image file. When context is called on a tmp > file in /tmp the path is lost. > > Is there a switch to build all files in the working directory? > > Jan Ulrich Hasecke > -- > Autoren-Homepage: ......... http://literatur.hasecke.com > Satiren & Essays: ......... http://www.sudelbuch.de > Privater Blog: ............ http://www.hasecke.eu > Netzliteratur-Projekt: .... http://www.generationenprojekt.de > > > -- > 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/20210624055435.GA11054%40sokrates > . > -- 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/CADAJKhChK6LhKSx3X-bi6G756V3XMOkyhi_gkv-ndMPQwSfTNQ%40mail.gmail.com. --0000000000008ca79105c5838b6f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I guess the proper workaround is to use a Makefile (or an= y build system/script of your choice) and have it build/assemble things wit= h pandoc/context right in your project directory and then remove any junk a= utomatically, rather than relying on pandoc running context. The learning c= urve of make is kind of steep, especially if you use it for things which di= ffer from the most typical use cases but it pays off and gets less steep fa= irly quickly.




Den tors 24 juni 2021 07:55'juh' via = pandoc-discuss <pando= c-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> skrev:
Hi all,

am I right that pandoc uses /tmp to build the intermediate context
source file?

My problem is that I have a hierarchy of supporting files relative to
the directory of the markdown source file which context needs to build
correctly.

While:

pandoc -t context -o test.tex test.md
context test.tex

works fine

pandoc -t context --pdf-engine=3Dcontext -o test.pdf test.md

throws error as multiple context environments are not found.

There is a work around by putting all supporting files in a special
folder of the context distribution

context/tex/texmf-local

You have to call "context --generate" the make any changes in thi= s path
known to context. This is annoying but possible.

But the path to the original source folder is lost so that it is
impossible to include things stored along with the source file.

projectdir/source.md
projectdir/image.png

When context is called inside the project folder it is of course
possible to include the image file.=C2=A0 When context is called on a tmp file in /tmp the path is lost.

Is there a switch to build all files in the working directory?

Jan Ulrich Hasecke
--
Autoren-Homepage: ......... http://literatur.hasecke.com<= br> Satiren & Essays: ......... http://www.sudelbuch.de
Privater Blog: ............ http://www.hasecke.eu
Netzliteratur-Projekt: .... http://www.generationenproje= kt.de


--
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 pandoc-discuss+unsubscribe@googlegroups.= com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-= discuss/20210624055435.GA11054%40sokrates.

--
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/CADAJKhChK6LhKSx3X-bi6G756V3XMOkyhi_gkv-n= dMPQwSfTNQ%40mail.gmail.com.
--0000000000008ca79105c5838b6f--