-
-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issues related to listings #225
base: master
Are you sure you want to change the base?
Conversation
I found that this PR does not work with the listings package. I will try to fix it. |
272c0f0
to
2bc66d8
Compare
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 |
Done. |
fmarotta#257 (Add the wide algorithm* environment and make its caption style consistent with kaobook) fmarotta#225 (Fix issues related to listings) fmarotta#223 (Fixing figure caption)
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.