[texworks] A scripting question

Jannie Hofmeyr jhsh at sun.ac.za
Wed Aug 4 21:11:14 CEST 2010

Once one has set the line length for a hard wrap it would be nice if, 
after selecting a block, one only has to press a short cut key to do the 
wrapping (i.e. without having to additionally press return to terminate 
the hard wrap dialog). Currently, I have a short-cut to actionHard_Wrap, 
but would like the action to happen without waiting for a carriage return.

I can bring up the hard wrap dialog with the script:

var txt = TW.target.selection;

Is is possible to terminate the dialog in the script?   If so, how? Help 
would be much appreciated.


Prof. Jan-Hendrik S. Hofmeyr
Centre for Studies in Complexity
Dept. of Biochemistry
University of Stellenbosch
Private Bag X1, Matieland 7602
South Africa

Tel. +27 21 808 5842/808 3867
Fax. +27 21 808 5863
email: jhsh at sun.ac.za

More information about the texworks mailing list