batch and the output



On Wednesday 13 of February 2013 22:46:12 Rupert Swarbrick wrote:
> > To Rupert Swarbrick, as I mention above I work a lot with matrices
> > and when I obtain a result I simply copy it into comment in my file 
> > after given command, but this is very tedious and boring. Why? If 
> > I make a mistake I must Ctrl+C and Ctrl+V into console maxima 
> > the commands, and then Ctrl+C and Ctrl+V the result to my file,
> > for example:
> 
> I'm sorry, I don't quite understand what you do. Presumably, you don't
> replace your entire input file with the output from running batch()
> (since that wouldn't comment the outputs, among other things). So you
> must be copying and pasting parts of the output, no matter what the
> format the input is echoed?

That's right, I just copy the part, which has changed 
(due to my error or a different version of a solution of the problem).

Now, using the patch, it is easier to recognize (and thus easier to 
avoid mistakes), where start the command input and where the output. 
Input is on the left hand side and the command output is centered. 
This input, now is on the left hand side and it is much more readable 
for me, so for me it make a big difference between center-and-center 
(input, output) and as is now, left-and-center (input, output). 

Why I do in this way? Because, I work some times, e.g 2 weeks to solve 
one problem and every day I restore my obtained result in maxima console  
to start, form the last point, where I finish/stop yesterday. I usually 
want to see every step in detailed, some times not, so not every 
result I copy to my input file.
 
> Have you considered using load() to load your work and then adding
> explicit calls to print() when you want to see intermediate steps?

Yes, I considered using the load(), but then I have to repeatedly 
enter the command print(), which can sometimes be unnecessary, 
since the batch() writes to me automatically.

I dream of one more patch that would make the results are displayed on 
the left, for example, indented 8 spaces in front (0, 2, 4 or any 
number of spaces), why? As the result can sometimes centered is short 
and this causes  the result is strongly pushed right. However, if the 
result is long then it does not matter. Please see attache files from my
editor. The first one is as is now and the centered result some times
is problematic to read, because I have to move me editor to right to see 
whole result. The second one is what I want to be possible in the future,
i.e. left justified but with some indentation, e.g 8 spaces in front  
(or any reasonable number).

It's just my great and sincere request.

Thank you for your help.

> Rupert

Regards,
Zbigniew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snapshot1.jpeg
Type: image/jpeg
Size: 109644 bytes
Desc: not available
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20130214/7dadac96/attachment-0002.jpeg>;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snapshot2.jpeg
Type: image/jpeg
Size: 114308 bytes
Desc: not available
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20130214/7dadac96/attachment-0003.jpeg>;