Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

'Attaching' Files to a Latex Document

  1. Sep 6, 2011 #1
    I'm writing a final report, and I've got a bunch of source code that I'd like to have readily available to anyone reading the document. I won't have any control over the files once I hand it in, so I'm a little wary about just putting everything in the same folder and trusting that everything will stay there. Is there any way that I can sort of 'attach' the source code to the Latex PDF so that if someone opens it up they can click a link and for sure be able to access these files, even if the only thing saved on the computer is that PDF?

  2. jcsd
  3. Sep 6, 2011 #2


    User Avatar
    Gold Member

    Last edited by a moderator: Apr 26, 2017
  4. Sep 6, 2011 #3
    That attachfile package looks about perfect, assuming I can get it to work. I was going to just put all the source code in an appendix like you suggested, but I think there's too much for it to look nice. My intention is more for someone to be able to access the code and run it rather than necessarily study it closely.
    Last edited by a moderator: Apr 26, 2017
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook