Hello,

maybe the argument of line (-8,-1) is too much negative ?

http://texdoc.net/texmf-dist/doc/latex/layouts/layman.pdf

One could try to make all the coordinates positive..

Frederic

Le lundi 16 septembre 2013 05:07:30 UTC+2, Anne Schilling a écrit :
>
> Hi Florent, Federic, ... ! 
>
> I have some trouble with the latex or pdf viewing of LabelledBinaryTrees: 
>
> sage: X = LabelledBinaryTree([], label=0) 
> sage: Y = LabelledBinaryTree([], label=1) 
> sage: YYX = LabelledBinaryTree([Y,X], label=1) 
> sage: Lf = LabelledBinaryTree([YYX,YYX], label=0) 
> sage: Rf = LabelledBinaryTree([YYX,YYX], label=1) 
> sage: f = LabelledBinaryTree([Lf,Rf], label=0) 
> sage: ff = LabelledBinaryTree([f,f],label=1) 
>
> Now 
>
> sage: view(f,tightpage=True) 
>
> works fine but 
>
> sage: view(ff,tightpage=True) 
>
> gives an error message (see below). 
>
> Does anyone know how to fix this? 
>
> Thanks, 
>
> Anne 
>
> (1) Latex Error: 
>
> Preview: Fontsize 10pt 
> Preview: PDFoutput 1 
> LaTeX Font Info:    Try loading font information for U+msa on input line 
> 41. 
> (/usr/local/texlive/2008/texmf-dist/tex/latex/amsfonts/umsa.fd 
> File: umsa.fd 2002/01/19 v2.2g AMS font definitions 
> ) 
> LaTeX Font Info:    Try loading font information for U+msb on input line 
> 41. 
>
> (/usr/local/texlive/2008/texmf-dist/tex/latex/amsfonts/umsb.fd 
> File: umsb.fd 2002/01/19 v2.2g AMS font definitions 
> ) 
> LaTeX Font Info:    Try loading font information for U+rsfs on input line 
> 41. 
>
> (/usr/local/texlive/2008/texmf-dist/tex/latex/jknapltx/ursfs.fd 
> File: ursfs.fd 1998/03/24 rsfs font definition file (jk) 
> ) 
>
> ! LaTeX Error: Bad \line or \vector argument. 
>
> See the LaTeX manual or LaTeX Companion for explanation. 
> Type  H <return>  for immediate help. 
>  ... 
>
> l.102 \put(16,5){\line(-8,-1){8}} 
>
> You've lost some text.  Try typing  <return>  to proceed. 
> If that doesn't work, type  X <return>  to quit. 
>
>
> ! LaTeX Error: Bad \line or \vector argument. 
>
> See the LaTeX manual or LaTeX Companion for explanation. 
> Type  H <return>  for immediate help. 
>  ... 
>
> l.103 \put(16,5){\line(8,-1){8}} 
>
> You've lost some text.  Try typing  <return>  to proceed. 
> If that doesn't work, type  X <return>  to quit. 
>
> Preview: Tightpage -32891 -32891 32891 32891 
> [1{/usr/local/texlive/2008/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] 
> (./sage.aux) ) 
> Here is how much of TeX's memory you used: 
>  8641 strings out of 493876 
>  144792 string characters out of 1150567 
>  189665 words of memory out of 3000000 
>  11735 multiletter control sequences out of 10000+50000 
>  8140 words of font info for 28 fonts, out of 3000000 for 5000 
>  714 hyphenation exceptions out of 8191 
>  48i,8n,49p,334b,148s stack positions out of 
> 5000i,500n,10000p,200000b,50000s 
> </usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmr7.p 
> fb></usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/latex-fonts/lcircle1
>  
>
> .pfb></usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/latex-fonts/line10
>  
>
> .pfb> 
> Output written on sage.pdf (1 page, 9031 bytes). 
> PDF statistics: 
>  21 PDF objects out of 1000 (max. 8388607) 
>  0 named destinations out of 1000 (max. 131072) 
>  13 words of extra memory for PDF output out of 10000 (max. 10000000) 
>
>
> Latex error 
>
> (2) Latex output 
>
> sage: print ff._latex_() 
> \vcenter{\hbox{{\setlength\unitlength{4mm} 
> \begin{picture}(33,6) 
> \put(1,1){\circle*{0.5}} 
> \put(1.3,0.7){$\scriptstyle 1$}\put(2,2){\circle*{0.5}} 
> \put(2.3,1.7){$\scriptstyle 1$}\put(3,1){\circle*{0.5}} 
> \put(3.3,0.7){$\scriptstyle 0$}\put(2,2){\line(-1,-1){1}} 
> \put(2,2){\line(1,-1){1}} 
> \put(4,3){\circle*{0.5}} 
> \put(4.3,2.7){$\scriptstyle 0$}\put(5,1){\circle*{0.5}} 
> \put(5.3,0.7){$\scriptstyle 1$}\put(6,2){\circle*{0.5}} 
> \put(6.3,1.7){$\scriptstyle 1$}\put(7,1){\circle*{0.5}} 
> \put(7.3,0.7){$\scriptstyle 0$}\put(6,2){\line(-1,-1){1}} 
> \put(6,2){\line(1,-1){1}} 
> \put(4,3){\line(-2,-1){2}} 
> \put(4,3){\line(2,-1){2}} 
> \put(8,4){\circle*{0.5}} 
> \put(8.3,3.7){$\scriptstyle 0$}\put(9,1){\circle*{0.5}} 
> \put(9.3,0.7){$\scriptstyle 1$}\put(10,2){\circle*{0.5}} 
> \put(10.3,1.7){$\scriptstyle 1$}\put(11,1){\circle*{0.5}} 
> \put(11.3,0.7){$\scriptstyle 0$}\put(10,2){\line(-1,-1){1}} 
> \put(10,2){\line(1,-1){1}} 
> \put(12,3){\circle*{0.5}} 
> \put(12.3,2.7){$\scriptstyle 1$}\put(13,1){\circle*{0.5}} 
> \put(13.3,0.7){$\scriptstyle 1$}\put(14,2){\circle*{0.5}} 
> \put(14.3,1.7){$\scriptstyle 1$}\put(15,1){\circle*{0.5}} 
> \put(15.3,0.7){$\scriptstyle 0$}\put(14,2){\line(-1,-1){1}} 
> \put(14,2){\line(1,-1){1}} 
> \put(12,3){\line(-2,-1){2}} 
> \put(12,3){\line(2,-1){2}} 
> \put(8,4){\line(-4,-1){4}} 
> \put(8,4){\line(4,-1){4}} 
> \put(16,5){\circle*{0.5}} 
> \put(16.3,4.7){$\scriptstyle 1$}\put(17,1){\circle*{0.5}} 
> \put(17.3,0.7){$\scriptstyle 1$}\put(18,2){\circle*{0.5}} 
> \put(18.3,1.7){$\scriptstyle 1$}\put(19,1){\circle*{0.5}} 
> \put(19.3,0.7){$\scriptstyle 0$}\put(18,2){\line(-1,-1){1}} 
> \put(18,2){\line(1,-1){1}} 
> \put(20,3){\circle*{0.5}} 
> \put(20.3,2.7){$\scriptstyle 0$}\put(21,1){\circle*{0.5}} 
> \put(21.3,0.7){$\scriptstyle 1$}\put(22,2){\circle*{0.5}} 
> \put(22.3,1.7){$\scriptstyle 1$}\put(23,1){\circle*{0.5}} 
> \put(23.3,0.7){$\scriptstyle 0$}\put(22,2){\line(-1,-1){1}} 
> \put(22,2){\line(1,-1){1}} 
> \put(20,3){\line(-2,-1){2}} 
> \put(20,3){\line(2,-1){2}} 
> \put(24,4){\circle*{0.5}} 
> \put(24.3,3.7){$\scriptstyle 0$}\put(25,1){\circle*{0.5}} 
> \put(25.3,0.7){$\scriptstyle 1$}\put(26,2){\circle*{0.5}} 
> \put(26.3,1.7){$\scriptstyle 1$}\put(27,1){\circle*{0.5}} 
> \put(27.3,0.7){$\scriptstyle 0$}\put(26,2){\line(-1,-1){1}} 
> \put(26,2){\line(1,-1){1}} 
> \put(28,3){\circle*{0.5}} 
> \put(28.3,2.7){$\scriptstyle 1$}\put(29,1){\circle*{0.5}} 
> \put(29.3,0.7){$\scriptstyle 1$}\put(30,2){\circle*{0.5}} 
> \put(30.3,1.7){$\scriptstyle 1$}\put(31,1){\circle*{0.5}} 
> \put(31.3,0.7){$\scriptstyle 0$}\put(30,2){\line(-1,-1){1}} 
> \put(30,2){\line(1,-1){1}} 
> \put(28,3){\line(-2,-1){2}} 
> \put(28,3){\line(2,-1){2}} 
> \put(24,4){\line(-4,-1){4}} 
> \put(24,4){\line(4,-1){4}} 
> \put(16,5){\line(-8,-1){8}} 
> \put(16,5){\line(8,-1){8}} 
> \put(16,5){\circle*{0.7}} 
> \end{picture}}}} 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-combinat-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-combinat-devel.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to