New answers tagged

3

The readarray package has \readdef, which can read a file's contents into a \def. \begin{filecontents*}[overwrite]{mydata.txt} 8.6 \end{filecontents*} \documentclass{article} \usepackage{readarray} \readarraysepchar{} \begin{document} \readdef{mydata.txt}\mydata We found the predicted rise in temperature to be $\mydata^{\circ}$C. \end{document} SUPPLEMENT ...


Top 50 recent answers are included