From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32186 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: pandoc to pdf: how to synchronize files output by package ? Date: Thu, 16 Feb 2023 12:22:42 +0000 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32965"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBFOAXCPQMGQEXPET3II-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Feb 16 13:22:48 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f56.google.com ([209.85.128.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pSdHk-0008RL-JS for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 16 Feb 2023 13:22:48 +0100 Original-Received: by mail-wm1-f56.google.com with SMTP id h9-20020a05600c350900b003e000facbb1sf3043347wmq.9 for ; Thu, 16 Feb 2023 04:22:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1676550168; cv=pass; d=google.com; s=arc-20160816; b=h2CKgiVGFRH0YKBw8VXlSL3vUyrIiPHb7NhwmIJWr2wMM3PBwXkT3JzXfRRqAYcqZg HY4F/epOHZnU3lQwHhO/tkXdZ0fGwUJUaCr7VNC8p+4C9lmDb/d9SjNe8GwOTXkDzFHf hEmXlWDrW3E6Aqy635SM6asQgUSf/t8VXBqqYk02H2F6E6i3GpO8uOynAh2WUviG8IwG D4HISheMwPKRgfJsf9Yfi2IrEw9MCbijQlnjsgWlaLBFjj7MsFJQ/5bmrNC/vTnIq69h JLaYR+DTaHn7midvmV75T5WcDYx5dJKbTwSp4253FLYXgrf4tkw/wcXxv+q6eZdfd1uY BgJA== 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=Xvs8aebjRIAAO7dBAK04Q3XFs1yxMNne9vpBlNlD3E0=; b=Kepxc0FCLoDA5TiwPDrBV7D6oYMYlguA/HIQoDcQyrKsu6W0ViAbhk6+zwDC7DHR4y 4BVjCzj+X2Vz5HK2nPPEvm2yPnCGQeQ1uWG7XZhuKMtuhmWa2IT2tFb3HDBMVl3FTD3X wGDD+d51WdRaClLKL14/U3zgoS4gFdiek1rM/gGQbrQ8Gd7E6DO1c9nyBSsm9Zlfb6My 9otrYJ/LJKC0eBjUpZEFbSfl0tTVkq/NmMXYGOeyn7TK+EqR7ZC//CwmhKz1Xk1uNa3t VOeonZU2HVUx7NVsadKK+19MrXIjBjkJ0QQGJZ5GgxcvhjVxBFTQ4QW1jgDE0ZRCqJG9 MF5A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=HqtWnivi; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=Xvs8aebjRIAAO7dBAK04Q3XFs1yxMNne9vpBlNlD3E0=; b=Qcz6fIHTa9Dn5HBWEe0tecfgtboMpyxygjTbbR/erH3zWmfBwil8bPkmCM1IeS56BE qt8OFE/W2b3IL+nT+h2mHSxmTS6H2otCZngb0Z0Am6KW9AAH8XRuDVeGYdRMj7i8fLsI eZhDfhKc5RTnwGZzC3AoAsIRp/7HVHqWxKzwG9Lr7l2/aP4fttIYOgqUP/Bmtb9kivdf Hqxc5Rvo3lZlv8tdmUzqN7xJsMdaV7Yo5mBwguOKuz6gFnt5Rw6PbGGgWjC7a9c2MYsl nwczmRcS8l3aFz/4X6uHNZJZTVfKS/XKm3yiqZhFQf5NN 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=Xvs8aebjRIAAO7dBAK04Q3XFs1yxMNne9vpBlNlD3E0=; b=CQ/SclrKbo8HAUxUciJu+rkUPOVXGi5lnypuBuTnSYJwHvkrqOPBjeKqkBNIg7FXrp wG9p2t5KwbABvhkDcd4FrUs2z6kNCVp0kHcn3igLgXcLiokFHHXtLHsW3MddfzMi2hiS UA1BtXcJTMdPWRzg7e/upWr/JFAvtLRyyDpkz8y+IzpVrNJyXxkEOlU9+N3Yib7k7Ro1 fgLuhwuY2CnjiYJOtx8/YI1tVtigs84okubFNQ500/e5Xvwfd18dUzIAs/u9tdQE2Vvq Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKVpmp19grmJKN7m5gRKZnxQp85CoVwOLROx8OAVE3MIqRlKzDlD 4zLSW30UYIOJ0Hw7BbtIrEk= X-Google-Smtp-Source: AK7set/KvFPRwJchCsWJxxv+kB6dBbAR5xtZ+w2Ux2ISR+7bb0I1JOUYH8XkoFDFZc73JAiFJsXxOg== X-Received: by 2002:a05:600c:5491:b0:3e2:559:69ea with SMTP id iv17-20020a05600c549100b003e2055969eamr218304wmb.134.1676550168031; Thu, 16 Feb 2023 04:22:48 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:34cb:b0:3e1:e754:51ac with SMTP id d11-20020a05600c34cb00b003e1e75451acls892245wmq.1.-pod-control-gmail; Thu, 16 Feb 2023 04:22:44 -0800 (PST) X-Received: by 2002:a05:600c:2e94:b0:3dc:59e9:9285 with SMTP id p20-20020a05600c2e9400b003dc59e99285mr5693196wmn.18.1676550164259; Thu, 16 Feb 2023 04:22:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676550164; cv=none; d=google.com; s=arc-20160816; b=a1zzFBuRfO05sbvq24fNwYPajl+dUv2TKgYisgK3392QuH6VKPfxxZLIktvcd63/Z2 vD3drasVNfmrYwhTM2KNBY8Ki2MfMILt2Z+jV3Pmag0B2LL29tqQiJnxmaSGtoo4s+sO jpnfNHzG5Sjv6lx7lEquEAfVZDrxJ89ijyEpwpLXaLFGzNZzxl4YjHgeAZFuWzdAmrwm Ca7qMxAJZWbNHv0ZG2h8MhxdJr9pA2f6bedTyrZhw9VHQff4lV753kKxEkx5f1p/9AWP +9wPfqhBm48rfEwZTINDWi4b2wIugFZMOwulF3g8+Wjbx+ggDmUqyJj74XM0z1YvaIDJ dCCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=FB8jxfzjAAlyzurZxBiqeLh93x5NGC3JeN+JVpj+iHY=; b=Mmqy104OHuCuVPBodpdOzuPr1Ty2NsYB8CiL9ui2U5JhkWXYdXepIzOWLmq7wsz4M9 9EEXt4HvWozW6qee5XXoVcR/1wYI4Ilfg1tu+26aYx6m2X5z+JhTIhi598nZ/rTA9raO pv6LruU1g1opC9cXNGGgOLmT7oi2Culz4iav+TBSuY5qS8KeSekInPYBtk0ElpJSIB9l K1BeEHS6RyVj/7YQZUeNqSnCgKvOc9vzwSL01ePOkAdHn81BXKsykKVHiVX+CFh0L52Z bY0fF27gypb4ddnco3sxqtt38mMo4X5dilcsZKCcVetxXfdhBgKuuk7cA1TFwWLjzPTD KDNw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=HqtWnivi; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout02.posteo.de (mout02.posteo.de. [185.67.36.66]) by gmr-mx.google.com with ESMTPS id e19-20020a05600c4e5300b003e215309bfcsi55221wmq.4.2023.02.16.04.22.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 04:22:44 -0800 (PST) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) client-ip=185.67.36.66; Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id CFB66240154 for ; Thu, 16 Feb 2023 13:22:43 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PHYxH2y0wz6tm9 for ; Thu, 16 Feb 2023 13:22:43 +0100 (CET) Content-Disposition: inline In-Reply-To: X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=HqtWnivi; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:32186 Archived-At: A possible solution would be to use Pandoc to produce the TeX file, then pr= ocess the TeX file yourself with LaTeX. Le Thursday 16 February 2023 =C3=A0 02:00:05AM, Pierre-Antoine BRAMERET a = =C3=A9crit : > Hi, >=20 > I use a package that reads and writes files to synchronize counters. > The package is custom but it is based on this question: https:// > tex.stackexchange.com/questions/124103/how-to-create-a-fixed-counter. >=20 > The result is that I need to input files: > \InputIfFileExists{\jobname.notes}{}{} >=20 > And output files: > \immediate\openout\jjdbout=3D\jobname.notes > \immediate\write\jjdbout{\unexpanded\expandafter{\jjdbnotes}} >=20 > The problem is that I cannot keep track of this file, as pandoc runs pdfl= atex > in a temporary directory. >=20 > The hacks I tried: > - write somewhere else but pdflatex correctly prevents that, > - using \write18 to execute some commands, but in that case I don't know = the=C2=A0 > temporary path to synchronize my files to ; I thought it was in TEXMFOUTP= UT, > but this env variable only points to the first run started by pandoc (so = it's > okay to put the files there beforehand, but not to fetch the updated vers= ions), > - using \write18 and the package currfile, but if I understood correctly, > currfile relies on files already existing so I cannot know to which path = I have > to put my files before hand. >=20 > Is there something I missed to copy files to output before pandoc calls t= he pdf > engine and fetch files after it finished? > How could we do that? >=20 > Thanks, > Best, >=20 >=20 > -- > 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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [2]https://groups.google.com/d/m= sgid/ > pandoc-discuss/a0909aa4-e617-4e65-b760-ac617fd192c2n%40googlegroups.com. >=20 > References: >=20 > [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [2] https://groups.google.com/d/msgid/pandoc-discuss/a0909aa4-e617-4e65-b= 760-ac617fd192c2n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter --=20 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 e= mail 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/Y%2B4gEulW/6ZURhy3%40localhost.