]> gitweb.michael.orlitzky.com - mjotex.git/commitdiff
mjo-listing.tex: un-hardcode the sage_listings prefix
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 26 Feb 2026 01:54:38 +0000 (20:54 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 26 Feb 2026 01:54:38 +0000 (20:54 -0500)
If they live in a subdirectory, you'll just have to specify it.

mjo-listing.tex

index ccd0d9cf0fb23aaf14f40177959df3a41ed95473..eb3d700de406e3d60e394cc1f29a609d82cefc09 100644 (file)
@@ -54,7 +54,7 @@
 % them automatically.
 %
 % The sole argument is the "name" of the listing, which ultimately
-% just identifies a file named "sage_listings/<name>.listing".
+% just identifies a file named "<name>.listing".
 \newtcbinputlisting{\sagelisting}[2][]{%
   colback=codebg,%
   coltext=codefg,%
@@ -63,7 +63,7 @@
   left=2em,%
   listing only,%
   listing options={language=sage,style=sage},%
-  listing file=sage_listings/#2.listing,%
+  listing file=#2.listing,%
   #1}
 
 \fi