getting latex to input a file that it then ignores
Mike Marchywka
marchywka at hotmail.com
Sun Oct 17 22:23:54 CEST 2021
It seems to prompt for xxx.R if it does not exist but nothing in the
latex output. However, it looks like the reorder flag generates an fls file
which contains the "R" file twice so I can use that. Thanks.
iIt looks like the first one-liner is sufficient ...
`\IfFileExists{xxx.R}{}{}`
\newread\foodoo
\openin\foodoo=xxx.R
\read\foodoo to\dohdoh
pdflatex --recorder spicey | grep R
marchywka at happy:/home/documents/latex/proj/spicey$
Mike Marchywka
306 Charles Cox Drive
Canton, GA 30115
470-758-0799
404-788-1216
________________________________________
From: David Carlisle <d.p.carlisle at gmail.com>
Sent: Sunday, October 17, 2021 3:41 PM
To: Mike Marchywka
Cc: TeXhax
Subject: Re: getting latex to input a file that it then ignores
do you need to input it at all, if you just access it with `\openin`
or a latex wrapper such as
`\IfFileExists{testfile}{}{}`
if you use `pdflatex --recorder` that is enough for the file access to
be listed.
David
On Sun, 17 Oct 2021 at 20:20, Mike Marchywka <marchywka at hotmail.com> wrote:
>
>
> This may sound dumb, maybe there is an alternative, but
> I'm trying to get latex to read a file that it then ignores so that
> my packaging script can see that latex needs it and archive it with
> the release document latex produces. The immediate problem is
> to include an "R" script. If mjmtol in the code below uses #1,
> then xxx.R is picked up
> as required by latex but with the definition below it never
> seems to read it. Is there some simple way to do this?
> Thanks.
>
> \newcommand{\mjmtol}[1] {}
>
> \mjmtol{
> \verbatiminput{xxx.R}
> }
>
>
> --
>
> mike marchywka
> 306 charles cox
> canton GA 30115
> USA, Earth
> marchywka at hotmail.com
> 404-788-1216
> ORCID: 0000-0001-9237-455X
More information about the texhax
mailing list.