Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sagecommandline echo all terminal output #52

Open
dantetante opened this issue Nov 25, 2020 · 7 comments
Open

sagecommandline echo all terminal output #52

dantetante opened this issue Nov 25, 2020 · 7 comments

Comments

@dantetante
Copy link

dantetante commented Nov 25, 2020

I understand that >>Because of the way the environment is implemented, not everything is ...<< included because of the >>distinction between statements and expressions<<, as the sagetex docu tells me. I am not a good programmer and don't understand this. But I wanted to let you know that this is something that I would really appreciate, being able to automatically include the whole terminal output.

@dimpase
Copy link
Member

dimpase commented Apr 5, 2021

The whole terminal output of a Sage command run at sage: prompt, or is it something else?

@dimpase
Copy link
Member

dimpase commented Oct 14, 2021

Could you provide few more details: would you like to be able to include the output of a Sage command in a terminal session? Something else?

@dantetante
Copy link
Author

dantetante commented Nov 3, 2021 via email

@dantetante
Copy link
Author

Oh I did not know that the email will be integrated here and stripped from the attachment, so here it is
before
now

:

@dimpase
Copy link
Member

dimpase commented Nov 3, 2021

How about using sagecommandline ?
E.g.

\begin{sagecommandline}
  sage: factor(x^2 + 2*x + 1)
\end{sagecommandline}

will generate, in the final document, something like (colours might be off):

sage: factor(x^2 + 2*x + 1)                                                 42
(x + 1)^2                                                                   43

i.e. with line numbers (here start from 42 as an example) on by default - but they can be suppressed.

@dimpase
Copy link
Member

dimpase commented Nov 3, 2021

Hi Doris,
thanks for letting me know about http://dante.de funding options. Are they for (Germany-based, or not only?) individuals? Open-source orgs in general?
Dima

@dimpase
Copy link
Member

dimpase commented Nov 3, 2021

sagecommandline

just like other non-graphics SageTeX commands, puts the Sage output into foo.sagetex.scmd (assuming you work with foo.tex).

Regarding pictures: the generated plots (in sage-plots-for-foo.tex) are included using calls to the relevant graphics macros (e.g. includegraphics - and sageplot can pass parameters to it) in SageTeX LaTeX macros (e.g. sageplot).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants