Coder Social home page Coder Social logo

Support of subcaption package about lni HOT 5 CLOSED

gi-ev avatar gi-ev commented on August 15, 2024 1
Support of subcaption package

from lni.

Comments (5)

sieversMartin avatar sieversMartin commented on August 15, 2024 1

I just checked. The definition only adds \small to \@makecaption. Thus I will add the caption package.

from lni.

sieversMartin avatar sieversMartin commented on August 15, 2024 1

I changed the handling of captions.

from lni.

sieversMartin avatar sieversMartin commented on August 15, 2024

Well, yes, this solves the problem as far as I can see.

However, your issue points to a more general problem: The lni class redefines the macro \@makecaption directly. When you now load subcaption you load caption implicitly. The later, however, changes the complete caption mechanism, i.e. it throws away the class's modifications. It uses its own macro \caption@@make to control the caption's layout.

One way out of this dilemma would be to directly use the caption package within the lni class. The alternative would be to check for modifications at the end of the preamble and to turn them back. This could even be done very elegantly using the scrlfile package from the KOMA-Script bundle.

@koppor What do you think?

from lni.

koppor avatar koppor commented on August 15, 2024

+1 for using the caption package. It is maintained and we should not implement custom solutions.

from lni.

sieversMartin avatar sieversMartin commented on August 15, 2024

I do however not load the subcaption package automatically.

from lni.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.