On Friday 10 October 2003 22:07, Antony Templier wrote:
> Angus Leeming wrote:
> > 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

  This is the trick, choose some huge value, say 10000 (if you have paragraphs 
with more than 10000 characters then you should reconsider your writing style 
;-)).

  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
> >
> > 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 (-;
>
> Thank you for answer. (I appreciate your useful sed loop ;-)
>
> But i guess my question wasn't well expressed. I'm not a great english
> spoken man, so i joined a little sample of what i would. (cf attaced file)
> I don't found a way to do that with Lyx but it would be very useful to
> export into scribus for exemple (i 'm grafic designer).
> Is the best way to make a bash script, lyx files to
> well_done_ascii_as_i_want ?

  No need to with the first suggestion from Angus.

> best regards,
> Antony

-- 
Jos� Ab�lio

LyX and docbook, a perfect match. :-)

Reply via email to