[Therion-cs] znacka pre skalny rad

Martin Sluka martinsluka na mac.com
Úterý Říjen 25 14:22:32 CEST 2011


Z therionbooku:

Finally, add description of your new symbols that will be shown in the  
legend using text
command anywhere in the configuration file.
text en "point u:bat" "bat"
text en "line u:bat" "bat path"
text en "area u:bat" "lot of bats"

To text je príkaz do konfiguračného súboru, nie do kódu metapostu.

m.




On 25.10.2011, at 13:38, Michal Danko wrote:

> martin dakujem,
> hadze mi to vsak chybu metapost 2
>
>
> z logu som vycital ze problem by mal byt s poslednym riadkom
>  text sk "line u:hang_danko" "skalný rad"
>
> v logu som nasiel :
> ! A statement can't begin with `text'
>
>
> S pozdravom
>
> Ing. Michal Danko
>
>
>
>
>
> 2011/10/25 Martin Sluka <martinsluka na mac.com>
> def l_u_hang_danko (expr P) =
>  T:=identity;
>  cas := 0;
>  dlzka := arclength P;
>  mojkrok:=adjust_step(dlzka, 0.3u);
>  pickup PenC;
>  t1:=0;
>  forever:
>    t := arctime (cas + mojkrok/2) of P;
>    t2 := arctime (cas + mojkrok) of P;
>    thfill (subpath (t1,t2) of P) --
>      ((point t of P) + .3u * unitvector(thdir(P,t) rotated 90)) --
>      cycle;
>    cas := cas + mojkrok;
>    exitif cas > dlzka - (2*mojkrok/3); % for rounding errors
>    t1:=t2;
>  endfor;
>  thdraw P;
> enddef;
>
> def l_u_hang_danko_legend =
> l_u_hang_danko(((.2,.2) -- (.8,.8)) inscale)
> enddef;
>
> text sk "line u:hang_danko" "skalný rad"
>
> No snáď to bude takto fungovať
>
> m.
>
>
> On 25.10.2011, at 13:04, Michal Danko wrote:
>
> skoda,
> na znacenie brala som pouzil overhang, teraz uz len by som  
> potreboval zmenit v legende vyraz previs na skalny rad.
>
> mozte mi niekto poslat metapost code do layoutu?
>
> v thbooku a wiki som nasiel par prikladov ale moc mudry z toho niesom
>
> S pozdravom
>
> Ing. Michal Danko
>
>
>
>
>
> 2011/10/25 martinsluka <martinsluka na mac.com>
> To asi zatiaľ nie
>
> m.
>
>
> On 25 Oct, 2011,at 11:33 AM, Michal Danko <michal.danko na gmail.com>  
> wrote:
>
> ano na povrchu, medzi dvoma jaskynami...
>
> S pozdravom
>
> Ing Michal Danko
>
>
>
>
>
>
> 2011/10/25 Martin Sluka <martinsluka na mac.com>
>
> On 25.10.2011, at 10:26, Michal Danko wrote:
>
> snazim sa najst ciaru pre skalny rad / bralo
>
> Na povrchu?
>
> m.
> _______________________________________________
> Therion-cs mailing list
> Therion-cs na speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion-cs
>
> _______________________________________________
> Therion-cs mailing list
> Therion-cs na speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion-cs
>
> _______________________________________________
> Therion-cs mailing list
> Therion-cs na speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion-cs
>
>
> _______________________________________________
> Therion-cs mailing list
> Therion-cs na speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion-cs
>
> _______________________________________________
> Therion-cs mailing list
> Therion-cs na speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion-cs
>
> <therion.log>_______________________________________________
> Therion-cs mailing list
> Therion-cs na speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion-cs




More information about the Therion-cs mailing list