On Thu, Mar 4, 2010 at 4:16 PM, Tommaso Cucinotta <tomm...@lyx.org> wrote:
> r33616
>
> I was wondering about what happens if, instead of setting the linelen to the
> lyxrc default, you set it to the smallest possible value, like 1 or similar.
> AFAICS, you would likely get much more precise identification of the
> possible issues, by chktex, wouldn't you (unless it stops working, if
> there's just 1 word per-line) ?

I was wondering that too. We could do this with LaTeX too. The one
place we really don't want to do this is with the File->Export and
view source options. There seem to be two issues: how wide do you want
the text when exporting outside of LyX and how wide do we want the
text when it is only transient copy sent to some other program (that
reports errors by line number). OTOH we may want to use the same line
length for all calls to LaTeX if this reduces the likelihood of
confusion (e.g. problems that only occur when viewing PDF but not when
manually running LaTeX on the exported code or visa-versa). If so we
may want to only set linelen to 1 when running Chktex.

Ideally this would not uncover any bugs as LyX-GC has to deal with
linebreaks. I will try setting the ChkTeX linelen to 1 and seeing what
breaks. This might uncover some bugs in LyX-GC where errors get missed
if they are split onto multiple lines.

-- 
John C. McCabe-Dansted

Reply via email to