Skip to content

[ENH]: Support for \boldsymbol #25643

Closed

Description

@oscargus

Problem

Once #25359 is merged, it should be rather straightforward to add support for \boldsymbol which basically does the same thing as \mathbfit but is maybe a more standard solution.

Proposed solution

Some inspiration can be taken from #22173 on how to add a new parsing element, although QuotedString should (most likely) not be used.

Activity

  1. devRD commented on Apr 8, 2023

    @devRD
    Contributor

    Hi @oscargus,

    I have a working patch for boldsymbol in my local repository. Since #25359 is a dependency, I am unsure about opening a new PR.

    Also, for generating the tests for boldsymbol, does it need all tests for the baseline_images, or similar to #22173 adding a lightweight test is fine?

  2. oscargus commented on Apr 9, 2023

    @oscargus
    MemberAuthor

    Great!

    I think a lightweight test is enough.

    Hopefully, #25359 is merged soon, so maybe one can wait for a bit before adding it? It is possible to open a new PR as well and just state that it depends on #25359.

  3. devRD commented on Apr 11, 2023

    @devRD
    Contributor

    As mentioned in the linked PR, these changes currently do not build without PR #25359.

  4. ksunden commented on Jun 7, 2023

    @ksunden
    Member

    Xref #1366

    Discussion there seems to have centered around "do we wish to include amsmath things in the mathtext implementation or keep it 'pure latex', for simplicity and scoping".

    That said, the barrier for amsmath is breached by \genfrac and \binom already, so that could be an argument for including \boldsymbol

    However, the behavior of \boldsymbol is not quite the same as bfit as noted by @devRD here.

    My personal prior would be that if \boldsymbol is included, it should behave as close to the latex behavior as possible, and thus is not as simple as aliasing bfit, though the implementation may mirror bfit.

  5. oscargus commented on Jun 7, 2023

    @oscargus
    MemberAuthor

    There are more things that are from ams and other packages (especially symbols). I'd say add what is useful.

  6. added this to the v3.8.0 milestone on Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions