[sage-support] Re: NB to pdf
Though it's not perfect, what I do is click the Print button in the notebook, just to the left of Worksheet, then do print to pdf, which is an option in most operating systems. At least you get a fairly accurate rendition of the worksheet. This is probably sufficient for my needs at this time. Thanks! Long-term what would be ideal is to have a LaTeX file which automatically updated when I made a change to one of the constituent Sage worksheets, and which knew to use SageTeX to compile when I needed it to do that. Then each worksheet would be like a chapter in a book. And if someone had the book (say in digital format), they could upload the chapter to a worksheet and try the stuff out themselves - so that there would be only one book, not book +worksheets. Anyway, thanks for the ideas. - kcrisman --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: NB to pdf
kcrisman wrote: Though it's not perfect, what I do is click the Print button in the notebook, just to the left of Worksheet, then do print to pdf, which is an option in most operating systems. At least you get a fairly accurate rendition of the worksheet. This is probably sufficient for my needs at this time. Thanks! Long-term what would be ideal is to have a LaTeX file which automatically updated when I made a change to one of the constituent Sage worksheets, and which knew to use SageTeX to compile when I needed it to do that. Then each worksheet would be like a chapter in a book. And if someone had the book (say in digital format), they could upload the chapter to a worksheet and try the stuff out themselves - so that there would be only one book, not book +worksheets. Well, we have played around with being able to upload pdf files to the notebook and extract out worksheets. That would allow you to upload the pdf chapter and automatically get out the worksheet. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] sws vs pdf
This reminds me that this brought up another interesting question. Why are the pdfs I generate sometimes significantly smaller than the sws files? In general I would have thought that the various images etc. and formatting would make the pdfs bloat, but the sws would be a nice tight text file - which of course it is not. What make .sws files so doggone huge (relatively speaking)? Do they contain all the computations? That would certainly do it. But even after I delete all output, the sws files are still fairly large. I'm not doing anything weird, either - this even happens with ordinary non- plotting, non-interact commands. I can make a small one by doing 2+2. Could it be the formatting of the text from TinyMCE? Anyways, just curious. But they do take a while to upload to our classroom management server sometimes. - kcrisman --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: NB to pdf
On Mon, Feb 2, 2009 at 10:04 AM, Jason Grout jason-s...@creativetrax.comwrote: kcrisman wrote: I don't believe that turning a notebook worksheet into a pdf is implemented (and thanks to Dan D. for SageTeX, which unfortunately I have been printing worksheets to PDF files using my web browser as William suggested. I think this is an easy and immediate solution, and it also works very well for students. I have a few issues about this, though, that I discussed with Jason in DC at the Joint Meetings. This seems like a good time to bring them up. First, let me point out that I have not tried out TinyMCE, so I don't know how this would affect things. Here's a sample that I created to show the problems: http://www.math.unl.edu/~shartke2/files/ConvertToPDFTest.pdf 1) As you can see, the font is huge, and very little can fit on a page. Is there any way to adjust the font size? I have noticed that Sage webpages are not very responsive to changing the web browser's text size. Is this a problem with the CSS? In Firefox on Linux, changing the font size on screen seems to have no effect on the printed output. Also, is there an easy way to change the length before wrapping occurs (but still have wrapping)? 2) Note that the %hide boxes still appear, but the %hideall boxes do not. It would be handy if there was a compromise between these: a box that was hidden for printing, but was easy to change while editing (the problem I find with %hideall boxes is that after saving a worksheet, there is no easy way to go back and change the %hideall box). Thanks for any help! Stephen --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: NB to pdf
Stephen Hartke wrote: 2) Note that the %hide boxes still appear, but the %hideall boxes do not. It would be handy if there was a compromise between these: a box that was hidden for printing, but was easy to change while editing (the problem I find with %hideall boxes is that after saving a worksheet, there is no easy way to go back and change the %hideall box). As for just plain text, I think TinyMCE will fit the bill nicely here if you are just talking about explanatory text that possibly may use jsMath. If you are talking about making calculations easy to do, but not show the code when printed out, that could be done with a little print css magic (or another cell type that would do the print css magic for you). Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Minimal notebook - just 1 cell
It would be nice if @interactdemonstrations and cells (both read-only and read-write) could be added to blog entries. Indeed, exactly. Although this definitely sounds cool, I'm wondering what features already exist that are not this fancy. Here's the limit of my knowledge on how to share Sage interactive demonstrations, and I'd be very happy if someone who knew more could enlighten me about the state of the art in this area: If I want to share an interactive demonstration I made with Sage, I need to publish it on a Sage server to which my target audience has accounts. Then they need to view the worksheet (which will not show them any @interactively computed stuff), click Edit a copy (which will then show the @interactively computed stuff), and then play around with my demo. Am I right? If so, this seems a little roundabout. That is, @interact seems like a public relations dream come true for Sage (like the Wolfram Demonstrations Project is for Mathematica), but if it's this tricky to share the @interactive stuff you make, that's a big missed opportunity. The ideal is to be able to give users a link to the interactive play space (minimizing the barrier between the user and the product). I realize that, in the OSS community, when suggestions arrive, a common (and appropriate) answer is, Good idea! Please build it and send us a patch! So forgive me for making the suggestions while I'm involved in other OSS projects that prevent me from contributing here as well. But I'm actually hoping that the response I'll get here is someone's pointing out to me that I'm wrong about the state of the art, and that something better is actually already possible, and I just didn't know how. If it's not, then I ask: - Would it be hard to segregate out a special place on sagenb.org (or anywhere) for officially published demos (rather than one huge publish zone)? - Would it be hard to make it so that interactive worksheets are actually interactive even if they're only being viewed (not edited)? These two things together would make it possible for the Sage community to have something to compete with the Wolfram Demonstrations Project, which many educators are getting quite excited about, and for good reason. Except you wouldn't need to download and install a player to use the Sage version, and you could contribute to it for free. Nathan --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sws vs pdf
On Mon, Feb 2, 2009 at 12:10 PM, kcrisman kcris...@gmail.com wrote: This reminds me that this brought up another interesting question. Why are the pdfs I generate sometimes significantly smaller than the sws files? In general I would have thought that the various images etc. and formatting would make the pdfs bloat, but the sws would be a nice tight text file - which of course it is not. What make .sws files so doggone huge (relatively speaking)? Do they contain all the computations? That would certainly do it. But even after I delete all output, the sws files are still fairly large. I'm not doing anything weird, either - this even happens with ordinary non- plotting, non-interact commands. I can make a small one by doing 2+2. Could it be the formatting of the text from TinyMCE? Maybe they contain the revision history? That could make them big. Could you post an example sws file that is huge? Anyways, just curious. But they do take a while to upload to our classroom management server sometimes. - kcrisman -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Error on sagenb.org on log in.
I had the same problem. A workaround is to click the jsMath button in the bottom right hand corner of your notebook and choose Options, then set Use native Unicode fonts radio button. On Feb 2, 1:34 pm, Kevin Loranger kevinloran...@gmail.com wrote: After I log into SAENB: It looks like jsMath failed to set up properly (error code -7). I will try to keep going, but it could get ugly. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: NB to pdf
kcrisman wrote: Dear Support, I don't believe that turning a notebook worksheet into a pdf is implemented (and thanks to Dan D. for SageTeX, which unfortunately I haven't been able to use properly yet, and Rob B. for his interesting experiments the other way). And that's fine, though it would be great long-term. My question is more specific: I now have a lot of worksheets with a weird mix of HTML and LaTeX markup, thanks to TinyMCE, and although my students can upload them to our server and everything, it would be nice for them to be able to read these offline (most don't and won't have Sage installed). However, that means that sometimes i/i is making my italics, and other times $$ or \emph{} is doing that (as just one example of a problem) - not to mention headers and links and things that don't really work in TeX. Does anyone have an idea for how to take the text out of Edit mode, stick it in a .tex file, and let that compile without too much effort? Assume for now that I would either use SageTeX or just hand-fix the Sage code lines so that they would fit in whatever solution I use. I suspect this is just wishful thinking (or being a real pro with a text editor), but figured I should ask. There are various programs that convert HTML to Latex. It sounds like that would work for you. In particular, you might look for programs that use XSLT transformations, for example. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Error on sagenb.org on log in.
Kevin Loranger wrote: After I log into SAENB: It looks like jsMath failed to set up properly (error code -7). I will try to keep going, but it could get ugly. see http://wiki.sagemath.org/faq#IgetanerrorfromjsMathorthemathsymbolsdon.27tlookrightwhendisplayinginthenotebook Thanks, Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Error on sagenb.org on log in.
After I log into SAENB: It looks like jsMath failed to set up properly (error code -7). I will try to keep going, but it could get ugly. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Minimal notebook - just 1 cell
On Mon, Feb 2, 2009 at 12:31 PM, Nathan Carter nathancart...@gmail.com wrote: It would be nice if @interactdemonstrations and cells (both read-only and read-write) could be added to blog entries. Indeed, exactly. Although this definitely sounds cool, I'm wondering what features already exist that are not this fancy. Here's the limit of my knowledge on how to share Sage interactive demonstrations, and I'd be very happy if someone who knew more could enlighten me about the state of the art in this area: If I want to share an interactive demonstration I made with Sage, I need to publish it on a Sage server to which my target audience has accounts. Then they need to view the worksheet (which will not show them any @interactively computed stuff), click Edit a copy (which will then show the @interactively computed stuff), and then play around with my demo. Am I right? Yes. If so, this seems a little roundabout. That is, @interact seems like a public relations dream come true for Sage (like the Wolfram Demonstrations Project is for Mathematica), but if it's this tricky to share the @interactive stuff you make, that's a big missed opportunity. The ideal is to be able to give users a link to the interactive play space (minimizing the barrier between the user and the product). I realize that, in the OSS community, when suggestions arrive, a common (and appropriate) answer is, Good idea! Please build it and send us a patch! So forgive me for making the suggestions while I'm involved in other OSS projects that prevent me from contributing here as well. But I'm actually hoping that the response I'll get here is someone's pointing out to me that I'm wrong about the state of the art, and that something better is actually already possible, and I just didn't know how. No, you're right about the current state. If it's not, then I ask: - Would it be hard to segregate out a special place on sagenb.org (or anywhere) for officially published demos (rather than one huge publish zone)? That would be possible. I hope somebody considers doing something like that, i.e., adding some improved way to organized published worksheets to the notebook (this should be a general feature available in all sage notebook servers). - Would it be hard to make it so that interactive worksheets are actually interactive even if they're only being viewed (not edited)? Yes, that would be difficult, but not impossible. I hope somebody implements it. Doing that was one of the goals of a Google Summer of Code project last year, but the student ran out of time, and ended up focusing on other aspects of the notebook (which *did* turn out very well). These two things together would make it possible for the Sage community to have something to compete with the Wolfram Demonstrations Project, which many educators are getting quite excited about, and for good reason. Except you wouldn't need to download and install a player to use the Sage version, and you could contribute to it for free. By compete with I assume you mean be better than in some specific way. We could indeed do better than running a Wolfram demonstration; right now doing so from scratch is also fairly roundabout: using a Wolfram demonstration requires downloading the player, downloading the demonstration, then running the demonstration in the player. Downloading the player requires (1) registering with Mathematica (you fill out a form here: http://www.wolfram.com/products/player/download.cgi), (2) solve a math problem to prove you're not a 'bot, (3) read and agree to a 3-page license agreement (of course nobody reads those), and (4) download a 106MB file. I'm in my office at UW and that 106MB download right now takes over 20 minutes. Having interacts that don't require logins or anything is obviously something everybody wants. I hope somebody implements it. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] What is the difference between double and single quotes?
Hello, I was sure there is no difference in Python and Sage. However, when I try to return I_0 in _latex_ function of my class, it typesets as I_0, because somehow it gets wrapped into \text{I\_0}. When I change the return value to 'I_0' everything works as expected. Why is it so and are there other differences? Thank you, Andrey --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---