I fixed a small bug where "Algorithm #" (the figure supplement and counter) got repeated in the algorithm header when the algorithm environment included a caption.
E.g. instead of saying
Algorithm 1: Spurwechsel nach links auf der Autobahn
it said
Algorithm 1: Algorithm 1: Spurwechsel nach links auf der Autobahn
See the following image for the bug and a small reproducible example (version 0.1.0):
Changes
Now only it.caption.body is shown if the algorithm figure has a caption (as lovelace already displays the supplement and counter).
When it doesn't have a caption, the title ends with . instead of : (just a minor stylistic choice, feel free to change it if you prefer something else).
I also losslessly compressed the example PNG files using the great tool oxipng. Not necessary, but saves a little bit of space :).
Hello! I hope you don't mind the pull request :).
Bug description
I fixed a small bug where "Algorithm #" (the figure supplement and counter) got repeated in the algorithm header when the algorithm environment included a caption. E.g. instead of saying
it said
See the following image for the bug and a small reproducible example (version 0.1.0):
Changes
Now only
it.caption.body
is shown if the algorithm figure has a caption (as lovelace already displays the supplement and counter). When it doesn't have a caption, the title ends with.
instead of:
(just a minor stylistic choice, feel free to change it if you prefer something else).I also losslessly compressed the example PNG files using the great tool oxipng. Not necessary, but saves a little bit of space :).
Thank you for a fantastic package :)!