lhs2TeX is a joy to use, as always, but I'm currently struggling with the following macro:
%if style == newcode
%format (hat (a)) = "__hat" a
%else
%format (hat(a)) = "\widehat{" a "}"
I'm intentionally using hat on identifiers and would have hoped that my newcode definition above makes it so that hat d is emitted as __hatd. Alas, it's actually __hat d. Can I convince lhs2TeX not to emit two separate tokens, or omit the space after "__hat"?
This is somewhat related to #46 and #38, where a quote macro is suggested, which also introduces an additional space. (I'm wondering why that is accepted by the GHC lexer or if I'm doing something wrong.)
lhs2TeX is a joy to use, as always, but I'm currently struggling with the following macro:
I'm intentionally using
haton identifiers and would have hoped that mynewcodedefinition above makes it so thathat dis emitted as__hatd. Alas, it's actually__hat d. Can I convince lhs2TeX not to emit two separate tokens, or omit the space after "__hat"?This is somewhat related to #46 and #38, where a
quotemacro is suggested, which also introduces an additional space. (I'm wondering why that is accepted by the GHC lexer or if I'm doing something wrong.)