Can you provide some example code – printing to the terminal or a file should be the same.
On Thu, Nov 12, 2015 at 3:26 AM, Lionel du Peloux <[email protected] > wrote: > > Hi, > > Same problem here, but a little bit different : I want to *write* a latex > string to a .txt file, including backslashes (to make an automatic graph > with latex labels from a .csv generated in Julia). > > For instance, I want to write "{$ \lambda $}" in a txt file. In julia I > can escape the backslash like this "{\$ \\lambda \$}" and println("{\$ > \\lambda \$}") gives me a nice "{$ \lambda $}" in the REPL. > > However, I can't find a syntax to write a simple backslash in a text file > : the same string used with Julia's *write* function gives me "{\$ > \\lambda \$}" in the file. > > Any advice ? > > Thanks, > Lionel >
