Re: [sage-support] Re: (LaTeX/dot2tex) view posets with edge and vertex labels

2021-11-03 Thread Henri Girard
I didn't not understand your question, I am french. But I use show(LatexExpr(r" c'est  \ en \ français") ) for the text show(LatexExpr(r" \sqrt x^2") ) for maths and I obtain nice things Le 03/11/2021 à 09:17, 'Martin R' via sage-support a écrit : Sorry for answering my own question. It seems

[sage-support] Re: (LaTeX/dot2tex) view posets with edge and vertex labels

2021-11-03 Thread 'Martin R' via sage-support
Sorry for answering my own question. It seems that sage: P = Poset([[1,2,3,4], [[1,2], [2,3], [1,4]]]) sage: e = {i: LatexExpr("q^%s" % i) for i in P} sage: c = {(i,j): LatexExpr("%s^%s" % (i, j)) for i, j in P.cover_relations()} sage: H = P.hasse_diagram() sage: [H.set_edge_label(v1, v2, c[(v

[sage-support] Re: latex rendering problems

2017-11-22 Thread mforets
For the second problem, it renders with: t=text("%s" %LatexExpr(table(ls,header_row=('n','partial sum'))) ,(2,-1),color='black') El miércoles, 22 de noviembre de 2017, 17:10:43 (UTC+1), Andy Howell escribió: > > I have two problems rendering latex. The first is in a plot title. The > fraction

[sage-support] Re: Latex file created Sage wont compile

2016-12-04 Thread Dima Pasechnik
OK, never mind, now I see your other message. On Sunday, December 4, 2016 at 5:53:06 PM UTC, Dima Pasechnik wrote: > > > > On Saturday, December 3, 2016 at 9:46:03 PM UTC, Wellington wrote: >> >> There are issues with the latex file created by the command listed below. >> I have the latest versio

[sage-support] Re: Latex file created Sage wont compile

2016-12-04 Thread Dima Pasechnik
On Saturday, December 3, 2016 at 9:46:03 PM UTC, Wellington wrote: > > There are issues with the latex file created by the command listed below. > I have the latest version of Sage, i.e., version 7.4. > How did you create this file? (you did attach the resulting non-working tex file (giving s

Re: [sage-support] Re: %latex and no output

2016-03-10 Thread Jori Mäntysalo
On Thu, 10 Mar 2016, William Stein wrote: The real bug is that we have no guide to installing Sage server. https://wiki.sagemath.org/SageServer I stand corrected. I guess I will go throught that after Ubuntu 16.04 LTS is out. -- Jori Mäntysalo

Re: [sage-support] Re: %latex and no output

2016-03-10 Thread William Stein
On Thu, Mar 10, 2016 at 7:57 AM, Jori Mäntysalo wrote: > On Thu, 10 Mar 2016, kcrisman wrote: > >>> I found the reason. File permissions. > > >> In your specific case, or in general? If in general, we can open an issue >> to at least keep track of it and suggest workarounds. > > > Sage only has n

Re: [sage-support] Re: %latex and no output

2016-03-10 Thread Jori Mäntysalo
On Thu, 10 Mar 2016, kcrisman wrote: I found the reason. File permissions. In your specific case, or in general?  If in general, we can open an issue to at least keep track of it and suggest workarounds. Sage only has notebook(..., server_pool=['someone@somewhere'], ...). It is up to admin

Re: [sage-support] Re: %latex and no output

2016-03-10 Thread kcrisman
> > > > > Got it. As I say, I can't see this in any current Sage I have, except a > > server with no LaTeX, so it would be hard to debug. > > I found the reason. File permissions. > > In your specific case, or in general? If in general, we can open an issue to at least keep track of it and

Re: [sage-support] Re: %latex and no output

2016-03-02 Thread Jori Mäntysalo
On Mon, 29 Feb 2016, kcrisman wrote: Got it.  As I say, I can't see this in any current Sage I have, except a server with no LaTeX, so it would be hard to debug.   I found the reason. File permissions. But... If I say plot(sin) it works: the process running GUI as uid 'sagegui' makes a file

Re: [sage-support] Re: %latex and no output

2016-02-29 Thread kcrisman
> > > > > Is this in sagenb? > > Yes. > > Got it. As I say, I can't see this in any current Sage I have, except a server with no LaTeX, so it would be hard to debug. > > I can confirm this works for me in 7.1.beta3, though I do have LaTeX > > installed. In the server I have access to with

Re: [sage-support] Re: %latex and no output

2016-02-26 Thread Henri Girard
In sagenb typeset set latex in jupyter notebook enter in input %display latex and %matplotlib inline if you want graphs embedded Le 26/02/2016 13:20, Jori Mäntysalo a écrit : On Thu, 25 Feb 2016, Henri Girard wrote: In sagenb you don't need to write %latex ? Just click on the box latex to mar

Re: [sage-support] Re: %latex and no output

2016-02-26 Thread Jori Mäntysalo
On Thu, 25 Feb 2016, Henri Girard wrote: In sagenb you don't need to write %latex ? Just click on the box latex to mark it ? What box? But now I tested "Typeset" box. It works, so LaTeX installation is OK. And for example %timeit works, so %-string works. Strange. -- Jori Mäntysalo

Re: [sage-support] Re: %latex and no output

2016-02-25 Thread Henri Girard
In sagenb you don't need to write %latex ? Just click on the box latex to mark it ? Le 25/02/2016 16:12, Jori Mäntysalo a écrit : On Thu, 25 Feb 2016, kcrisman wrote: %latex x does not provide any output. Where to start debugging? Is this in sagenb? Yes. I can confir

Re: [sage-support] Re: %latex and no output

2016-02-25 Thread Jori Mäntysalo
On Thu, 25 Feb 2016, kcrisman wrote: %latex x does not provide any output. Where to start debugging? Is this in sagenb? Yes.  I can confirm this works for me in 7.1.beta3, though I do have LaTeX installed. In the server I have access to with 6.9 I get this.  6.5 on my

[sage-support] Re: %latex and no output

2016-02-25 Thread kcrisman
On Thursday, February 25, 2016 at 8:43:37 AM UTC-5, jori.mantys...@uta.fi wrote: > > A cell containing only > > %latex > x > > does not provide any output. Where to start debugging? > > Is this in sagenb? I can confirm this works for me in 7.1.beta3, though I do have LaTeX installed. In

[sage-support] Re: latex(sin(x)*sin(x)) not what I expected

2014-10-14 Thread kcrisman
> > This command prints \sin(x)^2 > Is there a correct way to modify the command to obtain > \sin^2(x) instead ? > > Thx > Hi! While it's true that this syntax is the common shorthand we use, it would be quite challenging to change printing or LaTeXing to make this happen if and only if you

Re: [sage-support] Re: latex/sagetex display of matrix

2014-09-09 Thread kcrisman
Sorry to dredge this up... in case anyone finds this, it was fixed in http://trac.sagemath.org/ticket/5474 a few months later! sage: latex.matrix_delimiters("[", "]") On Thursday, December 18, 2008 5:54:22 AM UTC-5, Robert Bradshaw wrote: > > On Dec 17, 2008, at 11:52 PM, Geodet wrote: > > > >

[sage-support] Re: LaTeX rendering problem in a local installation of the sage notebook server

2014-06-14 Thread Keir Lockridge
UPDATE: I switched to 6.1.1 and the problem went away. On Friday, June 13, 2014 5:29:59 PM UTC-5, Keir Lockridge wrote: > > Hi, > > I have Sage v6.2 installed 'in the cloud' (Amazon). The OS is RHEL. I have > used Sage for a couple of years without incident, but I am suddenly having > a problem

Re: [sage-support] Re: LaTeX rendering problem in a local installation of the sage notebook server

2014-06-14 Thread Keir Lockridge
I downloaded and complied the sources tarball for 6.0 and had been using sage -upgrade since then. I found these files in the sage directory tree (where the 'sage' executable is), and both are non-empty: ./local/lib/python2.7/site-packages/sagenb-0.10.7.2-py2.7.egg/sagenb/data/sage/js/mathjax_s

Re: [sage-support] Re: LaTeX rendering problem in a local installation of the sage notebook server

2014-06-14 Thread P Purkayastha
Is your sagenb installation complete? This file is present and distributed with the notebook: https://github.com/sagemath/sagenb/blob/master/sagenb/data/sage/js/mathjax_sage.js On Sat, Jun 14, 2014 at 10:14 PM, Keir Lockridge wrote: > I was finally quick enough to highlight and copy the MathJax e

[sage-support] Re: LaTeX rendering problem in a local installation of the sage notebook server

2014-06-14 Thread Keir Lockridge
I was finally quick enough to highlight and copy the MathJax error: File failed to load: https://sage.x.org/javascript/mathjax/config/../../dynamic/mathjax_sage.js But, I am having trouble actually finding this file. When I load the URL in my browser, I get a blank page ('view source' lea

[sage-support] Re: LaTeX rendering problem in a local installation of the sage notebook server

2014-06-14 Thread P Purkayastha
Latex in the notebook shouldn't be broken. It was completely broken for 6.1 but was fixed in 6.1.1. There has been no (released) upgrades of the notebook since then. I just checked and inline equations work fine here in 6.1.1 and 6.3.beta3. Sorry, I don't have 6.2 to test. On Saturday, June 14

[sage-support] Re: Latex in interact?

2013-09-12 Thread P Purkayastha
On 09/12/2013 10:14 PM, Jotace wrote: Hi all, I'm trying to do an interact to illustrate the curvature of a curve given by y=f(x). Here is the code, but at the end I cannot properly show the function k(x). What's wrong? What should I do? var('x') f(x)=x^4-2*x^2 @interact def _(f=input_box(x^4

Re: [sage-support] Re: Latex in interact?

2013-09-12 Thread William Stein
On Thu, Sep 12, 2013 at 5:24 PM, P Purkayastha wrote: > On 09/12/2013 10:14 PM, Jotace wrote: >> >> Hi all, >> >> I'm trying to do an interact to illustrate the curvature of a curve >> given by y=f(x). >> Here is the code, but at the end I cannot properly show the function >> k(x). What's wrong? W

[sage-support] Re: Latex in interact?

2013-09-12 Thread Jason Grout
On 9/12/13 9:14 AM, Jotace wrote: html('La fonction de courbure est', latex(k)) The html function just takes a single string, not multiple strings, so you could do something like html('La fonction de courbure est $%s$'%latex(k)) (the %s is replaced with the result of latex(k). See

[sage-support] Re: Latex tick labels in plot

2012-06-02 Thread P Purkayastha
Trac login is broken for quite a while, so I will reply here. This is quite easy to patch. For instance, the following patch for the case "frame=False" and "axes=True" (the default) works: diff --git a/sage/plot/graphics.py b/sage/plot/graphics.py --- a/sage/plot/graphics.py +++ b/sage/plot/grap

[sage-support] Re: Latex tick labels in plot

2012-06-01 Thread kcrisman
On Friday, June 1, 2012 4:55:39 PM UTC-4, ObsessiveMathsFreak wrote: > > Sorry about the replys above. This new Google groups interface is really > confusing. > > Agreed! > Anyway, I coded up a plot_labels function to make adding labels to plots a > little more modular. > > The function ba

[sage-support] Re: Latex tick labels in plot

2012-06-01 Thread ObsessiveMathsFreak
Sorry about the replys above. This new Google groups interface is really confusing. Anyway, I coded up a plot_labels function to make adding labels to plots a little more modular. The function basically creates an empty axis with labels which can be attached to other plots. Code follows:

[sage-support] Re: Latex tick labels in plot

2012-06-01 Thread ObsessiveMathsFreak
On Friday, June 1, 2012 4:22:13 PM UTC+1, ObsessiveMathsFreak wrote: > > While the "ticks=" option in plot can be used to place custom tick marks > on plot axes, how would you go about putting custom labels on each tick > mark, preferably latex ones,. e.g. $x_0$, $x_1$, etc. > > Is there a way

Re: [sage-support] Re: Latex tick labels in plot

2012-06-01 Thread ObsessiveMathsFreak
Brilliant! That actually worked thanks. Indexformatter gave me terrible problems subsequently, not working when the ticks were too large in value. FixedFormat seems to work better. Here's an updated form of that code import matplotlib.ticker #function

Re: [sage-support] Re: Latex tick labels in plot

2012-06-01 Thread Michael Orlitzky
On 06/01/12 13:26, ObsessiveMathsFreak wrote: > > The problem is that if the tick marks are too close together, the labels > repeat themselves, or seem not to appear. It's very frustrating. For > example try > > P0=plot(x^2,(r,0,2),ticks=[[1,2],[0.5,1]],tick_formatter=latex_ticklabels(x_labels,y

[sage-support] Re: Latex tick labels in plot

2012-06-01 Thread ObsessiveMathsFreak
On Friday, June 1, 2012 4:48:51 PM UTC+1, kcrisman wrote: > > > > On Friday, June 1, 2012 11:22:13 AM UTC-4, ObsessiveMathsFreak wrote: >> >> While the "ticks=" option in plot can be used to place custom tick marks >> on plot axes, how would you go about putting custom labels on each tick >> ma

[sage-support] Re: Latex tick labels in plot

2012-06-01 Thread kcrisman
On Friday, June 1, 2012 11:22:13 AM UTC-4, ObsessiveMathsFreak wrote: > > While the "ticks=" option in plot can be used to place custom tick marks > on plot axes, how would you go about putting custom labels on each tick > mark, preferably latex ones,. e.g. $x_0$, $x_1$, etc. > > Is there a way

[sage-support] Re: latex rendering too small

2011-10-28 Thread kcrisman
> Perhaps it's more conventional to add latex fragments into a Text > cell? How shall I do it? If you, in the notebook, hover the mouse over a blue line (the ones that let you make new cells), and then hold down Shift before clicking (we call it Shift-Click), you will get a nice text area. Word

[sage-support] Re: LaTeX angle symbol in notebook

2011-08-30 Thread pong
Thanks. So the question is how to enable that? I followed instruction in the link but still couldn't make it work. More specifically, I did 1) I believe the notebook version that I'm running is 0.8.19. How can I make sure that's true? 2) I move the msam10 folder to SAGE_ROOT/local/lib/python2.6/si

[sage-support] Re: LaTeX angle symbol in notebook

2011-08-26 Thread kcrisman
On Aug 26, 10:32 pm, pong wrote: > In notebook > > %latex > > \angle ABC > > display the angle symbol correctly. Any ways to get that work with the > TinyMCE editor? (as of now, it just gives by \angle instead of the > symbol). I don't think we enabled this jsmath extension. ? http://www.math

[sage-support] Re: latex() returns wrong code

2011-03-25 Thread kcrisman
On Mar 25, 9:45 pm, "andres.ordonez" wrote: > Hi, I checked the FAQ in the sage documentation page, but didn't find > where should I post a bug that I've found. So I'll post it here. If > this isn't the right place, please move it to the right place or let > me know where's the right place and I

Re: [sage-support] Re: Latex rendering in axes_labels not working

2010-08-13 Thread Mani Chandra
Hi, I'm using Archlinux x86_64. Sage version 4.5.2. It was package by a person named 'td123' on AUR. I personally couldn't get Sage to compile because the ATLAS build never succeeded. Output of "uname -a" Linux deathstar 2.6.34-ARCH #1 SMP PREEMPT Wed Aug 4 14:31:56 CEST 2010 x86_64 Intel(R) Core

[sage-support] Re: Latex rendering in axes_labels not working

2010-08-13 Thread Jason Grout
On 8/13/10 3:21 AM, Mani Chandra wrote: Hi, The following example code does not work: plot(sin(x^2), (x, -3, 3), axes_labels=['$x$','$y$']) Traceback (click to the left of this block for traceback) ... TypeError: coercing to Unicode: need string or buffer, dict found But works when I remove th

[sage-support] Re: Latex rendering in axes_labels not working

2010-08-13 Thread Luis Finotti
On Aug 13, 9:26 am, kcrisman wrote: > This works for me on 4.5.3.alpha0 (and presumably 4.5.2? anyone?) from > the command line and notebook. (...) FWIW, works in 4.5.2 for me... (64-bit, built from source). Luis -- To post to this group, send email to sage-support@googlegroups.com To unsub

[sage-support] Re: Latex rendering in axes_labels not working

2010-08-13 Thread kcrisman
Dear Mani, This works for me on 4.5.3.alpha0 (and presumably 4.5.2? anyone?) from the command line and notebook. If you do a web search for your error message, though, it seems like perhaps there is something about your computer that's returning something other than ASCII, hence the call to Unico

[sage-support] Re: latex \cancel not rendering

2010-06-06 Thread Rob Beezer
Mike, Thanks for having a look. I hope to get back to this and tidy it up in the next few weeks. (2) This all seems more complicated in the notebook (with jsMath, etc), and I do think most folks begin in the notebook. If you like the command-line (I do too), then you don't need as much guidance

Re: [sage-support] Re: latex \cancel not rendering

2010-06-06 Thread Mike Witt
On 06/06/2010 10:28:43 AM, Rob Beezer wrote: I'm working on a guide. Still in *very* rough draft stage, but might be readable in Trac (just click on the version 2 patch). Feedback welcome. Here is some feedback: (1) This is very useful. I just read through it and learned some things that I

[sage-support] Re: latex \cancel not rendering

2010-06-06 Thread Rob Beezer
I'm working on a guide. Still in *very* rough draft stage, but might be readable in Trac (just click on the version 2 patch). Feedback welcome. http://trac.sagemath.org/sage_trac/ticket/9027 On Jun 6, 9:33 am, dbjohn wrote: > Is there any links or guides that could show me how to extend the >

[sage-support] Re: latex \cancel not rendering

2010-06-06 Thread dbjohn
Is there any links or guides that could show me how to extend the latex capabilities of Sage. Would it be very complicated? On Jun 6, 4:55 pm, Rob Beezer wrote: > The Sage notebook uses jsMath to render mathematics.  jsMath only > implements a (large) subset of TeX, so it is likely that \cancel i

[sage-support] Re: latex \cancel not rendering

2010-06-06 Thread Rob Beezer
The Sage notebook uses jsMath to render mathematics. jsMath only implements a (large) subset of TeX, so it is likely that \cancel is not part of its capabilities. You can see much of what is possible at: http://www.math.union.edu/~dpvc/jsMath/symbols/welcome.html Rob On Jun 6, 4:31 am, dbjohn

[sage-support] Re: latex representation of matrix

2010-03-30 Thread Mike Witt
On 03/30/2010 08:19:33 PM, Mike Witt wrote: First, note I'm still on Sage Version 4.3.1 sage: M = matrix([[1,0],[0,1]]) sage: latex(M) \left(\begin{array}{rr} 1 & 0 \\ 0 & 1 \end{array}\right) Now, this seems to work OK in a notebook, but I'm outputting stuff to a .tex file, and this (for

[sage-support] Re: latex binary and dvips binary

2009-12-18 Thread Mikie
I am using the latex in Moodle and I had Moodle's latex filter turned on. I removed it and the fonts are great. Before it was creating an image. On Dec 18, 2:22 am, "ma...@mendelu.cz" wrote: > I think that better is to use scalable fonts. this should be default > in modern distribution. What ex

[sage-support] Re: latex binary and dvips binary

2009-12-18 Thread ma...@mendelu.cz
I think that better is to use scalable fonts. this should be default in modern distribution. What exactly you have installed? texlive? from where, from texlive homepage or from centos repository? Try to compile you ps into PDF (using ps2pdf), open PDF document, go to the document - properties and

Re: [sage-support] Re: latex binary and dvips binary

2009-12-18 Thread Dima Pasechnik
Are you talking about the postscript files produced by dvips? You probably only installed a small subset of fonts, and scaling them produces substandard results. It can also be that dvips is set up to create 300 DPI (dots per inch) docs - this is easy to fix then (but depends upon a particular setu

[sage-support] Re: latex binary and dvips binary

2009-12-17 Thread Mikie
It took about hour and a half. The fonts are a little fuzzy. Is there anyway to fix this? On Dec 17, 11:38 am, Mikie wrote: > Robert, great stuff.  I am installing now.  How long does it take? > > On Dec 17, 1:33 am, "ma...@mendelu.cz" wrote: > > > > > I think that rpm cannot be used to instal

[sage-support] Re: latex binary and dvips binary

2009-12-17 Thread Mikie
Robert, great stuff. I am installing now. How long does it take? On Dec 17, 1:33 am, "ma...@mendelu.cz" wrote: > I think that rpm cannot be used to install into home directory, since > the install patch is hardwired in the rpm. Ask at the forum specific > to your distribution. > > You can also

[sage-support] Re: latex binary and dvips binary

2009-12-17 Thread ma...@mendelu.cz
I think that rpm cannot be used to install into home directory, since the install patch is hardwired in the rpm. Ask at the forum specific to your distribution. You can also try to install from sources or texlive. I think that both can be installed to home directory without root priviledges. But y

[sage-support] Re: latex binary and dvips binary

2009-12-16 Thread Mikie
I have to do it in my home directory. I have the two files -- tet- latex 3.0-33.8.el5.ie386.rpm and tet-dvips 3.0-33.8.el5.ie386.rpm. This for Centos 5.3. Now what do I do. On Dec 16, 5:55 am, Dima Pasechnik wrote: > you can install tex in your home directory. > > You would not need root permis

Re: [sage-support] Re: latex binary and dvips binary

2009-12-16 Thread Dima Pasechnik
you can install tex in your home directory. You would not need root permissions for this (but make sure you have enough disk space - I imagine such providers have disk quotas; a reasonable installation of tex can easily take 250Mb or so -- you get get away with much less, but this would require so

[sage-support] Re: latex binary and dvips binary

2009-12-16 Thread ma...@mendelu.cz
I think that there are more options how to install things in Cents. If yum is broken in your instalation, try some other method. Do you have root ssh acces? If so, I think that easiest method is to install texlive http://www.tug.org/texlive/ use wget ... to download, unpack and run install script

Re: [sage-support] Re: latex binary and dvips binary

2009-12-15 Thread Jaap Spies
Mikie wrote: > BlueHost is my webhost. I have talked to support and they won't > install latex binary or dvips binary. > So you are at the end of the line! Go for a better webhost. Or install Sage on your own computer. Good luck! Jaap > On Dec 15, 11:25 am, Jaap Spies wrote: >> Mikie wrote:

[sage-support] Re: latex binary and dvips binary

2009-12-15 Thread Mikie
BlueHost is my webhost. I have talked to support and they won't install latex binary or dvips binary. On Dec 15, 11:25 am, Jaap Spies wrote: > Mikie wrote: > > I tried yum install textlive and it gave me the following > > error--"error accessing file for config file ///etc/yum.conf. > > I can't

Re: [sage-support] Re: latex binary and dvips binary

2009-12-15 Thread Jaap Spies
Mikie wrote: > I tried yum install textlive and it gave me the following > error--"error accessing file for config file ///etc/yum.conf. > I can't get to the Package Manager. It is on BlueHost. > What is "BlueHost"? OK: http://www.bluehost.com/ Maybe you can ask support from this provider? Chee

[sage-support] Re: latex binary and dvips binary

2009-12-15 Thread Mikie
I tried yum install textlive and it gave me the following error--"error accessing file for config file ///etc/yum.conf. I can't get to the Package Manager. It is on BlueHost. On Dec 15, 10:18 am, Minh Nguyen wrote: > Hi Mikie, > > On Wed, Dec 16, 2009 at 4:14 AM, Mikie wrote: > > Centos 5.3 on

Re: [sage-support] Re: latex binary and dvips binary

2009-12-15 Thread Minh Nguyen
Hi Mikie, On Wed, Dec 16, 2009 at 4:14 AM, Mikie wrote: > Centos 5.3 on BlueHost. You should use the package manager for your operating system. For CentOS, Fedora and Red Hat, a package manager to use is "yum". For example, you could install LaTeX as follows: yum install texlive -- Regards Mi

[sage-support] Re: latex binary and dvips binary

2009-12-15 Thread Mikie
Centos 5.3 on BlueHost. On Dec 15, 9:52 am, Jaap Spies wrote: > Mikie wrote: > > I need latex binary and dvips binary.  My Linux is poor.  Where do I > > get it and how to install. > > What OS are you on? Linux, but which distribution? > > Jaap -- To post to this group, send email to sage-suppo

Re: [sage-support] Re: latex binary and dvips binary

2009-12-15 Thread Jaap Spies
Mikie wrote: > I need latex binary and dvips binary. My Linux is poor. Where do I > get it and how to install. > What OS are you on? Linux, but which distribution? Jaap -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-su

[sage-support] Re: latex binary and dvips binary

2009-12-15 Thread Mikie
I need latex binary and dvips binary. My Linux is poor. Where do I get it and how to install. On Dec 14, 4:30 pm, Minh Nguyen wrote: > Hi Mikie, > > On Tue, Dec 15, 2009 at 10:04 AM, Mikie wrote: > > Is the latex and dvips binary installed in the Sage directory?  If so > > where? > > If you're

[sage-support] Re: LaTeX size/alignment in SAGE plots

2009-12-14 Thread Jason Grout
ma...@mendelu.cz wrote: > No idea, but I observed also similar problems. > > The first idea was that this is problem from mathplotlib, but I > followed the example at http://www.scipy.org/Cookbook/Matplotlib/UsingTex > and tried the following > > P=plot(x^2,(x,-3,3)) > T=text(r"$\displaystyle\sum

[sage-support] Re: LaTeX size/alignment in SAGE plots

2009-12-13 Thread ma...@mendelu.cz
No idea, but I observed also similar problems. The first idea was that this is problem from mathplotlib, but I followed the example at http://www.scipy.org/Cookbook/Matplotlib/UsingTex and tried the following P=plot(x^2,(x,-3,3)) T=text(r"$\displaystyle\sum_{n=1}^\infty\frac{-e^{i\pi}}{2^n}$",(0,

[sage-support] Re: latex issue after upgrading to 4.2

2009-11-02 Thread Flavio Coelho
Thanks, that fixed it. I Downloaded the fonts and unpacked them to the ~/.fonts/ directory. On Oct 30, 4:43 pm, Jason Grout wrote: > ma...@mendelu.cz wrote: > > > On 30 říj, 13:30, Flavio Coelho wrote: > >> I forgot to mention my platform: > > >> Ubuntu Karmic Koala, > >> Firefox 3.5.3 > > >

[sage-support] Re: latex issue after upgrading to 4.2

2009-10-30 Thread Jason Grout
ma...@mendelu.cz wrote: > > > On 30 říj, 13:30, Flavio Coelho wrote: >> I forgot to mention my platform: >> >> Ubuntu Karmic Koala, >> Firefox 3.5.3 > > From: http://www.math.union.edu/~dpvc/jsMath/changes.html > > The linux version of Firefox 3.5 doesn't seem to be able to read the > jsMath

[sage-support] Re: latex issue after upgrading to 4.2

2009-10-30 Thread ma...@mendelu.cz
On 30 říj, 13:30, Flavio Coelho wrote: > I forgot to mention my platform: > > Ubuntu Karmic Koala, > Firefox 3.5.3 From: http://www.math.union.edu/~dpvc/jsMath/changes.html The linux version of Firefox 3.5 doesn't seem to be able to read the jsMath TeX fonts (probably due to the non-standard

[sage-support] Re: latex issue after upgrading to 4.2

2009-10-30 Thread ma...@mendelu.cz
On 30 říj, 14:32, Flavio Coelho wrote: > On Oct 30, 12:35 pm, "ma...@mendelu.cz" wrote: > > > Where do you have this problem? In text cell produced by TinyMCE? If > > so, then it has nothing to do with your LaTeX installation - this is > > formated by jsmath. > > > Do you have the same problem

[sage-support] Re: latex issue after upgrading to 4.2

2009-10-30 Thread Flavio Coelho
On Oct 30, 12:35 pm, "ma...@mendelu.cz" wrote: > Where do you have this problem? In text cell produced by TinyMCE? If > so, then it has nothing to do with your LaTeX installation - this is > formated by jsmath. > > Do you have the same problem on jsmath page > here?http://www.math.union.edu/~d

[sage-support] Re: latex issue after upgrading to 4.2

2009-10-30 Thread ma...@mendelu.cz
Where do you have this problem? In text cell produced by TinyMCE? If so, then it has nothing to do with your LaTeX installation - this is formated by jsmath. Do you have the same problem on jsmath page here? http://www.math.union.edu/~dpvc/jsMath/jsMath-lab.html Robert On 30 říj, 13:30, Flavio

[sage-support] Re: latex issue after upgrading to 4.2

2009-10-30 Thread Flavio Coelho
I forgot to mention my platform: Ubuntu Karmic Koala, Firefox 3.5.3 Installed Sage 4.2 from binary tarball I have a working installation of the Texlive LaTeX distribution on my system as provided by ubuntu .deb packages. I think maybe sage binary installation does not use system fonts but rathe

[sage-support] Re: latex issue after upgrading to 4.2

2009-10-30 Thread ma...@mendelu.cz
A have no problem in Firefox and any of jsmath options - native fonts/ image fonts/image for symbols/Uicode chars. No problem also on sagenb.org. Do you use Firefox or other browser. Linux or Windows? (btw. you have eta instead of \eta in first equation) Robert On 30 říj, 11:57, Flavio Coelh

[sage-support] Re: latex

2009-10-08 Thread Mikie
Robert, thanks the R3=maxima.rhs(R1).sage() worked. --~--~-~--~~~---~--~~ 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

[sage-support] Re: latex

2009-10-08 Thread ma...@mendelu.cz
adding .sage() does not help as in my example? Please, post a minimal example, if possible. R. On 8 říj, 18:31, Mikie wrote: > Here is the example that is the problem.  Your last suggestion did > solve the problem with maxima.solve.  But now how do I stop the other > \over. > > --

[sage-support] Re: latex

2009-10-08 Thread Mikie
Here is the example that is the problem. Your last suggestion did solve the problem with maxima.solve. But now how do I stop the other \over. --- def CSquare(r1): eq11=r1;y=b*1 w1=maxima.subst(eq11,b,y) w2 = latex(eq11); w5 = "

[sage-support] Re: latex

2009-10-06 Thread ma...@mendelu.cz
This \over is from Maxima. try a1=maxima.solve(x^2-x-3,x) R1=a1[0] R3=maxima.rhs(R1).sage() latex(R3) R. On 6 říj, 22:25, Mikie wrote: > Yes, your right.  I am latexing a value from maxima.solve(x^2-x-3,x). > Then maxima.rhs().  Then latexing the value.  It still gives me the > \over.  I am us

[sage-support] Re: latex

2009-10-06 Thread Mikie
Yes, your right. I am latexing a value from maxima.solve(x^2-x-3,x). Then maxima.rhs(). Then latexing the value. It still gives me the \over. I am using 3.4. When I assign it to a variable it works as below. If you would try a1=maxima.solve(x^2-x-3,x) R1=a1[0] R3=maxima.rhs[R1] latex(R3) prod

[sage-support] Re: latex

2009-10-06 Thread ma...@mendelu.cz
Hm, this is my Sage 4.1.1 a1=-(sqrt(13)-1)/2 latex(a1) output is -\frac{1}{2} \, \sqrt{13} + \frac{1}{2} You may have old version of Sage latex(-{{\sqrt[13]-1\over[2}}) produces error Robert Marik On 6 říj, 21:10, Mikie wrote: > If I have this a1=-(sqrt(13)-1)/2 in a variable, then latex(a1

[sage-support] Re: latex/jsmath error

2009-09-22 Thread Mikie
Can I do --- gcc (with C++ support) make--out m4-- out per-- out ranlib--out tar--out latex -- just this -- On Sep 14, 6:36 pm, William Stein wrote: > On Mon, Sep 14, 2009 at 1:21 PM, Mikie wrote: > > > This is from debug > > cd "/root/.sage/temp/Ralph/5

[sage-support] Re: latex/jsmath error

2009-09-14 Thread William Stein
On Mon, Sep 14, 2009 at 1:21 PM, Mikie wrote: > > This is from debug > cd "/root/.sage/temp/Ralph/5161/dir_1"&& sage-native-execute latex > \\nonstopmode \\input{sage8.tex}  && sage-native-execute dvips > sage8.dvi > && sage-native-execute convert -density 130x130 -trim sage8.ps > sage8.png > > /

[sage-support] Re: latex/jsmath error

2009-09-14 Thread John H Palmieri
On Sep 14, 1:21 pm, Mikie wrote: >  Sage Version 3.2. This is almost a year old, which is getting pretty old, especially given the fast pace of Sage development. Later versions of Sage should give better error messages if "convert" (from the ImageMagick suite) and/or "dvipng" are not installed

[sage-support] Re: latex/jsmath error

2009-09-14 Thread Minh Nguyen
Hi, On Tue, Sep 15, 2009 at 6:21 AM, Mikie wrote: > > This is from debug > cd "/root/.sage/temp/Ralph/5161/dir_1"&& sage-native-execute latex > \\nonstopmode \\input{sage8.tex} && sage-native-execute dvips > sage8.dvi > && sage-native-execute convert -density 130x130 -trim sage8.ps > sage8.png

[sage-support] Re: latex/jsmath error

2009-09-14 Thread Mikie
This is from debug cd "/root/.sage/temp/Ralph/5161/dir_1"&& sage-native-execute latex \\nonstopmode \\input{sage8.tex} && sage-native-execute dvips sage8.dvi && sage-native-execute convert -density 130x130 -trim sage8.ps sage8.png /var/www/html/sage/local/bin/sage-native-execute: line 8: latex:

[sage-support] Re: latex/jsmath error

2009-09-14 Thread John H Palmieri
On Sep 14, 12:38 pm, Mikie wrote: > Put > from sage.misc.latex import JSMath Why? This is imported into the notebook by default, so you don't need to do this. > into the notebook. Then > > %latex > $x^2-x$ > > Then I get the following error > An er

[sage-support] Re: LaTeX output for Graph Theory

2009-07-10 Thread Dan Drake
On Fri, 10 Jul 2009 at 08:11AM -0700, Taxman wrote: > Oh, I forgot to mention, Ubuntu 9.04's pgf is at the latest version > 2.0 > > I think my first message was really unclear. What I meant was, if I > include \usepackage{tikz} at the top of a tex file and render it > manually on the command line,

[sage-support] Re: LaTeX output for Graph Theory

2009-07-10 Thread Taxman
Oh, I forgot to mention, Ubuntu 9.04's pgf is at the latest version 2.0 I think my first message was really unclear. What I meant was, if I include \usepackage{tikz} at the top of a tex file and render it manually on the command line, then I don't get the Unknown environment "tikzpicture" error,

[sage-support] Re: LaTeX output for Graph Theory

2009-07-10 Thread javier
Hi there, you possibly just need to install the newest pgf tex package. You can download it from http://sourceforge.net/projects/pgf/ unpack the tgz file, copy the contents of the pgf inside a location where your tex system can find it, if you want a local installation just for one user, th

[sage-support] Re: %latex notebook errors

2009-03-29 Thread John H Palmieri
On Mar 28, 7:22 pm, William Stein wrote: > On Sat, Mar 28, 2009 at 6:55 PM, J Elaych wrote: > > >> What happens if you type this at the command line: > > >> sage: sage.misc.latex.Latex().eval('Try this: $$x^2=-1$$.',0,0,debug=True) > > >> William > > > Awesome, thanks.   Latex wasn't finding '

[sage-support] Re: %latex notebook errors

2009-03-28 Thread William Stein
On Sat, Mar 28, 2009 at 6:55 PM, J Elaych wrote: > > >> What happens if you type this at the command line: >> >> sage: sage.misc.latex.Latex().eval('Try this: $$x^2=-1$$.',0,0,debug=True) >> >> William > > Awesome, thanks.   Latex wasn't finding 'fullpage.sty' so I installed > 'dblatex' via > Ubu

[sage-support] Re: %latex notebook errors

2009-03-28 Thread J Elaych
> What happens if you type this at the command line: > > sage: sage.misc.latex.Latex().eval('Try this: $$x^2=-1$$.',0,0,debug=True) > > William Awesome, thanks. Latex wasn't finding 'fullpage.sty' so I installed 'dblatex' via Ubuntu, which in turn installed tons of latex packages, including ..

[sage-support] Re: %latex notebook errors

2009-03-28 Thread William Stein
On Sat, Mar 28, 2009 at 12:10 PM, J Elaych wrote: > > Hi, > > I try the following in my first cell in a new notebook with sage-3.4 > and the latest Ubuntu 64bit os. > > > %latex > Try this: $$x^2=-1$$. > > evaluate > > An e

[sage-support] Re: Latex expression to png

2009-01-04 Thread Shing Hing Man
I am using Sage 3.2,1 and it does not work with a complicated filename. I will try it in Sage 3.2.3. Geogr: Thanks for the reply! I'll try latexmath2y after I find out how to import a python class into Sage. Thanks! Shing On Jan 3, 11:25 pm, "William Stein" wrote: > On Sat, Jan 3, 2009 at 2:0

[sage-support] Re: Latex expression to png

2009-01-03 Thread ggrafendorfer
Hi Shing, try http://code.google.com/p/latexmath2png/ a Python project, can be used as a command line tool as well as a Python module, and has more options, for example it is possible to specify a latex preamble, and it has a better margin fitting (I tried out the example suggested by William an

[sage-support] Re: Latex expression to png

2009-01-03 Thread William Stein
On Sat, Jan 3, 2009 at 2:08 PM, Shing Hing Man wrote: > > Is there a command in SAGE that converts a latex expression to png (or > gif) directly. > > The following post in the archive has a workaround. > > ttp://groups.google.com/group/sage-support/browse_thread/thread/570022e72a22d3bd/517d51a58a

[sage-support] Re: latex/sagetex display of matrix

2008-12-18 Thread Robert Bradshaw
On Dec 17, 2008, at 11:52 PM, Geodet wrote: > > I don't think the easiest way that you describe is possible. > In my .tex file i write: > \begin{sagesilent} > a=matrix(QQ,[[1,1],[2,-1],[1,-1]]) > \end{sagesilent} > $\sage{a.transpose()}\cdot\sage{a}=\sage{(a.transpose()*a).inverse > ()}$\ > \

[sage-support] Re: latex/sagetex display of matrix

2008-12-17 Thread Geodet
I don't think the easiest way that you describe is possible. In my .tex file i write: \begin{sagesilent} a=matrix(QQ,[[1,1],[2,-1],[1,-1]]) \end{sagesilent} $\sage{a.transpose()}\cdot\sage{a}=\sage{(a.transpose()*a).inverse()}$\ \ The latex-code for the matrices is not visible here. I only get t

[sage-support] Re: latex/sagetex display of matrix

2008-12-17 Thread David Joyner
The easiest way is probably to simply do a global search+replace of \left( and \right) on the file:-) The much harder way is to create a clone, then track down the method for the latex code (try M._latex_??, where M is your matrix), edit it and rebuild Sage using "sage -b". If you think your req

  1   2   >