3
votes
2answers
76 views

copy file using \write18 that works on both Windows and Unix

I would like to make an exact copy of a file during a TeX run. It is important that the copy be exact, since I am also comparing files and taking action depending on whether they have exactly the same ...
2
votes
1answer
812 views

How to compile LaTeX out-of-source while using bibtex?

I often use the out-of-source compilation on my LaTeX code to separate the generated files from the source files, thus I can conveniently commit my code to the repository. The command is like this: ...
13
votes
3answers
865 views

How can I open a file in “append” mode?

Could not find anything in the TeXBook, but this could be just me. I guess it is always possible to open the file for reading, copy its content to another file, and then continue writing to that ...
14
votes
4answers
672 views

File copy without expansion

What is the command for file copy? I want to copy the contents of one file into another without any command expansion. The operative system would use copy source target I tried reading the contents ...