Closed pi8027 closed 1 month ago
I found that this PR does not work with the listings package. I will try to fix it.
Hi, thanks! What's the state of this PR, after closing #235?
Sorry. I still need some more time to properly redo this PR.
Almost there! I still have to do something with TOC (List of Listings), which is not very clear to me at the moment. The first commit, which properly fixes the sparing issue in marginlisting
, might be useful on its own.
Done.
@fmarotta any news on this? Will it be merge soon? btw: thanks for your great work :)
Great work, thanks @pi8027! Yes, I will merge this right now.
I've added some docs and credits to the documentation: https://github.com/fmarotta/kaobook/commit/e4ee5fb3cb3d7e665eca807978040054291e074c
This PR introduces a new class option
listing=(listings|minted)
and fixes #236. Now,kao.sty
requires eitherlistings.sty
orminted.sty
depending on the users' choice. Themarginlisting
environment supports only the chosen package.listings
:marginlisting
. This is done by supplyingformat=margin
to\captionsetup
.lstlisting
environment yet.minted
:listing*
environment.\c@listing
within chapter.Other changes:
marginlisting
is redone usinglabelsep=colon
, but thenumbers=enddot
class option is not properly supported.\floatsetup
declarations are refactored.