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
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 (-;
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 ?
best regards,
Antony
This is the lyx ascii output (with 120 line lenght for instance) :
<--- start here --->
Test title
ven oct 10 22:39:05 CEST 2003
Table des Mati�res
1 Section
2 test text for sub section
3 subsection again
Abstract
Just a sample to explain what i want
1 Section
nothing to say
2 test text for sub section
Your network is growing in size and complexity. It's taking on a life of its own,
spreading and growing and
absorbing everything in its path. You're tearing your hair out trying to keep track,
and your users have
somehow discovered your secret phone number and are pestering you with endless
questions and demands--where do
I find this; I don't want to keep track of a dozen different passwords; nothing works
like it should.
3 subsection again
News.com reports that SunnComm is planning to sue John Halderman for the crime of
showing how to evade
SunnComm's new CD "copy protection" scheme. As predicted, the shift key is now a DMCA
violation. "On Thursday,
SunnComm CEO Peter Jacobs said the company plans legal action and is considering both
criminal and civil
suits.
<--- stop here --->
And this what i would :
<--- start here --->
Test title
ven oct 10 22:39:05 CEST 2003
Table des Mati�res
1 Section
2 test text for sub section
3 subsection again
Abstract
Just a sample to explain what i want
1 Section
nothing to say
2 test text for sub section
Your network is growing in size and complexity. It's taking on a life of its own,
spreading and growing and absorbing everything in its path. You're tearing your hair
out trying to keep track, and your users have somehow discovered your secret phone
number and are pestering you with endless questions and demands--where do I find this;
I don't want to keep track of a dozen different passwords; nothing works like it
should.
3 subsection again
News.com reports that SunnComm is planning to sue John Halderman for the crime of
showing how to evade SunnComm's new CD "copy protection" scheme. As predicted, the
shift key is now a DMCA violation. "On Thursday, SunnComm CEO Peter Jacobs said the
company plans legal action and is considering both criminal and civil suits.
<--- stop here --->