Home Download Buy Blog Forum Support

Option to force line break at nth column?

Option to force line break at nth column?

Postby guillermooo on Wed Apr 07, 2010 10:41 am

Is there an option like lineWidth 80? This is different to what wrapWidth does, as far as I can tell.

Cheers,
Guillermo
guillermooo
 
Posts: 723
Joined: Thu Jul 23, 2009 9:06 am

Re: Option to force line break at nth column?

Postby guillermooo on Wed Apr 07, 2010 3:14 pm

Yeah, exactly. The line should be broken automatically at the desired column with an '\n'.
guillermooo
 
Posts: 723
Joined: Thu Jul 23, 2009 9:06 am

Re: Option to force line break at nth column?

Postby adzenith on Fri Apr 16, 2010 8:18 pm

How would this work? Say the line width is 5, for simplicity.
We've got this line:
Code: Select all
abcde

Now I put the caret at the end of it (after the e) and hit f. Is this the result?
Code: Select all
abcde
f

Now what happens if I put the caret after the letter b, and press q? this?
Code: Select all
abqcd
e
f

or:
Code: Select all
abqcd
ef

How do you tell whether the next two lines will be joined or not?
adzenith
 
Posts: 1213
Joined: Mon Oct 19, 2009 9:12 pm

Re: Option to force line break at nth column?

Postby guillermooo on Fri Apr 16, 2010 8:39 pm

Rather than at exactly the nth column, the lines would be broken at the closest word boundary <= nth column. Many editors have this feature; in Vim it's called textwidth.
guillermooo
 
Posts: 723
Joined: Thu Jul 23, 2009 9:06 am

Re: Option to force line break at nth column?

Postby trinix on Thu Mar 08, 2012 2:40 pm

Is this already possible to make automatic line breaks after a certain number of characters?
OS X, MacTeX 2013, ST 2, Skim
trinix
 
Posts: 30
Joined: Tue Sep 20, 2011 1:57 pm

Re: Option to force line break at nth column?

Postby trinix on Fri Mar 09, 2012 2:39 pm

push... :roll:
OS X, MacTeX 2013, ST 2, Skim
trinix
 
Posts: 30
Joined: Tue Sep 20, 2011 1:57 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 35 guests