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
Support \operatorname #145
Comments
Interesting. That post has a lot of other useful information too. For example, it pointed me to the fact that |
amsopn is the relevant package here, so \DeclareRobustCommand{\operatorname}{%
\@ifstar{\qopname\newmcodes@ m}%
{\qopname\newmcodes@ o}}%
\DeclareRobustCommand{\qopname}[3]{%
\mathop{#1\kern\z@\operator@font#3}%
\csname n#2limits@\endcsname} This command If we can get our macro expansion to support this kind of command, we'd have access to a lot of built-in definitions with almost no additional work. |
@kevinbarabash, Do you think that this |
I think a screenshot test would be useful in particular so it's easy to run \def\operator@font{\mathgroup\symoperators} |
Ah, I see, that makes sense. What about spaces (do/should they appear in output?) and math-only commands (not sure KaTeX enforces those)? |
Well, there are math operators, such as lim sup, that do contain a space, so I suppose we want |
lim sup should be lim,sup if I remember correctly. |
What I meant was, "what does LaTeX do with spaces in It still might be worth defining ( |
I very much agree. This macro is meant to be a quick hack, done in time to be included in the next release. It can improved in several ways. |
This makes me sad. I wish that Screenshotter wasn't a barrier to entry for contributors. There appears to be a way to run multiple builds on travis with different environment variables. travis-ci has a way to upload contents of a folder to S3 that I'm investigating. |
Don’t be. This sort of thing shouldn’t be a problem, just one step on the way to a solution. Perhaps some background. I’ve been a structural engineer for 35 years. I’ve led work at scales that range from a two sheet job to a $500 million project. During all that time, it’s been rare that I could assign a project to just one person. Anything substantial requires a team of people with complementary abilities. That’s really all this is. Just a task that requires a team with complementary abilities. I’m seeing open-source development for the first time and it seems as though the whole process may be held back because it doesn’t have a really good way to put those teams together. If you find a way to make Screenshotter easier, that’s great, but if you want to do something really brilliant, figure out a way to identify and build a team on demand. |
It can definitely be slower than having a dedicated team of people who are being paid to work on a project.
My goals are definitely less lofty than figuring building an on demand team. I'd like to make KaTeX easier to contribute to and hopefully I can generalize things I learn to other open source projects. |
@kevinbarabash I have prepared a PR to support
I have tried:
Frustration waxes. Patience wanes. Any suggestions would be welcome. |
@ronkok you can skip commit hooks by doing I'm surprised that deleting |
|
Success. Thank you once more. |
Having |
Yep. I'll turn in a PR sometime in the next few days. |
Thank you very much! Looking forward to that! |
We should support this so you can do, e.g.,
\operatorname{span}
(see #144). Its implementation is subtler than it may appear:http://tex.stackexchange.com/a/84308/9
The text was updated successfully, but these errors were encountered: