Re: [sage-devel] sagetex and tcb

52 views
Skip to first unread message

Dima Pasechnik

unread,
Apr 4, 2021, 4:36:34 AM4/4/21
to sage-devel
Hi,
could you file an issue in https://github.com/sagemath/sagetex -
with an example, showing what doesn't currently work.
Thanks
Dima

On Sat, Apr 3, 2021 at 9:49 PM Michael Jung <michi...@kabelmail.de> wrote:
>
>
> Hello everyone,
> I would appreciate some help from an TeX expert. Namely, I would like to combine tcolorboxes with the sageblock environment of sagetex. I already have my own tcolorbox format for Sage code in Jupyter style. In particular I use the "\newtcblisting" command together with "listing only" and "listing options". Now I would like that sagetex recognizes the lines I inserted in the tcolorbox so that I can reuse them according to the SageTeX principle. I suspect that involves a bit of hacking either in sagetex.sty or with tcolorbox. Unfortunately I am not familiar how sagetex even works internally. Some explanation or optimally a solution is pretty much appreciated.
>
> Thanks a lot.
>
> Best,
> Michael
>
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/1b409ea2-c6e0-4f77-a52d-ef3324b0be80n%40googlegroups.com.

Michael Jung

unread,
Apr 4, 2021, 5:39:46 AM4/4/21
to sage-devel
There is no bug or something. I just want to use sagetex beyond its current capabilities. Long story short, I would like to create a new environment that combines a tcolorbox listing environment with a sageblock environment. Since I don't have any approach yet, I cannot provide a minimal example yet.

Michael Jung

unread,
Apr 4, 2021, 5:54:02 AM4/4/21
to sage-devel
Anyway, I will approach this on the GitHub page. This problem is more suited there than here. Thanks Dima!

Best,
Michael

Michael Jung

unread,
Apr 4, 2021, 12:21:33 PM4/4/21
to sage-devel

I've provided a minimal example of the tcolorbox environment. Perhaps that is something that can be added to sagetex if we get it to work?

kcrisman

unread,
Apr 5, 2021, 8:00:25 AM4/5/21
to sage-devel
Just for reference, another possibility for what you want might be provided by PreTeXt: https://pretextbook.org
Reply all
Reply to author
Forward
0 new messages