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
Base.:*
Currently, the concatenation of two LaTeXStrings using the operator * yields a String, not a LaTeXString.
LaTeXString
*
String
I propose to overload Base.:*, to the effect of something like
function Base.:*(lhs::LaTeXString, rhs::LaTeXString) return LaTeXString(lhs.s[1:end-1]*rhs.s[2:end]) end
Note that this example is not a valid implementation, since LaTeXStrings do not need to start and end with $, for example when they contain text.
$
The text was updated successfully, but these errors were encountered:
Duplicate of #17.
Sorry, something went wrong.
No branches or pull requests
Currently, the concatenation of two
LaTeXString
s using the operator*
yields aString
, not aLaTeXString
.I propose to overload
Base.:*
, to the effect of something likeNote that this example is not a valid implementation, since
LaTeXString
s do not need to start and end with$
, for example when they contain text.The text was updated successfully, but these errors were encountered: