Skip to content

TeX and HTML-specific options #39

@vgreg

Description

@vgreg

It would be nice to be able to specify different sizes (or colors) for the HTML and TeX outputs (and eventually Typst). It would make it much simpler to resolving format-specific problems, such as those documented in #35.

What could be done is an approach like the one I proposed here for the academicons extension: schochastics/academicons#15

In summary, it would only involve adding a format-specific parameter that overrides the base parameter, such as hsize and psize to override size for HTML and PDF. That way, the user can specify the size used in each format, which would make it easier to support alternative formats (like Typst) and features with very different behaviors (such as coloring).

I would be happy to submit a PR for those changes. Another thing I added in schochastics/academicons#15 is the automatic conversion of HTML size to PDF size and vice-versa, which I would also be happy to include.

The same can be done for color using hcolor and pcolor. Typst support could be facilitated with t-prefixed options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions