[texworks] Anything else TeXWorks could be using for line feeds?

Paul A Norman paul.a.norman at gmail.com
Wed Mar 17 12:58:58 CET 2010

I am having a bit of trouble using \u2029 to finf linefeeds, is therer
anything else that TexWorks could be using at all?

what am I doing wrong here please? Can't see forest for the trees!
I'm trying to place a LaTeX \\ followed by a space then a physical
line-break in the editor.

None of these work.

  txt =  txt.replace(/\u2029/g, '\\\\ \n');

  txt =  txt.replace(/\r\n/g, '\\\\ \n');
  txt =  txt.replace(/\n/g, '\\\\ \n');
  txt =  txt.replace(/\u000D\u000A/g, '\\\\ \n');

This one works great: (Paragraph marker followed by a definite :LaTeX space

txt =  txt.replace(/¶/g, '\\P \\ ');


More information about the texworks mailing list