From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32184 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pierre-Antoine BRAMERET Newsgroups: gmane.text.pandoc Subject: pandoc to pdf: how to synchronize files output by package ? Date: Thu, 16 Feb 2023 02:00:05 -0800 (PST) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_6518_1816866989.1676541605610" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25165"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDHODSPSXEIBBJ75W6PQMGQEOT4UXTY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Feb 16 11:00:10 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qk1-f188.google.com ([209.85.222.188]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pSb3i-0006LB-NY for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 16 Feb 2023 11:00:10 +0100 Original-Received: by mail-qk1-f188.google.com with SMTP id w17-20020a05620a425100b00706bf3b459esf876782qko.11 for ; Thu, 16 Feb 2023 02:00:10 -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=/09LQ4sXPPAlr9qbnNZEM9K2kmX45l0FRYplDTwxmCQ=; b=XMASBL4Ssw5qQbkK1343Gh4FXKav9cas3ciIqvcPzYOiQivl9OdKzLMQ/G9v1RgRLc JS7X8/ivo5xm2uv8RrGjpMCDnRXQVm6egGZtQB50M3GGyKFA5151s8xWcNGHpQg9mmxB kPfNueViFz7FFJuWP1DG54ewf7TOIsx1ZsRbtlP3XtiFyWCvotCgvAWaRFZgAuyVpNSH Ieo0KfZQdKI2jYzsJwkjrqDrjABYCxx/ommrfLXgistohx/4F1QiZKOXDPLOTiPoHp+A yhX2xaE2+z1cIkAAddrMtZE/jePRfbSrI0u2CgTTCYHr35AglqQHhMBuV2DDjMUuJMfY 3TPg== 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=/09LQ4sXPPAlr9qbnNZEM9K2kmX45l0FRYplDTwxmCQ=; b=eRw7yJkPlLLrKOmudNQiw53PYb9sirrU4QCcQfL+951mhydbURTWkp85ix6hY3r4D/ cj0zqHG1Vy0S5wFqEwvSx2L/HKgcf6DCKIhISPLNqxgaElM2TwsvyVPbpwKuSnLSnPSL ptq8YKSNtPploZg95+DQndN1gwhzdpr2n9fPwLNBzzMtqsXUl9XyCtd8e7BQPUJWfijq QIu3zd1vuh5JpL4NIuOgGZbUHtTgPLY2iddnd8aE6eHhQ9s7eSvFcJ1L4aIFVbAt/ACG 0t7QgEC3eyha0Z8V4twoLsrvASfn7xakZ7WUJzVBlReiHVzNQz8Oe7R360jWNzPzqkWs y5Fg== 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=/09LQ4sXPPAlr9qbnNZEM9K2kmX45l0FRYplDTwxmCQ=; b=4IQjGmQYSEGJmavW4rpJl31wIkkIEC/rNlczpPur55VowhVZpk/xRUZ33A6dfQNVtI nYHxtN4zBfQnQ8UKOdutRQc5cuOrVluphSmCo2ZdCr9UbgnRGAdjVa+TlmpDwVW0Tacw A23XmN+9GD0OQI4VTcchTOjOg0NBFviXbotPTnUp14En8nTa30MmjOxR2VKtYVQkfSQ6 AfaJfe2ZFFvPF35ROpDT8uN5vyS6pRPeWJoXUA4cvMObEklM/o8efGug7m6PInUJBCjr oJUbFENkV7KqlvNHYvql0U+8lvNlRySv3sUUMe0u7B/AaQeLIqgNm8zT4MzVzdqhgrYV xmBA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKVJEMiT0i1rO/jMVnjgmQthmcq97zoxTcUlBnHPSrCXBQjPx1nS BZ8n98nw8oeVthhG8z78Ma0= X-Google-Smtp-Source: AK7set98NYqNWk+wIoZDEnsI5OwnUkbXIskJaz7GniR+i5q573YCMqu99QcmJTzGF+6hiVAIFf2GDA== X-Received: by 2002:a37:b443:0:b0:71e:d9bb:6ec5 with SMTP id d64-20020a37b443000000b0071ed9bb6ec5mr243498qkf.5.1676541609595; Thu, 16 Feb 2023 02:00:09 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ac8:7ca4:0:b0:3b9:bfda:1fa8 with SMTP id z4-20020ac87ca4000000b003b9bfda1fa8ls1686981qtv.3.-pod-prod-gmail; Thu, 16 Feb 2023 02:00:06 -0800 (PST) X-Received: by 2002:ac8:5a49:0:b0:3b6:2c78:2945 with SMTP id o9-20020ac85a49000000b003b62c782945mr547410qta.48.1676541606209; Thu, 16 Feb 2023 02:00:06 -0800 (PST) X-Original-Sender: pab.systerel-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:32184 Archived-At: ------=_Part_6518_1816866989.1676541605610 Content-Type: multipart/alternative; boundary="----=_Part_6519_1778245629.1676541605610" ------=_Part_6519_1778245629.1676541605610 Content-Type: text/plain; charset="UTF-8" Hi, 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. The result is that I need to input files: \InputIfFileExists{\jobname.notes}{}{} And output files: \immediate\openout\jjdbout=\jobname.notes \immediate\write\jjdbout{\unexpanded\expandafter{\jjdbnotes}} The problem is that I cannot keep track of this file, as pandoc runs pdflatex in a temporary directory. 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 temporary path to synchronize my files to ; I thought it was in TEXMFOUTPUT, 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 versions), - 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. Is there something I missed to copy files to output before pandoc calls the pdf engine and fetch files after it finished? How could we do that? Thanks, Best, -- 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/a0909aa4-e617-4e65-b760-ac617fd192c2n%40googlegroups.com. ------=_Part_6519_1778245629.1676541605610 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi,

I use a package that reads and writes files to syn= chronize counters.
The package is custom but it is based on this = question: https://tex.stackexchange.com/questions/124103/how-to-create-a-fi= xed-counter.

The result is that I need to input = files:
\InputIfFileExists{\jobname.notes}{}{}
<= /div>

And output files:
\immediate\o= penout\jjdbout=3D\jobname.notes
\immediate\write\jjd= bout{\unexpanded\expandafter{\jjdbnotes}}

The problem is that I cannot keep track of this file, as pandoc ru= ns pdflatex in a temporary directory.

The hacks I tri= ed:
- write somewhere else but pdflatex correctly prevents that,<= /div>
- 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 TEXMFOUTPUT, but this env variable only points to the first run star= ted by pandoc (so it's okay to put the files there beforehand, but not to f= etch the updated versions),
- using \write18 and the packag= e 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= .

Is there something I missed to copy files to o= utput before pandoc calls the pdf engine and fetch files after it finished?=
How could we do that?

Thanks,
Best,

--
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/a0909aa4-e617-4e65-b760-ac617fd192c2n%40googlegroups.= com.
------=_Part_6519_1778245629.1676541605610-- ------=_Part_6518_1816866989.1676541605610--