The first question I have, is about creatinga .dat file in Mac. How can I create a file containing columns of data with .dat format in Mac OS Lion? What I did was to create the file using TextEdit, save it with extension .dat.rtf and then go to "get info" of the file and change the .rtf part. Is there any better way?
And second question is: How can I refer to a .dat file in a different folder in pgfplots? the /Users/.../filename.dat seems doesn't work. I really appreciate your help. Cheers
Tell me more
×
TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
|
|
|||
closed as off topic by Joseph Wright♦ Nov 20 '12 at 19:37
Questions on TeX - LaTeX Stack Exchange are expected to relate to TeX, LaTeX or related typesetting systems within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.
.dat: It's just a name. You can simply refer tofilename.rtfwithin PGFPlots. Generally, absolute paths should work. However, this has the drawback that it means your document won't compile on someone elses computer, and you might run into trouble if your path contains spaces. The safest thing would be to move the data file into the same directory as your.texfile. – Jake Oct 30 '12 at 7:22.datextension, make sure you add the extension -- I also normally unselectIf no extension is provided, use .txt. As far as not being able to access it, it would be helpful if you provided a fully compilable MWE including\documentclassand the appropriate packages that illustrates the problem. Difficult to figure out why it did not work without more information. – Peter Grill Oct 30 '12 at 7:30