Skip to content
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

Make sagetex work together with siunitx #2

Open
student-sx opened this issue Apr 23, 2016 · 5 comments
Open

Make sagetex work together with siunitx #2

student-sx opened this issue Apr 23, 2016 · 5 comments

Comments

@student-sx
Copy link

It would be nice if sagetex would work seamlessly with siunitx, for example \SI{\sage{3.5^2}}{kg m} or \num{\sage{3.5^2}} should work.

The problem is already described in TeX.sx: http://tex.stackexchange.com/questions/175745/using-sagetex-with-siunitx

@dimpase
Copy link
Member

dimpase commented Jan 10, 2019

The workaround with sagesilent provided at the tex.SE link would perfectly without cocalc.

@xelra
Copy link

xelra commented Oct 16, 2019

Is there any progress on this? Having to generate LaTeX code verbosely and inserting that is too much of a workaround, just to work with units.
This feature is really in high demand.

@kcrisman
Copy link
Member

I just don't know much about unit packages, for myself.

@xelra
Copy link

xelra commented Oct 16, 2019

I feel like the problem is the execution chain. In R with Sweave and knitr, the computation and expansion is done before LaTeX is run, so any packages in the LaTeX document don't choke on unexpected inputs.
That's why siunitx works there and doesn't with SageTeX.

@dimpase
Copy link
Member

dimpase commented Nov 13, 2019

If you feel like changing sagetex along these lines, please give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants