We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently * for Tuple{LatexString, AbstractString} goes through the default method for AbstractStrings, returning a String.
*
Tuple{LatexString, AbstractString}
AbstractString
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.
The text was updated successfully, but these errors were encountered:
Thinking about it, perhaps
Base.:*(a::LaTeXString, b::AbstractString) = LaTeXString(a.s * b)
and similar would be better. The automatic appending of $s is not always the best choice.
$
Sorry, something went wrong.
That seems reasonable
Base.:*
No branches or pull requests
Currently
*
forTuple{LatexString, AbstractString}
goes through the default method forAbstractString
s, returning aString
.I wonder if it would make sense to define
and similarly for the reversed order.
The issue came up when I was constructing plot labels in a function, eg
which is of course OK but
*
may be more compact.The text was updated successfully, but these errors were encountered: