-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
In contextFraction only use \textstyle for mixed numbers. #683
Conversation
I have something like this on my school's server. Mine straight up removes the For me, I have too many exercises where I wanted the |
I do the same thing as @Alex-Jordan. I use a custom version of this macro, and remove the |
I agree, and would also prefer that textstyle wasn't used by default, though in the case of mixed fractions it is preferred. I did think of disabling it by default, and then turning it on if showMixedNumbers is set, and it might be worth updating it to do that. I just went this route to not change the default behavior but allow users to be able to change this without having to use their own copy of the macro. |
6180326
to
7440023
Compare
I updated the pull request. Adding an option that many might not know about or use may not be that useful in the long run. Instead I updated this to only include |
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.
Tested it and works as indicated.
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.
This looks good, other than a minor quibble on indentation.
Only use \textstyle formating option in a fraction's TeX output for mixed numbers. For other cases don't include this to allow the size of the fraction to be formatted according to \displaystyle.
7440023
to
f28a548
Compare
Tabs changed to being 4 spaces to match surrounding indentation. |
useTextstyle controls if the fraction's TeX output is displayed
using \textstyle or not. By default this is turned on to
match current behavior. It can now be turned off for users
who want to display fractions without \textstyle.