XimeraProject / ximeraLatex

Author tools for creating Ximera activities
LaTeX Project Public License v1.3c
40 stars 35 forks source link

\sage{my_var} does not work #78

Closed oguzkurt closed 5 years ago

oguzkurt commented 6 years ago

Hi folks,

I have given a break to using ximera since last meeting due to busy schedule. I am uploading my files to the new system. I came to realize some of the parts such as \answer{\sage{my_var}} and \sage{my_var} does not work properly. Here, my_var comes from within sagesilent. Instead it gives this image which suggests that it is uploading the info (dots rotating clockwise on a circle).

Any idea how to overcome it?

Best, Oguz

kisonecat commented 6 years ago

Can you share the whole file? I can dig into it more easily that way.

oguzkurt commented 6 years ago

actually, whole file is added to ximera already. If you fix one of them, I can probably fix all of them :) HEre you go!

https://ximera.osu.edu/oguzkurt/StatisticsCourse/StatisticsCourse/StatisticsCourse/hw/hw1.tex

On Mon, Jun 11, 2018 at 4:03 AM Jim Fowler notifications@github.com wrote:

Can you share the whole file? I can dig into it more easily that way.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/XimeraProject/ximeraLatex/issues/78#issuecomment-396173627, or mute the thread https://github.com/notifications/unsubscribe-auth/AKHeJckk2-HLtQvt3d-zHwuh4ckm27Rwks5t7jJjgaJpZM4Uh3v2 .

Zengez commented 6 years ago

This behavior happens when sage itself fails to resolve, for example sage encounters an internal error (eg divide by 0 error) or an unrecognized command (eg if you type radnom instead of random by accident). This is a little annoying as there isn't really any visual indication that there was a problem, but if you inspect element on the problem there is usually a sage error buried in the resulting info that comes up if you look hard enough. ~Jason

Zengez commented 6 years ago

Indeed, going to the referenced site (minus the .tex extension) and looking at the inspect code reveals: "NameError" evalue : "name 'data' is not defined"

Not sure why this is true since I see that you have a vector 'data', but nonetheless that is the source of the problem, if it helps.

oguzkurt commented 6 years ago

Ooops! I did use auto-indentation future to make my file look nicer. Except that auto-indentation cannot recognize a sage code within latex and so it flattened everything in sagesilent environment. Funny! I will fix it and update you on that.

On Mon, Jun 11, 2018 at 8:03 PM Jason Nowell notifications@github.com wrote:

Indeed, going to the referenced site (minus the .tex extension) and looking at the inspect code reveals: "NameError" evalue : "name 'data' is not defined"

Not sure why this is true since I see that you have a vector 'data', but nonetheless that is the source of the problem, if it helps.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/XimeraProject/ximeraLatex/issues/78#issuecomment-396432978, or mute the thread https://github.com/notifications/unsubscribe-auth/AKHeJazWQpT8Krf0CGUX3cHWp_aNQWT0ks5t7xNzgaJpZM4Uh3v2 .