getting latex to input a file that it then ignores

Mike Marchywka marchywka at hotmail.com
Mon Nov 1 01:26:38 CET 2021


This sort of works but it was failing for no obvious reason. After hacking up the
code,  it started to fail with  some preceding inputs. If I comment out the input methods.tex
the following code inserts the zymo[...].zip file into the fls file, 

\section{Methods }
\input{methods.tex}
\section{Cases }
%\input{rnacases.tex}
\section{Results }
%\input{results.tex}
%\section{Discussion }
%\input{discussion.tex}
\section{Conclusions}
\section{Supplemental Information}
\subsection{Computer Code}

%`\IfFileExists{zymo-txt-files-2018.zip}{}{}`

%\newread\foodoo
%\openin\foodoo=zymo-txt-files-2018.zip
%\read\foodoo to\dohdoh

If I leave the inputs intact, I have to move the file reference up.
I did  not isolate a minimal working example yet but this seems
to work lol, 

\IfFileExists{zymo-txt-files-2018.zip}{}{}
[...]
\documentclass[aps,secnumarabic,balancelastpage,amsmath,amssymb,nofootinbib]{revtex4}

Any thing to suspect or an obvious issue?

Thanks. 





 Mike Marchywka 
306 Charles Cox Drive 
Canton, GA 30115
470-758-0799
404-788-1216 




________________________________________
From: Mike Marchywka <marchywka at hotmail.com>
Sent: Sunday, October 17, 2021 4:23 PM
To: David Carlisle
Cc: TeXhax
Subject: Re: getting latex to input a file that it then ignores

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.