Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-04 Thread John H Palmieri
Can you please post that LaTeX file? I get a file which is missing 
"\usepackage{tkz-graph}" and hence fails to compile. If I add that line, it 
produces the same LaTeX error that I've been seeing all along.

And yes, the LaTeX file is hidden — it's temporary and is removed when Sage 
quits. You don't want to produce permanent LaTeX and PDF files every time 
you run a "view" command, so these are temporary by design. 

On Saturday, June 4, 2022 at 10:38:07 AM UTC-7 raymond@gmail.com wrote:

> Well, I found a usable .tex file :)  My interpretation is that the "real" 
> .tex file is hidden.  Presumably that can be fixed?
> Code:
> -
>
>
> B = crystals.Tableaux(['A',2], shape=[2,1])
> G = B.digraph()
>
> fn = tmp_filename(ext='.tex')
> B.latex_file(fn)
> #show(B.latex_file)
> view(G)
> print(B)
> print(G)
> -
> fn
> -
>
> '/home/rrogers/.sage/temp/rrogers-desktop/103238/tmp_j8izjh3_.tex'
> --
> ~/.sage/temp/rrogers-desktop/103238: pdflatex tmp_j*texq
> blah...blah
> output written on tmp_j8izjh3_.pdf (1 page, 11580 bytes)
> --
> Which displays; although it's not horribly happy :)   (But latex is seldom 
> 'horribly happy' in my experience)
> --
>
>
> On 6/4/22 12:37, John H Palmieri wrote:
>
> For any Sage object, the code for "view" first constructs a LaTeX version 
> and then runs pdflatex (or similar) on it. For crystals, the code to 
> produce the LaTeX is this:
>
> G = self.digraph()
> G.set_latex_options(**options)
> return G._latex_()
>
> (from sage.categories.crystals). So view(B) converts B to a digraph and 
> then turns that into LaTeX. So it's essentially equivalent to your 
> suggestion:
>
> B = crystals.Tableaux(...)
> G = B.digraph()
> view(G)
>
> I see the same error with either view(B) or view(G) at this point. I can 
> get a picture using "G.plot()" or "B.plot()", but it's not coming from 
> LaTeX.
>
> On Saturday, June 4, 2022 at 5:49:19 AM UTC-7 raymond@gmail.com wrote:
>
>> I think I have it; "view" expects  a "digraph"  not a "crystal"
>> Try
>> -
>> #%%Latex
>>
>>
>> B = crystals.Tableaux(['A',2], shape=[2,1])
>> G = B.digraph()
>>
>> view(G)
>> print(B)
>> print(G)
>> ---
>>
>> Returns popup graph and inpage text
>> -
>> The crystal of tableaux of type ['A', 2] and shape(s) [[2, 1]]
>> Digraph on 8 vertices
>> -
>> Although there is a Latex (digraph ?) error 
>> Try
>> -
>> %%latex
>>
>>
>> B = crystals.Tableaux(['A',2], shape=[2,1])
>> G = B.digraph()
>>
>> view(G)
>> print(B)
>> print(G)
>> --
>>
>> Gives inpage; and nothing else
>> --B = crystals.Tableaux(['A',2], shape=[2,1]) G = B.digraph() view(G) 
>> print(B) print(G)
>> -
>>
>> rrogers
>>
>>
>>
>>
>>
>> On 6/4/22 00:03, John H Palmieri wrote:
>>
>> Here is a workaround, or at least it works for me. The LaTeX code for the 
>> labels seems to be the issue.
>>
>> sage: B = crystals.Tableaux(['A',2], shape=[2,1])
>> sage: G = B.digraph()
>> sage: G.set_latex_options(vertex_labels_math=False)
>> sage: view(G)
>>
>> On Thursday, June 2, 2022 at 4:06:26 PM UTC-7 John H Palmieri wrote:
>>
>>> I've opened https://trac.sagemath.org/ticket/33947 to trac this problem.
>>>
>>> On Thursday, June 2, 2022 at 3:30:49 PM UTC-7 John H Palmieri wrote:
>>>
 For me, `show(G)` works, but not `view(G)`. `show(G)` does not use 
 LaTeX, and the problem is the LaTeX code produced by `view(G)`. You can 
 also see that code with `latex(G)` or `latex(B)`.

 I'm not sure what you're referring to in your first sentence, "Well, 
 that didn't work for me."

 On Thursday, June 2, 2022 at 2:11:33 PM UTC-7 raymond@gmail.com 
 wrote:

> Well, that didn't work for me.
> But changing "view" to "show" produced a script that I can tell is 
> targeted for something, not pdflatex.  Let me know if you know; maybe 
> graphviz converter?  Loading doc2tex didn't help.
> Anyhow,  here is a "hack" that pops a popup that is correct.  A 
> wrapper could be built around it.
>
> B = crystals.Tableaux(['A',2], shape=[2,1])
> G = B.digraph()
> G.set_latex_options(color_by_label = {1:"red", 2:"yellow"})
> view(G, tightpage=True) # optional - dot2tex graphviz, not tested 
> (opens external window)
>
> This is from: 
> https://doc.sagemath.org/html/en/thematic_tutorials/lie/crystals.html.
> The file is labeled sage.pdf, but is hidden.  Since the PDF viewer is 
> popped, you can save it where you want; manually.
>
> I am sure that 
> https://doc.sagemath.org/html/en/reference/graphs/sage/graphs/generic_graph.html
> has the key to saving the .PDF programmatically where you want; but I 
> am going cross-eyed.
>
> rrogers
> On 6/2/22 13:01, John H Palmieri wrote:
>
> It's bad LaTeX, but I'm not sure what's producing it. If you run 
> "view(crystals.Tableaux("A3",shape=[2,1]), debug=True)", then it will 
> first 
> print 

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-04 Thread John H Palmieri
For any Sage object, the code for "view" first constructs a LaTeX version 
and then runs pdflatex (or similar) on it. For crystals, the code to 
produce the LaTeX is this:

G = self.digraph()
G.set_latex_options(**options)
return G._latex_()

(from sage.categories.crystals). So view(B) converts B to a digraph and 
then turns that into LaTeX. So it's essentially equivalent to your 
suggestion:

B = crystals.Tableaux(...)
G = B.digraph()
view(G)

I see the same error with either view(B) or view(G) at this point. I can 
get a picture using "G.plot()" or "B.plot()", but it's not coming from 
LaTeX.

On Saturday, June 4, 2022 at 5:49:19 AM UTC-7 raymond@gmail.com wrote:

> I think I have it; "view" expects  a "digraph"  not a "crystal"
> Try
> -
> #%%Latex
>
>
> B = crystals.Tableaux(['A',2], shape=[2,1])
> G = B.digraph()
>
> view(G)
> print(B)
> print(G)
> ---
>
> Returns popup graph and inpage text
> -
> The crystal of tableaux of type ['A', 2] and shape(s) [[2, 1]]
> Digraph on 8 vertices
> -
> Although there is a Latex (digraph ?) error 
> Try
> -
> %%latex
>
>
> B = crystals.Tableaux(['A',2], shape=[2,1])
> G = B.digraph()
>
> view(G)
> print(B)
> print(G)
> --
>
> Gives inpage; and nothing else
> --B = crystals.Tableaux(['A',2], shape=[2,1]) G = B.digraph() view(G) 
> print(B) print(G)
> -
>
> rrogers
>
>
>
>
>
> On 6/4/22 00:03, John H Palmieri wrote:
>
> Here is a workaround, or at least it works for me. The LaTeX code for the 
> labels seems to be the issue.
>
> sage: B = crystals.Tableaux(['A',2], shape=[2,1])
> sage: G = B.digraph()
> sage: G.set_latex_options(vertex_labels_math=False)
> sage: view(G)
>
> On Thursday, June 2, 2022 at 4:06:26 PM UTC-7 John H Palmieri wrote:
>
>> I've opened https://trac.sagemath.org/ticket/33947 to trac this problem.
>>
>> On Thursday, June 2, 2022 at 3:30:49 PM UTC-7 John H Palmieri wrote:
>>
>>> For me, `show(G)` works, but not `view(G)`. `show(G)` does not use 
>>> LaTeX, and the problem is the LaTeX code produced by `view(G)`. You can 
>>> also see that code with `latex(G)` or `latex(B)`.
>>>
>>> I'm not sure what you're referring to in your first sentence, "Well, 
>>> that didn't work for me."
>>>
>>> On Thursday, June 2, 2022 at 2:11:33 PM UTC-7 raymond@gmail.com 
>>> wrote:
>>>
 Well, that didn't work for me.
 But changing "view" to "show" produced a script that I can tell is 
 targeted for something, not pdflatex.  Let me know if you know; maybe 
 graphviz converter?  Loading doc2tex didn't help.
 Anyhow,  here is a "hack" that pops a popup that is correct.  A wrapper 
 could be built around it.

 B = crystals.Tableaux(['A',2], shape=[2,1])
 G = B.digraph()
 G.set_latex_options(color_by_label = {1:"red", 2:"yellow"})
 view(G, tightpage=True) # optional - dot2tex graphviz, not tested 
 (opens external window)

 This is from: 
 https://doc.sagemath.org/html/en/thematic_tutorials/lie/crystals.html.
 The file is labeled sage.pdf, but is hidden.  Since the PDF viewer is 
 popped, you can save it where you want; manually.

 I am sure that 
 https://doc.sagemath.org/html/en/reference/graphs/sage/graphs/generic_graph.html
 has the key to saving the .PDF programmatically where you want; but I 
 am going cross-eyed.

 rrogers
 On 6/2/22 13:01, John H Palmieri wrote:

 It's bad LaTeX, but I'm not sure what's producing it. If you run 
 "view(crystals.Tableaux("A3",shape=[2,1]), debug=True)", then it will 
 first 
 print the LaTeX code, and if you paste that into a file, it will fail to 
 compile.

 On Thursday, June 2, 2022 at 6:42:51 AM UTC-7 HG wrote:

> Some time ago, on the list they said it's better to keep to sage-9.2, 
> at least I changed 9.3 to 9.2 because latex didn't work.
> Le 02/06/2022 à 14:08, Eric Gourgoulhon a écrit :
>
> I got the same error from the console of Sage 9.7.beta1 running on 
> Ubuntu 20.04. 
> So it is not specific to Sage 9.3, nor to Windows...
>
>
>
> Le mercredi 1 juin 2022 à 23:00:05 UTC+2, dbis...@gmail.com a écrit :
>
> I have installed Sagemath 9.3 on my windows 10 computer and have run 
>> the following code: 
>> view(crystals.Tableaux("A3",shape=[2,1]))
>>
>> I end up getting this long error: 
>>
>> An error occurred. This is pdfTeX, Version 3.141592653-2.6-1.40.24 
>> (MiKTeX 22.3) (preloaded format=pdflatex 2022.6.1) 1 JUN 2022 21:54 
>> entering extended mode restricted \write18 enabled. %&-line parsing 
>> enabled. **\nonstopmode \input{sage.tex} (sage.tex 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls 
>> Document Class: article 2021/10/04 v1.4n Standard LaTeX document class 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo 
>> File: size10.clo 2021/10/04 v1.4n 

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-04 Thread Ray Rogers

I think I have it; "view" expects  a "digraph"  not a "crystal"
Try
-
#%%Latex
B = crystals.Tableaux(['A',2], shape=[2,1])
G = B.digraph()
view(G)
print(B)
print(G)
---

Returns popup graph and inpage text
-
The crystal of tableaux of type ['A', 2] and shape(s) [[2, 1]]
Digraph on 8 vertices
-
Although there is a Latex (digraph ?) error
Try
-
%%latex
B = crystals.Tableaux(['A',2], shape=[2,1])
G = B.digraph()
view(G)
print(B)
print(G)
--

Gives inpage; and nothing else
--
B = crystals.Tableaux(['A',2], shape=[2,1]) G = B.digraph() view(G) 
print(B) print(G) -


rrogers




On 6/4/22 00:03, John H Palmieri wrote:
Here is a workaround, or at least it works for me. The LaTeX code for 
the labels seems to be the issue.


sage: B = crystals.Tableaux(['A',2], shape=[2,1])
sage: G = B.digraph()
sage: G.set_latex_options(vertex_labels_math=False)
sage: view(G)

On Thursday, June 2, 2022 at 4:06:26 PM UTC-7 John H Palmieri wrote:

I've opened https://trac.sagemath.org/ticket/33947 to trac this
problem.

On Thursday, June 2, 2022 at 3:30:49 PM UTC-7 John H Palmieri wrote:

For me, `show(G)` works, but not `view(G)`. `show(G)` does not
use LaTeX, and the problem is the LaTeX code produced by
`view(G)`. You can also see that code with `latex(G)` or
`latex(B)`.

I'm not sure what you're referring to in your first sentence,
"Well, that didn't work for me."

On Thursday, June 2, 2022 at 2:11:33 PM UTC-7
raymond@gmail.com wrote:

Well, that didn't work for me.
But changing "view" to "show" produced a script that I can
tell is targeted for something, not pdflatex.  Let me know
if you know; maybe graphviz converter?  Loading doc2tex
didn't help.
Anyhow,  here is a "hack" that pops a popup that is
correct.  A wrapper could be built around it.

B = crystals.Tableaux(['A',2], shape=[2,1])
G = B.digraph()
G.set_latex_options(color_by_label = {1:"red", 2:"yellow"})
view(G, tightpage=True) # optional - dot2tex graphviz, not
tested (opens external window)

This is from:

https://doc.sagemath.org/html/en/thematic_tutorials/lie/crystals.html.
The file is labeled sage.pdf, but is hidden. Since the PDF
viewer is popped, you can save it where you want; manually.

I am sure that

https://doc.sagemath.org/html/en/reference/graphs/sage/graphs/generic_graph.html
has the key to saving the .PDF programmatically where you
want; but I am going cross-eyed.

rrogers

On 6/2/22 13:01, John H Palmieri wrote:

It's bad LaTeX, but I'm not sure what's producing it. If
you run "view(crystals.Tableaux("A3",shape=[2,1]),
debug=True)", then it will first print the LaTeX code,
and if you paste that into a file, it will fail to compile.

On Thursday, June 2, 2022 at 6:42:51 AM UTC-7 HG wrote:

Some time ago, on the list they said it's better to
keep to sage-9.2, at least I changed 9.3 to 9.2
because latex didn't work.

Le 02/06/2022 à 14:08, Eric Gourgoulhon a écrit :

I got the same error from the console of Sage
9.7.beta1 running on Ubuntu 20.04.
So it is not specific to Sage 9.3, nor to Windows...



Le mercredi 1 juin 2022 à 23:00:05 UTC+2,
dbis...@gmail.com a écrit :

I have installed Sagemath 9.3 on my windows 10
computer and have run the following code:
view(crystals.Tableaux("A3",shape=[2,1]))

I end up getting this long error:

An error occurred. This is pdfTeX, Version
3.141592653-2.6-1.40.24 (MiKTeX 22.3) (preloaded
format=pdflatex 2022.6.1) 1 JUN 2022 21:54
entering extended mode restricted \write18
enabled. %&-line parsing enabled. **\nonstopmode
\input{sage.tex} (sage.tex

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls
Document Class: article 2021/10/04 v1.4n
Standard LaTeX document class

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo
File: size10.clo 2021/10/04 v1.4n Standard LaTeX
file (size option) ) \c@part=\count185
\c@section=\count186 \c@subsection=\count187
\c@subsubsection=\count188
\c@paragraph=\count189 \c@subparagraph=\count190
\c@figure=\count191 \c@table=\count192
\abovecaptionskip=\skip47
  

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-03 Thread John H Palmieri
Here is a workaround, or at least it works for me. The LaTeX code for the 
labels seems to be the issue.

sage: B = crystals.Tableaux(['A',2], shape=[2,1])
sage: G = B.digraph()
sage: G.set_latex_options(vertex_labels_math=False)
sage: view(G)

On Thursday, June 2, 2022 at 4:06:26 PM UTC-7 John H Palmieri wrote:

> I've opened https://trac.sagemath.org/ticket/33947 to trac this problem.
>
> On Thursday, June 2, 2022 at 3:30:49 PM UTC-7 John H Palmieri wrote:
>
>> For me, `show(G)` works, but not `view(G)`. `show(G)` does not use LaTeX, 
>> and the problem is the LaTeX code produced by `view(G)`. You can also see 
>> that code with `latex(G)` or `latex(B)`.
>>
>> I'm not sure what you're referring to in your first sentence, "Well, that 
>> didn't work for me."
>>
>> On Thursday, June 2, 2022 at 2:11:33 PM UTC-7 raymond@gmail.com 
>> wrote:
>>
>>> Well, that didn't work for me.
>>> But changing "view" to "show" produced a script that I can tell is 
>>> targeted for something, not pdflatex.  Let me know if you know; maybe 
>>> graphviz converter?  Loading doc2tex didn't help.
>>> Anyhow,  here is a "hack" that pops a popup that is correct.  A wrapper 
>>> could be built around it.
>>>
>>> B = crystals.Tableaux(['A',2], shape=[2,1])
>>> G = B.digraph()
>>> G.set_latex_options(color_by_label = {1:"red", 2:"yellow"})
>>> view(G, tightpage=True) # optional - dot2tex graphviz, not tested (opens 
>>> external window)
>>>
>>> This is from: 
>>> https://doc.sagemath.org/html/en/thematic_tutorials/lie/crystals.html.
>>> The file is labeled sage.pdf, but is hidden.  Since the PDF viewer is 
>>> popped, you can save it where you want; manually.
>>>
>>> I am sure that 
>>> https://doc.sagemath.org/html/en/reference/graphs/sage/graphs/generic_graph.html
>>> has the key to saving the .PDF programmatically where you want; but I am 
>>> going cross-eyed.
>>>
>>> rrogers
>>> On 6/2/22 13:01, John H Palmieri wrote:
>>>
>>> It's bad LaTeX, but I'm not sure what's producing it. If you run 
>>> "view(crystals.Tableaux("A3",shape=[2,1]), debug=True)", then it will first 
>>> print the LaTeX code, and if you paste that into a file, it will fail to 
>>> compile.
>>>
>>> On Thursday, June 2, 2022 at 6:42:51 AM UTC-7 HG wrote:
>>>
 Some time ago, on the list they said it's better to keep to sage-9.2, 
 at least I changed 9.3 to 9.2 because latex didn't work.
 Le 02/06/2022 à 14:08, Eric Gourgoulhon a écrit :

 I got the same error from the console of Sage 9.7.beta1 running on 
 Ubuntu 20.04. 
 So it is not specific to Sage 9.3, nor to Windows...



 Le mercredi 1 juin 2022 à 23:00:05 UTC+2, dbis...@gmail.com a écrit :

 I have installed Sagemath 9.3 on my windows 10 computer and have run 
> the following code: 
> view(crystals.Tableaux("A3",shape=[2,1]))
>
> I end up getting this long error: 
>
> An error occurred. This is pdfTeX, Version 3.141592653-2.6-1.40.24 
> (MiKTeX 22.3) (preloaded format=pdflatex 2022.6.1) 1 JUN 2022 21:54 
> entering extended mode restricted \write18 enabled. %&-line parsing 
> enabled. **\nonstopmode \input{sage.tex} (sage.tex 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls 
> Document Class: article 2021/10/04 v1.4n Standard LaTeX document class 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo 
> File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size option) ) 
> \c@part=\count185 \c@section=\count186 \c@subsection=\count187 
> \c@subsubsection=\count188 \c@paragraph=\count189 
> \c@subparagraph=\count190 
> \c@figure=\count191 \c@table=\count192 \abovecaptionskip=\skip47 
> \belowcaptionskip=\skip48 \bibindent=\dimen138 ) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsmath.sty
>  
> Package: amsmath 2021/10/15 v2.17l AMS math features \@mathmargin=\skip49 
> For additional information on amsmath, use the `?' option. 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amstext.sty
>  
> Package: amstext 2021/08/26 v2.01 AMS text 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsgen.sty
>  
> File: amsgen.sty 1999/11/30 v2.0 generic functions \@emptytoks=\toks16 
> \ex@=\dimen139 )) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsbsy.sty
>  
> Package: amsbsy 1999/11/29 v1.2d Bold Symbols \pmbraise@=\dimen140 ) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsopn.sty
>  
> Package: amsopn 2021/08/26 v2.02 operator names ) \inf@bad=\count193 
> LaTeX 
> Info: Redefining \frac on input line 234. \uproot@=\count194 
> \leftroot@=\count195 LaTeX Info: Redefining \overline on input line 399. 
> \classnum@=\count196 \DOTSCASE@=\count197 LaTeX Info: Redefining \ldots 
> on 
> input line 496. LaTeX Info: Redefining \dots on input line 499. 

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-02 Thread John H Palmieri
I've opened https://trac.sagemath.org/ticket/33947 to trac this problem.

On Thursday, June 2, 2022 at 3:30:49 PM UTC-7 John H Palmieri wrote:

> For me, `show(G)` works, but not `view(G)`. `show(G)` does not use LaTeX, 
> and the problem is the LaTeX code produced by `view(G)`. You can also see 
> that code with `latex(G)` or `latex(B)`.
>
> I'm not sure what you're referring to in your first sentence, "Well, that 
> didn't work for me."
>
> On Thursday, June 2, 2022 at 2:11:33 PM UTC-7 raymond@gmail.com wrote:
>
>> Well, that didn't work for me.
>> But changing "view" to "show" produced a script that I can tell is 
>> targeted for something, not pdflatex.  Let me know if you know; maybe 
>> graphviz converter?  Loading doc2tex didn't help.
>> Anyhow,  here is a "hack" that pops a popup that is correct.  A wrapper 
>> could be built around it.
>>
>> B = crystals.Tableaux(['A',2], shape=[2,1])
>> G = B.digraph()
>> G.set_latex_options(color_by_label = {1:"red", 2:"yellow"})
>> view(G, tightpage=True) # optional - dot2tex graphviz, not tested (opens 
>> external window)
>>
>> This is from: 
>> https://doc.sagemath.org/html/en/thematic_tutorials/lie/crystals.html.
>> The file is labeled sage.pdf, but is hidden.  Since the PDF viewer is 
>> popped, you can save it where you want; manually.
>>
>> I am sure that 
>> https://doc.sagemath.org/html/en/reference/graphs/sage/graphs/generic_graph.html
>> has the key to saving the .PDF programmatically where you want; but I am 
>> going cross-eyed.
>>
>> rrogers
>> On 6/2/22 13:01, John H Palmieri wrote:
>>
>> It's bad LaTeX, but I'm not sure what's producing it. If you run 
>> "view(crystals.Tableaux("A3",shape=[2,1]), debug=True)", then it will first 
>> print the LaTeX code, and if you paste that into a file, it will fail to 
>> compile.
>>
>> On Thursday, June 2, 2022 at 6:42:51 AM UTC-7 HG wrote:
>>
>>> Some time ago, on the list they said it's better to keep to sage-9.2, at 
>>> least I changed 9.3 to 9.2 because latex didn't work.
>>> Le 02/06/2022 à 14:08, Eric Gourgoulhon a écrit :
>>>
>>> I got the same error from the console of Sage 9.7.beta1 running on 
>>> Ubuntu 20.04. 
>>> So it is not specific to Sage 9.3, nor to Windows...
>>>
>>>
>>>
>>> Le mercredi 1 juin 2022 à 23:00:05 UTC+2, dbis...@gmail.com a écrit :
>>>
>>> I have installed Sagemath 9.3 on my windows 10 computer and have run the 
 following code: 
 view(crystals.Tableaux("A3",shape=[2,1]))

 I end up getting this long error: 

 An error occurred. This is pdfTeX, Version 3.141592653-2.6-1.40.24 
 (MiKTeX 22.3) (preloaded format=pdflatex 2022.6.1) 1 JUN 2022 21:54 
 entering extended mode restricted \write18 enabled. %&-line parsing 
 enabled. **\nonstopmode \input{sage.tex} (sage.tex 
 (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls 
 Document Class: article 2021/10/04 v1.4n Standard LaTeX document class 
 (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo 
 File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size option) ) 
 \c@part=\count185 \c@section=\count186 \c@subsection=\count187 
 \c@subsubsection=\count188 \c@paragraph=\count189 
 \c@subparagraph=\count190 
 \c@figure=\count191 \c@table=\count192 \abovecaptionskip=\skip47 
 \belowcaptionskip=\skip48 \bibindent=\dimen138 ) 
 (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsmath.sty
  
 Package: amsmath 2021/10/15 v2.17l AMS math features \@mathmargin=\skip49 
 For additional information on amsmath, use the `?' option. 
 (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amstext.sty
  
 Package: amstext 2021/08/26 v2.01 AMS text 
 (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsgen.sty 
 File: amsgen.sty 1999/11/30 v2.0 generic functions \@emptytoks=\toks16 
 \ex@=\dimen139 )) 
 (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsbsy.sty 
 Package: amsbsy 1999/11/29 v1.2d Bold Symbols \pmbraise@=\dimen140 ) 
 (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsopn.sty 
 Package: amsopn 2021/08/26 v2.02 operator names ) \inf@bad=\count193 LaTeX 
 Info: Redefining \frac on input line 234. \uproot@=\count194 
 \leftroot@=\count195 LaTeX Info: Redefining \overline on input line 399. 
 \classnum@=\count196 \DOTSCASE@=\count197 LaTeX Info: Redefining \ldots on 
 input line 496. LaTeX Info: Redefining \dots on input line 499. LaTeX 
 Info: 
 Redefining \cdots on input line 620. \Mathstrutbox@=\box50 
 \strutbox@=\box51 \big@size=\dimen141 LaTeX Font Info: Redeclaring font 
 encoding OML on input line 743. LaTeX Font Info: Redeclaring font encoding 
 OMS on input line 744. \macc@depth=\count198 \c@MaxMatrixCols=\count199 
 \dotsspace@=\muskip16 \c@parentequation=\count266 \dspbrk@lvl=\count267 
 \tag@help=\toks17 \row@=\count268 

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-02 Thread John H Palmieri
For me, `show(G)` works, but not `view(G)`. `show(G)` does not use LaTeX, 
and the problem is the LaTeX code produced by `view(G)`. You can also see 
that code with `latex(G)` or `latex(B)`.

