-
Notifications
You must be signed in to change notification settings - Fork 1
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
@handcalc does not expand predefined variables (ERROR: LoadError: type Symbol has no field head) #10
Comments
Good point! I will try to look into it when I get time. I think you may try @latexdefine from latexify for that scenario…Actually that doesn’t seem to inline it nice either. |
Gives me: |
Thank you so much for this package, btw. I am hopeless with putting numbers into equations and my solutions used to be riddled with wrong results (doesn't really matter if we tell the students that it's the way to the result that carries the marks, not the final result). So I switched to using Julia notebooks to do the calculations. Which led to two problems:
With this latest change I can define the values in a codeblock and then generate both the question text AND the solution from the same parameters, hopefully leading to correct solutions (finally). |
Awesome! Glad it worked. Yeah I think Thanks! I am glad it is helping! That is the main goal for me too, just to make it look like math not code. I will also mainly be integrating with quarto. I am hoping that Pluto soon gets quarto integration. |
Did you manage to find a solution to the squared variables with units problem? I could just take your solution with *I started doing it with org-mode, but that would have been a lost battle from the start. |
@handcalc
does not expand predefined variables.but
@handcalcs
does:In most cases I simply use
@handcalcs
even for single equations, to avoid this issue, but I'd like to use something like:in Quarto, which works if I use:
but since that wraps the equation in an
aligned
environment, it does not flow nicely with the text. There is added whitespace around the equation.The text was updated successfully, but these errors were encountered: