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

2021-11-02 Thread 'Martin R' via sage-support
is it possible to display a poset with (LaTeX) labels on the covering relations and (LaTeX) labels on the vertices? For example: sage: P = Poset([[1,2,3,4], [[1,2], [2,3], [1,4]]]) sage: e = {i: "$q^%s$" % i for i in P} sage: c = {(i,j): "$%s^%s$" % (i, j) for i, j in P.cover_relations()} sage:

[sage-support] latex rendering problems

2017-11-22 Thread Andy Howell
I have two problems rendering latex. The first is in a plot title. The fraction should be centered. If I try the same latex: \sum_{n=1}^{\infty}\frac{12}{(-5)^n} at http://www.codecogs.com/latex/eqneditor.php it renders as I expect. The second problem is rendering latex for a table. I thought

[sage-support] LaTeX for elements of quotient rings

2017-07-14 Thread Keir Lockridge
When I execute the following block of code in a Sage worksheet (I did this in a .sagews file on cocalc.com, kernel 7.6), I get unexpected behavior from the last pretty_print statement (the LaTeX doesn't render at all). A = GF(2) R. = PolynomialRing(A,1) I = R.ideal(x^5 - 1) Q. = R.quotient_ring(

[sage-support] Latex file created Sage wont compile

2016-12-03 Thread Wellington
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. I've attached the created latex file. Any help would be much appreciated. Thanks -- You received this message because you are subscribed to the Google Groups "sage-

[sage-support] %latex and no output

2016-02-25 Thread Jori Mäntysalo
A cell containing only %latex x does not provide any output. Where to start debugging? This works on my local computer with newest beta. On server where this does not work we use latest stable release. For example %latex x^2 gives An error occurred. This is pdfTeX, Version 3.1415926-2.5-1.

[sage-support] LaTeX in PDF export of ipython notebook

2015-08-12 Thread Eric Gourgoulhon
Hi, When running Sage 6.8 in jupyter/ipython notebook, we can have a LaTeX rendering of the cell outputs by starting the worksheet with %display latex This works nice. However, if we export the worksheet to PDF by clicking on File -> Download as -> PDF via LaTeX (.pdf), the LaTeX rendering of th

Re: [sage-support] latex and hold parameter

2015-01-23 Thread Pedro Cruz
Hello, using Sage 6.2 there is this behaviour: sage: SR(2).power(3,hold=True) 2^3 sage: 3*SR(2).power(3,hold=True) 3*8 or sage: SR(2*x).power(3,hold=True) (2*x)^3 sage: 4 * SR(2*x).power(3,hold=True) 4*(8*x^3) which I don't know if it is expected. Because we want some expressions no to be c

Re: [sage-support] latex and hold parameter

2015-01-20 Thread kcrisman
> > as expected, this really is a bug in latex(): > > sage: latex(120/factorial(5,hold=True)) > \frac{120}{120} > sage: str(120/factorial(5,hold=True)) > '120/factorial(5)' > > I agree, please feel free to cc: me on such a ticket. Though it may need digging into Pynac :( -- You received

Re: [sage-support] latex and hold parameter

2015-01-20 Thread Jeroen Demeyer
On 2015-01-20 17:27, Dan Drake wrote: On Fri, 16 Jan 2015 at 09:57AM -0800, Pedro Cruz wrote: An unexpected behaviour in latex() command (both 5.12 and 6.4 Sage versions): sage: latex( 120/factorial(5,hold=True) ) \frac{120}{120} sage: latex( factorial(5,hold=True) ) 5! We need to "hold" t

Re: [sage-support] latex and hold parameter

2015-01-20 Thread Dan Drake
On Fri, 16 Jan 2015 at 09:57AM -0800, Pedro Cruz wrote: > An unexpected behaviour in latex() command (both 5.12 and 6.4 Sage > versions): > > sage: latex( 120/factorial(5,hold=True) ) > \frac{120}{120} > sage: latex( factorial(5,hold=True) ) > 5! > > We need to "hold" the expression for prop

[sage-support] latex and hold parameter

2015-01-16 Thread Pedro Cruz
An unexpected behaviour in latex() command (both 5.12 and 6.4 Sage versions): sage: latex( 120/factorial(5,hold=True) ) \frac{120}{120} sage: latex( factorial(5,hold=True) ) 5! We need to "hold" the expression for proper latex transcription. Is there any other way to avoid latex() to comput

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

2014-10-10 Thread Javier Marquez
This command prints \sin(x)^2 Is there a correct way to modify the command to obtain \sin^2(x) instead ? Thx -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to s

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

2014-06-13 Thread Keir Lockridge
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 with LaTeX rendering in the notebook. When I enclose a formula in double dollar signs, it renders just fine as a centered equation.

Re: [sage-support] Latex in interact?

2013-09-12 Thread Tom Boothby
You can't just put that second argument into html -- the following works for me: var('x') f(x)=x^4-2*x^2 @interact def _(f=input_box(x^4-2*x^2, width=15, label="$f(x)=$"),a=input_box(-2, width=5, label="$a=$"),b=input_box(2, width=5, label="$b=$")): Cf=plot(f,x,-2,2,color='blue', thickness=3)

[sage-support] Latex in interact?

2013-09-12 Thread Jotace
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-2*x^2, width=15, label="$f(x)=$"),a=

[sage-support] latex rendering too small

2011-10-28 Thread rych
How to make %latex cells to render in larger fonts? And by the way, why is it that the whole cell is rendered as one png image? Perhaps it's more conventional to add latex fragments into a Text cell? How shall I do it? Thanks Igor -- To post to this group, send email to sage-support@googlegroups

[sage-support] LaTeX angle symbol in notebook

2011-08-26 Thread pong
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). Thanks -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send em

[sage-support] latex() returns wrong code

2011-03-25 Thread andres.ordonez
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'll move it myself. I found this error. sage: a_0, Z

[sage-support] latex() returns wrong code

2011-03-25 Thread andres.ordonez
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'll move it myself. I found this error. sage: a_0, Z

[sage-support] Latex rendering in axes_labels not working

2010-08-13 Thread Mani Chandra
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 the '$' symbols. Anyway to fix this? Mani

[sage-support] latex \cancel not rendering

2010-06-06 Thread dbjohn
I only recently discovered the latex \cancel command but it is not rendering on the sage online version I am using. Other latex command such as \frac, \times etc are working. Is this command available in sage's latex abilities, do I need to install a package perhaps? -- To post to this group, sen

[sage-support] latex representation of matrix

2010-03-30 Thread Mike Witt
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 me at least) inserts the extra lines, making

Re: [sage-support] LaTeX text

2010-01-21 Thread Erik Lane
On Thu, Jan 21, 2010 at 7:03 PM, Thomas Scofield wrote: > > I am creating notebooks to publish for my students to use in a spring > course. Perhaps not surprisingly, I am interspersing commands, output of > those commands, and explanatory text. The only way I know to create the > latter is to sh

[sage-support] LaTeX text

2010-01-21 Thread Thomas Scofield
I am creating notebooks to publish for my students to use in a spring course. Perhaps not surprisingly, I am interspersing commands, output of those commands, and explanatory text. The only way I know to create the latter is to shift-click to open a text cell. I discovered a few days a

[sage-support] latex environment on sagenb.org

2010-01-02 Thread Jason Grout
Can we install what is necessary to draw graphs with tkz on sagenb.org? I did the following: show(latex(graphs.CompleteGraph(3))) and it said something like: Warning: tkz-graph.sty is not part of this computer's TeX installation. This package is required to render graphs in LaTeX. Visit http:

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

2009-12-14 Thread Minh Nguyen
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 asking whether or not LaTeX is distributed with Sage, the answer is no. If you're asking whether or not dvips is distributed with Sage, the answer i

[sage-support] latex binary and dvips binary

2009-12-14 Thread Mikie
Is the latex and dvips binary installed in the Sage directory? If so where? Thanx -- 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.go

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

2009-12-12 Thread Greg Marks
When I include LaTeX using the text() command in a 2-D plot, the size of the text is not quite what I'd like. For example, on p. 3 of the document here: http://gmarks.co.cc/math_142-02_fall_2009_exam_3_solutions.pdf the sizes of the fractions in the SAGE plot are quite different from the sizes

[sage-support] latex issue after upgrading to 4.2