I'm not sure what you're referring to in your first sentence, "Well, that 
didn't work for me."

On Thursday, June 2, 2022 at 2:11:33 PM UTC-7 raymond@gmail.com wrote:

> Well, that didn't work for me.
> But changing "view" to "show" produced a script that I can tell is 
> targeted for something, not pdflatex.  Let me know if you know; maybe 
> graphviz converter?  Loading doc2tex didn't help.
> Anyhow,  here is a "hack" that pops a popup that is correct.  A wrapper 
> could be built around it.
>
> B = crystals.Tableaux(['A',2], shape=[2,1])
> G = B.digraph()
> G.set_latex_options(color_by_label = {1:"red", 2:"yellow"})
> view(G, tightpage=True) # optional - dot2tex graphviz, not tested (opens 
> external window)
>
> This is from: 
> https://doc.sagemath.org/html/en/thematic_tutorials/lie/crystals.html.
> The file is labeled sage.pdf, but is hidden.  Since the PDF viewer is 
> popped, you can save it where you want; manually.
>
> I am sure that 
> https://doc.sagemath.org/html/en/reference/graphs/sage/graphs/generic_graph.html
> has the key to saving the .PDF programmatically where you want; but I am 
> going cross-eyed.
>
> rrogers
> On 6/2/22 13:01, John H Palmieri wrote:
>
> It's bad LaTeX, but I'm not sure what's producing it. If you run 
> "view(crystals.Tableaux("A3",shape=[2,1]), debug=True)", then it will first 
> print the LaTeX code, and if you paste that into a file, it will fail to 
> compile.
>
> On Thursday, June 2, 2022 at 6:42:51 AM UTC-7 HG wrote:
>
>> Some time ago, on the list they said it's better to keep to sage-9.2, at 
>> least I changed 9.3 to 9.2 because latex didn't work.
>> Le 02/06/2022 à 14:08, Eric Gourgoulhon a écrit :
>>
>> I got the same error from the console of Sage 9.7.beta1 running on Ubuntu 
>> 20.04. 
>> So it is not specific to Sage 9.3, nor to Windows...
>>
>>
>>
>> Le mercredi 1 juin 2022 à 23:00:05 UTC+2, dbis...@gmail.com a écrit :
>>
>> I have installed Sagemath 9.3 on my windows 10 computer and have run the 
>>> following code: 
>>> view(crystals.Tableaux("A3",shape=[2,1]))
>>>
>>> I end up getting this long error: 
>>>
>>> An error occurred. This is pdfTeX, Version 3.141592653-2.6-1.40.24 
>>> (MiKTeX 22.3) (preloaded format=pdflatex 2022.6.1) 1 JUN 2022 21:54 
>>> entering extended mode restricted \write18 enabled. %&-line parsing 
>>> enabled. **\nonstopmode \input{sage.tex} (sage.tex 
>>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls 
>>> Document Class: article 2021/10/04 v1.4n Standard LaTeX document class 
>>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo 
>>> File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size option) ) 
>>> \c@part=\count185 \c@section=\count186 \c@subsection=\count187 
>>> \c@subsubsection=\count188 \c@paragraph=\count189 \c@subparagraph=\count190 
>>> \c@figure=\count191 \c@table=\count192 \abovecaptionskip=\skip47 
>>> \belowcaptionskip=\skip48 \bibindent=\dimen138 ) 
>>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsmath.sty 
>>> Package: amsmath 2021/10/15 v2.17l AMS math features \@mathmargin=\skip49 
>>> For additional information on amsmath, use the `?' option. 
>>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amstext.sty 
>>> Package: amstext 2021/08/26 v2.01 AMS text 
>>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsgen.sty 
>>> File: amsgen.sty 1999/11/30 v2.0 generic functions \@emptytoks=\toks16 
>>> \ex@=\dimen139 )) 
>>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsbsy.sty 
>>> Package: amsbsy 1999/11/29 v1.2d Bold Symbols \pmbraise@=\dimen140 ) 
>>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsopn.sty 
>>> Package: amsopn 2021/08/26 v2.02 operator names ) \inf@bad=\count193 LaTeX 
>>> Info: Redefining \frac on input line 234. \uproot@=\count194 
>>> \leftroot@=\count195 LaTeX Info: Redefining \overline on input line 399. 
>>> \classnum@=\count196 \DOTSCASE@=\count197 LaTeX Info: Redefining \ldots on 
>>> input line 496. LaTeX Info: Redefining \dots on input line 499. LaTeX Info: 
>>> Redefining \cdots on input line 620. \Mathstrutbox@=\box50 
>>> \strutbox@=\box51 \big@size=\dimen141 LaTeX Font Info: Redeclaring font 
>>> encoding OML on input line 743. LaTeX Font Info: Redeclaring font encoding 
>>> OMS on input line 744. \macc@depth=\count198 \c@MaxMatrixCols=\count199 
>>> \dotsspace@=\muskip16 \c@parentequation=\count266 \dspbrk@lvl=\count267 
>>> \tag@help=\toks17 \row@=\count268 \column@=\count269 \maxfields@=\count270 
>>> \andhelp@=\toks18 \eqnshift@=\dimen142 \alignsep@=\dimen143 
>>> \tagshift@=\dimen144 \tagwidth@=\dimen145 \totwidth@=\dimen146 
>>> \lineht@=\dimen147 \@envbody=\toks19 \multlinegap=\skip50 
>>> \multlinetaggap=\skip51 

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-02 Thread Ray Rogers

Well, that didn't work for me.
But changing "view" to "show" produced a script that I can tell is 
targeted for something, not pdflatex.  Let me know if you know; maybe 
graphviz converter?  Loading doc2tex didn't help.
Anyhow,  here is a "hack" that pops a popup that is correct.  A wrapper 
could be built around it.


B = crystals.Tableaux(['A',2], shape=[2,1])
G = B.digraph()
G.set_latex_options(color_by_label = {1:"red", 2:"yellow"})
view(G, tightpage=True) # optional - dot2tex graphviz, not tested (opens 
external window)


This is from: 
https://doc.sagemath.org/html/en/thematic_tutorials/lie/crystals.html.
The file is labeled sage.pdf, but is hidden.  Since the PDF viewer is 
popped, you can save it where you want; manually.


I am sure that 
https://doc.sagemath.org/html/en/reference/graphs/sage/graphs/generic_graph.html
has the key to saving the .PDF programmatically where you want; but I am 
going cross-eyed.


rrogers

On 6/2/22 13:01, John H Palmieri wrote:
It's bad LaTeX, but I'm not sure what's producing it. If you run 
"view(crystals.Tableaux("A3",shape=[2,1]), debug=True)", then it will 
first print the LaTeX code, and if you paste that into a file, it will 
fail to compile.


On Thursday, June 2, 2022 at 6:42:51 AM UTC-7 HG wrote:

Some time ago, on the list they said it's better to keep to
sage-9.2, at least I changed 9.3 to 9.2 because latex didn't work.

Le 02/06/2022 à 14:08, Eric Gourgoulhon a écrit :

I got the same error from the console of Sage 9.7.beta1 running
on Ubuntu 20.04.
So it is not specific to Sage 9.3, nor to Windows...



Le mercredi 1 juin 2022 à 23:00:05 UTC+2, dbis...@gmail.com a écrit :

I have installed Sagemath 9.3 on my windows 10 computer and
have run the following code:
view(crystals.Tableaux("A3",shape=[2,1]))

I end up getting this long error:

An error occurred. This is pdfTeX, Version
3.141592653-2.6-1.40.24 (MiKTeX 22.3) (preloaded
format=pdflatex 2022.6.1) 1 JUN 2022 21:54 entering extended
mode restricted \write18 enabled. %&-line parsing enabled.
**\nonstopmode \input{sage.tex} (sage.tex
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX
document class
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo
File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size
option) ) \c@part=\count185 \c@section=\count186
\c@subsection=\count187 \c@subsubsection=\count188
\c@paragraph=\count189 \c@subparagraph=\count190
\c@figure=\count191 \c@table=\count192
\abovecaptionskip=\skip47 \belowcaptionskip=\skip48
\bibindent=\dimen138 )

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsmath.sty
Package: amsmath 2021/10/15 v2.17l AMS math features
\@mathmargin=\skip49 For additional information on amsmath,
use the `?' option.

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amstext.sty
Package: amstext 2021/08/26 v2.01 AMS text

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks16 \ex@=\dimen139 ))

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen140 )

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsopn.sty
Package: amsopn 2021/08/26 v2.02 operator names )
\inf@bad=\count193 LaTeX Info: Redefining \frac on input line
234. \uproot@=\count194 \leftroot@=\count195 LaTeX Info:
Redefining \overline on input line 399. \classnum@=\count196
\DOTSCASE@=\count197 LaTeX Info: Redefining \ldots on input
line 496. LaTeX Info: Redefining \dots on input line 499.
LaTeX Info: Redefining \cdots on input line 620.
\Mathstrutbox@=\box50 \strutbox@=\box51 \big@size=\dimen141
LaTeX Font Info: Redeclaring font encoding OML on input line
743. LaTeX Font Info: Redeclaring font encoding OMS on input
line 744. \macc@depth=\count198 \c@MaxMatrixCols=\count199
\dotsspace@=\muskip16 \c@parentequation=\count266
\dspbrk@lvl=\count267 \tag@help=\toks17 \row@=\count268
\column@=\count269 \maxfields@=\count270 \andhelp@=\toks18
\eqnshift@=\dimen142 \alignsep@=\dimen143
\tagshift@=\dimen144 \tagwidth@=\dimen145
\totwidth@=\dimen146 \lineht@=\dimen147 \@envbody=\toks19
\multlinegap=\skip50 \multlinetaggap=\skip51
\mathdisplay@stack=\toks20 LaTeX Info: Redefining \[ on input
line 2938. LaTeX Info: Redefining \] on input line 2939. )

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amssymb.sty
Package: 

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-02 Thread John H Palmieri
It's bad LaTeX, but I'm not sure what's producing it. If you run 
"view(crystals.Tableaux("A3",shape=[2,1]), debug=True)", then it will first 
print the LaTeX code, and if you paste that into a file, it will fail to 
compile.

