Menu

#101 long argument for \caption, \captionabove, \captionbelow etc.

once upon a time
new-feature
2026-01-06
2025-12-01
Cabohah
No

I know there is a (temporary?) feature freeze for KOMA-Script. But AFAIR before KOMA-Script 3.46, paragraphs inside the mandatory argument of \caption where possible at least in combination with package caption. Since KOMA-Script 3.46 \caption is not defined long and therefore \par is forbidden. Can you make it work again, at least when using package caption and loading tocbasic with option disablepatch=caption. IMHO you only need to change the m in the argument declaration into +m.

For an example see, e.g., https://tex.stackexchange.com/questions/755608/paragraphs-in-captions-with-koma-v3-48-recent-caption-sty-regression

Discussion

  • Markus Kohm

    Markus Kohm - 2025-12-01

    \caption indeed accepted arguments with \par (because KOMA-Script did not touch \caption itself), but KOMA-Script wasn't able to process them, i.e., using a paragraph resulted in an error inside \@settodim. A somehow "strange error", because it was hard to understand.

    Hm, but yes, in combination with package caption paragraphs have been possible. Maybe I can support it, but this would result again in the "less than perfect" error messages at strange places, when not using package caption.

    But wouldn't using \usepackage[disablepatch=caption]{tocbasic} to make clear, you don't want tocbasic to touch \caption be the better solution? All these contortions to use a package like caption on the one hand, but on the other hand to control it not with the user interface provided for this purpose, but with the KOMA-Script interface, are actually a mess. Users should simply decide what they want and then use it consistently.

    At this point, it should also be noted that caption is currently effectively “unmaintained.” While in the past, problems in cooperation could be resolved by mutual agreement, the entire issue has now been dumped on me. However, this has long been beyond my capabilities.

     

    Last edit: Markus Kohm 2025-12-01
  • Markus Kohm

    Markus Kohm - 2026-01-06
    • labels: tocbasic --> tocbasic, caption
    • status: open --> new-feature
    • Milestone: KOMA-Script 3.50 --> once upon a time
     

Log in to post a comment.

MongoDB Logo MongoDB