Skip to content

defining * (concatenation) resulting in LaTeXString #17

@tpapp

Description

@tpapp

Currently * for Tuple{LatexString, AbstractString} goes through the default method for AbstractStrings, returning a String.

I wonder if it would make sense to define

Base.:*(a::LaTeXString, b::AbstractString) = latexstring(a, b)

and similarly for the reversed order.

The issue came up when I was constructing plot labels in a function, eg

latexstring(L"$\alpha$", " for men")

which is of course OK but * may be more compact.

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