sagemath / cloud

*MOVED TO* https://github.com/sagemathinc/cocalc
https://cocalc.com
Other
137 stars 31 forks source link

latex documents with paren in filename broken #130

Open williamstein opened 10 years ago

williamstein commented 10 years ago

See also #112 . Here's Jason Grout's report:

I just noticed that if I created a tex file with a parentheses in the name, like: "test(file).tex", then the preview breaks.  The 'build' tab has this error message:

/tmp/f-114325-3587-1nwu2x1: line 2: syntax error near unexpected token `('
/tmp/f-114325-3587-1nwu2x1: line 2: `pdflatex -synctex=1 -interact=nonstopmode test(file).tex< /dev/null 2</dev/null; echo 'sha1sums'; sha1sum test(file).sagetex.sage'

Thanks,
Jason
williamstein commented 9 years ago

I changed it to no longer allow creation of .tex filenames (from the gui at least) if they contain a paren. But there's still a potential problem, e.g., if somebody used the command line or uploaded a tex doc.