From: Francis W. <f.j...@li...> - 2024-01-05 17:05:02
|
Hi, Nasser I think this strange line breaking is at least partly a consequence of using write to output a list. I'm working on an alternative version of the code you sent me that doesn't use a list and also doesn't produce the strange line breaks. I'll let you have a copy once I have made a bit more progress. Do you want the "{" and "}" characters and the final "$" in the output? (Incidentally, the final "$" is caused by using "off nat".) And should all the mathematical output be in the form of LaTeX, or do you want some of it in the form of normal REDUCE input? I'm still not convinced that string concatenation is necessary, but if it is then I'll show you how to do it. Francis ________________________________ From: Nasser M. Abbasi <nm...@12...> Sent: 05 January 2024 9:49 AM To: red...@li... <red...@li...> Subject: [Reduce-algebra-developers] why command write of a list sometimes display the list on multiple lines on screen vs. all the list on same line? I have list, which in the attached script I print on to the terminal using write M; Where M is the list. Sometimes it displays on the terminal on one line as expected. sometimes it displays each entry in the list on separate line. Here is screen shot attached. I added off output; linelength(1000); At the top of my script in order to only see explicit output from the "write" command and nothing else as the script runs. But I still see numbers 1: 2: 3: etc... print at the start of the script. why is that? Please see the script file.red attached. I run it as follows redcsl < file.red I am using Reduce (CSL, rev 6657), 10-Dec-2023 on Linux which I build from source code. (Thanks to Francis Wright for sending me link to the source tar file as it was not easy to find it at sourceforge). What do I need to change in the script so each list is printed on one line, no matter how long it is? Thanks --Nasser |