X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mjotex.git;a=blobdiff_plain;f=mjo-listing.tex;h=ccd0d9cf0fb23aaf14f40177959df3a41ed95473;hp=cf3fc582a1d1e7fa8aefb8a62e7488477ade3dbf;hb=HEAD;hpb=e6bb4f9ae2d3785b331388703b8793e0409d30af diff --git a/mjo-listing.tex b/mjo-listing.tex index cf3fc58..ccd0d9c 100644 --- a/mjo-listing.tex +++ b/mjo-listing.tex @@ -55,12 +55,15 @@ % % The sole argument is the "name" of the listing, which ultimately % just identifies a file named "sage_listings/.listing". -\newcommand*{\sagelisting}[1]{\tcbinputlisting{listing only,% - colback=codebg,% - coltext=codefg,% - left=2em,% - listing options={language=sage,style=sage},% - listing file=sage_listings/#1.listing}} - +\newtcbinputlisting{\sagelisting}[2][]{% + colback=codebg,% + coltext=codefg,% + enlarge bottom finally by=\baselineskip,% + enlarge top initially by=\baselineskip,% + left=2em,% + listing only,% + listing options={language=sage,style=sage},% + listing file=sage_listings/#2.listing,% + #1} \fi