2009-10-30 Thread Flavio Coelho
Hi, I have just upgraded to 4.2 and I am having problem with LaTeX typesetting in text cells. greek letters are not typeset but otherwise, the rest of the latex is formatted normally. here is one of my latex expressions: $$ \begin{eqnarray} \lambda&= & \beta(I+eta A)\\ \frac{dS}{dt} &=& \mu - (\

[sage-support] latex

2009-10-06 Thread Mikie
If I have this a1=-(sqrt(13)-1)/2 in a variable, then latex(a1) it produces -{{\sqrt[13]-1\over[2}}. If I do latex(-{{\sqrt[13]-1\over[2}}) get \frac{1-\sqrt{13}}{2}, which is what I want. This is in a function. I need the latter. The \over does not do the pretty print. Is there a work around

[sage-support] latex/jsmath error

2009-09-14 Thread Mikie
Put from sage.misc.latex import JSMath into the notebook. Then %latex $x^2-x$ Then I get the following error An error occured. Error latexing slide. It is possible to do Latex in Sage? --~--~-~--~~~---~--~~ To post to th

[sage-support] latex in text() on notebook plots: \frac ok \triangle not

2009-07-14 Thread Bruce Cohen
I am trying to use LaTeX to format text on plots. sage: T1=text("$\\frac{ABC}{12}$", (0,0), fontsize=14) sage: T2=text("$\\triangle{ABC}$", (2,2), fontsize=16) sage: show(T1, axes=False) ## this works sage: show(T2, axes=False) ## this doesn't I have also tried this in a notebook. Both $\fr

[sage-support] LaTeX output for Graph Theory

2009-07-10 Thread Taxman
Hi, I was motivated to install Sage from the Graph Theory example on http://mvngu.wordpress.com/2009/06/24/sage-4-0-2-released/ (the release tour). To run it I downloaded tkz-berge.sty and tkz-graph.sty, but I still get the error Unknown environment "tikzpicture" on running the example. Doing som

[sage-support] %latex notebook errors

2009-03-28 Thread J Elaych
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 error occured. Error latexing slide. -

[sage-support] Latex expression to png

2009-01-03 Thread Shing Hing Man
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/517d51a58abc67f8?lnk=gst&q=Latex+to+png#517d51a58abc67f8 I wonder if there

[sage-support] latex/sagetex display of matrix

2008-12-17 Thread Geodet
I have just begun using sagetex (in Kile on Ubuntu Linux) for writing math lecture notes. I would like sagetex to display the matrices with square brackets [] instead of round brackets or parentheses (). I guess that the change must be done in SAGE, so that the latex()- command produces matrices w

[sage-support] LaTeX problem

2008-12-08 Thread acardh
I am working in the Sage Notebook, I can reproduce the Taylor Series example as is. The LaTeX works fine there. I took the next line from the Sage reference book, from the Latex printing support section: \tan^{-1} x The problem is that when I put it in the Notebook cell I get an error: SyntaxE

[sage-support] latex output for real numbers without zeros at the end

2008-11-07 Thread [EMAIL PROTECTED]
-- Hi, i browsed the support but i found just an equal question (fixing precision for real and complex and sliders) without answer. If i do the show command on a formula where real numbers are involved the numbers are printed with many zeros at the end. Is there an option to truncate this zeros

[sage-support] latex of acos

2008-10-01 Thread pragma
hi, im new to sage :) the latex output of arccos(x), arcsin etc. is \cos^{-1} \left( x \right) can i change this \arccos sry. for my english --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this gro

[sage-support] Latex of a product of polynomials with simplification

2008-08-23 Thread Shing Hing Man
Hi, Consider polynomials f = 1 +t + 2*t^2 g=1+t over R. = PolynomialRing(GF(7)); How to get the Latex expression of fg without expanding the product ? ie (1 + t + 2 t^{2}) (1+t) . latex( fg) returns 2 t^{3} + 3 t^{2} + 2 t + 1 Thanks in advance for any assistance! I am using Sage 3.0,6.

[sage-support] latex-hyperlinks not working

2008-08-18 Thread Maike
Hello, I'm writing some latex-text in Sage and am trying to put a web-link into it. Usually in latex the commands \htmladdnormallink and \htmladdimg do the job. Here however that's not working. %latex \htmladdnormallink{}{} Does anyone know which command will work? Thank

[sage-support] latex

2008-05-31 Thread Alyson Deines
I'm running sage version 3.0.2 on kubuntu. I'm having trouble using Latex in notebook (and I've check and I do have pdflatex installed) When I evaluate: %latex The equation $y^2 = x^3 + x$ defines an elliptic curve. We have $2006 = \sage{factor(2006)}$. I get the following error: An error occ

[sage-support] LaTeX escape characters?

2008-05-24 Thread Scot
It seems that when I try to display LaTeX code in SAGE, it's eating up some of the characters. Here is the Latex code I want to display: L = "An ordered field is a field $F$ which is also an ordered set, such that \\ \textbf{(i)} $x+y0$ if $x,y \in F$, and $x,y>0$." 'An ordered field is a fiel

[sage-support] (latex(a\v), a) gives an error about calling something with too many arguments.

2008-05-09 Thread Jason Grout
Hi all, sage: a=matrix(QQ,3,3,range(9)) sage: v=matrix(QQ,3,1,range(3)) sage: (latex(a\v), a) gives an error. I think it has to do with the parsing of latex(a\v); it seems to try doing "(latex(a._backslash_(v), a)" (note the missing parenthesis in the call to latex. You see this more detaile

[sage-support] %latex broken in notebook

2007-03-09 Thread Mark Wooding
I'm using the Linux prebuilt binary of version 2.3, with Debian IceWeasel 2.0.0.1. Any attempt to use \sage{...} in a %latex cell (at leastreports `source must be a string' and typesets [... undefined]. This is due to a bug in misc/sage_eval.py, which insists its argument be a `str'; unfortunat

[sage-support] latex in docstrings in notebook

2007-01-30 Thread Timothy Clemans
I think it would be nice if the notebook presented latex in docstrings using jsMath. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit thi