Príklad z therionu: encoding utf-8 #!PROCESS #!FILE 3 source map.th2 #! To display them correctly you need to define symbols for them in #! MetaPost languge the same way as ordinary symbols are usually redefined. #! #! Firstly point symbol. In the layout m #!CODE code metapost #!ENDCODE path bat_path_x; bat_path_bb) - (xpart llcorner bat_path_bb))) rotated 210; #! section of your layout define point u:bat symbol like this #!CODE def p_u_bat(expr pos, theta, sc, al) = enddef; #!ENDCODE #! similarly the line u:bat symbol #!CODE def l_u_bat(expr P) = enddef; #!ENDCODE #! and finally the area u:bat symbol (pattern in this case) #!CODE % bat pattern endpattern; % bat area symbol def a_u_bat (expr Path) = enddef; #!ENDCODE #! These symbols will be included also in the legend. To #! change the way how they are drawn there just define appropriate #! macro. Its name should be symbol macro name with <code>_legend</code> #! suffix. #!CODE def l_u_bat_legend = enddef; #!ENDCODE code tex-map \legendcontent={% \hsize=\legendwidth \color[0 0 0]\the\legendtextcolor \formattedlegend \color[0 0 0] } legend-width 8 cm endcode endlayout #! Finally, add description of your new symbols that will be shown #! in the legend using <code>text</code> command anywhere #! in the configuration file. #!CODE text en "point u:bat" "bat" text en "line u:bat" "bat path" text en "area u:bat" "lot of bats" #!ENDCODE #! After all these definitions you receive bat point, line and area symbols #! with proper graphical representation and legend boxes. export map -o map2.pdf -layout m -layout-map-header 0 0 nw -layout- legend on #!IMAGE map2.pdf #!CLEAN map2.pdf