Quantcast
Channel: Active questions tagged copy-paste - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 70

Can Latex copy external files around the computer's file system

$
0
0

I have a latex document like the below

\documentclass{article}\usepackage{graphicx}\newcommand{\plott}[1]{\begin{figure}        \includegraphics{#1}\end{figure}}\begin{document}\plott{"c:\\documents\\chart1.pdf"}\plott{"c:\\downloads\\chart2.pdf"}\end{document}

Now as well as chart1.pdf and chart2.pdf I have files chart1.csv and chart2.csv (which live in the same folders as these charts) which contains the data that went into make the chart.

I want to add logic to \plott to copy these csvs to a third folder so that when I compile the document I get not only a document but also a folder containing all of the input data. Is it possible for latex to copy external files like this?


Viewing all articles
Browse latest Browse all 70

Trending Articles