-
Notifications
You must be signed in to change notification settings - Fork 17
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 for assumption directive #73 #80
Conversation
Thanks for submitting your first pull request! You are awesome! 🤗 |
@AakashGfude can you please review this. |
Hi, @shailesh1729 @mmcky this looks good to me. We need to add a test and add a corresponding Assumption JSON file in translations. And then we should be good to merge. |
Appreciate the work on this PR @shailesh1729, let me know if you need help in writing test etc. The tests are failing here because of a separate issue, which we can resolve later. |
thanks @AakashGfude and @shailesh1729. Is there a way we could add |
@AakashGfude is this issue resolved on |
@mmcky not at present. But we can add that as a feature in the future.
which we keep using between the directives, but don't have any defined spec as such. |
Codecov Report
@@ Coverage Diff @@
## master #80 +/- ##
==========================================
+ Coverage 96.08% 96.13% +0.04%
==========================================
Files 6 6
Lines 358 362 +4
==========================================
+ Hits 344 348 +4
Misses 14 14
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@mmcky have merged master to this. And I think this is good to go apart from deciding on the color scheme. We can add translations to this in a later PR. |
Thanks for your review. I used one of the colors from one of the existing directives. I didn't introduce any new colors to the mix. |
@AakashGfude, thanks for your kind review. I have added an I couldn't figure out the correct translation of "assumption" in other languages. Google translate seemed to suggest words based on hypothesis or supposition in French/Spanish. So I have kept the English one only in the JSON file. |
Is there a plan to support a generic numbered directive where the actual name and color of the directive can be user controlled? In LateX one can create new theorem environments with whatever name one chooses. I keep thinking of a few more directive types like "fact", "hypothesis", "exercise" "challenge", etc.. Some directives are too specific to a particular domain [e.g. "constraint qualification" which is specific for Lagrangian duality]. |
@shailesh1729 This can be a good feature. Thanks for bringing this up. I think we should create an issue regarding this in this repo. Would you like to create one? Then we can plan it in one of our development cycles. |
Thanks, heaps @shailesh1729 for this PR. I think it's good to merge as is. We can discuss color schemes etc in issues and later PRs. |
Created #84 Thank you for merging this PR. |
This patch provides support for the assumption directive. Code, as well as documentation, has been added for this directive. As described in issue #73, assumptions are frequently used and explicitly stated in the mathematical analysis of optimization algorithms.