Home Online Manual
Top
Back: texMatrix
Forward: texDrawTropical
FastBack:
FastForward:
Up: tropical_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.13.6.20 texDrawBasic

Procedure from library tropical.lib (see tropical_lib).

Usage:
texDrawBasic(texdraw); list texdraw

Assume:
texdraw is a list of strings representing texdraw commands (as produced by texDrawTropical) which should be embedded into a texdraw environment

Return:
string, a texdraw environment enclosing the input

Note:
is called from conicWithTangents

Example:
 
LIB "tropical.lib";
==> Welcome to polymake version
==> Copyright (c) 1997-2015
==> Ewgenij Gawrilow, Michael Joswig (TU Darmstadt)
==> http://www.polymake.org
ring r=(0,t),(x,y),dp;
poly f=x+y+1;
string texf=texDrawTropical(tropicalCurve(f),list("",1));
texDrawBasic(texf);
==> 
==>     \begin{texdraw}
==>        \drawdim cm  \relunitscale 0.7 \arrowheadtype t:V
==>        %\linewd 0.05 \lpatt (0.1 0.4)
==>        %\move (-4 0) \avec (9 0) \move (0 -4) \avec (0 9)
==>        \linewd 0.1  \lpatt (1 0)
==>        
==> 
==>        \setgray 0.6
==> 
==>        
==>        \relunitscale 12
==>        \move (0 0) \fcir f:0 r:0.016
==>        \move (0 0) \rlvec (0 0.25)
==>        \move (0 0) \rlvec (0.25 0)
==>        \move (0 0) \rlvec (-0.25 -0.25)
==> 
==>    %% HERE STARTS THE CODE FOR THE LATTICE
==>         \move (0 0) \fcir f:0.8 r:0.008
==>    %% HERE ENDS THE CODE FOR THE LATTICE
==>                           
==>     \end{texdraw}