-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
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
Replace ◦ with \circ
in math mode
#54
Conversation
Thanks for this! I'd rather write \newcommand \funcompose {\ensuremath{\circ}} and use Though I'd wait what @hmemcpy says—I'm just a passerby. |
I started replacing various |
@hmemcpy That's more natural TeX; but multi-letter identifiers can be problematic. Have you looked into lhs2TeX? That's what people use in many modern ICFP/Haskell Symposium papers—it lets you write I've used lhs2TeX to write the actual math in my PhD thesis, which is an abuse I don't recommend; but using it for rendering Haskell-like code might be good. I suspect the category-theoretical formulas are "actual math" but lhs2TeX might scale for them. Either way, if you are in for the long term, you might want to decide on lhs2TeX sooner rather than later. |
@Blaisorblade sounds great! I'll look into it, thanks! |
@hmemcpy as far as I understand Then I propose to close this PR, but I'll take part 2 and will convert it to math fully. |
Nitpick FYI: |
@@ -245,7 +245,7 @@ \section{Representable Functors}\label{representable-functors} | |||
It must respect naturality conditions, and it must be the inverse of α: | |||
|
|||
\begin{Verbatim}[commandchars=\\\{\}] | |||
α ◦ β = id = β ◦ α | |||
α \ensuremath{\circ} β = id = β \ensuremath{\circ} α |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about moving also \neq
, \alpha
, \beta
, \gamma
, delta
, \epsilon
, ... to their LaTex math counterparts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But the Unicode gives the same result (with the right packages like unicode-math, not sure it's setup here), and the source is more readable. Maybe we should move the Unicode alpha inside math mode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the change should be part of #56
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'm inclined to leave the unicode symbols as is, if they render fine. Most of them do.
Yeah, I think to close this PR and, for now, just do the |
Closes #42