On Thursday, June 2, 2022 at 6:42:51 AM UTC-7 HG wrote:

> Some time ago, on the list they said it's better to keep to sage-9.2, at 
> least I changed 9.3 to 9.2 because latex didn't work.
> Le 02/06/2022 à 14:08, Eric Gourgoulhon a écrit :
>
> I got the same error from the console of Sage 9.7.beta1 running on Ubuntu 
> 20.04. 
> So it is not specific to Sage 9.3, nor to Windows...
>
>
>
> Le mercredi 1 juin 2022 à 23:00:05 UTC+2, dbis...@gmail.com a écrit :
>
> I have installed Sagemath 9.3 on my windows 10 computer and have run the 
>> following code: 
>> view(crystals.Tableaux("A3",shape=[2,1]))
>>
>> I end up getting this long error: 
>>
>> An error occurred. This is pdfTeX, Version 3.141592653-2.6-1.40.24 
>> (MiKTeX 22.3) (preloaded format=pdflatex 2022.6.1) 1 JUN 2022 21:54 
>> entering extended mode restricted \write18 enabled. %&-line parsing 
>> enabled. **\nonstopmode \input{sage.tex} (sage.tex 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls 
>> Document Class: article 2021/10/04 v1.4n Standard LaTeX document class 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo 
>> File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size option) ) 
>> \c@part=\count185 \c@section=\count186 \c@subsection=\count187 
>> \c@subsubsection=\count188 \c@paragraph=\count189 \c@subparagraph=\count190 
>> \c@figure=\count191 \c@table=\count192 \abovecaptionskip=\skip47 
>> \belowcaptionskip=\skip48 \bibindent=\dimen138 ) 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsmath.sty 
>> Package: amsmath 2021/10/15 v2.17l AMS math features \@mathmargin=\skip49 
>> For additional information on amsmath, use the `?' option. 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amstext.sty 
>> Package: amstext 2021/08/26 v2.01 AMS text 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsgen.sty 
>> File: amsgen.sty 1999/11/30 v2.0 generic functions \@emptytoks=\toks16 
>> \ex@=\dimen139 )) 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsbsy.sty 
>> Package: amsbsy 1999/11/29 v1.2d Bold Symbols \pmbraise@=\dimen140 ) 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsopn.sty 
>> Package: amsopn 2021/08/26 v2.02 operator names ) \inf@bad=\count193 LaTeX 
>> Info: Redefining \frac on input line 234. \uproot@=\count194 
>> \leftroot@=\count195 LaTeX Info: Redefining \overline on input line 399. 
>> \classnum@=\count196 \DOTSCASE@=\count197 LaTeX Info: Redefining \ldots on 
>> input line 496. LaTeX Info: Redefining \dots on input line 499. LaTeX Info: 
>> Redefining \cdots on input line 620. \Mathstrutbox@=\box50 
>> \strutbox@=\box51 \big@size=\dimen141 LaTeX Font Info: Redeclaring font 
>> encoding OML on input line 743. LaTeX Font Info: Redeclaring font encoding 
>> OMS on input line 744. \macc@depth=\count198 \c@MaxMatrixCols=\count199 
>> \dotsspace@=\muskip16 \c@parentequation=\count266 \dspbrk@lvl=\count267 
>> \tag@help=\toks17 \row@=\count268 \column@=\count269 \maxfields@=\count270 
>> \andhelp@=\toks18 \eqnshift@=\dimen142 \alignsep@=\dimen143 
>> \tagshift@=\dimen144 \tagwidth@=\dimen145 \totwidth@=\dimen146 
>> \lineht@=\dimen147 \@envbody=\toks19 \multlinegap=\skip50 
>> \multlinetaggap=\skip51 \mathdisplay@stack=\toks20 LaTeX Info: Redefining 
>> \[ on input line 2938. LaTeX Info: Redefining \] on input line 2939. ) 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amssymb.sty 
>> Package: amssymb 2013/01/14 v3.01 AMS font symbols 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amsfonts.sty
>>  
>> Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support 
>> \symAMSa=\mathgroup4 \symAMSb=\mathgroup5 LaTeX Font Info: Redeclaring math 
>> symbol \hbar on input line 98. LaTeX Font Info: Overwriting math alphabet 
>> `\mathfrak' in version `bold' (Font) U/euf/m/n --> U/euf/b/n on input line 
>> 106. )) (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\
>> graphicx.st y Package: graphicx 2021/09/16 v1.2d Enhanced LaTeX Graphics 
>> (DPC,SPQR) 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\keyval.sty 
>> Package: keyval 2014/10/28 v1.15 key=value parser (DPC) \KV@toks@=\toks21 ) 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\graphics.sty
>>  
>> Package: graphics 2021/03/04 v1.4d Standard LaTeX Graphics (DPC,SPQR) 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\trig.sty 
>> Package: trig 2021/08/11 v1.11 sin cos tan (DPC) ) 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics-cfg\graphics.c
>>  
>> fg File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration ) 
>> Package graphics Info: Driver file: 

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-02 Thread Henri Girard
Some time ago, on the list they said it's better to keep to sage-9.2, at 
least I changed 9.3 to 9.2 because latex didn't work.


Le 02/06/2022 à 14:08, Eric Gourgoulhon a écrit :
I got the same error from the console of Sage 9.7.beta1 running on 
Ubuntu 20.04.

So it is not specific to Sage 9.3, nor to Windows...



Le mercredi 1 juin 2022 à 23:00:05 UTC+2, dbis...@gmail.com a écrit :

I have installed Sagemath 9.3 on my windows 10 computer and have
run the following code:
view(crystals.Tableaux("A3",shape=[2,1]))

I end up getting this long error:

An error occurred. This is pdfTeX, Version 3.141592653-2.6-1.40.24
(MiKTeX 22.3) (preloaded format=pdflatex 2022.6.1) 1 JUN 2022
21:54 entering extended mode restricted \write18 enabled. %&-line
parsing enabled. **\nonstopmode \input{sage.tex} (sage.tex
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document
class
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo
File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size
option) ) \c@part=\count185 \c@section=\count186
\c@subsection=\count187 \c@subsubsection=\count188
\c@paragraph=\count189 \c@subparagraph=\count190
\c@figure=\count191 \c@table=\count192 \abovecaptionskip=\skip47
\belowcaptionskip=\skip48 \bibindent=\dimen138 )
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsmath.sty
Package: amsmath 2021/10/15 v2.17l AMS math features
\@mathmargin=\skip49 For additional information on amsmath, use
the `?' option.
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amstext.sty
Package: amstext 2021/08/26 v2.01 AMS text
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks16 \ex@=\dimen139 ))
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols \pmbraise@=\dimen140
)
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsopn.sty
Package: amsopn 2021/08/26 v2.02 operator names )
\inf@bad=\count193 LaTeX Info: Redefining \frac on input line 234.
\uproot@=\count194 \leftroot@=\count195 LaTeX Info: Redefining
\overline on input line 399. \classnum@=\count196
\DOTSCASE@=\count197 LaTeX Info: Redefining \ldots on input line
496. LaTeX Info: Redefining \dots on input line 499. LaTeX Info:
Redefining \cdots on input line 620. \Mathstrutbox@=\box50
\strutbox@=\box51 \big@size=\dimen141 LaTeX Font Info: Redeclaring
font encoding OML on input line 743. LaTeX Font Info: Redeclaring
font encoding OMS on input line 744. \macc@depth=\count198
\c@MaxMatrixCols=\count199 \dotsspace@=\muskip16
\c@parentequation=\count266 \dspbrk@lvl=\count267
\tag@help=\toks17 \row@=\count268 \column@=\count269
\maxfields@=\count270 \andhelp@=\toks18 \eqnshift@=\dimen142
\alignsep@=\dimen143 \tagshift@=\dimen144 \tagwidth@=\dimen145
\totwidth@=\dimen146 \lineht@=\dimen147 \@envbody=\toks19
\multlinegap=\skip50 \multlinetaggap=\skip51
\mathdisplay@stack=\toks20 LaTeX Info: Redefining \[ on input line
2938. LaTeX Info: Redefining \] on input line 2939. )
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amssymb.sty
Package: amssymb 2013/01/14 v3.01 AMS font symbols

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amsfonts.sty
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\symAMSa=\mathgroup4 \symAMSb=\mathgroup5 LaTeX Font Info:
Redeclaring math symbol \hbar on input line 98. LaTeX Font Info:
Overwriting math alphabet `\mathfrak' in version `bold' (Font)
U/euf/m/n --> U/euf/b/n on input line 106. ))
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\graphicx.st
 y Package: graphicx 2021/09/16 v1.2d Enhanced
LaTeX Graphics (DPC,SPQR)
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks21 )

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\graphics.sty
Package: graphics 2021/03/04 v1.4d Standard LaTeX Graphics
(DPC,SPQR)
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\trig.sty
Package: trig 2021/08/11 v1.11 sin cos tan (DPC) )

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics-cfg\graphics.c
fg File: graphics.cfg 2016/06/04 v1.11 sample graphics
configuration ) Package graphics Info: Driver file: pdftex.def on
input line 107.

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics-def\pdftex.def
File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex
)) \Gin@req@height=\dimen148 \Gin@req@width=\dimen149 )


Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-02 Thread Ray Rogers

Same on Ubuntu 22.04 (I think)
Mate 1.26
Jupyterlab 3.4.2 -- SageMath 9.6  -- Compiled from source - with no 
apparent errors, but I have a make.log from the "make" if requested.

Here is a clip from the output.

"! Emergency stop.

<*> \nonstopmode \input{sage.tex}
 
*** (job aborted, no legal \end found)

"

Which indicates to me that it's not sagemath proper but a documentation file; 
i.e. sage.tex.
This is the first "bomb" I have run across.
I have it open, so I can send the Jupyter output as an attachment; it's quite 
long.

rrogers

On 6/2/22 08:08, Eric Gourgoulhon wrote:
I got the same error from the console of Sage 9.7.beta1 running on 
Ubuntu 20.04.

So it is not specific to Sage 9.3, nor to Windows...



Le mercredi 1 juin 2022 à 23:00:05 UTC+2, dbis...@gmail.com a écrit :

I have installed Sagemath 9.3 on my windows 10 computer and have
run the following code:
view(crystals.Tableaux("A3",shape=[2,1]))

I end up getting this long error:

An error occurred. This is pdfTeX, Version 3.141592653-2.6-1.40.24
(MiKTeX 22.3) (preloaded format=pdflatex 2022.6.1) 1 JUN 2022
21:54 entering extended mode restricted \write18 enabled. %&-line
parsing enabled. **\nonstopmode \input{sage.tex} (sage.tex
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document
class
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo
File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size
option) ) \c@part=\count185 \c@section=\count186
\c@subsection=\count187 \c@subsubsection=\count188
\c@paragraph=\count189 \c@subparagraph=\count190
\c@figure=\count191 \c@table=\count192 \abovecaptionskip=\skip47
\belowcaptionskip=\skip48 \bibindent=\dimen138 )
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsmath.sty
Package: amsmath 2021/10/15 v2.17l AMS math features
\@mathmargin=\skip49 For additional information on amsmath, use
the `?' option.
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amstext.sty
Package: amstext 2021/08/26 v2.01 AMS text
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks16 \ex@=\dimen139 ))
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols \pmbraise@=\dimen140
)
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsopn.sty
Package: amsopn 2021/08/26 v2.02 operator names )
\inf@bad=\count193 LaTeX Info: Redefining \frac on input line 234.
\uproot@=\count194 \leftroot@=\count195 LaTeX Info: Redefining
\overline on input line 399. \classnum@=\count196
\DOTSCASE@=\count197 LaTeX Info: Redefining \ldots on input line
496. LaTeX Info: Redefining \dots on input line 499. LaTeX Info:
Redefining \cdots on input line 620. \Mathstrutbox@=\box50
\strutbox@=\box51 \big@size=\dimen141 LaTeX Font Info: Redeclaring
font encoding OML on input line 743. LaTeX Font Info: Redeclaring
font encoding OMS on input line 744. \macc@depth=\count198
\c@MaxMatrixCols=\count199 \dotsspace@=\muskip16
\c@parentequation=\count266 \dspbrk@lvl=\count267
\tag@help=\toks17 \row@=\count268 \column@=\count269
\maxfields@=\count270 \andhelp@=\toks18 \eqnshift@=\dimen142
\alignsep@=\dimen143 \tagshift@=\dimen144 \tagwidth@=\dimen145
\totwidth@=\dimen146 \lineht@=\dimen147 \@envbody=\toks19
\multlinegap=\skip50 \multlinetaggap=\skip51
\mathdisplay@stack=\toks20 LaTeX Info: Redefining \[ on input line
2938. LaTeX Info: Redefining \] on input line 2939. )
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amssymb.sty
Package: amssymb 2013/01/14 v3.01 AMS font symbols

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amsfonts.sty
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\symAMSa=\mathgroup4 \symAMSb=\mathgroup5 LaTeX Font Info:
Redeclaring math symbol \hbar on input line 98. LaTeX Font Info:
Overwriting math alphabet `\mathfrak' in version `bold' (Font)
U/euf/m/n --> U/euf/b/n on input line 106. ))
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\graphicx.st
 y Package: graphicx 2021/09/16 v1.2d Enhanced
LaTeX Graphics (DPC,SPQR)
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks21 )

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\graphics.sty
Package: graphics 2021/03/04 v1.4d Standard LaTeX Graphics
(DPC,SPQR)
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\trig.sty
Package: trig 2021/08/11