sagemath / sagetex

Embed code, results of computations, and plots from the Sage mathematics software suite (https://www.sagemath.org) into LaTeX documents. Source repository for https://pypi.org/project/sagetex/ and https://ctan.org/pkg/sagetex
https://ctan.org/pkg/sagetex
Other
58 stars 22 forks source link

sagetex representation should align with sagemath CLI output, hence catch stdout #63

Open meisterluk opened 1 year ago

meisterluk commented 1 year ago

Expected output

sage: print('Hello World')
Hello World

Actual output

sage: print('Hello World')
None

Proposed solution

It is annoying that the output in sagemath CLIs/cells is different from the sagemath generated output.

kcrisman commented 1 year ago

This is an interesting and potentially good idea (certainly the point about print is well-noted!). The main thing is to ensure that there is no subtle change in what people "usually" use SageTeX for. Are there any places where result is actually what is desired, not stdout, since this is intended for pdf/print and not interactive use? Or any concern that this might significantly increase processing time for a large project?

Message ID: @.***>

meisterluk commented 1 year ago

I cannot speak for the entire community, but my personal take is …

meisterluk commented 1 year ago

I learned that the request might be a direct result of Cryptool, a software and its German book about cryptography which uses sagetex for generating its content.