tohecz / yoin

yoin -- yo's join -- tool for automating journal/proceedings compilation
0 stars 0 forks source link

Multiplatform solution to file manipulation #3

Open tohecz opened 6 years ago

tohecz commented 6 years ago

Currently, file manipulation is done by running cp, rm and friends by names. This is platform dependent. The LaTeX3 team promised they'll look into this and eventually provide l3sys wrappers for these.

The list of commands that would be useful:

While we are here, there are other possibly useful things:

josephwright commented 6 years ago

I've logged a core issue: I'll likely start small ...

eg9 commented 6 years ago

Security issues should be examined with great care, see repstopdf versus epstopdf.

josephwright commented 6 years ago

@eg9 Support here is all dependent on shell escape: the security issues are handled at the engine level, really.

tohecz commented 6 years ago

Hi Enrico! Sure that's correct, but on the other hand, that's possibly an issue on the L3 site. On my site, the person running pdflatex file.tex has a full control of what he asks for, so he should make sure to be safe...

josephwright commented 6 years ago

I've added a first-pass set of functions here: the gs one is more-or-less impossible as it's not on the path on Windows as-standard. Thus far I've covered the basic file/shell ops. I think calling a TeX tool shouldn't need any abstract logic: just

\sys_shell_now:n { <engine> ~ <filename> }

should be OK I think.

josephwright commented 6 years ago

(Same comment could be logged under https://github.com/latex3/latex3/issues/468, but the detail is given here anyway.)