/ Takes a file and merges all lines that have no double-newline between them. / this is good to generate word docs. / In this version, it also ignores text that is between / \longversion{ and } / It also gets rid of everything after % / k makeword inter45.tex / takes inter45.tex and generates temp.d/inter45.doc allsqueeze:{[line; multipos] if[0 = #multipos; :line] size: #multipos multipos@: 0) & (killline = 0) currentline,: line[!xx] ] longversionmode:: 1 ] if[(longversionmode = 1) & (endlongversion = 1) longversionmode:: 0 newline: (nn+1) _ line if[(0 < #newline) & (killline = 0) currentline,: newline ] ] ] ] } a: 0: _i[0] a,: ," " x: processline'a filename: _i[0] jj: filename _ss ".tex" if[0 < #jj filename@: !*jj ] fileout: filename, (".doc") fileout 0: out \\