-
-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Hello there,
For my current project I'd like to depict Sage code in fancy Jupyter style. For that, I have already made a tcolorbox listing environment. Now it would be nice to combine that with sageblock
in order to reuse the code snippets written in there.
Here is a minimal example:
\documentclass{article}
\usepackage[margin=0.7in]{geometry}
\usepackage[parfill]{parskip}
\usepackage[utf8]{inputenc}
\usepackage[many,breakable,listings]{tcolorbox}
\newtcblisting{sagenotebook}{%
breakable,
enhanced,
size=fbox,
pad at break*=1mm,
opacityfill=1,
boxrule=.7pt,
before skip=\medskipamount,
after={\par\noindent},
colback=lightgray,
colframe=gray,
attach title to upper,
listing only,
listing options={
language=Python,
upquote= true,
tabsize=4,
basicstyle=\linespread{1}\small\ttfamily,
basewidth=.5em,
aboveskip=0pt,
belowskip=-2pt,
},
}
\begin{document}
\begin{sagenotebook}
P = QQ[x]
\end{sagenotebook}
\end{document}
However, I have no clue how to proceed from here. Any help, comment or hint is appreciated. Thanks!
Metadata
Metadata
Assignees
Labels
No labels