10 Oct 2003 21:22
Re: ascii output
Angus Leeming <leeming <at> lyx.org>
2003-10-10 19:22:45 GMT
2003-10-10 19:22:45 GMT
Templier Antony wrote:
> Hi,
>
> Is there is a way to produce ascii file with no limit to lenght of
> line for each bloc text ?
Add this to your .lyx/preferences file. (If the file doesn't exist,
create a new one.)
\ascii_linelen your_length
Alternatively, use the Preferences dialog (Edit->Preferences) and the
Outputs->ASCII pane (Qt) or Outputs->Misc tab (xforms)
That will put set the linelength for each paragraph.
If you really want a file with no line breaks, use sed. Eg
sed ':loop
$!{
N
s/\n/ /
tloop
}' your_file.txt > a_file_with_a_single_really_long_line.txt
Of course, this assumes that you are using an OS that has sed (-;
--
--
Angus
(Continue reading)
).
Using this absurd value will ensure that in pratice no paragraph will wrap.
I tried and it works, I have been able to reproduce your second case.
> > Alternatively, use the Preferences dialog (Edit->Preferences) and the
> > Outputs->ASCII pane (Qt) or Outputs->Misc tab (xforms)
> >
> > That will put set the linelength for each paragraph.
This will not work, at least in the qt case as the maximum value allowed is
120.
So I advise you to change this value by hand.
> > If you really want a file with no line breaks, use sed. Eg
RSS Feed