-
Notifications
You must be signed in to change notification settings - Fork 5
Math response areas #24
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
5542645
Deprecated Expression
m-messer 8417094
Added math single line
m-messer 25e23cb
Removed old images references from math single line
m-messer 2b99a33
Added math multiline
m-messer e2c7fc2
Changed math single line intro paragraph
m-messer 42eacf5
Added math RAs to the navigation
m-messer 87a0d1e
Switched to new standard of referencing evaluation functions
m-messer 33f268e
Merge branch 'main' into math_response_areas
m-messer fddf3e3
Actioned PJ comments
m-messer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
docs/teacher/reference/response_area_components/Math_Multi_Line.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # Math_Multi_Line | ||
|
|
||
| This response area is a general handwriting input that produces markdown output. Uses the MathPix API, which includes mathematics as dollar-delimited LaTeX. | ||
|
|
||
| ## Evaluation Function Options | ||
|
|
||
| ### [chatGPT (experimental)](https://github.com/lambda-feedback/chatGPT/blob/main/app/docs/user.md) | ||
|
|
||
| ### [evaluateProof (experimental)](https://github.com/lambda-feedback/evaluateProof/blob/main/app/docs/user.md) |
39 changes: 39 additions & 0 deletions
39
docs/teacher/reference/response_area_components/Math_Single_Line.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # Math_Single_Line | ||
|
|
||
| This response area allows users to type, write or upload mathematics, and then displays how the user's response was interpreted back to them through the 'live preview' feature. | ||
|
|
||
| ## Evaluation Function Options | ||
|
|
||
| ### [compareExpressions](https://lambda-feedback.github.io/user-documentation/user_eval_function_docs/compareExpressions/) | ||
|
|
||
| ## Component Parameters | ||
|
|
||
| ### `post_response_text` (optional) | ||
|
|
||
| Text block to be displayed to the left of the input field. Markdown and LaTeX are allowed following the usual syntax. | ||
|
|
||
| ### `pre_response_text` (optional) | ||
|
|
||
| Text block to be displayed to the left of the input field. Markdown and LaTeX are allowed following the usual syntax. | ||
|
|
||
| ### Enable Handwriting Input | ||
|
|
||
| Enables a handwriting canvas in the browser, which allows a student to draw their expression, rather than type using Sympy's syntax. | ||
|
|
||
| ### Enable Photo Upload | ||
|
|
||
| Allows a student to upload their expression as an image, as an alternative to handwriting if the student isn't using a phone or tablet. | ||
|
|
||
| ### Handwriting and Image Handling | ||
| Handwriting and students photo uploads are handled with [MathPix](https://docs.mathpix.com/#request-parameters). | ||
|
|
||
| Our default parameters include: | ||
| - **formats**: `['text']` - Returns Mathpix Markdown text with math inside delimiters | ||
| - **include_line_data**: `true` - Adds line-by-line data with geometric information about detected elements | ||
| - **rm_spaces**: `true` - Omits spaces around LaTeX groups and other places where spaces are superfluous | ||
| - **rm_fonts**: `true` - Omits `mathbb`, `mathbf`, `mathcal`, and `mathrm` font commands | ||
| - **idiomatic_braces**: `true` - Returns more compact LaTeX (e.g., `x^2` instead of `x^{2}`) | ||
| - **numbers_default_to_math**: `false` - Standalone numbers are treated as text, not automatically wrapped in math mode | ||
| - **math_fonts_default_to_math**: `false` - Text with math fonts is not automatically converted to math mode | ||
| - **math_inline_delimiters**: `['$', '$']` - Delimiters for inline math mode in text output | ||
| - **math_display_delimiters**: `['$$', '$$']` - Delimiters for display/block math mode in text output |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.