Skip to content

Enable tall items in makeVList #746

@ronkok

Description

@ronkok

KaTeX's makeVList function has trouble with tall items. Given, say, a tall image, it will locate the top of the image no higher than the top of the text line box created by the fontSizeEnsurer. This location will be in conflict with the height and depth passed to makeVList if the tall item is taller than maxFontSize.

Work-arounds tried so far include: (1) passing a large value of maxFontSize to makeVList, as in PR #744, and (2) trying a hand-written adjustment to the tall item's location, as in the \fbox part of PR #670.

(1) can push the line downward and create large gaps above the math.

(2) will not work properly if there is a font size change inside the \fbox.

A more general solution would be helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions