Re: [Therion] Metapost for sump/syphon hazard symbol

2024-04-13 Thread Benedikt Hallinger
Hello,just a random comment from me;but wouldn‘t it be important that map readers clearly see „danger“?I am using a sinple warning sign everywhere and clarify using text.So even non-cavers or people not familiar with specific map symbols are clearly pointed at „watch out!“.The droplet proposed here, for example would not indicate to me that there is imminent danger. I would probably not even look it up in the legend because my brain thinks „not relevant - looks like something special to hydrologists“.Am 13.04.2024 um 09:15 schrieb Martin Sluka via Therion :It is very simple conversion which don’t use Metapost’s options. Odesláno z iPhonu13. 4. 2024 v 8:49, Henry Bennett :if you could get the image into postscript then, you could use http://www.pstoedit.net/ to convert to Metapost.You should be able to get EPS by printing to a Postscript printer and then choosing print to file.HenryOn Sat, Apr 13, 2024 at 4:20 AM Bruce Mutton  wrote:HelloI’m looking for a Therion map symbol to emphasize the hazard posed by a localised low roof in passages (typically 2m to 5m in diameter) that are usually inaccessible due to water, but in dry conditions appear innocuous to the unwary.  Currently I’m using an empty placeholder symbol, point u:sumphazard, but want to upgrade! I’ve been using the SBE point danger symbol to identify hazards such as zones of active passage collapse.One approach for sumping hazard would be to use the same symbol, and change the colour to blue, but I would like the distinction to be available for black and white outputs as well as colour outputs. Since I’m not very good at metapost, I’m looking to see if anyone has anything they’d be willing to share, or perhaps write! What I have in mind is something like an exclamation mark over top of some water squiggles.  Maybe like one of these? The links behind the images below might have some useful elements.  Thanks in advance.Bruce___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___Therion mailing listTherion@speleo.skhttps://mailman.speleo.sk/listinfo/therion___Therion mailing listTherion@speleo.skhttps://mailman.speleo.sk/listinfo/therion___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Metapost for sump/syphon hazard symbol

2024-04-13 Thread Martin Sluka via Therion
It is very simple conversion which don’t use Metapost’s options. Odesláno z iPhonu13. 4. 2024 v 8:49, Henry Bennett :if you could get the image into postscript then, you could use http://www.pstoedit.net/ to convert to Metapost.You should be able to get EPS by printing to a Postscript printer and then choosing print to file.HenryOn Sat, Apr 13, 2024 at 4:20 AM Bruce Mutton  wrote:HelloI’m looking for a Therion map symbol to emphasize the hazard posed by a localised low roof in passages (typically 2m to 5m in diameter) that are usually inaccessible due to water, but in dry conditions appear innocuous to the unwary.  Currently I’m using an empty placeholder symbol, point u:sumphazard, but want to upgrade! I’ve been using the SBE point danger symbol to identify hazards such as zones of active passage collapse.One approach for sumping hazard would be to use the same symbol, and change the colour to blue, but I would like the distinction to be available for black and white outputs as well as colour outputs. Since I’m not very good at metapost, I’m looking to see if anyone has anything they’d be willing to share, or perhaps write! What I have in mind is something like an exclamation mark over top of some water squiggles.  Maybe like one of these? The links behind the images below might have some useful elements.  Thanks in advance.Bruce___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___Therion mailing listTherion@speleo.skhttps://mailman.speleo.sk/listinfo/therion___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Metapost for sump/syphon hazard symbol

2024-04-13 Thread Henry Bennett
if you could get the image into postscript then, you could use
http://www.pstoedit.net/ to convert to Metapost.

You should be able to get EPS by printing to a Postscript printer and then
choosing print to file.

Henry

On Sat, Apr 13, 2024 at 4:20 AM Bruce Mutton  wrote:

> Hello
>
> I’m looking for a Therion map symbol to emphasize the hazard posed by a
> localised low roof in passages (typically 2m to 5m in diameter) that are
> usually inaccessible due to water, but in dry conditions appear innocuous
> to the unwary.  Currently I’m using an empty placeholder symbol, point
> u:sumphazard, but want to upgrade!
>
>
>
> I’ve been using the SBE point danger symbol to identify hazards such as
> zones of active passage collapse.
>
> One approach for sumping hazard would be to use the same symbol, and
> change the colour to blue, but I would like the distinction to be available
> for black and white outputs as well as colour outputs.
>
>
>
> Since I’m not very good at metapost, I’m looking to see if anyone has
> anything they’d be willing to share, or perhaps write!
>
>
>
> What I have in mind is something like an exclamation mark over top of some
> water squiggles.  Maybe like one of these?
>
>
>
> The links behind the images below might have some useful elements.
>
>
>
>
> 
> 
>
> Thanks in advance.
>
> Bruce
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
>
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] Metapost for sump/syphon hazard symbol

2024-04-12 Thread Bruce Mutton
Hello

I'm looking for a Therion map symbol to emphasize the hazard posed by a
localised low roof in passages (typically 2m to 5m in diameter) that are
usually inaccessible due to water, but in dry conditions appear innocuous to
the unwary.  Currently I'm using an empty placeholder symbol, point
u:sumphazard, but want to upgrade!

 

I've been using the SBE point danger symbol to identify hazards such as
zones of active passage collapse.



One approach for sumping hazard would be to use the same symbol, and change
the colour to blue, but I would like the distinction to be available for
black and white outputs as well as colour outputs.

 

Since I'm not very good at metapost, I'm looking to see if anyone has
anything they'd be willing to share, or perhaps write!

 

What I have in mind is something like an exclamation mark over top of some
water squiggles.  Maybe like one of these?



 

The links behind the images below might have some useful elements.

 

 

 

Thanks in advance.

Bruce

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Metapost exit code in therion 6.0.1 and 6.0.2

2021-10-04 Thread Martin Budaj
Hi, this has been fixed in 6.0.3.

Cheers
Martin

On Wed, Sep 22, 2021 at 11:01 PM A Gott  wrote:
>
> HI Everyone,
>
> A friend messaged me while I was lucky enough to escape the UK and get to 
> spain for some caving, which was great!
>
> I've got back and tonight I tried to look at the problem he was having 
> outputting in Therion 6.0.1
>  I ran his survey in 5.5.3 with no issues whatsoever, I thought he could be 
> getting a bug from 6.0.1 so i updated my software, and now i'm bugged in 
> 6.0.2 with the metapost exit code on his survey.
>
> ### metapost log file 
> This is MetaPost, version 2.00 (TeX Live 2020/W32TeX) (kpathsea version 
> 6.3.2)  22 SEP 2021 21:44
> **data.mp
> (c:/Program Files (x86)/Therion/texmf/mpost/mpost.mp
> (c:/Program Files (x86)/Therion/texmf/mpost/plain.mp
> Preloading the plain mem file, version 1.005) ) (./data.mp
> {randomseed:=42}
>  [1] [2] [3] [4]
> [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]
> [1]
> [Warning: scrap outline intersects itself in scrap 
> loper-p@inglorious.CusseyMas
> ter] [2] [3] [4] [5]
> [Warning: scrap outline intersects itself in scrap indy-1p@Indy.CusseyMaster]
> [6] [7] [8] [9] [10] [11] [12]
> [Warning: scrap outline intersects itself in scrap 
> timewarp-3p@Timewarp.CusseyM
> aster] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26]
> [27]
> [Warning: scrap outline intersects itself in scrap 
> inglorious...@inglorious.cus
> seyMaster] [28] [29] [30] [31]
> [Warning: scrap outline intersects itself in scrap 
> mine1@inglorious.CusseyMaste
> r] [32] [33] [34] [35] [36] [37] [38]
> [Warning: scrap outline intersects itself in scrap 
> shattered_dreams-2p@shattere
> d_dreams.CusseyMaster] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49]
> [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] (./mptextmp.mp) [61]
> ! Logarithm of -64.77 has been replaced by 0.
> log->begingroup(if(EXPR2)=0:0else:mlog((EXPR2))/
> mlog(10)fi)endgroup
> 
>;
> s_altitudebar->...d:=(EXPR1)-(EXPR0);dlog:=log(d);
>   
> if.dlog.mod1<0.301:dv:=2;e...
> l.10965 ...,(0.0,0.75000,0.75000,0.0))("")
>   ;
> Since I don't take logs of non-positive numbers,
> I'm zeroing this one. Proceed, with fingers crossed.
>
> (./mptextmp.mp) (./mptextmp.mp) [62] )
>
> Here is how much of MetaPost's memory you used:
>  18042 strings using 388328 characters
>  2412656 bytes of node memory
>  1681 symbolic tokens
>  11i,82n,19p,452b,5f stack positions out of 16i,98n,20p,487b,6f
> 76 output files written: data-patt.1 .. data.62
>
>
>  end of metapost log file 
> C:\Program Files (x86)\Therion\therion.exe: error -- metapost exit code -- 2
> writing xtherion file ... done
>
>
> I don't know whether its a bug or whether there is an error with the config 
> file which only presents in 6.0.1/2
>  but I thought I would send it to the list for thoughts?
>
> Alastair.
>
> please find below config file which ran fine in 5.5.3
>
>
> source CusseyMaster.th
>
>
> export model -fmt survex -o CusseyMaster.3d
>
> export map -proj [elevation 0]  -layout localside -o CusseyElevation.pdf
> export map -proj plan -layout LayoutMapBorder -layout sidesurvey -layout 
> localplan -layout-map-image 5 20 sw "./arrow.png" -layout-map-header 0 0 off 
> -o CusseyMaster.pdf
> #export map -proj plan -layout LayoutMapBorder -layout sidesurvey -layout 
> localplan -layout-map-image 17 20 sw "./arrow.png" -o CusseyMaster.pdf
> export map -proj plan -layout LayoutMapBorder -layout localplan -o 
> CusseyPlan.pdf
>
>
> layout sidesurvey
> map-image 55 100 s CusseyElevation.pdf
> endlayout
>
>
> layout localside
> symbol-set BCRA
> symbol-hide group cave-centreline
> scale-bar 25 m
> map-header 98 97 n
> map-comment "Discovered and Explored by Eldon Pothole Club 2020 - 
> 2021Surveyed By: Luke Cafferty, Rob Eavis, Jon Pemberton, Jeff 
> WadeSurvey Drawn By: Rob EavisElevation, facing NorthEntrance: SK 
> 21545 76524Altitude: 244m"
> legend on
>   grid bottom
>   grid-coords border
>   grid-size 10 10 10 m
>   #grid-origin 0  0  0 m
>
> colour map-fg [80 89 94]
> #colour map-bg [20 39 14]
>
> code metapost
> def s_scalebar (expr l, units, txt) =
>   begingroup
> interim warningcheck:=0;
> tmpl:=l / Scale * cm * units / 2;
> tmpx:=l / Scale * cm * units / 5;
> tmph:=5bp; % bar height
>   endgroup;
>   pickup PenC;
>   draw (-tmpl,0)--(tmpl,0)--(tmpl,-tmph)--(-tmpl,-tmph)--cycle;
>   p:=(0,0)--(tmpx,0)--(tmpx,-tmph)--(0,-tmph)--cycle;
>   for i:=-2.5 step 2 until 2:
> fill p shifted (i * tmpx,0);
>   endfor;
>   begingroup
> interim labeloffset:=3.5bp;
> for i:=0 step (l/5) until (l-1):
>   tmpx:=tmpl * (i * 2 / l - 1);
>   label.top(thTEX(decimal (i)),(tmpx,0));
> endfor;
> label.top(thTEX(decimal (l) & 

Re: [Therion] Metapost exit code in therion 6.0.1 and 6.0.2

2021-09-22 Thread Martin Budaj
Hi,

this is related to a new continuously-coloured altitude legend introduced
in 6.0.0.

Could you send me the problematic dataset to investigate the issue?

In the meantime you can avoid the problem using
   colour-legend discrete
in the layout.

Cheers
Martin


On Wed, Sep 22, 2021, 23:01 A Gott  wrote:

> HI Everyone,
>
> A friend messaged me while I was lucky enough to escape the UK and get to
> spain for some caving, which was great!
>
> I've got back and tonight I tried to look at the problem he was having
> outputting in Therion 6.0.1
>  I ran his survey in 5.5.3 with no issues whatsoever, I thought he could
> be getting a bug from 6.0.1 so i updated my software, and now i'm bugged in
> 6.0.2 with the metapost exit code on his survey.
>
> ### metapost log file 
> This is MetaPost, version 2.00 (TeX Live 2020/W32TeX) (kpathsea version
> 6.3.2)  22 SEP 2021 21:44
> **data.mp
> (c:/Program Files (x86)/Therion/texmf/mpost/mpost.mp
> (c:/Program Files (x86)/Therion/texmf/mpost/plain.mp
> Preloading the plain mem file, version 1.005) ) (./data.mp
> {randomseed:=42}
>  [1] [2] [3] [4]
> [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]
> [1]
> [Warning: scrap outline intersects itself in scrap
> loper-p@inglorious.CusseyMas
> ter] [2] [3] [4] [5]
> [Warning: scrap outline intersects itself in scrap
> indy-1p@Indy.CusseyMaster]
> [6] [7] [8] [9] [10] [11] [12]
> [Warning: scrap outline intersects itself in scrap
> timewarp-3p@Timewarp.CusseyM
> aster] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25]
> [26]
> [27]
> [Warning: scrap outline intersects itself in scrap
> inglorious...@inglorious.cus
> seyMaster] [28] [29] [30] [31]
> [Warning: scrap outline intersects itself in scrap
> mine1@inglorious.CusseyMaste
> r] [32] [33] [34] [35] [36] [37] [38]
> [Warning: scrap outline intersects itself in scrap
> shattered_dreams-2p@shattere
> d_dreams.CusseyMaster] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48]
> [49]
> [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] (./mptextmp.mp)
> [61]
> ! Logarithm of -64.77 has been replaced by 0.
> log->begingroup(if(EXPR2)=0:0else:mlog((EXPR2))/
> mlog(10)fi)endgroup
> 
>;
> s_altitudebar->...d:=(EXPR1)-(EXPR0);dlog:=log(d);
>
> if.dlog.mod1<0.301:dv:=2;e...
> l.10965 ...,(0.0,0.75000,0.75000,0.0))("")
>   ;
> Since I don't take logs of non-positive numbers,
> I'm zeroing this one. Proceed, with fingers crossed.
>
> (./mptextmp.mp) (./mptextmp.mp) [62] )
>
> Here is how much of MetaPost's memory you used:
>  18042 strings using 388328 characters
>  2412656 bytes of node memory
>  1681 symbolic tokens
>  11i,82n,19p,452b,5f stack positions out of 16i,98n,20p,487b,6f
> 76 output files written: data-patt.1 .. data.62
>
>
>  end of metapost log file 
> C:\Program Files (x86)\Therion\therion.exe: error -- metapost exit code --
> 2
> writing xtherion file ... done
>
>
> I don't know whether its a bug or whether there is an error with the
> config file which only presents in 6.0.1/2
>  but I thought I would send it to the list for thoughts?
>
> Alastair.
>
> please find below config file which ran fine in 5.5.3
>
>
> source CusseyMaster.th
>
>
> export model -fmt survex -o CusseyMaster.3d
>
> export map -proj [elevation 0]  -layout localside -o CusseyElevation.pdf
> export map -proj plan -layout LayoutMapBorder -layout sidesurvey -layout
> localplan -layout-map-image 5 20 sw "./arrow.png" -layout-map-header 0 0
> off -o CusseyMaster.pdf
> #export map -proj plan -layout LayoutMapBorder -layout sidesurvey -layout
> localplan -layout-map-image 17 20 sw "./arrow.png" -o CusseyMaster.pdf
> export map -proj plan -layout LayoutMapBorder -layout localplan -o
> CusseyPlan.pdf
>
>
> layout sidesurvey
> map-image 55 100 s CusseyElevation.pdf
> endlayout
>
>
> layout localside
> symbol-set BCRA
> symbol-hide group cave-centreline
> scale-bar 25 m
> map-header 98 97 n
> map-comment "Discovered and Explored by Eldon Pothole Club 2020 -
> 2021Surveyed By: Luke Cafferty, Rob Eavis, Jon Pemberton, Jeff
> WadeSurvey Drawn By: Rob EavisElevation, facing NorthEntrance:
> SK 21545 76524Altitude: 244m"
> legend on
>   grid bottom
>   grid-coords border
>   grid-size 10 10 10 m
>   #grid-origin 0  0  0 m
>
> colour map-fg [80 89 94]
> #colour map-bg [20 39 14]
>
> code metapost
> def s_scalebar (expr l, units, txt) =
>   begingroup
> interim warningcheck:=0;
> tmpl:=l / Scale * cm * units / 2;
> tmpx:=l / Scale * cm * units / 5;
> tmph:=5bp; % bar height
>   endgroup;
>   pickup PenC;
>   draw (-tmpl,0)--(tmpl,0)--(tmpl,-tmph)--(-tmpl,-tmph)--cycle;
>   p:=(0,0)--(tmpx,0)--(tmpx,-tmph)--(0,-tmph)--cycle;
>   for i:=-2.5 step 2 until 2:
> fill p shifted (i * tmpx,0);
>   endfor;
>   begingroup
> interim labeloffset:=3.5bp;
> for i:=0 step (l/5) 

[Therion] Metapost exit code in therion 6.0.1 and 6.0.2

2021-09-22 Thread A Gott
HI Everyone,

A friend messaged me while I was lucky enough to escape the UK and get to
spain for some caving, which was great!

I've got back and tonight I tried to look at the problem he was having
outputting in Therion 6.0.1
 I ran his survey in 5.5.3 with no issues whatsoever, I thought he could be
getting a bug from 6.0.1 so i updated my software, and now i'm bugged in
6.0.2 with the metapost exit code on his survey.

### metapost log file 
This is MetaPost, version 2.00 (TeX Live 2020/W32TeX) (kpathsea version
6.3.2)  22 SEP 2021 21:44
**data.mp
(c:/Program Files (x86)/Therion/texmf/mpost/mpost.mp
(c:/Program Files (x86)/Therion/texmf/mpost/plain.mp
Preloading the plain mem file, version 1.005) ) (./data.mp
{randomseed:=42}
 [1] [2] [3] [4]
[5] [6] [7] [8] [9] [10] [11] [12] [13] [14]
[1]
[Warning: scrap outline intersects itself in scrap
loper-p@inglorious.CusseyMas
ter] [2] [3] [4] [5]
[Warning: scrap outline intersects itself in scrap indy-1p@Indy.CusseyMaster
]
[6] [7] [8] [9] [10] [11] [12]
[Warning: scrap outline intersects itself in scrap
timewarp-3p@Timewarp.CusseyM
aster] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26]
[27]
[Warning: scrap outline intersects itself in scrap
inglorious...@inglorious.cus
seyMaster] [28] [29] [30] [31]
[Warning: scrap outline intersects itself in scrap
mine1@inglorious.CusseyMaste
r] [32] [33] [34] [35] [36] [37] [38]
[Warning: scrap outline intersects itself in scrap
shattered_dreams-2p@shattere
d_dreams.CusseyMaster] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48]
[49]
[50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] (./mptextmp.mp) [61]
! Logarithm of -64.77 has been replaced by 0.
log->begingroup(if(EXPR2)=0:0else:mlog((EXPR2))/
mlog(10)fi)endgroup

   ;
s_altitudebar->...d:=(EXPR1)-(EXPR0);dlog:=log(d);

if.dlog.mod1<0.301:dv:=2;e...
l.10965 ...,(0.0,0.75000,0.75000,0.0))("")
  ;
Since I don't take logs of non-positive numbers,
I'm zeroing this one. Proceed, with fingers crossed.

(./mptextmp.mp) (./mptextmp.mp) [62] )

Here is how much of MetaPost's memory you used:
 18042 strings using 388328 characters
 2412656 bytes of node memory
 1681 symbolic tokens
 11i,82n,19p,452b,5f stack positions out of 16i,98n,20p,487b,6f
76 output files written: data-patt.1 .. data.62


 end of metapost log file 
C:\Program Files (x86)\Therion\therion.exe: error -- metapost exit code -- 2
writing xtherion file ... done


I don't know whether its a bug or whether there is an error with the config
file which only presents in 6.0.1/2
 but I thought I would send it to the list for thoughts?

Alastair.

please find below config file which ran fine in 5.5.3


source CusseyMaster.th


export model -fmt survex -o CusseyMaster.3d

export map -proj [elevation 0]  -layout localside -o CusseyElevation.pdf
export map -proj plan -layout LayoutMapBorder -layout sidesurvey -layout
localplan -layout-map-image 5 20 sw "./arrow.png" -layout-map-header 0 0
off -o CusseyMaster.pdf
#export map -proj plan -layout LayoutMapBorder -layout sidesurvey -layout
localplan -layout-map-image 17 20 sw "./arrow.png" -o CusseyMaster.pdf
export map -proj plan -layout LayoutMapBorder -layout localplan -o
CusseyPlan.pdf


layout sidesurvey
map-image 55 100 s CusseyElevation.pdf
endlayout


layout localside
symbol-set BCRA
symbol-hide group cave-centreline
scale-bar 25 m
map-header 98 97 n
map-comment "Discovered and Explored by Eldon Pothole Club 2020 -
2021Surveyed By: Luke Cafferty, Rob Eavis, Jon Pemberton, Jeff
WadeSurvey Drawn By: Rob EavisElevation, facing NorthEntrance:
SK 21545 76524Altitude: 244m"
legend on
  grid bottom
  grid-coords border
  grid-size 10 10 10 m
  #grid-origin 0  0  0 m

colour map-fg [80 89 94]
#colour map-bg [20 39 14]

code metapost
def s_scalebar (expr l, units, txt) =
  begingroup
interim warningcheck:=0;
tmpl:=l / Scale * cm * units / 2;
tmpx:=l / Scale * cm * units / 5;
tmph:=5bp; % bar height
  endgroup;
  pickup PenC;
  draw (-tmpl,0)--(tmpl,0)--(tmpl,-tmph)--(-tmpl,-tmph)--cycle;
  p:=(0,0)--(tmpx,0)--(tmpx,-tmph)--(0,-tmph)--cycle;
  for i:=-2.5 step 2 until 2:
fill p shifted (i * tmpx,0);
  endfor;
  begingroup
interim labeloffset:=3.5bp;
for i:=0 step (l/5) until (l-1):
  tmpx:=tmpl * (i * 2 / l - 1);
  label.top(thTEX(decimal (i)),(tmpx,0));
endfor;
label.top(thTEX(decimal (l) & "\thinspace" & txt),(tmpl,0));
label.bot(thTEX("Scale = 1 : " & decimal round(Scale*100)),(0,-tmph));
  endgroup;
enddef;
  endcode

  code tex-map
\legendcontent={%
  \hsize=\legendwidth
  \ifnortharrow\vbox to 0pt{\line{\hfil\northarrow}\vss}\fi
  \edef\tmp{\the\cavename} \ifx\tmp\empty \else
{\size[40]\the\cavename} \vskip1cm
  \fi
  \ifscalebar\scalebar\vskip1cm\fi
  {\rightskip=0pt plus 3em\parskip=3bp

Re: [Therion] Metapost / Tex error when compiling my projects on a new machine

2021-04-07 Thread Martin Budaj
Hi,

it looks exactly like https://github.com/therion/therion/issues/339

Although it hasn't been solved yet, maybe the log files from your system
could help; could you generate them according to the discussion there?

Best regards
Martin

On Wed, Apr 7, 2021 at 9:46 AM Tom Foord  wrote:

> Hi everyone
>
> I'm hoping someone can shed some light on a weird error I'm getting when
> attempting to compile my projects on a new PC.
> All of my projects are stored on Dropbox and are compiling successfully on
> other machines.
> But on my new laptop (a Dell Inspiron running Windows 10 with a fresh
> install of Therion 5.5.7) I am getting the same error every time, across
> all projects. It appears to be some issue with Metapost and/or Tex (neither
> of which I really understand to be honest). Here's the relevant bit of the
> log:
>
> ### metapost log file 
> This is MetaPost, version 2.00 (TeX Live 2020/W32TeX) (kpathsea version
> 6.3.2)  7 APR 2021 08:23
> **data.mp
> (c:/Program Files (x86)/Therion/texmf/mpost/mpost.mp
> (c:/Program Files (x86)/Therion/texmf/mpost/plain.mp
> Preloading the plain mem file, version 1.005) ) (./data.mp
> {randomseed:=42}
>  [4001] [4002] [4003] [4004] [4005] [4006] [4007] [4008] [4009] [4010]
> [4011] [
> 4012] [4013] [4014]
> [4015] [4016] [4017] [4018] [4019] [1] [2] [3]
> >> data.mp
> >> data.mpx
> ! ! Unable to read mpx file.
> l.7129 p_label.rt(btex
>\thlabel\thnormalsize \thfb\char99 \char104
> \char111 ...
> The two files given above are one of your source files
> and an auxiliary file I need to read to find out what your
> btex..etex blocks mean. If you don't know why I had trouble,
> try running it manually through MPtoTeX, TeX, and DVItoMP
>
>
>
> Here is how much of MetaPost's memory you used:
>  2803 strings using 61450 characters
>  2313328 bytes of node memory
>  1659 symbolic tokens
>  8i,82n,13p,312b,2f stack positions out of 16i,98n,15p,312b,4f22 output
> files written: data.1 .. data.4019
>
>
>  end of metapost log file 
> C:\Program Files (x86)\Therion\therion.exe: error -- metapost exit code --
> 3
> writing xtherion file ... done
>
>
>
> Any ideas?
>
> Thanks
> Tom Foord
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
>
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] Metapost / Tex error when compiling my projects on a new machine

2021-04-07 Thread Tom Foord
Hi everyone

I'm hoping someone can shed some light on a weird error I'm getting when
attempting to compile my projects on a new PC.
All of my projects are stored on Dropbox and are compiling successfully on
other machines.
But on my new laptop (a Dell Inspiron running Windows 10 with a fresh
install of Therion 5.5.7) I am getting the same error every time, across
all projects. It appears to be some issue with Metapost and/or Tex (neither
of which I really understand to be honest). Here's the relevant bit of the
log:

### metapost log file 
This is MetaPost, version 2.00 (TeX Live 2020/W32TeX) (kpathsea version
6.3.2)  7 APR 2021 08:23
**data.mp
(c:/Program Files (x86)/Therion/texmf/mpost/mpost.mp
(c:/Program Files (x86)/Therion/texmf/mpost/plain.mp
Preloading the plain mem file, version 1.005) ) (./data.mp
{randomseed:=42}
 [4001] [4002] [4003] [4004] [4005] [4006] [4007] [4008] [4009] [4010]
[4011] [
4012] [4013] [4014]
[4015] [4016] [4017] [4018] [4019] [1] [2] [3]
>> data.mp
>> data.mpx
! ! Unable to read mpx file.
l.7129 p_label.rt(btex
   \thlabel\thnormalsize \thfb\char99 \char104 \char111
...
The two files given above are one of your source files
and an auxiliary file I need to read to find out what your
btex..etex blocks mean. If you don't know why I had trouble,
try running it manually through MPtoTeX, TeX, and DVItoMP



Here is how much of MetaPost's memory you used:
 2803 strings using 61450 characters
 2313328 bytes of node memory
 1659 symbolic tokens
 8i,82n,13p,312b,2f stack positions out of 16i,98n,15p,312b,4f22 output
files written: data.1 .. data.4019


 end of metapost log file 
C:\Program Files (x86)\Therion\therion.exe: error -- metapost exit code -- 3
writing xtherion file ... done



Any ideas?

Thanks
Tom Foord
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] Metapost inspirations

2021-01-15 Thread Martin Sluka via Therion
Some advanced Metapost code for ancient looking illustrations (or maps):

https://github.com/jemmybutton/fiziko
https://m.habr.com/en/post/454376/
https://habr.com/ru/post/423571/?_ga=2.47603047.1584527340.1610742907-1962251908.1610742907

Enjoy

Martin
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Metapost variable macro suffixes

2020-03-01 Thread Benedikt Hallinger
> This is such a weird programming language :)

It is...
And despite being plenty of documentation online, this one seems to be 
mastering me (and i usually love programming)

> Am 01.03.2020 um 21:05 schrieb Tarquin Wilton-Jones via Therion 
> :
> 
> I do seem to like answering my own questions.
> 
> 3 days searching for the solution and ...
> 
> if A = (-1,1): sfx:="ulft";
> elseif A = (0,1): sfx:="top";
> ...
> if Foo = "b"
>  thelabel.scantokens(sfx)(txt, pos);
>  ... other stuff ...
> else:
>  p_label.scantokens(sfx)(thetext,P,R,style);
> fi;
> 
> Yes, scantokens can be used inline, as a function-like call that returns
> an actual suffix token which becomes part of the macro's suffix when the
> macro is subsequently called.
> 
> This is such a weird programming language :)
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Metapost variable macro suffixes

2020-03-01 Thread Tarquin Wilton-Jones via Therion
I do seem to like answering my own questions.

3 days searching for the solution and ...

if A = (-1,1): sfx:="ulft";
elseif A = (0,1): sfx:="top";
...
if Foo = "b"
  thelabel.scantokens(sfx)(txt, pos);
  ... other stuff ...
else:
  p_label.scantokens(sfx)(thetext,P,R,style);
fi;

Yes, scantokens can be used inline, as a function-like call that returns
an actual suffix token which becomes part of the macro's suffix when the
macro is subsequently called.

This is such a weird programming language :)
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] Metapost variable macro suffixes

2020-02-29 Thread Tarquin Wilton-Jones via Therion
Hi folks,

hoping someone who really understands Metapost can give me a suggestion
since I cannot find it in any manuals.

In Therion's Metapost, there are a couple of wildcard suffixed macros
like this:

vardef p_label@#(expr txt,pos,rot,mode)

I have a need to call the different ones depending on the value of a
pair like this:

if A = (-1,1):
  p_label.ulft(thetext,P,R,style);
elseif A = (0,1):
  p_label.top(thetext,P,R,style);
... more ...

Based on the value of another variable, I need to run a different macro
instead, which also has its own suffixes, which match the suffixes above:

if A = (-1,1):
  if Foo = "a"
thelabel.ulft(txt, pos);
... other stuff ...
  else:
p_label.ulft(thetext,P,R,style);
  fi;
elseif A = (0,1):
  if Foo = "b"
thelabel.ulft(txt, pos);
... other stuff ...
  else:
p_label.top(thetext,P,R,style);
  fi;
... more ...

This quickly gets tedious, since the same code gets repeated over and
over again, just with a different suffix each time.

In Metapost, is it possible to store the suffix in a variable, then use
it when calling the macro like so?

if A = (-1,1): sfx:="ulft";
elseif A = (0,1): sfx:="top";
...
if Foo = "b"
  thelabel.(txt, pos);
  ... other stuff ...
else:
  p_label.(thetext,P,R,style);
fi;

Thanks for any advice.

Tarquin
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] Metapost variable for map-bg colour

2019-12-21 Thread Tarquin Wilton-Jones via Therion
By default, the background of a page is set to white.
When you set "color map-bg [0 90 0]", it is now green.

Can that colour be accessed from Metapost?
A diff of the debug Metapost doesn't show anything...
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Metapost for a line ending in an ellipse

2019-11-24 Thread Tarquin Wilton-Jones via Therion
> instead of "thdraw P;" use "thdraw P cutafter p;" after defining both
> paths P and p.

Genius! Thanks, this is exactly what I was hoping for, much neater than
my clip solution.
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Metapost for a line ending in an ellipse

2019-11-24 Thread Martin Budaj
On Fri, Nov 22, 2019 at 8:56 PM Tarquin Wilton-Jones via Therion
 wrote:

> In Therion's Metapost, the line is easy;
> pickup PenC;
> thdraw P;
>
> Drawing a horizontal ellipse at the coordinates of the last point in the
> line is easy:
> p:=fullcircle xscaled (.5u) yscaled (.25u);
> draw p shifted (point (length P) of P);
>
> But making the last "leg" of the line stop at the point where it
> intersects the ellipse ... I am baffled.

Hi,

instead of "thdraw P;" use "thdraw P cutafter p;" after defining both
paths P and p.

Martin
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Metapost for a line ending in an ellipse

2019-11-22 Thread Tarquin Wilton-Jones via Therion
I am going to answer my own question.

> Is there maybe another way? Can I say "draw the line, erase the line
> within the area of this elliptical 'circle', draw this elliptical
> 'circle'", in that sequence?


Yes.

"unfill" is not useful. It actually fills with the background colour,
which looks wrong when opacity is <100, and it obscures other things
behind it.

"clip" is a useful function, but it can only apply slipping to show
items *within* a path, not outside it.

The answer is to clip showing the whole drawing area (a box from
-infinity->infinity in x and y planes), and part way around, come in to
the inner path (an ellipse in my case), and traverse it in the opposite
direction to the direction that the drawing area was traversed. Then go
back out to the edge of the drawing area on exactly the same path as was
used to come in to the inner path. Circles are natively drawn from the
right side, anticlockwise, to make sure to traverse the outer edges of
the drawing area clockwise:
 
|___ |
|   (___)|
||

That was a fun learning exercise. Results will be on the wiki once I am
happy with my symbol.
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] Metapost for a line ending in an ellipse

2019-11-22 Thread Tarquin Wilton-Jones via Therion
Hi all,

One of the common symbols used in rigging topos is a deviation. It looks
like a solid line, ending with a horizontal ellipse. (The rope would
then pass through the centre of the ellipse, which is why it helps to
have a line point within the centre of the ellipse, to make it easy to
line them up with each other.)
 __
(__)

In Therion's Metapost, the line is easy;
pickup PenC;
thdraw P;

Drawing a horizontal ellipse at the coordinates of the last point in the
line is easy:
p:=fullcircle xscaled (.5u) yscaled (.25u);
draw p shifted (point (length P) of P);

But making the last "leg" of the line stop at the point where it
intersects the ellipse ... I am baffled.

One method would be; work out the angle of the last part of the line,
work out the radius of the ellipse on that angle. Draw the line from the
previous point to the length minus the last "radius" length.

That's all fair and good, but when the line is curving, the radius of
the ellipse at the final direction where the line ends, and the radius
where the line enters the ellipse is different, and therefore the length
of the undrawn part of the line is wrong.

See the attached picture; the one with the straight line is right, the
one with the curved line is wrong - the blue line should not be drawn
inside the ellipse. Blue = what I am drawing. Yellow = line points.
Green = parts that would be not drawn using the method described above.

I am guessing the maths required to calculate the final length of the
line is horrendously complicated (but please tell me if I am wrong).

Is there maybe another way? Can I say "draw the line, erase the line
within the area of this elliptical 'circle', draw this elliptical
'circle'", in that sequence?

Thanks for any assistance you can provide.

Tarquin
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] metapost input file

2019-11-13 Thread Bruce Mutton
Thanks Henry

Can you take your examples further?  What you have shown is what I am sure many 
of us are already doing with our everyday Therion data files, and does not 
require any fancy tricks to work with versioned repositories where each user 
has a different root file structure.  It is the configuration variable, and 
then the indirect use of it from within metapost or tex that I am curious about.

To demonstrate how TEXINPUTS or MPINPUTS might be used, could you show an 
example of the value you assign your TEXINPUTS and MPINPUTS variables in 
texmf.cnf?

 

And then how those variables are used to reference (perhaps with relative 
paths) particular files from within tex or metapost code?  Maybe using the tex 
example for your custom_entrance_theta?  (It is tex and metapost that I am not 
so good at).

 

I don’t think I am having the problem that I think Andrew is describing, 
managing access to metapost code – each of my projects has a copy that is 
manually synced whenever I make a change to my custom symbols, rather than a 
single copy per machine, as I think your example is implying.  Only about 20 
projects for which the custom symbols rarely change (and themselves have a 
master versioned repository) and so it is manageable.  The goal and the result 
I have so far is that every therion project is completely self-contained and 
portable.

 

But I do have the problem presented in this wiki post 
<https://therion.speleo.sk/wiki/tex?s%5b%5d=texinputs#changing_the_look_or_layout_of_a_map_output>
  (ie loading a picture or text file that is in or near the current folder).  I 
am not sure that I find the solution presented for ‘absolute paths’ palatable 
yet, unless tex and or metapost can be tricked into accepting some degree of 
relative path.

Bruce

 

From: Therion  On Behalf Of henry.benn...@dell.com
Sent: Wednesday, 13 November 2019 20:42
To: therion@speleo.sk
Subject: Re: [Therion] metapost input file

 

Hi Bruce,

 

For example with a directory structure like this

 

.\CodeLibary\

.\Region\Area\Cave

 

Declare the fully qualified path to the root (.) in texmf.cnf.  You can access 
you code stored in files in the CodeLibrary directory like this when working on 
a survey stored in the “Cave” directory. 

 

Thconfig.th

…

#inject standard code for layouts

  input ..\..\CodeLibrary\_layouts.mp   # custom Metapost

  input ..\..\CodeLibrary\_layouts.tex   # custom tex

  input ..\..\CodeLibrary\_layouts.thc   # custom layouts

 

layout local

  copy custom_water_blue

  copy custom_entrance_theta

  copy custom_northarrow_large

 

Is that what you were after?

 

Henry

From: Therion mailto:therion-boun...@speleo.sk> > 
On Behalf Of Bruce Mutton
Sent: 13 November 2019 07:07
To: 'List for Therion users'
Subject: [Therion] metapost input file

 

[EXTERNAL EMAIL] 

Henry

Your solution looks very similar to this wiki post 
<https://therion.speleo.sk/wiki/tex?s%5b%5d=texinputs#changing_the_look_or_layout_of_a_map_output>
  but with some differences.

 

Looking at my standard texmf.cnf file, it has

 

TEXINPUTS = $TEXMF/tex;.

MPINPUTS = .

 

If ‘.’ refers to the current folder, then can we specify a path relative to 
that?  I presume not (otherwise there would be no problem) but you suggest that 
relative paths can be specified from an absolute path enumerated in one of 
those variables.  So maybe they are relative, but with limitations?

It would be nice to have some actual examples of amended variables, and some 
Therion input mp and tex files snippets that use them.

 

Bruce

 

-Original Message-
From: Therion mailto:therion-boun...@speleo.sk> > 
On Behalf Of henry.benn...@dell.com <mailto:henry.benn...@dell.com> 
Sent: Wednesday, 13 November 2019 07:55
To: therion@speleo.sk <mailto:therion@speleo.sk> 
Subject: Re: [Therion] metapost input file

 

Hi Andrew,

 

To make the command data portable you can use relative paths but you need to 
define your root in the texmf.cnf file which is located in \therion\texmf\web2c 
folder (in windows).

 

I've used this 

 

   TEXINPUTS = $TEXMF/tex;C:/path/to/your/therion/root/;.

   MPINPUTS = C:/path/to/your/therion/root/;.

 

you will need to change this to your source paths.

 

You may find that you are unable to save the texmf.cnf file unless you edit it 
as the host administrator.  To do this open a command prompt as an 
administrator and then edit the file directly from there.

 

Not quite what you were looking for prehaps, but certainly makes for portable 
codebases.

 

Henry

 

-Original Message-

From: Therion < <mailto:therion-boun...@speleo.sk> therion-boun...@speleo.sk> 
On Behalf Of Andrew Atkinson

Sent: 12 November 2019 17:06

To: List for Therion users

Subject: [Therion] metapost input file

 

My layouts for my areas has become difficult to manage, especially all the 
metapost.

 

input file works in meta

Re: [Therion] metapost input file

2019-11-12 Thread Torsten Schnitter via Therion
Hi all

You can use relatives paths like that:

..\top-folder\
.\sub-folder\

..\   means one folder level higher (..\..\is like to folder levels up)
.\means actual working folder

If you have your project files at the same level like a folder for your 
tex/metapost code like this:
Therion-Folder
   Sub-Folder-Code
   Sub-Folder-project

You can reference from your project folder to the code folder like this:
..\Sub-Folder\Code\metapost-code.th

cheers,
Torsten

> Bruce Mutton  hat am 13. November 2019 um 08:06 geschrieben:
> 
> 
> Henry
> 
> Your solution looks very similar to this wiki post 
> https://therion.speleo.sk/wiki/tex?s%5b%5d=texinputs#changing_the_look_or_layout_of_a_map_output
>  but with some differences.
> 
>  
> 
> Looking at my standard texmf.cnf file, it has
> 
>  
> 
> TEXINPUTS = $TEXMF/tex;.
> 
> MPINPUTS = .
> 
>  
> 
> If ‘.’ refers to the current folder, then can we specify a path relative 
> to that?  I presume not (otherwise there would be no problem) but you suggest 
> that relative paths can be specified from an absolute path enumerated in one 
> of those variables.  So maybe they are relative, but with limitations?
> 
> It would be nice to have some actual examples of amended variables, and 
> some Therion input mp and tex files snippets that use them.
> 
>  
> 
> Bruce
> 
>  
> 
> -Original Message-
> From: Therion  On Behalf Of 
> henry.benn...@dell.com
> Sent: Wednesday, 13 November 2019 07:55
> To: therion@speleo.sk
> Subject: Re: [Therion] metapost input file
> 
>  
> 
> Hi Andrew,
> 
>  
> 
> To make the command data portable you can use relative paths but you need 
> to define your root in the texmf.cnf file which is located in 
> \therion\texmf\web2c folder (in windows).
> 
>  
> 
> I've used this
> 
>  
> 
>TEXINPUTS = $TEXMF/tex;C:/path/to/your/therion/root/;.
> 
>MPINPUTS = C:/path/to/your/therion/root/;.
> 
>  
> 
> you will need to change this to your source paths.
> 
>  
> 
> You may find that you are unable to save the texmf.cnf file unless you 
> edit it as the host administrator.  To do this open a command prompt as an 
> administrator and then edit the file directly from there.
> 
>  
> 
> Not quite what you were looking for prehaps, but certainly makes for 
> portable codebases.
> 
>  
> 
> Henry
> 
>  
> 
> -Original Message-
> 
> From: Therion mailto:therion-boun...@speleo.sk 
> > On Behalf Of Andrew Atkinson
> 
> Sent: 12 November 2019 17:06
> 
> To: List for Therion users
> 
> Subject: [Therion] metapost input file
> 
>  
> 
> My layouts for my areas has become difficult to manage, especially all 
> the metapost.
> 
>  
> 
> input file works in metapost, but requires the full path, is there a way 
> to find the path of the file that you are in and us that as a base. We use 
> version control so different machines have different file paths, so really 
> want to avoid this.
> 
>  
> 
> At the moment I have make a different file for my symbols and in each 
> file have to have a layout/endlayout and code metapost/endcode, then in the 
> master file I have to input outside the layout and then copy the layout for 
> each file, which works but it would be so much nicer to just have
> 
>  
> 
> input symbol.mp inside the one code metapost/ endcode
> 
>  
> 
> thanks
> 
>  
> 
> Andrew
> 
>  
> 


 

> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
> 


 
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] metapost input file

2019-11-12 Thread Henry.Bennett
Hi Bruce,

For example with a directory structure like this

.\CodeLibary\
.\Region\Area\Cave

Declare the fully qualified path to the root (.) in texmf.cnf.  You can access 
you code stored in files in the CodeLibrary directory like this when working on 
a survey stored in the “Cave” directory.

Thconfig.th
…
#inject standard code for layouts
  input ..\..\CodeLibrary\_layouts.mp   # custom Metapost
  input ..\..\CodeLibrary\_layouts.tex   # custom tex
  input ..\..\CodeLibrary\_layouts.thc   # custom layouts

layout local
  copy custom_water_blue
  copy custom_entrance_theta
  copy custom_northarrow_large

Is that what you were after?

Henry
From: Therion  On Behalf Of Bruce Mutton
Sent: 13 November 2019 07:07
To: 'List for Therion users'
Subject: [Therion] metapost input file


[EXTERNAL EMAIL]

Henry

Your solution looks very similar to this wiki 
post<https://therion.speleo.sk/wiki/tex?s%5b%5d=texinputs#changing_the_look_or_layout_of_a_map_output>
 but with some differences.



Looking at my standard texmf.cnf file, it has



TEXINPUTS = $TEXMF/tex;.

MPINPUTS = .



If ‘.’ refers to the current folder, then can we specify a path relative to 
that?  I presume not (otherwise there would be no problem) but you suggest that 
relative paths can be specified from an absolute path enumerated in one of 
those variables.  So maybe they are relative, but with limitations?

It would be nice to have some actual examples of amended variables, and some 
Therion input mp and tex files snippets that use them.



Bruce



-Original Message-
From: Therion mailto:therion-boun...@speleo.sk>> On 
Behalf Of henry.benn...@dell.com<mailto:henry.benn...@dell.com>
Sent: Wednesday, 13 November 2019 07:55
To: therion@speleo.sk<mailto:therion@speleo.sk>
Subject: Re: [Therion] metapost input file



Hi Andrew,



To make the command data portable you can use relative paths but you need to 
define your root in the texmf.cnf file which is located in \therion\texmf\web2c 
folder (in windows).



I've used this



   TEXINPUTS = $TEXMF/tex;C:/path/to/your/therion/root/;.

   MPINPUTS = C:/path/to/your/therion/root/;.



you will need to change this to your source paths.



You may find that you are unable to save the texmf.cnf file unless you edit it 
as the host administrator.  To do this open a command prompt as an 
administrator and then edit the file directly from there.



Not quite what you were looking for prehaps, but certainly makes for portable 
codebases.



Henry



-Original Message-

From: Therion mailto:therion-boun...@speleo.sk>> On 
Behalf Of Andrew Atkinson

Sent: 12 November 2019 17:06

To: List for Therion users

Subject: [Therion] metapost input file



My layouts for my areas has become difficult to manage, especially all the 
metapost.



input file works in metapost, but requires the full path, is there a way to 
find the path of the file that you are in and us that as a base. We use version 
control so different machines have different file paths, so really want to 
avoid this.



At the moment I have make a different file for my symbols and in each file have 
to have a layout/endlayout and code metapost/endcode, then in the master file I 
have to input outside the layout and then copy the layout for each file, which 
works but it would be so much nicer to just have



input symbol.mp inside the one code metapost/ endcode



thanks



Andrew


___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] metapost input file

2019-11-12 Thread Bruce Mutton
Henry

Your solution looks very similar to this wiki post 
<https://therion.speleo.sk/wiki/tex?s%5b%5d=texinputs#changing_the_look_or_layout_of_a_map_output>
  but with some differences.

 

Looking at my standard texmf.cnf file, it has

 

TEXINPUTS = $TEXMF/tex;.

MPINPUTS = .

 

If ‘.’ refers to the current folder, then can we specify a path relative to 
that?  I presume not (otherwise there would be no problem) but you suggest that 
relative paths can be specified from an absolute path enumerated in one of 
those variables.  So maybe they are relative, but with limitations?

It would be nice to have some actual examples of amended variables, and some 
Therion input mp and tex files snippets that use them.

 

Bruce

 

-Original Message-
From: Therion  On Behalf Of henry.benn...@dell.com
Sent: Wednesday, 13 November 2019 07:55
To: therion@speleo.sk
Subject: Re: [Therion] metapost input file

 

Hi Andrew,

 

To make the command data portable you can use relative paths but you need to 
define your root in the texmf.cnf file which is located in \therion\texmf\web2c 
folder (in windows).

 

I've used this 

 

   TEXINPUTS = $TEXMF/tex;C:/path/to/your/therion/root/;.

   MPINPUTS = C:/path/to/your/therion/root/;.

 

you will need to change this to your source paths.

 

You may find that you are unable to save the texmf.cnf file unless you edit it 
as the host administrator.  To do this open a command prompt as an 
administrator and then edit the file directly from there.

 

Not quite what you were looking for prehaps, but certainly makes for portable 
codebases.

 

Henry

 

-Original Message-

From: Therion < <mailto:therion-boun...@speleo.sk> therion-boun...@speleo.sk> 
On Behalf Of Andrew Atkinson

Sent: 12 November 2019 17:06

To: List for Therion users

Subject: [Therion] metapost input file

 

My layouts for my areas has become difficult to manage, especially all the 
metapost.

 

input file works in metapost, but requires the full path, is there a way to 
find the path of the file that you are in and us that as a base. We use version 
control so different machines have different file paths, so really want to 
avoid this.

 

At the moment I have make a different file for my symbols and in each file have 
to have a layout/endlayout and code metapost/endcode, then in the master file I 
have to input outside the layout and then copy the layout for each file, which 
works but it would be so much nicer to just have

 

input symbol.mp inside the one code metapost/ endcode

 

thanks

 

Andrew

 

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] metapost input file

2019-11-12 Thread Henry.Bennett
Hi Andrew,

To make the command data portable you can use relative paths but you need to 
define your root in the texmf.cnf file which is located in \therion\texmf\web2c 
folder (in windows).

I've used this 

   TEXINPUTS = $TEXMF/tex;C:/path/to/your/therion/root/;.
   MPINPUTS = C:/path/to/your/therion/root/;.

you will need to change this to your source paths.

You may find that you are unable to save the texmf.cnf file unless you edit it 
as the host administrator.  To do this open a command prompt as an 
administrator and then edit the file directly from there.

Not quite what you were looking for prehaps, but certainly makes for portable 
codebases.

Henry

-Original Message-
From: Therion  On Behalf Of Andrew Atkinson
Sent: 12 November 2019 17:06
To: List for Therion users
Subject: [Therion] metapost input file


[EXTERNAL EMAIL] 

My layouts for my areas has become difficult to manage, especially all the 
metapost.

input file works in metapost, but requires the full path, is there a way to 
find the path of the file that you are in and us that as a base. We use version 
control so different machines have different file paths, so really want to 
avoid this.

At the moment I have make a different file for my symbols and in each file have 
to have a layout/endlayout and code metapost/endcode, then in the master file I 
have to input outside the layout and then copy the layout for each file, which 
works but it would be so much nicer to just have

input symbol.mp inside the one code metapost/ endcode

thanks

Andrew
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] metapost input file

2019-11-12 Thread Andrew Atkinson
My layouts for my areas has become difficult to manage, especially all
the metapost.

input file works in metapost, but requires the full path, is there a way
to find the path of the file that you are in and us that as a base. We
use version control so different machines have different file paths, so
really want to avoid this.

At the moment I have make a different file for my symbols and in each
file have to have a layout/endlayout and code metapost/endcode, then in
the master file I have to input outside the layout and then copy the
layout for each file, which works but it would be so much nicer to just
have

input symbol.mp inside the one code metapost/ endcode

thanks

Andrew
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] Metapost area block

2018-12-31 Thread Andrew Atkinson via Therion
After a meeting the UK Cave Surveying Group had in November, some
thought the the block did not look that good, and could be improved,
with different sided block. Work started and I have eventually got round
to finishing it. Based on the AUT version (which is based on others by
the looks of it.) I have made it so that there are variables at the
start so people can adjust it to their personal preference with nearly
no knowledge of MetaPost (not that I have much!)

https://therion.speleo.sk/wiki/metapost#customisable_area_blocks_with_different_number_of_sides

The loop for drawing different sided blocks could be improved, this is
the quick and dirty play.

Some things I could really do with help improving. To get rid of the
transparency of other blocks below, I have had to call thclean three
times, there has to be a better way.

Also blocks at the edge, there tends to be too much space, I have an
infinite loop, which works, sort of, but tends to leave spaces, a better
solution would be good. Blocks tend to pile up near walls, but that
would need to be able to differentiate between the lines that make up
the border, can that be done?

I have also added a fixed rotation, then some variability around that,
to try to simulate bedding blocks. Currently uniformdeviate is used,
MetaPost seems to have normaldeviate, which may be better for this, but
when trying it in Therion, it appears not to be a recognised command?

This also leads to the question, can any of these settings be accesses
from the th2 file, maybe as an option rather than by changing the MetaPost?

For people to play, I've placed the test files at
http://wotcc.org.uk/__Survey/BoulderTestArea.zip

sorry lots of questions, thanks in advance

Andrew
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] Metapost

2018-11-26 Thread Pavel Herich via Therion

Hi all,
I look for code of "snail shell" written in metapost, to use it as point 
u (for organodetritic limestone layers), but I am not able to find 
anything, as well I haven´t any skills to write it by myself. Does 
anybody posses this kind of code?

Thank you
Pavel
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Metapost exit code -- 2

2017-07-05 Thread Saeid Bostandoust via Therion
chael From: Therion [mailto:therion-boun...@speleo.sk] On 
Behalf Of Saeid Bostandoust via Therion
Sent: Sunday, July 2, 2017 8:56 AM
To: List for Therion users
Cc: Saeid Bostandoust
Subject: Re: [Therion] Metapost exit code -- 2 Thanks Bruce, but i dont 
understand how can i found the problem and what is that realy... On Sunday, 
July 2, 2017 12:26 AM, Bruce Mutton via Therion <therion@speleo.sk> wrote: 
SaeidTry this 
https://therion.speleo.sk/wiki/faq#what_does_error_--_cp_exit_code_--_2_mean 
Bruce From: Therion [mailto:therion-boun...@speleo.sk] On Behalf Of Saeid 
Bostandoust via Therion
Sent: Sunday, 2 July 2017 3:36 AM
To: therion@speleo.sk
Cc: Saeid Bostandoust <ssbos...@yahoo.com>
Subject: [Therion] Metapost exit code -- 2 Hi, What is this exit code? and why 
it happen? and how to cor





___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


   ___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Metapost exit code -- 2

2017-07-03 Thread Martin Sluka via Therion
>> [Warning: scrap outline intersects itself in scrap Cave-Plan1@Shapur] [12]
>>> [13] [14] (./mptextmp.mp) [15] )
>>> 
>>> 
>>> On Sunday, July 2, 2017 10:31 AM, Saeid Bostandoust via Therion 
>>> <therion@speleo.sk <mailto:therion@speleo.sk>> wrote:
>>> 
>>> 
>>> Thanks for answering.
>>> I found the problem nearly, my project plan is very large and a th2 file of 
>>> plan is about 23000 lines, im delete most of lines and reduce it to near 
>>> 5000 lines and all done without errors... what should i do now?
>>> maybe 23000 lines cannot be parsed and processed with metapost...
>>> 
>>> 
>>> On Sunday, July 2, 2017 6:55 AM, michael brewer via Therion 
>>> <therion@speleo.sk <mailto:therion@speleo.sk>> wrote:
>>> 
>>> 
>>> Hi
>>> I had this error recently and solved it by changing the scale of the output 
>>> from 1 500 to 1 1000. I assumed  my output was exceeding the size allowable 
>>> for the pdf document?
>>>  
>>> Michael
>>>  
>>> From: Therion [mailto:therion-boun...@speleo.sk 
>>> <mailto:therion-boun...@speleo.sk>] On Behalf Of Saeid Bostandoust via 
>>> Therion
>>> Sent: Sunday, July 2, 2017 8:56 AM
>>> To: List for Therion users
>>> Cc: Saeid Bostandoust
>>> Subject: Re: [Therion] Metapost exit code -- 2
>>>  
>>> Thanks Bruce, but i dont understand how can i found the problem and what is 
>>> that realy...
>>>  
>>> On Sunday, July 2, 2017 12:26 AM, Bruce Mutton via Therion 
>>> <therion@speleo.sk <mailto:therion@speleo.sk>> wrote:
>>>  
>>> Saeid
>>> Try this 
>>> https://therion.speleo.sk/wiki/faq#what_does_error_--_cp_exit_code_--_2_mean
>>>  
>>> <https://therion.speleo.sk/wiki/faq#what_does_error_--_cp_exit_code_--_2_mean>
>>>  
>>> Bruce
>>>  
>>> From: Therion [mailto:therion-boun...@speleo.sk 
>>> <mailto:therion-boun...@speleo.sk>] On Behalf Of Saeid Bostandoust via 
>>> Therion
>>> Sent: Sunday, 2 July 2017 3:36 AM
>>> To: therion@speleo.sk <mailto:therion@speleo.sk>
>>> Cc: Saeid Bostandoust <ssbos...@yahoo.com <mailto:ssbos...@yahoo.com>>
>>> Subject: [Therion] Metapost exit code -- 2
>>>  
>>> Hi, What is this exit code? and why it happen? and how to cor
> 
> 
> 
> 
> ___
> Therion mailing list
> Therion@speleo.sk <mailto:Therion@speleo.sk>
> https://mailman.speleo.sk/listinfo/therion 
> <https://mailman.speleo.sk/listinfo/therion>
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Metapost exit code -- 2

2017-07-02 Thread Saeid Bostandoust via Therion
iv596172 div.yiv596172msochpdefault1 
{margin-right:0cm;margin-left:0cm;font-size:10.0pt;}#yiv596172 
span.yiv596172BalloonTextChar {}#yiv596172 
span.yiv596172EmailStyle31 {color:#1F497D;}#yiv596172 
.yiv596172MsoChpDefault {font-size:10.0pt;}#yiv596172 filtered 
{margin:72.0pt 72.0pt 72.0pt 72.0pt;}#yiv596172 
div.yiv596172WordSection1 {}#yiv596172 HiI had this error recently and 
solved it by changing the scale of the output from 1 500 to 1 1000. I assumed  
my output was exceeding the size allowable for the pdf document?  Michael  
From: Therion [mailto:therion-boun...@speleo.sk] On Behalf Of Saeid Bostandoust 
via Therion
Sent: Sunday, July 2, 2017 8:56 AM
To: List for Therion users
Cc: Saeid Bostandoust
Subject: Re: [Therion] Metapost exit code -- 2  Thanks Bruce, but i dont 
understand how can i found the problem and what is that realy...  On Sunday, 
July 2, 2017 12:26 AM, Bruce Mutton via Therion <therion@speleo.sk> wrote:  
SaeidTry this 
https://therion.speleo.sk/wiki/faq#what_does_error_--_cp_exit_code_--_2_mean 
Bruce From: Therion [mailto:therion-boun...@speleo.sk] On Behalf Of Saeid 
Bostandoust via Therion
Sent: Sunday, 2 July 2017 3:36 AM
To: therion@speleo.sk
Cc: Saeid Bostandoust <ssbos...@yahoo.com>
Subject: [Therion] Metapost exit code -- 2 Hi, What is this exit code? and why 
it happen? and how to correct that?Thanks. This is MetaPost, version 1.209 
(kpathsea version 5.1.0) (mem=mpost 2010.01.31)  1 JUL 2017 18:59
**data.mp
(./data.mp [4001] [4002] [4003] [4004] [4005] [4006] [4007] [4008] [4009] [4010
] [4011] [4012] [4013]
[1]
! Value is too large (14667).
<for(picture)> q:=pathpart(EXPR0);tmp:=length.q;
    s:=decimal(roundone(xpart.po...

draw_downscrap->...te.s.to.clip_name;endfor;endfor
  ;write"closepath fill"to.b...
l.23507 draw_downscrap
  ;
The equation I just processed has given some variable
a value of 4096 or more. Continue and I'll try to cope
with that big value; but it might be dangerous.
(Set warningcheck:=0 to suppress this message.)

[2] [3] [4] (./mptextmp.mp) [5] )
 
Here is how much of MetaPost's memory you used:
 1151 strings out of 1162
 13347 string characters out of 20720
 716551 words of memory out of 150
 1391 symbolic tokens out of 16384
 9i,75n,11p,197b,4f stack positions out of 300i,84n,5000p,200b,15f

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


   ___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Metapost exit code -- 2

2017-07-02 Thread Martin Sluka via Therion
An scrap is a unit from which all Therion's output are created. 

So all objects of particular scrap MUST be between lines scrap - endsrap in th2 
files. Of they are outside, they will not be drawn. 

It is not simple work, all active objects of an active scrap are in blue. On 
top right corner of map editor is a window where is structure of your th2 file. 
Above it are buttons for selecting different parts of overall th2 file. Select 
the particular scrap by that button and check on map window if everything of 
that scrap is selected. If not check the line number of endscrap command of 
that scrap. There is a button "Move to" just bellow  of window with th2 
structure. Write there line number of endscrap, select missing objects on by 
one and press "Move to". 

Repeat it untill all objects will be in their particular scraps. 

Sorry, but no more simple way. 

Recommendation: Create small scraps  from beginning. 

m.s. 

Odesláno z iPhonu

2. 7. 2017 v 9:20, Saeid Bostandoust via Therion <therion@speleo.sk>:

> Im resolve the problem by split my scrap into small scraps but another 
> problems occurs.
> 1- scrap outline intersects itself
> 2- most of pit lines, slope lines, rock-border lines and etc... not exported 
> to pdf
> What should i do?
> 
> ### metapost log file 
> This is MetaPost, version 1.209 (kpathsea version 5.1.0) (mem=mpost 
> 2010.01.31)  2 JUL 2017 09:52
> **data.mp
> (./data.mp [4001] [4002] [4003] [4004] [4005] [4006] [4007] [4008] [4009] 
> [4010
> ] [4011] [4012] [4013]
> [1] [2]
> [Warning: scrap outline intersects itself in scrap Cave-Plan4@Shapur]
> [Warning: scrap outline intersects itself in scrap Cave-Plan4@Shapur] [3]
> [4] [5] [6] [7] [8]
> [Warning: scrap outline intersects itself in scrap Cave-Plan2@Shapur] [9]
> [10] [11]
> [Warning: scrap outline intersects itself in scrap Cave-Plan1@Shapur] [12]
> [13] [14] (./mptextmp.mp) [15] )
> 
> 
> On Sunday, July 2, 2017 10:31 AM, Saeid Bostandoust via Therion 
> <therion@speleo.sk> wrote:
> 
> 
> Thanks for answering.
> I found the problem nearly, my project plan is very large and a th2 file of 
> plan is about 23000 lines, im delete most of lines and reduce it to near 5000 
> lines and all done without errors... what should i do now?
> maybe 23000 lines cannot be parsed and processed with metapost...
> 
> 
> On Sunday, July 2, 2017 6:55 AM, michael brewer via Therion 
> <therion@speleo.sk> wrote:
> 
> 
> Hi
> I had this error recently and solved it by changing the scale of the output 
> from 1 500 to 1 1000. I assumed  my output was exceeding the size allowable 
> for the pdf document?
>  
> Michael
>  
> From: Therion [mailto:therion-boun...@speleo.sk] On Behalf Of Saeid 
> Bostandoust via Therion
> Sent: Sunday, July 2, 2017 8:56 AM
> To: List for Therion users
> Cc: Saeid Bostandoust
> Subject: Re: [Therion] Metapost exit code -- 2
>  
> Thanks Bruce, but i dont understand how can i found the problem and what is 
> that realy...
>  
> On Sunday, July 2, 2017 12:26 AM, Bruce Mutton via Therion 
> <therion@speleo.sk> wrote:
>  
> Saeid
> Try this 
> https://therion.speleo.sk/wiki/faq#what_does_error_--_cp_exit_code_--_2_mean
>  
> Bruce
>  
> From: Therion [mailto:therion-boun...@speleo.sk] On Behalf Of Saeid 
> Bostandoust via Therion
> Sent: Sunday, 2 July 2017 3:36 AM
> To: therion@speleo.sk
> Cc: Saeid Bostandoust <ssbos...@yahoo.com>
> Subject: [Therion] Metapost exit code -- 2
>  
> Hi, What is this exit code? and why it happen? and how to correct that?
> Thanks.
>  
> This is MetaPost, version 1.209 (kpathsea version 5.1.0) (mem=mpost 
> 2010.01.31)  1 JUL 2017 18:59
> **data.mp
> (./data.mp [4001] [4002] [4003] [4004] [4005] [4006] [4007] [4008] [4009] 
> [4010
> ] [4011] [4012] [4013]
> [1]
> ! Value is too large (14667).
> <for(picture)> q:=pathpart(EXPR0);tmp:=length.q;
> 
> s:=decimal(roundone(xpart.po...
> 
> draw_downscrap->...te.s.to.clip_name;endfor;endfor
>   ;write"closepath 
> fill"to.b...
> l.23507 draw_downscrap
>   ;
> The equation I just processed has given some variable
> a value of 4096 or more. Continue and I'll try to cope
> with that big value; but it might be dangerous.
> (Set warningcheck:=0 to suppress this message.)
> 
> [2] [3] [4] (./mptextmp.mp) [5] )
>  
> Here is how much of MetaPost's memory you used:
>  1151 strings out of 1162
>  13347 string characters out of 20720
>  716551 words of memory out of 150
>  1391 symbolic tokens out of 16384
>  9i,75n,11p,197b,4f stack positions out of 300i,84n,5000p,200b,15f
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Metapost exit code -- 2

2017-07-02 Thread Martin Sluka via Therion
There is a problem with maximum size of one scrap. Because Metapost creates 
vector images of scrap after scrap which are than connected together and 
exported to TeX and PDF. The maximum for one image for metapost is app. 5 m. 

So the solution could be to create smaller scraps or change the scale. 

m.s. 

Odesláno z iPhonu

2. 7. 2017 v 8:00, Saeid Bostandoust via Therion <therion@speleo.sk>:

> Thanks for answering.
> I found the problem nearly, my project plan is very large and a th2 file of 
> plan is about 23000 lines, im delete most of lines and reduce it to near 5000 
> lines and all done without errors... what should i do now?
> maybe 23000 lines cannot be parsed and processed with metapost...
> 
> 
> On Sunday, July 2, 2017 6:55 AM, michael brewer via Therion 
> <therion@speleo.sk> wrote:
> 
> 
> Hi
> I had this error recently and solved it by changing the scale of the output 
> from 1 500 to 1 1000. I assumed  my output was exceeding the size allowable 
> for the pdf document?
>  
> Michael
>  
> From: Therion [mailto:therion-boun...@speleo.sk] On Behalf Of Saeid 
> Bostandoust via Therion
> Sent: Sunday, July 2, 2017 8:56 AM
> To: List for Therion users
> Cc: Saeid Bostandoust
> Subject: Re: [Therion] Metapost exit code -- 2
>  
> Thanks Bruce, but i dont understand how can i found the problem and what is 
> that realy...
>  
> On Sunday, July 2, 2017 12:26 AM, Bruce Mutton via Therion 
> <therion@speleo.sk> wrote:
>  
> Saeid
> Try this 
> https://therion.speleo.sk/wiki/faq#what_does_error_--_cp_exit_code_--_2_mean
>  
> Bruce
>  
> From: Therion [mailto:therion-boun...@speleo.sk] On Behalf Of Saeid 
> Bostandoust via Therion
> Sent: Sunday, 2 July 2017 3:36 AM
> To: therion@speleo.sk
> Cc: Saeid Bostandoust <ssbos...@yahoo.com>
> Subject: [Therion] Metapost exit code -- 2
>  
> Hi, What is this exit code? and why it happen? and how to correct that?
> Thanks.
>  
> This is MetaPost, version 1.209 (kpathsea version 5.1.0) (mem=mpost 
> 2010.01.31)  1 JUL 2017 18:59
> **data.mp
> (./data.mp [4001] [4002] [4003] [4004] [4005] [4006] [4007] [4008] [4009] 
> [4010
> ] [4011] [4012] [4013]
> [1]
> ! Value is too large (14667).
> <for(picture)> q:=pathpart(EXPR0);tmp:=length.q;
> 
> s:=decimal(roundone(xpart.po...
> 
> draw_downscrap->...te.s.to.clip_name;endfor;endfor
>   ;write"closepath 
> fill"to.b...
> l.23507 draw_downscrap
>   ;
> The equation I just processed has given some variable
> a value of 4096 or more. Continue and I'll try to cope
> with that big value; but it might be dangerous.
> (Set warningcheck:=0 to suppress this message.)
> 
> [2] [3] [4] (./mptextmp.mp) [5] )
>  
> Here is how much of MetaPost's memory you used:
>  1151 strings out of 1162
>  13347 string characters out of 20720
>  716551 words of memory out of 150
>  1391 symbolic tokens out of 16384
>  9i,75n,11p,197b,4f stack positions out of 300i,84n,5000p,200b,15f
>  2056 string compactions (moved 27097277 characters, 2130567 strings)
> 18 output files written: data.1 .. data.4013
> 
>  end of metapost log file 
> C:\Program Files\Therion\therion.exe: error -- metapost exit code -- 2
> writing xtherion file ... done
>  
>  
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
>  
>  
> 
> Virus-free. www.avg.com
>  
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
> 
> 
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Metapost exit code -- 2

2017-07-02 Thread Saeid Bostandoust via Therion
Im resolve the problem by split my scrap into small scraps but another problems 
occurs.1- scrap outline intersects itself2- most of pit lines, slope lines, 
rock-border lines and etc... not exported to pdfWhat should i do?

### metapost log file 
This is MetaPost, version 1.209 (kpathsea version 5.1.0) (mem=mpost 2010.01.31) 
 2 JUL 2017 09:52
**data.mp
(./data.mp [4001] [4002] [4003] [4004] [4005] [4006] [4007] [4008] [4009] [4010
] [4011] [4012] [4013]
[1] [2]
[Warning: scrap outline intersects itself in scrap Cave-Plan4@Shapur]
[Warning: scrap outline intersects itself in scrap Cave-Plan4@Shapur] [3]
[4] [5] [6] [7] [8]
[Warning: scrap outline intersects itself in scrap Cave-Plan2@Shapur] [9]
[10] [11]
[Warning: scrap outline intersects itself in scrap Cave-Plan1@Shapur] [12]
[13] [14] (./mptextmp.mp) [15] ) 

On Sunday, July 2, 2017 10:31 AM, Saeid Bostandoust via Therion 
<therion@speleo.sk> wrote:
 

 Thanks for answering.I found the problem nearly, my project plan is very large 
and a th2 file of plan is about 23000 lines, im delete most of lines and reduce 
it to near 5000 lines and all done without errors... what should i do now?maybe 
23000 lines cannot be parsed and processed with metapost... 

On Sunday, July 2, 2017 6:55 AM, michael brewer via Therion 
<therion@speleo.sk> wrote:
 

 #yiv2039386950 -- filtered {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 
4;}#yiv2039386950 filtered {panose-1:2 4 5 3 5 4 6 3 2 4;}#yiv2039386950 
filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv2039386950 
filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}#yiv2039386950 
p.yiv2039386950MsoNormal, #yiv2039386950  li.yiv2039386950MsoNormal, 
#yiv2039386950 div.yiv2039386950MsoNormal 
{margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;}#yiv2039386950 a:link, 
#yiv2039386950 span.yiv2039386950MsoHyperlink 
{color:blue;text-decoration:underline;}#yiv2039386950 a:visited, #yiv2039386950 
span.yiv2039386950MsoHyperlinkFollowed 
{color:purple;text-decoration:underline;}#yiv2039386950 
p.yiv2039386950MsoAcetate, #yiv2039386950 li.yiv2039386950MsoAcetate, 
#yiv2039386950 div.yiv2039386950MsoAcetate 
{margin:0cm;margin-bottom:.0001pt;font-size:8.0pt;}#yiv2039386950 
p.yiv2039386950msonormal0, #yiv2039386950 li.yiv2039386950msonormal0, 
#yiv2039386950 div.yiv2039386950msonormal0 
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;}#yiv2039386950 
p.yiv2039386950msonormal, #yiv2039386950 li.yiv2039386950msonormal, 
#yiv2039386950 div.yiv2039386950msonormal 
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;}#yiv2039386950 
p.yiv2039386950msochpdefault, #yiv2039386950 li.yiv2039386950msochpdefault, 
#yiv2039386950 div.yiv2039386950msochpdefault 
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;}#yiv2039386950 
span.yiv2039386950msohyperlink {}#yiv2039386950 
span.yiv2039386950msohyperlinkfollowed {}#yiv2039386950 
span.yiv2039386950emailstyle18 {}#yiv2039386950 p.yiv2039386950msonormal1, 
#yiv2039386950 li.yiv2039386950msonormal1, #yiv2039386950 
div.yiv2039386950msonormal1 
{margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;}#yiv2039386950 
span.yiv2039386950msohyperlink1 
{color:#0563C1;text-decoration:underline;}#yiv2039386950 
span.yiv2039386950msohyperlinkfollowed1 
{color:#954F72;text-decoration:underline;}#yiv2039386950 
p.yiv2039386950msonormal01, #yiv2039386950 li.yiv2039386950msonormal01, 
#yiv2039386950 div.yiv2039386950msonormal01 
{margin-right:0cm;margin-left:0cm;font-size:11.0pt;}#yiv2039386950 
span.yiv2039386950emailstyle181 {color:windowtext;}#yiv2039386950 
p.yiv2039386950msochpdefault1, #yiv2039386950 li.yiv2039386950msochpdefault1, 
#yiv2039386950 div.yiv2039386950msochpdefault1 
{margin-right:0cm;margin-left:0cm;font-size:10.0pt;}#yiv2039386950 
span.yiv2039386950BalloonTextChar {}#yiv2039386950 
span.yiv2039386950EmailStyle31 {color:#1F497D;}#yiv2039386950 
.yiv2039386950MsoChpDefault {font-size:10.0pt;}#yiv2039386950 filtered 
{margin:72.0pt 72.0pt 72.0pt 72.0pt;}#yiv2039386950 
div.yiv2039386950WordSection1 {}#yiv2039386950 HiI had this error recently and 
solved it by changing the scale of the output from 1 500 to 1 1000. I assumed  
my output was exceeding the size allowable for the pdf document?  Michael  
From: Therion [mailto:therion-boun...@speleo.sk] On Behalf Of Saeid Bostandoust 
via Therion
Sent: Sunday, July 2, 2017 8:56 AM
To: List for Therion users
Cc: Saeid Bostandoust
Subject: Re: [Therion] Metapost exit code -- 2  Thanks Bruce, but i dont 
understand how can i found the problem and what is that realy...  On Sunday, 
July 2, 2017 12:26 AM, Bruce Mutton via Therion <therion@speleo.sk> wrote:  
SaeidTry this 
https://therion.speleo.sk/wiki/faq#what_does_error_--_cp_exit_code_--_2_mean 
Bruce From: Therion [mailto:therion-boun...@speleo.sk] On Behalf Of Saeid 
Bostandoust via Therion
Sent: Sunday, 2 July 2017 3:36 AM
To: therion@speleo.sk
Cc: Saeid Bostandoust <ssbos...@yahoo.c

Re: [Therion] Metapost exit code -- 2

2017-07-02 Thread Saeid Bostandoust via Therion
Thanks for answering.I found the problem nearly, my project plan is very large 
and a th2 file of plan is about 23000 lines, im delete most of lines and reduce 
it to near 5000 lines and all done without errors... what should i do now?maybe 
23000 lines cannot be parsed and processed with metapost... 

On Sunday, July 2, 2017 6:55 AM, michael brewer via Therion 
<therion@speleo.sk> wrote:
 

 #yiv7510318227 #yiv7510318227 -- _filtered #yiv7510318227 
{font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv7510318227 
{panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv7510318227 
{font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv7510318227 
{font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}#yiv7510318227 
#yiv7510318227 p.yiv7510318227MsoNormal, #yiv7510318227 
li.yiv7510318227MsoNormal, #yiv7510318227 div.yiv7510318227MsoNormal 
{margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;}#yiv7510318227 a:link, 
#yiv7510318227 span.yiv7510318227MsoHyperlink 
{color:blue;text-decoration:underline;}#yiv7510318227 a:visited, #yiv7510318227 
span.yiv7510318227MsoHyperlinkFollowed 
{color:purple;text-decoration:underline;}#yiv7510318227 
p.yiv7510318227MsoAcetate, #yiv7510318227 li.yiv7510318227MsoAcetate, 
#yiv7510318227 div.yiv7510318227MsoAcetate 
{margin:0cm;margin-bottom:.0001pt;font-size:8.0pt;}#yiv7510318227 
p.yiv7510318227msonormal0, #yiv7510318227 li.yiv7510318227msonormal0, 
#yiv7510318227 div.yiv7510318227msonormal0 
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;}#yiv7510318227 
p.yiv7510318227msonormal, #yiv7510318227 li.yiv7510318227msonormal, 
#yiv7510318227 div.yiv7510318227msonormal 
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;}#yiv7510318227 
p.yiv7510318227msochpdefault, #yiv7510318227 li.yiv7510318227msochpdefault, 
#yiv7510318227 div.yiv7510318227msochpdefault 
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;}#yiv7510318227 
span.yiv7510318227msohyperlink {}#yiv7510318227 
span.yiv7510318227msohyperlinkfollowed {}#yiv7510318227 
span.yiv7510318227emailstyle18 {}#yiv7510318227 p.yiv7510318227msonormal1, 
#yiv7510318227 li.yiv7510318227msonormal1, #yiv7510318227 
div.yiv7510318227msonormal1 
{margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;}#yiv7510318227 
span.yiv7510318227msohyperlink1 
{color:#0563C1;text-decoration:underline;}#yiv7510318227 
span.yiv7510318227msohyperlinkfollowed1 
{color:#954F72;text-decoration:underline;}#yiv7510318227 
p.yiv7510318227msonormal01, #yiv7510318227 li.yiv7510318227msonormal01, 
#yiv7510318227 div.yiv7510318227msonormal01 
{margin-right:0cm;margin-left:0cm;font-size:11.0pt;}#yiv7510318227 
span.yiv7510318227emailstyle181 {color:windowtext;}#yiv7510318227 
p.yiv7510318227msochpdefault1, #yiv7510318227 li.yiv7510318227msochpdefault1, 
#yiv7510318227 div.yiv7510318227msochpdefault1 
{margin-right:0cm;margin-left:0cm;font-size:10.0pt;}#yiv7510318227 
span.yiv7510318227BalloonTextChar {}#yiv7510318227 
span.yiv7510318227EmailStyle31 {color:#1F497D;}#yiv7510318227 
.yiv7510318227MsoChpDefault {font-size:10.0pt;} _filtered #yiv7510318227 
{margin:72.0pt 72.0pt 72.0pt 72.0pt;}#yiv7510318227 
div.yiv7510318227WordSection1 {}#yiv7510318227 HiI had this error recently and 
solved it by changing the scale of the output from 1 500 to 1 1000. I assumed  
my output was exceeding the size allowable for the pdf document?  Michael  
From: Therion [mailto:therion-boun...@speleo.sk] On Behalf Of Saeid Bostandoust 
via Therion
Sent: Sunday, July 2, 2017 8:56 AM
To: List for Therion users
Cc: Saeid Bostandoust
Subject: Re: [Therion] Metapost exit code -- 2  Thanks Bruce, but i dont 
understand how can i found the problem and what is that realy...  On Sunday, 
July 2, 2017 12:26 AM, Bruce Mutton via Therion <therion@speleo.sk> wrote:  
SaeidTry this 
https://therion.speleo.sk/wiki/faq#what_does_error_--_cp_exit_code_--_2_mean 
Bruce From: Therion [mailto:therion-boun...@speleo.sk] On Behalf Of Saeid 
Bostandoust via Therion
Sent: Sunday, 2 July 2017 3:36 AM
To: therion@speleo.sk
Cc: Saeid Bostandoust <ssbos...@yahoo.com>
Subject: [Therion] Metapost exit code -- 2 Hi, What is this exit code? and why 
it happen? and how to correct that?Thanks. This is MetaPost, version 1.209 
(kpathsea version 5.1.0) (mem=mpost 2010.01.31)  1 JUL 2017 18:59
**data.mp
(./data.mp [4001] [4002] [4003] [4004] [4005] [4006] [4007] [4008] [4009] [4010
] [4011] [4012] [4013]
[1]
! Value is too large (14667).
<for(picture)> q:=pathpart(EXPR0);tmp:=length.q;
    s:=decimal(roundone(xpart.po...

draw_downscrap->...te.s.to.clip_name;endfor;endfor
  ;write"closepath fill"to.b...
l.23507 draw_downscrap
  ;
The equation I just processed has given some variable
a value of 4096 or more. Continue and I'll try to cope
with that big value; but it might be dangerous.
(Set warningcheck:=0 to suppress this message.)

[2] [3] [4] (./

Re: [Therion] Metapost exit code -- 2

2017-07-01 Thread michael brewer via Therion
Hi

I had this error recently and solved it by changing the scale of the output 
from 1 500 to 1 1000. I assumed  my output was exceeding the size allowable for 
the pdf document?

 

Michael

 

From: Therion [mailto:therion-boun...@speleo.sk] On Behalf Of Saeid Bostandoust 
via Therion
Sent: Sunday, July 2, 2017 8:56 AM
To: List for Therion users
Cc: Saeid Bostandoust
Subject: Re: [Therion] Metapost exit code -- 2

 

Thanks Bruce, but i dont understand how can i found the problem and what is 
that realy...

 

On Sunday, July 2, 2017 12:26 AM, Bruce Mutton via Therion <therion@speleo.sk> 
wrote:

 

Saeid

Try this 
https://therion.speleo.sk/wiki/faq#what_does_error_--_cp_exit_code_--_2_mean

 

Bruce

 

From: Therion [mailto:therion-boun...@speleo.sk] On Behalf Of Saeid Bostandoust 
via Therion
Sent: Sunday, 2 July 2017 3:36 AM
To: therion@speleo.sk
Cc: Saeid Bostandoust <ssbos...@yahoo.com>
Subject: [Therion] Metapost exit code -- 2

 

Hi, What is this exit code? and why it happen? and how to correct that?

Thanks.

 

This is MetaPost, version 1.209 (kpathsea version 5.1.0) (mem=mpost 2010.01.31) 
 1 JUL 2017 18:59
**data.mp
(./data.mp [4001] [4002] [4003] [4004] [4005] [4006] [4007] [4008] [4009] [4010
] [4011] [4012] [4013]
[1]
! Value is too large (14667).
<for(picture)> q:=pathpart(EXPR0);tmp:=length.q;
s:=decimal(roundone(xpart.po...

draw_downscrap->...te.s.to.clip_name;endfor;endfor
  ;write"closepath fill"to.b...
l.23507 draw_downscrap
  ;
The equation I just processed has given some variable
a value of 4096 or more. Continue and I'll try to cope
with that big value; but it might be dangerous.
(Set warningcheck:=0 to suppress this message.)

[2] [3] [4] (./mptextmp.mp) [5] )
 
Here is how much of MetaPost's memory you used:
 1151 strings out of 1162
 13347 string characters out of 20720
 716551 words of memory out of 150
 1391 symbolic tokens out of 16384
 9i,75n,11p,197b,4f stack positions out of 300i,84n,5000p,200b,15f
 2056 string compactions (moved 27097277 characters, 2130567 strings)
18 output files written: data.1 .. data.4013

 end of metapost log file 
C:\Program Files\Therion\therion.exe: error -- metapost exit code -- 2
writing xtherion file ... done

 

 

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

 

 


 
<http://www.avg.com/email-signature?utm_medium=email_source=link_campaign=sig-email_content=emailclient>
 

Virus-free.  
<http://www.avg.com/email-signature?utm_medium=email_source=link_campaign=sig-email_content=emailclient>
 www.avg.com 

 

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Metapost exit code -- 2

2017-07-01 Thread Saeid Bostandoust via Therion
Thanks Bruce, but i dont understand how can i found the problem and what is 
that realy...
 

On Sunday, July 2, 2017 12:26 AM, Bruce Mutton via Therion 
<therion@speleo.sk> wrote:
 

 #yiv0506687235 #yiv0506687235 -- _filtered #yiv0506687235 
{font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv0506687235 
{panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv0506687235 
{font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv0506687235 
#yiv0506687235 p.yiv0506687235MsoNormal, #yiv0506687235 
li.yiv0506687235MsoNormal, #yiv0506687235 div.yiv0506687235MsoNormal 
{margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;}#yiv0506687235 a:link, 
#yiv0506687235 span.yiv0506687235MsoHyperlink 
{color:#0563C1;text-decoration:underline;}#yiv0506687235 a:visited, 
#yiv0506687235 span.yiv0506687235MsoHyperlinkFollowed 
{color:#954F72;text-decoration:underline;}#yiv0506687235 
p.yiv0506687235msonormal0, #yiv0506687235 li.yiv0506687235msonormal0, 
#yiv0506687235 div.yiv0506687235msonormal0 
{margin-right:0cm;margin-left:0cm;font-size:11.0pt;}#yiv0506687235 
span.yiv0506687235EmailStyle18 {color:windowtext;}#yiv0506687235 
.yiv0506687235MsoChpDefault {font-size:10.0pt;} _filtered #yiv0506687235 
{margin:72.0pt 72.0pt 72.0pt 72.0pt;}#yiv0506687235 
div.yiv0506687235WordSection1 {}#yiv0506687235 SaeidTry this 
https://therion.speleo.sk/wiki/faq#what_does_error_--_cp_exit_code_--_2_mean  
Bruce  From: Therion [mailto:therion-boun...@speleo.sk] On Behalf Of Saeid 
Bostandoust via Therion
Sent: Sunday, 2 July 2017 3:36 AM
To: therion@speleo.sk
Cc: Saeid Bostandoust <ssbos...@yahoo.com>
Subject: [Therion] Metapost exit code -- 2  Hi, What is this exit code? and why 
it happen? and how to correct that?Thanks.  This is MetaPost, version 1.209 
(kpathsea version 5.1.0) (mem=mpost 2010.01.31)  1 JUL 2017 18:59
**data.mp
(./data.mp [4001] [4002] [4003] [4004] [4005] [4006] [4007] [4008] [4009] [4010
] [4011] [4012] [4013]
[1]
! Value is too large (14667).
<for(picture)> q:=pathpart(EXPR0);tmp:=length.q;
    s:=decimal(roundone(xpart.po...

draw_downscrap->...te.s.to.clip_name;endfor;endfor
  ;write"closepath fill"to.b...
l.23507 draw_downscrap
  ;
The equation I just processed has given some variable
a value of 4096 or more. Continue and I'll try to cope
with that big value; but it might be dangerous.
(Set warningcheck:=0 to suppress this message.)

[2] [3] [4] (./mptextmp.mp) [5] )
 
Here is how much of MetaPost's memory you used:
 1151 strings out of 1162
 13347 string characters out of 20720
 716551 words of memory out of 150
 1391 symbolic tokens out of 16384
 9i,75n,11p,197b,4f stack positions out of 300i,84n,5000p,200b,15f
 2056 string compactions (moved 27097277 characters, 2130567 strings)
18 output files written: data.1 .. data.4013

 end of metapost log file 
C:\Program Files\Therion\therion.exe: error -- metapost exit code -- 2
writing xtherion file ... done    
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


   ___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Metapost exit code -- 2

2017-07-01 Thread Bruce Mutton via Therion
Saeid

Try this 
https://therion.speleo.sk/wiki/faq#what_does_error_--_cp_exit_code_--_2_mean

 

Bruce

 

From: Therion [mailto:therion-boun...@speleo.sk] On Behalf Of Saeid Bostandoust 
via Therion
Sent: Sunday, 2 July 2017 3:36 AM
To: therion@speleo.sk
Cc: Saeid Bostandoust <ssbos...@yahoo.com>
Subject: [Therion] Metapost exit code -- 2

 

Hi, What is this exit code? and why it happen? and how to correct that?

Thanks.

 

This is MetaPost, version 1.209 (kpathsea version 5.1.0) (mem=mpost 2010.01.31) 
 1 JUL 2017 18:59
**data.mp
(./data.mp [4001] [4002] [4003] [4004] [4005] [4006] [4007] [4008] [4009] [4010
] [4011] [4012] [4013]
[1]
! Value is too large (14667).
<for(picture)> q:=pathpart(EXPR0);tmp:=length.q;
s:=decimal(roundone(xpart.po...

draw_downscrap->...te.s.to.clip_name;endfor;endfor
  ;write"closepath fill"to.b...
l.23507 draw_downscrap
  ;
The equation I just processed has given some variable
a value of 4096 or more. Continue and I'll try to cope
with that big value; but it might be dangerous.
(Set warningcheck:=0 to suppress this message.)

[2] [3] [4] (./mptextmp.mp) [5] )
 
Here is how much of MetaPost's memory you used:
 1151 strings out of 1162
 13347 string characters out of 20720
 716551 words of memory out of 150
 1391 symbolic tokens out of 16384
 9i,75n,11p,197b,4f stack positions out of 300i,84n,5000p,200b,15f
 2056 string compactions (moved 27097277 characters, 2130567 strings)
18 output files written: data.1 .. data.4013

 end of metapost log file 
C:\Program Files\Therion\therion.exe: error -- metapost exit code -- 2
writing xtherion file ... done

 

 

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] First use of locally compiled Therion: metapost error

2017-02-21 Thread Rodrigo Severo via Therion
2017-02-21 11:11 GMT-03:00 Stacho Mudrak via Therion :

> Hi,
>
> I have finished implementation today, but it was a long term problem. Now
> therion should compile without any additional therion.ini modifications. If
> it does not find required fonts, it will not use them.
>

Just tested. It worked perfectly.


Thanks again,

Rodrigo


>
> S.
>
> On 21 February 2017 at 15:04, Rodrigo Severo via Therion <
> therion@speleo.sk> wrote:
>
>> Hi Stacho,
>>
>> 2017-02-21 8:48 GMT-03:00 Stacho Mudrak via Therion :
>>
>>> Hello,
>>>
>>> we have implemented Olly's proposal of tex-fonts-optional. It should
>>> work now I believe, because all non standard TeX fonts used are now
>>> optional.
>>>
>>
>> I'm not sure I understood. Have you implemented Olly's proposal after
>> yesterday afternoon?
>>
>> I'm asking because I got Therion's code yesterday afternoon and that code
>> got me the 768 metapost error that I had to fix by manually inserting the
>> *text-fonts* line in /etc/therion.ini. And again, just copying the
>> therion.ini would not have solved the issue as it has no uncommented lines
>> in it.
>>
>> May be there should be a new text-fonts-optional line on source's
>> therion.ini file. Is that what's missing now?
>>
>>
>> Regards,
>>
>> Rodrigo
>>
>>
>>
>>>
>>> S.
>>>
>>> On 21 February 2017 at 01:31, Rodrigo Severo via Therion <
>>> therion@speleo.sk> wrote:
>>>
 2017-02-20 21:00 GMT-03:00 Olly Betts :

> On Mon, Feb 20, 2017 at 08:40:36PM -0300, Rodrigo Severo via Therion
> wrote:
> > To fix it I had to include the following line on */etc/therion.ini*
> >
> > tex-fonts raw cmr10 cmti10 cmbx10 cmss10 cmssi10
> >
> > despite Therion Book stating at page 80 that this is the default
> setting.
> >
> > Should this line be uncommented on the default *therion.ini* file?
>
> Do you have the Ubuntu package of therion installed too?
>

 Yes, I do.


> If so, my guess is that /etc/therion.ini is from that package.


 I bet it is.


> Currently
> the Debian (and hence Ubuntu) packages have a couple of patches in this
> area - see the discussion here for details:
>
> https://github.com/therion/therion/pull/31
>
> Assuming I'm right, the quickest fix for your situation is probably to
> copy
> therion.ini from the source tree to /etc.
>

 I just checked the diferences between *therion.ini* from the source
 tree and the one at */etc/therion.ini*. There are a few but all on
 lines that are commented, so they are irrelevant for this situation.

 The only diference on a non commented line is exactly the line I
 included in */etc/therion.ini* that is not present on the *therion.ini* 
 file
 available at the source and also wasn't at */etc/therion.ini* until I
 included it myself.

 So, no, coping the *therion.ini* available at the source to
 */etc/therion.ini* wouldn't fix my issue.

 My issue is exactly the one discussed at the link you sent.
 Unfortunatelly that issue isn't solved yet.

 AFAICT, right now new Therion installations from source on Linux won't
 work because of error 768.


 Regards,

 Rodrigo



>
> Cheers,
> Olly
>


 ___
 Therion mailing list
 Therion@speleo.sk
 https://mailman.speleo.sk/listinfo/therion


>>>
>>> ___
>>> Therion mailing list
>>> Therion@speleo.sk
>>> https://mailman.speleo.sk/listinfo/therion
>>>
>>>
>>
>> ___
>> Therion mailing list
>> Therion@speleo.sk
>> https://mailman.speleo.sk/listinfo/therion
>>
>>
>
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
>
>
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] First use of locally compiled Therion: metapost error

2017-02-21 Thread Stacho Mudrak via Therion
Hi,

I have finished implementation today, but it was a long term problem. Now
therion should compile without any additional therion.ini modifications. If
it does not find required fonts, it will not use them.

S.

On 21 February 2017 at 15:04, Rodrigo Severo via Therion 
wrote:

> Hi Stacho,
>
> 2017-02-21 8:48 GMT-03:00 Stacho Mudrak via Therion :
>
>> Hello,
>>
>> we have implemented Olly's proposal of tex-fonts-optional. It should work
>> now I believe, because all non standard TeX fonts used are now optional.
>>
>
> I'm not sure I understood. Have you implemented Olly's proposal after
> yesterday afternoon?
>
> I'm asking because I got Therion's code yesterday afternoon and that code
> got me the 768 metapost error that I had to fix by manually inserting the
> *text-fonts* line in /etc/therion.ini. And again, just copying the
> therion.ini would not have solved the issue as it has no uncommented lines
> in it.
>
> May be there should be a new text-fonts-optional line on source's
> therion.ini file. Is that what's missing now?
>
>
> Regards,
>
> Rodrigo
>
>
>
>>
>> S.
>>
>> On 21 February 2017 at 01:31, Rodrigo Severo via Therion <
>> therion@speleo.sk> wrote:
>>
>>> 2017-02-20 21:00 GMT-03:00 Olly Betts :
>>>
 On Mon, Feb 20, 2017 at 08:40:36PM -0300, Rodrigo Severo via Therion
 wrote:
 > To fix it I had to include the following line on */etc/therion.ini*
 >
 > tex-fonts raw cmr10 cmti10 cmbx10 cmss10 cmssi10
 >
 > despite Therion Book stating at page 80 that this is the default
 setting.
 >
 > Should this line be uncommented on the default *therion.ini* file?

 Do you have the Ubuntu package of therion installed too?

>>>
>>> Yes, I do.
>>>
>>>
 If so, my guess is that /etc/therion.ini is from that package.
>>>
>>>
>>> I bet it is.
>>>
>>>
 Currently
 the Debian (and hence Ubuntu) packages have a couple of patches in this
 area - see the discussion here for details:

 https://github.com/therion/therion/pull/31

 Assuming I'm right, the quickest fix for your situation is probably to
 copy
 therion.ini from the source tree to /etc.

>>>
>>> I just checked the diferences between *therion.ini* from the source
>>> tree and the one at */etc/therion.ini*. There are a few but all on
>>> lines that are commented, so they are irrelevant for this situation.
>>>
>>> The only diference on a non commented line is exactly the line I
>>> included in */etc/therion.ini* that is not present on the *therion.ini* file
>>> available at the source and also wasn't at */etc/therion.ini* until I
>>> included it myself.
>>>
>>> So, no, coping the *therion.ini* available at the source to
>>> */etc/therion.ini* wouldn't fix my issue.
>>>
>>> My issue is exactly the one discussed at the link you sent.
>>> Unfortunatelly that issue isn't solved yet.
>>>
>>> AFAICT, right now new Therion installations from source on Linux won't
>>> work because of error 768.
>>>
>>>
>>> Regards,
>>>
>>> Rodrigo
>>>
>>>
>>>

 Cheers,
 Olly

>>>
>>>
>>> ___
>>> Therion mailing list
>>> Therion@speleo.sk
>>> https://mailman.speleo.sk/listinfo/therion
>>>
>>>
>>
>> ___
>> Therion mailing list
>> Therion@speleo.sk
>> https://mailman.speleo.sk/listinfo/therion
>>
>>
>
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
>
>
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] First use of locally compiled Therion: metapost error

2017-02-21 Thread Rodrigo Severo via Therion
Hi Stacho,

2017-02-21 8:48 GMT-03:00 Stacho Mudrak via Therion :

> Hello,
>
> we have implemented Olly's proposal of tex-fonts-optional. It should work
> now I believe, because all non standard TeX fonts used are now optional.
>

I'm not sure I understood. Have you implemented Olly's proposal after
yesterday afternoon?

I'm asking because I got Therion's code yesterday afternoon and that code
got me the 768 metapost error that I had to fix by manually inserting the
*text-fonts* line in /etc/therion.ini. And again, just copying the
therion.ini would not have solved the issue as it has no uncommented lines
in it.

May be there should be a new text-fonts-optional line on source's
therion.ini file. Is that what's missing now?


Regards,

Rodrigo



>
> S.
>
> On 21 February 2017 at 01:31, Rodrigo Severo via Therion <
> therion@speleo.sk> wrote:
>
>> 2017-02-20 21:00 GMT-03:00 Olly Betts :
>>
>>> On Mon, Feb 20, 2017 at 08:40:36PM -0300, Rodrigo Severo via Therion
>>> wrote:
>>> > To fix it I had to include the following line on */etc/therion.ini*
>>> >
>>> > tex-fonts raw cmr10 cmti10 cmbx10 cmss10 cmssi10
>>> >
>>> > despite Therion Book stating at page 80 that this is the default
>>> setting.
>>> >
>>> > Should this line be uncommented on the default *therion.ini* file?
>>>
>>> Do you have the Ubuntu package of therion installed too?
>>>
>>
>> Yes, I do.
>>
>>
>>> If so, my guess is that /etc/therion.ini is from that package.
>>
>>
>> I bet it is.
>>
>>
>>> Currently
>>> the Debian (and hence Ubuntu) packages have a couple of patches in this
>>> area - see the discussion here for details:
>>>
>>> https://github.com/therion/therion/pull/31
>>>
>>> Assuming I'm right, the quickest fix for your situation is probably to
>>> copy
>>> therion.ini from the source tree to /etc.
>>>
>>
>> I just checked the diferences between *therion.ini* from the source tree
>> and the one at */etc/therion.ini*. There are a few but all on lines that
>> are commented, so they are irrelevant for this situation.
>>
>> The only diference on a non commented line is exactly the line I included
>> in */etc/therion.ini* that is not present on the *therion.ini* file
>> available at the source and also wasn't at */etc/therion.ini* until I
>> included it myself.
>>
>> So, no, coping the *therion.ini* available at the source to
>> */etc/therion.ini* wouldn't fix my issue.
>>
>> My issue is exactly the one discussed at the link you sent.
>> Unfortunatelly that issue isn't solved yet.
>>
>> AFAICT, right now new Therion installations from source on Linux won't
>> work because of error 768.
>>
>>
>> Regards,
>>
>> Rodrigo
>>
>>
>>
>>>
>>> Cheers,
>>> Olly
>>>
>>
>>
>> ___
>> Therion mailing list
>> Therion@speleo.sk
>> https://mailman.speleo.sk/listinfo/therion
>>
>>
>
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
>
>
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] First use of locally compiled Therion: metapost error

2017-02-21 Thread Stacho Mudrak via Therion
Hello,

we have implemented Olly's proposal of tex-fonts-optional. It should work
now I believe, because all non standard TeX fonts used are now optional.

S.

On 21 February 2017 at 01:31, Rodrigo Severo via Therion 
wrote:

> 2017-02-20 21:00 GMT-03:00 Olly Betts :
>
>> On Mon, Feb 20, 2017 at 08:40:36PM -0300, Rodrigo Severo via Therion
>> wrote:
>> > To fix it I had to include the following line on */etc/therion.ini*
>> >
>> > tex-fonts raw cmr10 cmti10 cmbx10 cmss10 cmssi10
>> >
>> > despite Therion Book stating at page 80 that this is the default
>> setting.
>> >
>> > Should this line be uncommented on the default *therion.ini* file?
>>
>> Do you have the Ubuntu package of therion installed too?
>>
>
> Yes, I do.
>
>
>> If so, my guess is that /etc/therion.ini is from that package.
>
>
> I bet it is.
>
>
>> Currently
>> the Debian (and hence Ubuntu) packages have a couple of patches in this
>> area - see the discussion here for details:
>>
>> https://github.com/therion/therion/pull/31
>>
>> Assuming I'm right, the quickest fix for your situation is probably to
>> copy
>> therion.ini from the source tree to /etc.
>>
>
> I just checked the diferences between *therion.ini* from the source tree
> and the one at */etc/therion.ini*. There are a few but all on lines that
> are commented, so they are irrelevant for this situation.
>
> The only diference on a non commented line is exactly the line I included
> in */etc/therion.ini* that is not present on the *therion.ini* file
> available at the source and also wasn't at */etc/therion.ini* until I
> included it myself.
>
> So, no, coping the *therion.ini* available at the source to
> */etc/therion.ini* wouldn't fix my issue.
>
> My issue is exactly the one discussed at the link you sent. Unfortunatelly
> that issue isn't solved yet.
>
> AFAICT, right now new Therion installations from source on Linux won't
> work because of error 768.
>
>
> Regards,
>
> Rodrigo
>
>
>
>>
>> Cheers,
>> Olly
>>
>
>
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
>
>
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] First use of locally compiled Therion: metapost error

2017-02-20 Thread Rodrigo Severo via Therion
2017-02-20 21:00 GMT-03:00 Olly Betts :

> On Mon, Feb 20, 2017 at 08:40:36PM -0300, Rodrigo Severo via Therion wrote:
> > To fix it I had to include the following line on */etc/therion.ini*
> >
> > tex-fonts raw cmr10 cmti10 cmbx10 cmss10 cmssi10
> >
> > despite Therion Book stating at page 80 that this is the default setting.
> >
> > Should this line be uncommented on the default *therion.ini* file?
>
> Do you have the Ubuntu package of therion installed too?
>

Yes, I do.


> If so, my guess is that /etc/therion.ini is from that package.


I bet it is.


> Currently
> the Debian (and hence Ubuntu) packages have a couple of patches in this
> area - see the discussion here for details:
>
> https://github.com/therion/therion/pull/31
>
> Assuming I'm right, the quickest fix for your situation is probably to copy
> therion.ini from the source tree to /etc.
>

I just checked the diferences between *therion.ini* from the source tree
and the one at */etc/therion.ini*. There are a few but all on lines that
are commented, so they are irrelevant for this situation.

The only diference on a non commented line is exactly the line I included
in */etc/therion.ini* that is not present on the *therion.ini* file
available at the source and also wasn't at */etc/therion.ini* until I
included it myself.

So, no, coping the *therion.ini* available at the source to
*/etc/therion.ini* wouldn't fix my issue.

My issue is exactly the one discussed at the link you sent. Unfortunatelly
that issue isn't solved yet.

AFAICT, right now new Therion installations from source on Linux won't work
because of error 768.


Regards,

Rodrigo



>
> Cheers,
> Olly
>
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] First use of locally compiled Therion: metapost error

2017-02-20 Thread Olly Betts via Therion
On Mon, Feb 20, 2017 at 08:40:36PM -0300, Rodrigo Severo via Therion wrote:
> To fix it I had to include the following line on */etc/therion.ini*
> 
> tex-fonts raw cmr10 cmti10 cmbx10 cmss10 cmssi10
> 
> despite Therion Book stating at page 80 that this is the default setting.
> 
> Should this line be uncommented on the default *therion.ini* file?

Do you have the Ubuntu package of therion installed too?

If so, my guess is that /etc/therion.ini is from that package.  Currently
the Debian (and hence Ubuntu) packages have a couple of patches in this
area - see the discussion here for details:

https://github.com/therion/therion/pull/31

Assuming I'm right, the quickest fix for your situation is probably to copy
therion.ini from the source tree to /etc.

Cheers,
Olly
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] First use of locally compiled Therion: metapost error

2017-02-20 Thread Rodrigo Severo via Therion
Hi,


After managing to compile Therion I went to actually use it.

Just trying to compile the project I'm working on. It gave me the following
error:

### metapost log file 
This is MetaPost, version 1.999 (TeX Live 2015/Debian) (kpathsea version
6.2.1)  20 FEB 2017 19:03
**data.mp
(/usr/share/texlive/texmf-dist/metapost/base/mpost.mp
(/usr/share/texlive/texmf-dist/metapost/base/plain.mp
Preloading the plain mem file, version 1.005) ) (./data.mp [4001] [4002]
[4003]
[4004] [4005] [4006] [4007] [4008] [4009] [4010] [4011] [4012] [4013]
[1] [2]
>> data.mp
>> data.mpx
! ! Unable to read mpx file.
l.5438 p_station((69.19,180.36),1,btex
   \thcomment \thfb\char66 \char97
\char...
The two files given above are one of your source files
and an auxiliary file I need to read to find out what your
btex..etex blocks mean. If you don't know why I had trouble,
try running it manually through MPtoTeX, TeX, and DVItoMP



Here is how much of MetaPost's memory you used:
 1898 strings using 45493 characters
 2779320 bytes of node memory
 1422 symbolic tokens
 8i,81n,11p,158b,2f stack positions out of 16i,96n,12p,200b,4f15 output
files written: data.1 .. data.4013


 end of metapost log file 
therion: error -- metapost exit code -- 768
writing xtherion file ... done


To fix it I had to include the following line on */etc/therion.ini*

tex-fonts raw cmr10 cmti10 cmbx10 cmss10 cmssi10

despite Therion Book stating at page 80 that this is the default setting.

Should this line be uncommented on the default *therion.ini* file?

I can send a patch if this is the right way to solve this issue. Please ley
me know.


Regards,

Rodrigo Severo
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] MetaPost/Tex: variable \magdecl

2016-06-06 Thread Martin Budaj
Hi,

TeX variables are not accessible in MetaPost. However, there is a
numeric MagDecl variable in MetaPost (see the chapter New map symbols
in the thbook).

Martin

On Sat, Jun 4, 2016 at 1:05 PM, Dirk Peinelt  
wrote:
> Is there a way to handle the content of the \magdecl TEX-variable in
> METAPOST? (Therion V5.3.16)
>
> In a string or numeric? – I think, i‘ve an syntax problem…
>
>
>
> 1.) string handling:
>
> string dec;
>
> %dec:=“3.022“; % FINE!
>
> dec:=\magdecl; % ERROR
>
> p_label.top(thTEX(dec),(0,0),0,8); % >> string output
>
>
>
> 2.) numeric handling:
>
> numeric dec;
>
> %dec:=3.022; % FINE!
>
> dec:=\magdecl; % ERROR
>
> p_label.top(thTEX(decimal dec),(0,0),0,8); % >> numeric to string output
>
>
>
>
>
>
>
>
> ___
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion
>



[Therion] MetaPost/Tex: variable \magdecl

2016-06-05 Thread Bruce
Dirk

I don't know much about this, but have managed to tweak the standard header
as below;



A bit long winded, and I have only copied the conventions in the standard
Therion code, but you may get some clues.











layout LayoutExperimentalHeader

#This code is experimental redefinition of map header

#Bruce Mutton   Therion 5.3.15 make use of new variables



#this one affects maps only

code tex-map

% start bruces addition

\newtoks\thversiontitleA \thversiontitleA={Compiled}

\newtoks\thversiontitleB \thversiontitleB={Therion }

\newtoks\datetitle \datetitle={on }

\newtoks\depthrangetitle \depthrangetitle={Depth range from }

% end bruces addition



\legendcontent={%

  \hsize=\legendwidth

  \color[0 0 0]\the\legendtextcolor 

  \ifnortharrow\vbox to 0pt{\line{\hfil\northarrow}\vss}\fi

%print cave map name

  \edef\tmp{\the\cavename} \ifx\tmp\empty \else

 {\the\legendtextheadersize\the\cavename}\vskip1cm

  \fi

%print scalebar  

  \ifscalebar\scalebar\vskip1cm\fi



% start bruces addition

  # %CS

\edef\tmp{\the\outcsname} \ifx\tmp\empty \else

  {\the\legendtextsize\ss\the\outcsname\par}

\fi

\edef\tmp{\the\northdir} \ifx\tmp\empty \else

  {\the\legendtextsize\ss\the\northdir north }

\fi  

\edef\tmp{\the\magdecl} \ifx\tmp\empty \else

  {\the\legendtextsize\ss\the\magdecl deg \par}

\fi

% end bruces addition

%print comment

  {\rightskip=0pt plus 3em\parskip=3bp

\edef\tmp{\the\comment} \ifx\tmp\empty \else

  {\the\legendtextsize\the\comment} \par\medskip

\fi

%print cavelength and depth

\everypar{\hangindent=2em\hangafter=1}

\edef\tmp{\the\cavelength} \ifx\tmp\empty \else

  {\the\legendtextsize\si\the\cavelengthtitle: \ss\the\cavelength\par}

\fi

\edef\tmp{\the\cavedepth} \ifx\tmp\empty \else

  {\the\legendtextsize\si\the\cavedepthtitle: \ss\the\cavedepth\par}

\fi

# % start bruces addition

# %  altitude

\edef\tmp{\the\cavemaxz} \ifx\tmp\empty \else

  {\the\legendtextsize\si\the\depthrangetitle \ss\the\cavemaxz m to} 

\fi

\edef\tmp{\the\caveminz} \ifx\tmp\empty \else

  {\the\legendtextsize\ss\the\caveminz m \par} %above mean sea level

\fi

# % end bruces addition 



%print explorers names

\edef\tmp{\the\exploteam} \ifx\tmp\empty \else

  {\the\legendtextsize\si\the\explotitle:
\ss\the\exploteam\quad\si\the\explodate\par}

\fi

%print surveyors names

\edef\tmp{\the\topoteam} \ifx\tmp\empty \else

  {\the\legendtextsize\si\the\topotitle:
\ss\the\topoteam\quad\si\the\topodate\par}

\fi

%print cartographers names

\edef\tmp{\the\cartoteam} \ifx\tmp\empty \else

  {\the\legendtextsize\si\the\cartotitle:
\ss\the\cartoteam\quad\si\the\cartodate\par}

\fi

# % start bruces addition (compilation version and date modified to use
built-in 5.3.15 variables)

\edef\tmp{\the\thversion} \ifx\tmp\empty \else  %only write version and
date if version is not emplty

  {\the\legendtextsize\si\the\thversiontitleA: \ss\the\thversiontitleB
\ss\the\thversion}

% \fi 

% \edef\tmp{\the\currentdate} \ifx\tmp\empty \else

  {\the\legendtextsize\si\the\datetitle \ss\the\currentdate\par}

\fi  



# % end bruces addition

%print copyrights

\edef\tmp{\the\copyrights} \ifx\tmp\empty \else

  {\the\legendtextsize\ss\the\copyrights\par}

\fi  

  }

  \formattedlegend

  \color[0 0 0]

}



endcode

endlayout LayoutExperimentalHeader





Bruce



  _  

From: therion-bounces at speleo.sk [mailto:therion-boun...@speleo.sk] On Behalf
Of Dirk Peinelt
Sent: Saturday, 4 June 2016 11:05 p.m.
To: therion at speleo.sk
Subject: [Therion] MetaPost/Tex: variable \magdecl



Is there a way to handle the content of the \magdecl TEX-variable in
METAPOST? (Therion V5.3.16)

In a string or numeric? - I think, i've an syntax problem.



1.) string handling:

string dec;

%dec:="3.022"; % FINE!

dec:=\magdecl; % ERROR

p_label.top(thTEX(dec),(0,0),0,8); % >> string output



2.) numeric handling:

numeric dec;

%dec:=3.022; % FINE!

dec:=\magdecl; % ERROR

p_label.top(thTEX(decimal dec),(0,0),0,8); % >> numeric to string output







-- next part --
An HTML attachment was scrubbed...
URL: 
<http://mailman.speleo.sk/pipermail/therion/attachments/20160605/8211a9c1/attachment.html>
-- next part --
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 7915 bytes
Desc: image003.jpg
URL: 
<http://mailman.speleo.sk/pipermail/therion/attachments/20160605/8211a9c1/attachment.jpg>
-- next part --
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 4484 bytes
Desc: image004.jpg
URL: 
<http://mailman.speleo.sk/pipermail/therion/attachments/20160605/8211a9c1/attachment-0001.jpg>


[Therion] MetaPost/Tex: variable \magdecl

2016-06-04 Thread Dirk Peinelt
Is there a way to handle the content of the \magdecl TEX-variable in
METAPOST? (Therion V5.3.16)

In a string or numeric? - I think, i've an syntax problem.



1.) string handling:

string dec;

%dec:="3.022"; % FINE!

dec:=\magdecl; % ERROR

p_label.top(thTEX(dec),(0,0),0,8); % >> string output



2.) numeric handling:

numeric dec;

%dec:=3.022; % FINE!

dec:=\magdecl; % ERROR

p_label.top(thTEX(decimal dec),(0,0),0,8); % >> numeric to string output







-- next part --
An HTML attachment was scrubbed...
URL: 



[Therion] Metapost snippets out-source-able fromthconfig/layout?

2016-05-11 Thread Martin Sluka
Láďo, potřeboval bych to protlačit do konfery, ale nechce mi to pustit 
přílohy.

> 11. 5. 2016 v 0:15, Christian Rößler :
> 
> herion directory
> | |-- metapost file
> | |-- centralized layout, input'ing metapost file in same dir
> |
> |-project directory
>   |-- symlink to centralized layout 
>   |-- (normally unneeded) symlink to metapost file
>   |-- thconfig input'ing centralized layout in _same_ directory (./)
> 


My add-on to structure of files:






The central .th file:

survey klisura -title "Great Canyon Gryka e Madhe Velika Klisura"

input ../indexes/index_th
input ../indexes/index_th2
input ../indexes/index_equate
input ../indexes/index_join
input ../indexes/index_map

endsurvey

m.s.

-- next part --
An HTML attachment was scrubbed...
URL: 

-- next part --
A non-text attachment was scrubbed...
Name: Sni?mek obrazovky 2016-05-11 v?9.13.21.png
Type: image/png
Size: 28863 bytes
Desc: not available
URL: 

-- next part --
A non-text attachment was scrubbed...
Name: Sni?mek obrazovky 2016-05-11 v?9.13.36.png
Type: image/png
Size: 14272 bytes
Desc: not available
URL: 



[Therion] Metapost snippets out-source-able fromthconfig/layout?

2016-05-11 Thread Bruce
A Therion principle.  Write once, use many times.
Be cautious however and balance the 'centralised layout' idea against the
contrary advantage of having each mine or 'collection of mines' in self
contained folders that can be moved to different machines or environments
without breaking links to outsourced locations.

As most of 'my' cave systems are constrained to several square km in area, I
have a single master layout for those at the top folder level. If I want to
separate out just one cave from a sub folder and say give to someone else I
only have to copy the 'central layout file' to that folder and one or two
input statements to change to make the sub project work.
There is a balance between totally centralised and having each subproject
completely self contained if its folder is removed from its parent.  
A choice.  See the links in my reply to Henry just now.

Bruce

> But as I just have finished the third therion mine 
map, and have many more I need to work onto stacked up during the last 
years (even such without shafts into them), I will outsource the layouts 
of the maps I made so far at once. Next step.

> Best of all: if I combine both methods of linking stuff in, layouts and 
metapost code, I can now change my shaft symbols easily and centrally. 
This will make it very easy to re-view them very fast in many different 
maps, easily scriptable, and even better, change them in all maps at once 
if I made a workable version. Which may take a while, I fear.





[Therion] Metapost snippets out-source-able fromthconfig/layout?

2016-05-11 Thread Christian Rößler
Am Mittwoch, 11. Mai 2016, 08:13:13 schrieb Bruce :

Hallo Bruce,

> A Therion principle.  Write once, use many times.
> Be cautious however and balance the 'centralised layout' idea against
> the contrary advantage of having each mine or 'collection of mines' in
> self contained folders that can be moved to different machines or
> environments without breaking links to outsourced locations.

yes. I have centralized my meager three Therion maps, and then one of my 
colleagues asked me about the nice map I have sent to him, which program I 
made them with etc. pp., got interest and asked me about the source files 
to see for herself. And then I nearly archive-packed and sent…

> As most of 'my' cave systems are constrained to several square km in
> area, I have a single master layout for those at the top folder level.
> If I want to separate out just one cave from a sub folder and say give
> to someone else I only have to copy the 'central layout file' to that
> folder and one or two input statements to change to make the sub
> project work.
> There is a balance between totally centralised and having each
> subproject completely self contained if its folder is removed from its
> parent. A choice.  See the links in my reply to Henry just now.

…not enough, I mean with missing centralized layout and metapost files; 
exactly, what you meant above. Funny coincidence, but perhaps to be 
expected. I have solved it as following:

therion directory
|   |-- metapost file
|   |-- centralized layout, input'ing metapost file in same dir
|
|-project directory
|-- symlink to centralized layout 
|-- (normally unneeded) symlink to metapost file
|-- thconfig input'ing centralized layout in _same_ directory (./)

(I hope this is readable)

That way I can edit the centralized layout and metapost file in therion 
directory before recompiling, as: thconfig -> centr. layout -> (following 
symlink) -> centr. layout in therion directory.

And if I archive I just need to dereference the symlinks (no editing of 
files), so I archive the directory as following:

project directory
|-- centralized layout (dereferenced symlink)
|-- metapost file (via previously unneded symlink to metapost file)

But: If I forget to dereference the symlinks while packing, or forget the 
(while working) unneeded symlink to the metapost file, this would break. 
And I would need more unneeded symlinks, if I decide to input more than 
one metapost file. And this way does only work with OS's capable of 
symlinks; I am not sure whether windows could do such.

But's but: This dereferencing method gives me an easy route to hew any 
project directory from the mineral lode, so to say, for others and for me, 
if the need arises. 

So I am going that route, but - as you correctly warned - with care.

Another coincidence was the parallel discussion about several layouts per 
map export, as I noticed I lost eg. the map comments when wholly 
centralized. So I add, if needed, another layout zusaetze (addons) for 
stuff I would not or could not centralize to the map export.

So thanks, Bruce, and Ladislav, and also Henry for asking the right 
question at the right time for me to use, and of course Martin, and a 
hearty Glückauf (or what cavers greet themselves) to you all!

Christian



[Therion] Metapost snippets out-source-able from thconfig/layout?

2016-05-10 Thread Christian Rößler
Am Dienstag, 10. Mai 2016, 18:21:46 schrieb Ladislav Blažek:

> Hi, it is just one option how to handle complex thconfig files. I am
> using one "layout" file for several projects. This file sits in top
> folder and is referenced from all thconfig files. L.

Good idea! Haven't thought about that, as I need shaft sympols dearly and 
was focused on that. But as I just have finished the third therion mine 
map, and have many more I need to work onto stacked up during the last 
years (even such without shafts into them), I will outsource the layouts 
of the maps I made so far at once. Next step.

Best of all: if I combine both methods of linking stuff in, layouts and 
metapost code, I can now change my shaft symbols easily and centrally. 
This will make it very easy to re-view them very fast in many different 
maps, easily scriptable, and even better, change them in all maps at once 
if I made a workable version. Which may take a while, I fear.

Best regards, and extra thanks for re-hinting which should have been 
obvious to me,

Christian



[Therion] Metapost snippets out-source-able from thconfig/layout?

2016-05-10 Thread Christian Rößler
Am Dienstag, 10. Mai 2016, 16:56:00 schrieb Henry Bennett:

>> due to learning some metapost for making a Schacht (shaft?) symbol, I
>> got a thconfig file getting really fat and difficult to maintain. Is
>> there a possibility to source metapost snippets from another file?

>   code metapost
>   input "link_to_where\myfile.mp"
>   endcode

of course! Thanks! That's it!

Best regards, Christian



[Therion] Metapost snippets out-source-able from thconfig/layout?

2016-05-10 Thread Christian Rößler
Am Dienstag, 10. Mai 2016, 17:55:31 schrieb Ladislav Blažek:

> input should work. See attached example files. Ladislav

Ah, I see: You have out-sourced the whole layout! Thank you for the hint, 
this idea has escaped me. This will help at least a little, but my hope 
was, that I could do such:

# input metacode_thistry
# input metacode_thattry
input metacode_perhapslikethis

and 

# input metacode_thistry
input metacode_thattry
# input metacode_perhapslikethis

…while mangling metapost code.

Best regards, Christian



[Therion] Metapost snippets out-source-able from thconfig/layout?

2016-05-10 Thread Ladislav Blažek
Hi Christian,
input should work. See attached example files. Ladislav

-- next part --
A non-text attachment was scrubbed...
Name: Archiv.zip
Type: application/zip
Size: 1652 bytes
Desc: not available
URL: 

-- next part --


> 10. 5. 2016 v 17:45, Christian Rößler (Roessler) :
> 
> Hallo everybody,
> 
> due to learning some metapost for making a Schacht (shaft?) symbol, I got 
> a thconfig file getting really fat and difficult to maintain. Is there a 
> possibility to source metapost snippets from another file?
> 
> Neither 'source' nor 'input' (Handbook p. 15) seem to work, which does not 
> wonder me as the context 'layout' has to be obeyed.
> 
> So, how are the people here handling that? Big, fat thconfig, or is there 
> another way?
> 
> Best regards, Christian
> ___
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion



[Therion] Metapost snippets out-source-able from thconfig/layout?

2016-05-10 Thread Christian Rößler (Roessler)
Hallo everybody,

due to learning some metapost for making a Schacht (shaft?) symbol, I got 
a thconfig file getting really fat and difficult to maintain. Is there a 
possibility to source metapost snippets from another file?

Neither 'source' nor 'input' (Handbook p. 15) seem to work, which does not 
wonder me as the context 'layout' has to be obeyed.

So, how are the people here handling that? Big, fat thconfig, or is there 
another way?

Best regards, Christian



[Therion] Metapost snippets out-source-able from thconfig/layout?

2016-05-10 Thread Henry Bennett
Hi Christian, try this

code metapost 
input "link_to_where\myfile.mp"
endcode

you can't use a network path.

Enjoy, Henry

-Original Message-
From: therion-bounces at speleo.sk [mailto:therion-boun...@speleo.sk] On Behalf
Of Christian Rößler (Roessler)
Sent: 10 May 2016 16:45
To: 'List for Therion users' 
Subject: [Therion] Metapost snippets out-source-able from thconfig/layout?

Hallo everybody,

due to learning some metapost for making a Schacht (shaft?) symbol, I got a
thconfig file getting really fat and difficult to maintain. Is there a
possibility to source metapost snippets from another file?

Neither 'source' nor 'input' (Handbook p. 15) seem to work, which does not
wonder me as the context 'layout' has to be obeyed.

So, how are the people here handling that? Big, fat thconfig, or is there
another way?

Best regards, Christian
___
Therion mailing list
Therion at speleo.sk
http://mailman.speleo.sk/mailman/listinfo/therion




[Therion] metapost help - line Blocks

2015-09-23 Thread Andrew Atkinson


On 23/09/15 13:59, Georg Pacher wrote:
> Hi Andrew,
> 
> First of all, i would suggest to use:
> st:= arctime (laenge+cur/2) of P; instead of
> st:= arctime (laenge+cur)/2 of P;
> for the direction of the last block. Otherwise this will use the
> direction near the middle of the path, and not at the location of the
> last block. But I am not sure if this is related to your issue.

Hmm that does not seem your suggestion if beyond the end of the path;
laenge is the total length of the path. But as you say this is not
affecting it.
> 
> I remember having this issue also back then, when generating the AUT
> symbol-set. Though I don't remember the details anymore, I believe it
> always had something to do with determining the scale_factor for the
> last block, or the calculated location for the last block.
> You can check that by adding the line "scale_factor" before "  if
> scale_factor > 0:", to print out the value of scale factor (when
> omitting the ';', it will print out the stated value). Then you should
> see if this value gets <=0 sometimes.
> But note that it is not feasible to do this on a big dataset, as there
> will be an enormous amount of output then.
> 
Fixed it and sent it to the printers just before lunch

The problem was that in

   # find next position where the block fits in without intersecting
the previous one
forever:
  exitif xpart ( ((block--cycle) rotated angle(direction t of P)
shifted point t of P) intersectiontimes old_block) < 0;
  cur:=cur+0.01u;
  t:= arctime cur of P;
  st:= arctime (cur+block_width/2) of P;
  exitif cur > (laenge- 3*block_width/2);
endfor;

If the newly generated block did not intersect the previous block on the
first attempt, the variables t and st did not get updated, moving them
up before the test fixed that. Thanks to Julian for helping me with
this. The final code is now (will try to add it to the wiki later)


def l_wall_blocks_CHED (expr P) =

  T:=identity;
  pickup PenC;
  laenge := arclength P;

  path block;
  path old_block;

  cur := 0;


  #draw first block
  old_block := punked ((
(.65u,-.15u)--(.72u,0.05u)--(.55u,.15u)--(.23u,.17u)--(.0u,.03u)--(.05u,-.1u))randomized
(0.1u))
 scaled (uniformdeviate(0.3)+.65);
  block_width := (xpart urcorner old_block - xpart ulcorner old_block);
  t:= arctime (cur+block_width/2) of P;
  old_block:=old_block rotated angle( direction t of P) shifted point 0
of P;
  thclean (old_block--cycle);
  thdraw old_block;


  cur := cur + block_width + 0.04u;

  forever:
# generate random block
block := punked(
((.65u,-.15u)--(.72u,0.05u)--(.55u,.15u)--(.2u,.17u)--(.0u,.03u)--(.05u,-.1u)randomized
(0.1u) ))
  scaled (uniformdeviate(0.3)+.65)
  rotated (uniformdeviate(20)-10);
# check width of block
block_width := (xpart urcorner block - xpart ulcorner block);

exitif cur > (laenge- 3*block_width/2);
# find next position where the block fits in without intersecting
the previous one
forever:
  cur:=cur+0.01u;
  t:= arctime cur of P;
  st:= arctime (cur+block_width/2) of P;
  exitif cur > (laenge- 3*block_width/2);
  exitif xpart ( ((block--cycle) rotated angle(direction st of P)
shifted point t of P) intersectiontimes old_block) < 0;
endfor;
exitif cur > (laenge- 3*block_width/2);

old_block:= block rotated angle(direction st of P) shifted point t of P;
thclean (old_block--cycle);
thdraw old_block;

  cur := cur + block_width + 0.04u;

  endfor;

# generate last block

block :=
(((.65u,-.15u)--(.72u,0.05u)--(.55u,.15u)--(.2u,.17u)--(.0u,.03u)--(.05u,-.1u))
);
block_width := (xpart urcorner block - xpart ulcorner block);

# scale last block to fit in the remaining gap
scale_factor:=(laenge-cur)/block_width;
  t:= arctime cur of P;
  st:= arctime (laenge+cur)/2 of P;
forever:
exitif scale_factor < 0;
  exitif xpart ( ( (block) rotated angle (direction st of P) scaled
scale_factor shifted (point t of P) ) intersectiontimes old_block) < 0;
  scale_factor:=scale_factor-0.001;
endfor;
if scale_factor > 0:
  thclean (block--cycle) rotated angle (direction st of P) scaled
scale_factor shifted (point t of P);
  thdraw (block) rotated angle (direction st of P) scaled
scale_factor shifted (point t of P);
fi;
enddef;



[Therion] MetaPost include relative path

2015-06-16 Thread Martin Budaj
Hi,

there is no direct support yet (therion makes a copy of the data to a
temporary directory when processing it, which breaks relative paths).

However, you can add your {doc root}\code to MetaPost search path
(either by setting MPINPUTS environment variable or by modifying
MPINPUTS value in the global texmf.cnf configuration file) and use the
paths relative to {doc root}\code.

When setting MPINPUTS value, don't delete the original search path,
just append your {doc root}\code at the end.

Martin

On Mon, Jun 15, 2015 at 9:21 AM, Henry Bennett  wrote:
> Hi,
>
>
>
> Whats the syntax for including code from a sub directory in MetaPost?
>
>
>
> My project has a subdirectory of code snippets in  {doc root}\code
>
>
>
> The MetaPost input command works great when I reference the entire directory
> location eg (input “c:\users\henry\documents\survey\cave\code\filename”) 
> but
> won’t accept any form of relative address that I can see.  Doesn’t make it
> very portable.
>
>
>
> Any ideas
>
>
>
> Thanks Henry
>
>
> ___
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion
>



[Therion] MetaPost include relative path

2015-06-15 Thread Henry Bennett
Hi,



Whats the syntax for including code from a sub directory in MetaPost? 



My project has a subdirectory of code snippets in  {doc root}\code



The MetaPost input command works great when I reference the entire directory
location eg (input "c:\users\henry\documents\survey\cave\code\filename") but
won't accept any form of relative address that I can see.  Doesn't make it
very portable.



Any ideas



Thanks Henry 

-- next part --
An HTML attachment was scrubbed...
URL: 



[Therion] Metapost code for pendant and stromatolite symbols

2014-11-11 Thread Martin Sluka
Something for inspiration:

http://ngmdb.usgs.gov/fgdc_gds/geolsymstd/fgdc-geolsym-sec10.pdf

http://pubs.usgs.gov/tm/2006/11A02/   :D

m.s.


11. 11. 2014 v 19:25, Bill Gee :

> Hi Martin -
> 
> Thanks!  I wound up not using any of this.  A bit of digging around the 
> Internet found a document which described out to do circles and arcs in 
> Metapost.  I adopted it and created routines to do symbols for both pendants 
> and stromatolites.  See below ...
> 
> The stromatolite symbol is something that one of my friends invented for his 
> own use.  I have not found any list of cave map symbols which includes a 
> stromatolite. 
> 
> Bill Gee
> 
> 
>def p_u_stromatolite (expr pos,theta,sc,al) =
>  U:=(.15u, .4u);
>  T:=identity aligned al rotated theta scaled sc shifted pos;
>  pickup PenC;
> 
>  thdraw (0.7u, 0.8u) -- (-0.7u, 0.8u) -- (-0.2u, -0.8u) -- (0.2u, -0.8u) 
> -- cycle;
>  thdraw (-0.4u, 0.4u) -- (0.0u, 0.65u) -- (0.4u, 0.4u);
>  thdraw (-0.3u, 0.1u) -- (0.0u, 0.3u) -- (0.3u, 0.1u); 
>  thdraw (-0.2u, -0.2u) -- (0.0u, -0.1u) -- (0.2u, -0.2u);  
>  thdraw (-0.15u, -0.5u) -- (0.0u, -0.4u) -- (0.15u, -0.5u);
> 
>enddef;
> 
>def p_u_pendant (expr pos,theta,sc,al) =
>  U:=(.15u, .4u);
>  T:=identity aligned al rotated theta scaled sc shifted pos;
>  pickup PenC;
> 
>  thdraw (-0.9u, 0.7u) -- (-0.5u, 0.7u);
>  thdraw (-0.5u, 0.7u) .. (-0.3u, 0.6u) .. (-0.4u, 0.4u);
>  thdraw (-0.4u, 0.4u) .. (-0.6u, 0.0u) .. (-0.3u, -0.5u);
>  thdraw (-0.3u, -0.5u) -- (0.3u, -0.5u);
>  thdraw (0.3u, -0.5u) .. (0.6u, 0.0u) .. (0.5u, 0.4u);
>  thdraw (0.5u, 0.4u) .. (0.3u, 0.6u) .. (0.5u, 0.7u); 
>  thdraw (0.5u, 0.7u) -- (0.9u, 0.7u);
> 
>enddef;
> 
>initsymbol ("p_u_stromatolite");
>initsymbol ("p_u_pendant");
> ==
> 
> 
> On Tuesday, November 11, 2014 12:49:01 Martin Sluka wrote:
>> Just third link: sniper logo. Use the part of code you need.
>> 
>> 
>> 
>> % sniperlogo.mp
>> % L. Nobre G.
>> % 2012
>> 
>> prologues := 1;
>> 
>> beginfig(1);
>>  numeric u, ray, siz, xdis, ang, mar, i;
>>  u = 1cm;
>>  siz = 5u;
>>  ray = siz/6;
>>  fill fullcircle scaled (2*(siz+ray));
>>  xdis = (siz-2*ray) +-+ (2*ray);
>>  ang = angle(xdis,2*ray);
>>  z1 = (siz-ray)*dir(ang);
>>  z2 = (siz-ray)*dir(90-ang);
>>  z3 = (ray,(siz-2*ray)*cosd(ang));
>>  z4 = z3 xscaled -1;
>>  z5 = z2 xscaled -1;
>>  z6 = z1 xscaled -1;
>>  for i=7 upto 16:
>>z[i] = z[i-4] rotated 90;
>>  endfor;
>>  for i=0 upto 3:
>>z[21+i] = (siz-ray)*dir(45+90*i);
>>  endfor;
>>  path sniperpath;
>>  sniperpath = z1{dir(ang+90)}..z21..{dir(180-ang)}z2..z3{down}..{up}z4..
>>z5{dir(180+ang)}..z22..{dir(270-ang)}z6..z7{right}..{left}z8..
>>z9{dir(270+ang)}..z23..{dir(-ang)}z10..z11{up}..{down}z12..
>>z13{dir(ang)}..z24..{dir(90-ang)}z14..z15{left}..{right}z16..cycle;
>>  unfill sniperpath rotated 45;
>> %  draw sniperpath;
>> %  drawoptions( withcolor red );
>> %  dotlabels(1,2,3,4,5,6,7,8,9,21,22)
>> endfig;
>> 
>> end.
>> 
>> 
>> 
>> On Nov 11, 2014, at 01:30 PM, Bill Gee  wrote:
>> 
>> Hi Martin -
>> 
>> I looked over the Metapost samples on the Therion Wiki but found nothing
>> that seemed useful. I have done some Metapost code for symbols like
>> stalactites and stalacmites, and I modified the popcorn symbol, so Metapost
>> is not completely alien to my experience. I am no expert, though.
>> 
>> The pendant symbol is a bit of a challenge because it is not straight lines.
>> I need to figure out how to draw curved lines for it.
>> 
>> The stromatolite symbol is even more of a challenge because I can't find
>> anything to draw! One of my caving buddies has created his own symbol. He
>> did it as a small jpg file, and I think I could do it in Metapost without
>> much trouble. I would like to use an official symbol, if such a thing
>> exists.
>> 
>> Regards - Bill Gee
>> 
>> On Tuesday, November 11, 2014 08:55:42 Martin Sluka wrote:
>>> Try to check the links on wiki, there are many of examples how to use
>>> metapost. The simplest way is to find something similar you need and
>>> modify
>>> code.
>>> 
>>> m.s.
>>> 
>>> 10. 11. 2014 v 17:39, Bill Gee :
 Hello everyone -
 
 I need to put some pendants and stromatolites on a map. I do not see
 these
 symbols in Therion. Has anyone already done the Metapost code for them?
 
 The symbol for a pendant looks sort of like the Greek letter upsilon,
 except it has rounded corners instead of sharp.
 
 Attached is a bit of the sketch I am working from which shows the
 pendant
 symbol.
 
 Thanks - Bill Gee
 
 ___
 Therion mailing list
 Therion at speleo.sk
 http://mailman.speleo.sk/mailman/listinfo/therion
>>> 
>>> ___
>>> Therion mailing list
>>> Therion at speleo.sk
>>> 

[Therion] Metapost code for pendant and stromatolite symbols

2014-11-11 Thread Martin Sluka

11. 11. 2014 v 19:25, Bill Gee :

>  I adopted it and created routines to do symbols for both pendants 
> and stromatolites.  See below ...

Bill, may I add yours symbols on wiki?

M.s.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Therion] Metapost code for pendant and stromatolite symbols

2014-11-11 Thread Bill Gee
Hi Martin -

Excellent!  More symbols than any sane person could ever use, even if many do 
not apply to caves.

Thanks!

Bill Gee

On Tuesday, November 11, 2014 20:00:27 Martin Sluka wrote:
> Something for inspiration:
> 
> http://ngmdb.usgs.gov/fgdc_gds/geolsymstd/fgdc-geolsym-sec10.pdf
> 
> http://pubs.usgs.gov/tm/2006/11A02/   :D
> 
> m.s.
> 




[Therion] Metapost code for pendant and stromatolite symbols

2014-11-11 Thread Bill Gee
Hi Martin -

I think the pendant can certainly be added to the wiki.  

The stromatolite is not an official symbol anywhere.  If it goes on the wiki, I 
think it should be noted as such.

Thanks - Bill Gee

On Tuesday, November 11, 2014 19:28:04 Martin Sluka wrote:
> 11. 11. 2014 v 19:25, Bill Gee :
> >  I adopted it and created routines to do symbols for both pendants
> > 
> > and stromatolites.  See below ...
> 
> Bill, may I add yours symbols on wiki?
> 
> M.s.




[Therion] Metapost code for pendant and stromatolite symbols

2014-11-11 Thread Martin Sluka
I through the first part of wiki page with links. 

M. 

Odesláno z iPhonu

11. 11. 2014 v 13:30, Bill Gee :

> Hi Martin -
> 
> I looked over the Metapost samples on the Therion Wiki but found nothing that 
> seemed useful.  I have done some Metapost code for symbols like stalactites 
> and stalacmites, and I modified the popcorn symbol, so Metapost is not 
> completely alien to my experience.  I am no expert, though.
> 
> The pendant symbol is a bit of a challenge because it is not straight lines.  
> I need to figure out how to draw curved lines for it.
> 
> The stromatolite symbol is even more of a challenge because I can't find 
> anything to draw!  One of my caving buddies has created his own symbol.  He 
> did it as a small jpg file, and I think I could do it in Metapost without 
> much 
> trouble.  I would like to use an official symbol, if such a thing exists.
> 
> Regards - Bill Gee
> 
> 
> On Tuesday, November 11, 2014 08:55:42 Martin Sluka wrote:
>> Try to check the links on wiki, there are many of examples how to use
>> metapost. The simplest way is to find something similar you need and modify
>> code.
>> 
>> m.s.
>> 
>> 10. 11. 2014 v 17:39, Bill Gee :
>>> Hello everyone -
>>> 
>>> I need to put some pendants and stromatolites on a map.  I do not see
>>> these
>>> symbols in Therion.  Has anyone already done the Metapost code for them?
>>> 
>>> The symbol for a pendant looks sort of like the Greek letter upsilon,
>>> except it has rounded corners instead of sharp.
>>> 
>>> Attached is a bit of the sketch I am working from which shows the pendant
>>> symbol.
>>> 
>>> Thanks - Bill Gee
>>> 
>>> ___
>>> Therion mailing list
>>> Therion at speleo.sk
>>> http://mailman.speleo.sk/mailman/listinfo/therion
>> 
>> ___
>> Therion mailing list
>> Therion at speleo.sk
>> http://mailman.speleo.sk/mailman/listinfo/therion
> 
> ___
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion



[Therion] Metapost code for pendant and stromatolite symbols

2014-11-11 Thread Bill Gee
Hi Martin -

Thanks!  I wound up not using any of this.  A bit of digging around the 
Internet found a document which described out to do circles and arcs in 
Metapost.  I adopted it and created routines to do symbols for both pendants 
and stromatolites.  See below ...

The stromatolite symbol is something that one of my friends invented for his 
own use.  I have not found any list of cave map symbols which includes a 
stromatolite. 

Bill Gee


def p_u_stromatolite (expr pos,theta,sc,al) =
  U:=(.15u, .4u);
  T:=identity aligned al rotated theta scaled sc shifted pos;
  pickup PenC;

  thdraw (0.7u, 0.8u) -- (-0.7u, 0.8u) -- (-0.2u, -0.8u) -- (0.2u, -0.8u) 
-- cycle;
  thdraw (-0.4u, 0.4u) -- (0.0u, 0.65u) -- (0.4u, 0.4u);
  thdraw (-0.3u, 0.1u) -- (0.0u, 0.3u) -- (0.3u, 0.1u); 
  thdraw (-0.2u, -0.2u) -- (0.0u, -0.1u) -- (0.2u, -0.2u);  
  thdraw (-0.15u, -0.5u) -- (0.0u, -0.4u) -- (0.15u, -0.5u);

enddef;

def p_u_pendant (expr pos,theta,sc,al) =
  U:=(.15u, .4u);
  T:=identity aligned al rotated theta scaled sc shifted pos;
  pickup PenC;

  thdraw (-0.9u, 0.7u) -- (-0.5u, 0.7u);
  thdraw (-0.5u, 0.7u) .. (-0.3u, 0.6u) .. (-0.4u, 0.4u);
  thdraw (-0.4u, 0.4u) .. (-0.6u, 0.0u) .. (-0.3u, -0.5u);
  thdraw (-0.3u, -0.5u) -- (0.3u, -0.5u);
  thdraw (0.3u, -0.5u) .. (0.6u, 0.0u) .. (0.5u, 0.4u);
  thdraw (0.5u, 0.4u) .. (0.3u, 0.6u) .. (0.5u, 0.7u); 
  thdraw (0.5u, 0.7u) -- (0.9u, 0.7u);

enddef;

initsymbol ("p_u_stromatolite");
initsymbol ("p_u_pendant");
==


On Tuesday, November 11, 2014 12:49:01 Martin Sluka wrote:
> Just third link: sniper logo. Use the part of code you need.
> 
> 
> 
> % sniperlogo.mp
> % L. Nobre G.
> % 2012
> 
> prologues := 1;
> 
> beginfig(1);
>   numeric u, ray, siz, xdis, ang, mar, i;
>   u = 1cm;
>   siz = 5u;
>   ray = siz/6;
>   fill fullcircle scaled (2*(siz+ray));
>   xdis = (siz-2*ray) +-+ (2*ray);
>   ang = angle(xdis,2*ray);
>   z1 = (siz-ray)*dir(ang);
>   z2 = (siz-ray)*dir(90-ang);
>   z3 = (ray,(siz-2*ray)*cosd(ang));
>   z4 = z3 xscaled -1;
>   z5 = z2 xscaled -1;
>   z6 = z1 xscaled -1;
>   for i=7 upto 16:
> z[i] = z[i-4] rotated 90;
>   endfor;
>   for i=0 upto 3:
> z[21+i] = (siz-ray)*dir(45+90*i);
>   endfor;
>   path sniperpath;
>   sniperpath = z1{dir(ang+90)}..z21..{dir(180-ang)}z2..z3{down}..{up}z4..
> z5{dir(180+ang)}..z22..{dir(270-ang)}z6..z7{right}..{left}z8..
> z9{dir(270+ang)}..z23..{dir(-ang)}z10..z11{up}..{down}z12..
> z13{dir(ang)}..z24..{dir(90-ang)}z14..z15{left}..{right}z16..cycle;
>   unfill sniperpath rotated 45;
> %  draw sniperpath;
> %  drawoptions( withcolor red );
> %  dotlabels(1,2,3,4,5,6,7,8,9,21,22)
> endfig;
> 
> end.
> 
> 
> 
> On Nov 11, 2014, at 01:30 PM, Bill Gee  wrote:
> 
> Hi Martin -
> 
> I looked over the Metapost samples on the Therion Wiki but found nothing
> that seemed useful. I have done some Metapost code for symbols like
> stalactites and stalacmites, and I modified the popcorn symbol, so Metapost
> is not completely alien to my experience. I am no expert, though.
> 
> The pendant symbol is a bit of a challenge because it is not straight lines.
> I need to figure out how to draw curved lines for it.
> 
> The stromatolite symbol is even more of a challenge because I can't find
> anything to draw! One of my caving buddies has created his own symbol. He
> did it as a small jpg file, and I think I could do it in Metapost without
> much trouble. I would like to use an official symbol, if such a thing
> exists.
> 
> Regards - Bill Gee
> 
> On Tuesday, November 11, 2014 08:55:42 Martin Sluka wrote:
> > Try to check the links on wiki, there are many of examples how to use
> > metapost. The simplest way is to find something similar you need and
> > modify
> > code.
> > 
> > m.s.
> > 
> > 10. 11. 2014 v 17:39, Bill Gee :
> > > Hello everyone -
> > > 
> > > I need to put some pendants and stromatolites on a map. I do not see
> > > these
> > > symbols in Therion. Has anyone already done the Metapost code for them?
> > > 
> > > The symbol for a pendant looks sort of like the Greek letter upsilon,
> > > except it has rounded corners instead of sharp.
> > > 
> > > Attached is a bit of the sketch I am working from which shows the
> > > pendant
> > > symbol.
> > > 
> > > Thanks - Bill Gee
> > > 
> > > ___
> > > Therion mailing list
> > > Therion at speleo.sk
> > > http://mailman.speleo.sk/mailman/listinfo/therion
> > 
> > ___
> > Therion mailing list
> > Therion at speleo.sk
> > http://mailman.speleo.sk/mailman/listinfo/therion
> 
> ___
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion




[Therion] Metapost code for pendant and stromatolite symbols

2014-11-11 Thread Martin Sluka
Try to check the links on wiki, there are many of examples how to use metapost. 
The simplest way is to find something similar you need and modify code.

m.s.


10. 11. 2014 v 17:39, Bill Gee :

> Hello everyone -
> 
> I need to put some pendants and stromatolites on a map.  I do not see these 
> symbols in Therion.  Has anyone already done the Metapost code for them?
> 
> The symbol for a pendant looks sort of like the Greek letter upsilon, except 
> it has rounded corners instead of sharp.
> 
> Attached is a bit of the sketch I am working from which shows the pendant 
> symbol.
> 
> Thanks - Bill Gee
> 
> ___
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion




[Therion] Metapost code for pendant and stromatolite symbols

2014-11-11 Thread Bill Gee
Hi Martin -

I looked over the Metapost samples on the Therion Wiki but found nothing that 
seemed useful.  I have done some Metapost code for symbols like stalactites 
and stalacmites, and I modified the popcorn symbol, so Metapost is not 
completely alien to my experience.  I am no expert, though.

The pendant symbol is a bit of a challenge because it is not straight lines.  
I need to figure out how to draw curved lines for it.

The stromatolite symbol is even more of a challenge because I can't find 
anything to draw!  One of my caving buddies has created his own symbol.  He 
did it as a small jpg file, and I think I could do it in Metapost without much 
trouble.  I would like to use an official symbol, if such a thing exists.

Regards - Bill Gee


On Tuesday, November 11, 2014 08:55:42 Martin Sluka wrote:
> Try to check the links on wiki, there are many of examples how to use
> metapost. The simplest way is to find something similar you need and modify
> code.
> 
> m.s.
> 
> 10. 11. 2014 v 17:39, Bill Gee :
> > Hello everyone -
> > 
> > I need to put some pendants and stromatolites on a map.  I do not see
> > these
> > symbols in Therion.  Has anyone already done the Metapost code for them?
> > 
> > The symbol for a pendant looks sort of like the Greek letter upsilon,
> > except it has rounded corners instead of sharp.
> > 
> > Attached is a bit of the sketch I am working from which shows the pendant
> > symbol.
> > 
> > Thanks - Bill Gee
> > 
> > ___
> > Therion mailing list
> > Therion at speleo.sk
> > http://mailman.speleo.sk/mailman/listinfo/therion
> 
> ___
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion




[Therion] metapost error on Windows7

2014-09-23 Thread Footleg
I have never seen this locking during compile, apart from PDF files. I
am using Therion extensively on Windows.

One case we found on Windows which had us stumped on a training course
we ran was that one Windows user found his PDF file was locked even
after apparently closing the Adobe reader. It turned out to be because
he had file previews turned on in Windows Explorer so it was
generating a rendering of all PDF files in the open explorer Window
and that used the Adobe Reader under the hood so the files were still
locked. Turning off previews in Explorer sorted that one out.

For those who run Therion on Windows and have not already seen the PDF
viewer tip on the wiki, I use Sumatra PDF reader which is the only
reader I have found on Windows which does not lock the PDF file when
it is open in the reader, and that renders the PDF correctly as well.
Using Sumatra I can keep the PDF window open and each time I recompile
my project the PDF display refreshes automatically which is really
handy.

Footleg

On 22 September 2014 17:48, Xavier Pennec  wrote:
> Hi Stacho,
>
> It also looks to me as if there is a lock on some file. It is apparently
> happening during the generation of  small postscript elements (e.g.
> data.4008). I am still trying to reproduce it in a consistent way.
>
> But if nobody else is experiencing it, it  might comes as well from my
> antivirus scanning these bits before they are finished to be dealt with.
>
> Xavier
>
> Le 22/09/2014 18:27, Stacho Mudrak a écrit :
>
> This is really strange... I have experienced similar problem with PDF file
> being locked, even it is not open in Adobe Reader.
> It looks to me, that OS is reading somehow these files (to index them???)
> and for a very small amount of time they are locked.
> May be I am completely wrong, but without being able to reproduce this
> error, I see no way how to debug it...
>
> S.
>
> On 22 September 2014 09:56, Xavier Pennec  wrote:
>>
>> Since I installed the last version of therion, metapost is randomly
>> bugging on writing temporary files with the message
>> "! I can't write on file `'. Please type another file name for input:"
>> As this is blocking therion, I have to kill the compilation windows and
>> retry. It usually reworks after a few try.
>> I tried so see what was wrong in the tmp files with the compile option -d
>> without success so far
>>
>> Does anyone experience the same behavior or does it come from some special
>> feature of my installation?
>>
>> Xavier
>>
>> --
>>>
>>> -
>>> Xavier Pennec
>>> Senior Research Scientist / Directeur de recherche
>>> Asclepios project-team, INRIA Sophia-Antipolis
>>> 2004 Route des Lucioles, BP93
>>> F-06902 Sophia-Antipolis Cedex, France
>>> +33 4 92 38 76 64
>>> +33 6 78 35 16 90
>>> http://www-sop.inria.fr/asclepios/
>>> ---
>>
>>
>> ___
>> Therion mailing list
>> Therion at speleo.sk
>> http://mailman.speleo.sk/mailman/listinfo/therion
>
>
>
>
> ___
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion
>
>
> --
>> -
>> Xavier Pennec
>> Senior Research Scientist / Directeur de recherche
>> Asclepios project-team, INRIA Sophia-Antipolis
>> 2004 Route des Lucioles, BP93
>> F-06902 Sophia-Antipolis Cedex, France
>> +33 4 92 38 76 64
>> +33 6 78 35 16 90
>> http://www-sop.inria.fr/asclepios/
>> ---
>
>
> ___
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion
>



[Therion] metapost error on Windows7

2014-09-22 Thread Xavier Pennec
Hi Stacho,

It also looks to me as if there is a lock on some file. It is apparently 
happening during the generation of  small postscript elements (e.g. 
data.4008). I am still trying to reproduce it in a consistent way.

But if nobody else is experiencing it, it  might comes as well from my 
antivirus scanning these bits before they are finished to be dealt with.

Xavier

Le 22/09/2014 18:27, Stacho Mudrak a écrit :
> This is really strange... I have experienced similar problem with PDF 
> file being locked, even it is not open in Adobe Reader.
> It looks to me, that OS is reading somehow these files (to index 
> them???) and for a very small amount of time they are locked.
> May be I am completely wrong, but without being able to reproduce this 
> error, I see no way how to debug it...
>
> S.
>
> On 22 September 2014 09:56, Xavier Pennec  <mailto:Xavier.Pennec at inria.fr>> wrote:
>
> Since I installed the last version of therion, metapost is
> randomly bugging on writing temporary files with the message
> "! I can't write on file `'. Please type another file name for input:"
> As this is blocking therion, I have to kill the compilation
> windows and retry. It usually reworks after a few try.
> I tried so see what was wrong in the tmp files with the compile
> option -d without success so far
>
> Does anyone experience the same behavior or does it come from some
> special feature of my installation?
>
> Xavier
>
> -- 
>
> -
> Xavier Pennec
> Senior Research Scientist / Directeur de recherche
> Asclepios project-team, INRIA Sophia-Antipolis
> 2004 Route des Lucioles, BP93
> F-06902 Sophia-Antipolis Cedex, France
> +33 4 92 38 76 64 <tel:%2B33%204%2092%2038%2076%2064>
> +33 6 78 35 16 90 <tel:%2B33%206%2078%2035%2016%2090>
> http://www-sop.inria.fr/asclepios/
> ---
>
>
> ___
> Therion mailing list
> Therion at speleo.sk <mailto:Therion at speleo.sk>
> http://mailman.speleo.sk/mailman/listinfo/therion
>
>
>
>
> ___
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion

-- 
> -
> Xavier Pennec
> Senior Research Scientist / Directeur de recherche
> Asclepios project-team, INRIA Sophia-Antipolis
> 2004 Route des Lucioles, BP93
> F-06902 Sophia-Antipolis Cedex, France
> +33 4 92 38 76 64
> +33 6 78 35 16 90
> http://www-sop.inria.fr/asclepios/
> ---

-- next part --
An HTML attachment was scrubbed...
URL: 
<http://mailman.speleo.sk/pipermail/therion/attachments/20140922/72ecf748/attachment.html>


[Therion] metapost error on Windows7

2014-09-22 Thread Stacho Mudrak
This is really strange... I have experienced similar problem with PDF file
being locked, even it is not open in Adobe Reader.
It looks to me, that OS is reading somehow these files (to index them???)
and for a very small amount of time they are locked.
May be I am completely wrong, but without being able to reproduce this
error, I see no way how to debug it...

S.

On 22 September 2014 09:56, Xavier Pennec  wrote:

> Since I installed the last version of therion, metapost is randomly
> bugging on writing temporary files with the message
> "! I can't write on file `'. Please type another file name for input:"
> As this is blocking therion, I have to kill the compilation windows and
> retry. It usually reworks after a few try.
> I tried so see what was wrong in the tmp files with the compile option -d
> without success so far
>
> Does anyone experience the same behavior or does it come from some special
> feature of my installation?
>
> Xavier
>
> --
>
>> -
>> Xavier Pennec
>> Senior Research Scientist / Directeur de recherche
>> Asclepios project-team, INRIA Sophia-Antipolis
>> 2004 Route des Lucioles, BP93
>> F-06902 Sophia-Antipolis Cedex, France
>> +33 4 92 38 76 64
>> +33 6 78 35 16 90
>> http://www-sop.inria.fr/asclepios/
>> ---
>>
>
> ___
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion
>
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://mailman.speleo.sk/pipermail/therion/attachments/20140922/34040deb/attachment.html>


[Therion] metapost error on Windows7

2014-09-22 Thread Xavier Pennec
Since I installed the last version of therion, metapost is randomly 
bugging on writing temporary files with the message
"! I can't write on file `'. Please type another file name for input:"
As this is blocking therion, I have to kill the compilation windows and 
retry. It usually reworks after a few try.
I tried so see what was wrong in the tmp files with the compile option 
-d without success so far

Does anyone experience the same behavior or does it come from some 
special feature of my installation?

Xavier

-- 
> -
> Xavier Pennec
> Senior Research Scientist / Directeur de recherche
> Asclepios project-team, INRIA Sophia-Antipolis
> 2004 Route des Lucioles, BP93
> F-06902 Sophia-Antipolis Cedex, France
> +33 4 92 38 76 64
> +33 6 78 35 16 90
> http://www-sop.inria.fr/asclepios/
> ---




[Therion] metapost variable requests

2014-04-06 Thread Bruce
Stacho

Sorry I did not finish typing my last message.

I'd like to request some more metapost variables that users can make use of,
to make their map headers more complete.  I regularly get complaints from
judges at map competition time, and I refuse to 'hard code' these in my
layouts, because I regularly change versions and coordinate systems, so to
'hard code' is not only duplication (I selected it in the input files and
then type it again in the output layout), it also invites mistakes if I
forget to change something.



So, some suggestions;



\thversion  = the current version of therion, ie 5.3.15 (for the next
version)



\thoutputcs = output coordinate system code ie , UTM1, or EPSG: 2193

\thoutputcsshort = output coordinate system short text ie arbitrary, UTM1,
or NZTM 2000

\thoutputcslong = output coordinate system long text ie arbitrary, Universal
Transverse Mercator Zone 1, or New Zealand Transverse Mercator 2000.

If it would help to have someone do a menial task, I can put together a
table of EPSG and ESRI codes (in english).



\thnorth = grid, true or magnetic



\thgeomagdeclination = the geomagnetic declination at the date of
compilation (or perhaps the date of the most recent survey?) 

\thgridangle =  similar to declination, but wrt grid north.

This will allow us to define metapost north arrows that points combinations
of grid, true and to magnetic north at will.





  _  

From: therion-bounces at speleo.sk [mailto:therion-boun...@speleo.sk] On Behalf
Of Bruce
Sent: Saturday, 5 April 2014 5:38 p.m.
To: 'List for Therion users'
Subject: Re: [Therion] Question about "\cavedepth" and Northarrow



>I think, the idea with variables containing coordinate extents and
modification of layout should do the job. I will try to implement it, in the
next snapshot.



Stacho, You are becoming prolific. I like it!

Can I request a \thversion variable as well please, so the 

Bruce

-- next part --
An HTML attachment was scrubbed...
URL: 



[Therion] Metapost error 256

2014-03-26 Thread Martin Sluka
So what is the difference?

m.


26. 3. 2014 v 0:47, Bill Gee :

> They 
> are identical, byte for byte.

Martin Sluka - Studio Sluka

prodej Hahnemühle DFA 
tisk fotografií, reprodukcí a volné tvorby

Na Rovnosti 2692/21
130 00 Praha 3
tel.: +420 603513640
mail: martinsluka at mac.com
web: http://www.piezografie.cz








-- next part --
An HTML attachment was scrubbed...
URL: 



[Therion] Metapost error 256

2014-03-26 Thread Martin Sluka
in file data.mp is all what was possible to process up to error.

Compare both data.mp files.

m.s.


25. 3. 2014 v 20:46, Bill Gee :

> On 
> the machine that fails, the directory contains only five files.  One of them 
> is 
> data.mp.

Martin Sluka - Studio Sluka

prodej Hahnemühle DFA 
tisk fotografií, reprodukcí a volné tvorby

Na Rovnosti 2692/21
130 00 Praha 3
tel.: +420 603513640
mail: martinsluka at mac.com
web: http://www.piezografie.cz








-- next part --
An HTML attachment was scrubbed...
URL: 



[Therion] Metapost error 256

2014-03-25 Thread Bill Gee
Hi Martin -

I ran diff on the data.mp files from working and not-working computers.  They 
are identical, byte for byte.

Regards - Bill Gee


On Wednesday, March 26, 2014 00:09:57 Martin Sluka wrote:
> in file data.mp is all what was possible to process up to error.
> 
> Compare both data.mp files.
> 
> m.s.
> 
> 25. 3. 2014 v 20:46, Bill Gee :
> > On
> > the machine that fails, the directory contains only five files.  One of
> > them is data.mp.
> 
> Martin Sluka - Studio Sluka
> 
> prodej Hahnemühle DFA
> tisk fotografií, reprodukcí a volné tvorby
> 
> Na Rovnosti 2692/21
> 130 00 Praha 3
> tel.: +420 603513640
> mail: martinsluka at mac.com
> web: http://www.piezografie.cz




[Therion] Metapost error 256

2014-03-25 Thread Bill Gee
Hi Wookey -

If I add "-d" as a command line option in xTherion, then a directory called 
thTMPDIR is created under the directory containing the map source files.  On 
the machine that fails, the directory contains only five files.  One of them is 
data.mp.  I do not see a data.log file on either computer.  On a working 
computer the directory contains about 40 or 50 files.

On both working and not-working computers - there is no environment variable 
called tmp or temp.  The /tmp directory exists and has 1777 permissions.  
There is a temp directory under the user home directory which has 0777 
permissions.  The directory holding the source files has 0775 permissions.  The 
source files directory and the files it contains are owned by the same user 
account that is running xTherion.

If I try to compile the map as root user, it produces the same error.

I hauled out the strace utility to see if I could figure out what file it is 
barfing on.  It was not much help.  It is failing to open a lot of files.  I 
suspect many of those errors are simply the process of searching for files that 
might be in several places.

I tried running "therion -x thconfig" from the command line instead of from 
inside xTherion.  This produced two new lines of error:


Sorry, I can't find the 'mpost' preload file; will try 'plain'.
I can't find the 'plain' preload file!


Regards - Bill Gee


On Tuesday, March 25, 2014 17:14:31 Wookey wrote:
> +++ Bill Gee [2014-03-25 11:00 -0500]:
> > Hello everyone -
> > 
> > I am trying to get Therion to work on a laptop.  As far as I can tell, it
> > is configured exactly the same as my desktop computer where Therion works
> > just fine.
> > 
> > Both systems are on the same version of Therion.  Both are 64-bit Fedora
> > 20. Both have the same set Texlive, Metapost and font packages. 
> > Therion.ini is identical.  From a command prompt "mpost --version"
> > produces the same output. I have checked file system permissions, and
> > they all are the same.
> > 
> > Any clues?  What else should I look at?
> 
> Hmm.
> 
> > writing AllieSpringCave.pdf ...
> > ### metapost log file 
> > therion: warning -- can't open data.log file for input
> > can't open data.log file for input end of metapost log
> > file
> I think these are the files that go in thtmpdir during processing.
> that's normally a tmpdir 'th' in /tmp, but I'm not sure what sets
> it to that.
> 
> There is an option to not delete those files after processing which
> might give you a clue.
> 
> Something about your tmp setup between machines might be at issue here
> (although I can't think what)?
> 
> Wookey




[Therion] MetaPost links

2013-08-10 Thread Martin Sluka
I added several links to MetaPost page of Therion's wiki. There are many 
examples what is possible to do with MetaPost with source codes. So you may 
play and experiment :)

m.s.




[Therion] Metapost point blocks problems

2013-02-15 Thread Jackson
Hi all,

i have made a new definition for point blocks with metapost.
It only does what I want when the point is nearby the
center of the scrap/drawing. The further the point is away
from the center of the scrap the more random the stones are
set.
Whats wrong with the definition of my "point blocks" ?


def p_blocks_FUND (expr pos,theta,sc,al)=
 U:=(.45u,.35u);
 T:=identity aligned al rotated theta scaled sc shifted pos;
 pickup PenC;
 picture pic, henge;
 path stone, edge;
 stone := 
((-0.6u,-0.5u)--(-0.3u,-0.7u)--(0.3u,-0.3u)--(0.5u,0.5u)--(0u,0.7u)--(-0.2u,0.5u)--(-0.5u,0.3u)--cycle);
 edge := ((-0.5u,-0.4u)--(-0.3u,-0.55u)--(0.2u,-0.2u)--(0.3u,0.4u));
 pic := image(
   thfill stone withcolor 0.90;
   thdraw stone;
   pickup PenD;
   thdraw edge;
 );
 henge := image(
 for i=0 step 1 until 2 :
 thdraw pic
 rotated (uniformdeviate(360))
 scaled ((0.05u) randomized 0.1u)
 slanted 0.01u
 shifted ((0.01u,0.01u) randomized 0.5u);
 endfor;
 );
 thdraw henge;
enddef;



Best regards
Christian (jackson)



[Therion] Metapost point blocks problems

2013-02-15 Thread Marco Corvi
maybe you should use thdraw only for the final picture, and draw/fill for the
components.

marco



 From: Jackson 
To: therion at speleo.sk 
Sent: Friday, February 15, 2013 6:53 PM
Subject: [Therion] Metapost point blocks problems

Hi all,

i have made a new definition for point blocks with metapost.
It only does what I want when the point is nearby the
center of the scrap/drawing. The further the point is away
from the center of the scrap the more random the stones are
set.
Whats wrong with the definition of my "point blocks" ?


def p_blocks_FUND (expr pos,theta,sc,al)=
    U:=(.45u,.35u);
    T:=identity aligned al rotated theta scaled sc shifted pos;
    pickup PenC;
    picture pic, henge;
    path stone, edge;
    stone := 
((-0.6u,-0.5u)--(-0.3u,-0.7u)--(0.3u,-0.3u)--(0.5u,0.5u)--(0u,0.7u)--(-0.2u,0.5u)--(-0.5u,0.3u)--cycle);
    edge := ((-0.5u,-0.4u)--(-0.3u,-0.55u)--(0.2u,-0.2u)--(0.3u,0.4u));
    pic := image(
      thfill stone withcolor 0.90;
      thdraw stone;
      pickup PenD;
      thdraw edge;
    );
    henge := image(
    for i=0 step 1 until 2 :
    thdraw pic
        rotated (uniformdeviate(360))
        scaled ((0.05u) randomized 0.1u)
        slanted 0.01u
        shifted ((0.01u,0.01u) randomized 0.5u);
    endfor;
    );
    thdraw henge;
enddef;



Best regards
Christian (jackson)
___
Therion mailing list
Therion at speleo.sk
http://mailman.speleo.sk/mailman/listinfo/therion
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://mailman.speleo.sk/pipermail/therion/attachments/20130215/42edab8e/attachment.html>


[Therion] Metapost modifications

2012-11-16 Thread Dave Clucas
I've answered my own question. It was a lot easier than I expected!

code metapost
   def a_u_pebbles (expr p) =
  T:=identity;
  pickup PenC;
  path q, qq; q = bbox p;
  picture tmp_pic;
  tmp_pic := image(
for i = xpart llcorner q step 1.5u until xpart urcorner q:
  for j = ypart llcorner q step 1.5u until ypart urcorner q:
qq := (superellipse((.2u,0),(0,.1u),(-.2u,0),(0,.-.1u),.75))
% randomized (u/25)
 rotated uniformdeviate(360)
 shifted ((i,j) randomized 0.8u);
if xpart (p intersectiontimes qq) < 0:
  thdraw qq;
  thfill qq withcolor(1, 0.85, 0.83);
fi;
  endfor;
endfor;
  );
  clip tmp_pic to p;
  draw tmp_pic;
enddef;

def p_u_pebbles (expr pos,theta,sc,al)=
U:=(.45u,.35u);
T:=identity aligned al rotated theta scaled sc shifted pos;
pickup PenC;
p:=superellipse((.2u,0),(0,.1u),(-.2u,0),(0,.-.1u),.75);
thdraw p rotated 20 shifted (0,.25u);
thfill p rotated 20 shifted (0,.25u) withcolor(1, 0.85, 0.83);
thdraw p rotated -37 shifted (.25u,-.25u);
thfill p rotated -37 shifted (.25u,-.25u) withcolor(1, 0.85, 0.83);
thdraw p rotated -62 shifted (-.25u,-.25u);
thfill p rotated -62 shifted (-.25u,-.25u) withcolor(1, 0.85, 0.83);
enddef;

endcode

On 16 Nov 2012, at 09:28, Dave Clucas wrote:

> In Mulu many of the passages are part filled with sandstone pebbles.  
> I'd like to create a user area and a user symbol based on pebbles  
> where the ellipses are filled with a colour (light brown). Can  
> anybody tell me how to modify the standard definition?
>
> Dave Clucas
> dave at daveclucas.com
> http://daveclucas.com
> http://mycaves.org
>
>
>

Dave Clucas
dave at daveclucas.com
http://daveclucas.com
http://mycaves.org






[Therion] Metapost modifications

2012-11-16 Thread Footleg
Take a look at Bruce's customised symbol sets on the wiki. I based mine on
those. I have not tried adding a completely new symbol to therion yet, but
here is how I override the pebbles area fill with one which looks more like
I prefer. Include this layout in your pdf export command to see pebbles
rendered with this custom style:

layout CustomisedSymbols
  code metapost

beginpattern(pattern_pebbles);
pickup PenC;
path qq;
for i=0.0u step 0.6u until 5.1u:
for j=0.0u step 0.6u until 5.1u:
  qq := (superellipse((.05u,0),(0,.05u),(-.05u,0),(0,.-.05u),.75))
 randomized (u/45)
 scaled (uniformdeviate(1.2)+.55)
 rotated uniformdeviate(360)
 shifted ((i,j) randomized 0.55u);
   draw qq;
endfor;
endfor;
patternstep(5.1u,5.1u);
endpattern;

def a_pebbles (expr p) =
T:=identity;
thfill p withpattern pattern_pebbles;
enddef;

  endcode
endlayout CustomisedSymbols


On 16 November 2012 09:28, Dave Clucas  wrote:

> In Mulu many of the passages are part filled with sandstone pebbles. I'd
> like to create a user area and a user symbol based on pebbles where the
> ellipses are filled with a colour (light brown). Can anybody tell me how to
> modify the standard definition?
>
> Dave Clucas
> dave at daveclucas.com
> http://daveclucas.com
> http://mycaves.org
>
>
>
> __**_
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/**mailman/listinfo/therion
>
-- next part --
An HTML attachment was scrubbed...
URL: 



[Therion] metapost: Therion version and current date

2011-06-24 Thread Martin Budaj
> Is it possible to expose the version number of therion to metapost?

this could be added

> And the current system date and time?

there are following internal numeric variables in metapost:

hour, minute, day, month, year

martin



[Therion] metapost: Therion version and current date

2011-06-24 Thread Bruce
While I've having fun with metapost.



Is it possible to expose the version number of therion to metapost?

And the current system date and time?



I'll add anything I make to the wiki.  Promise.



Bruce

By surveying and mapping caves we steal from our future selves.



-- next part --
An HTML attachment was scrubbed...
URL: 



[Therion] metapost color definition

2011-06-24 Thread Bruce
Fixed, thanks, ! does the trick.

Makes me wonder if the need for endcode should be forced, or if all metapost
lines should voluntarily start with !

Reason is that peoples' custom metapost will always be vulnerable to
additional keywords in future therion versions.  I guess everything becomes
obsolete eventually.
Bruce

By surveying and mapping caves we steal from our future selves.

-Original Message-
From: therion-bounces at speleo.sk [mailto:therion-boun...@speleo.sk] On Behalf
Of Stacho Mudrak
Sent: Thursday, 23 June 2011 10:20 p.m.
To: List for Therion users
Subject: Re: [Therion] metapost color definition

It is a very rare case, where layout options are mixing with metapost
code. Both have color keyword. It is because endcode is not needed in
layout.

Could you please try to add ! as a first character on the line 237.
Therion will then know, that it is a line with the code. Or also a ;
could do the job.

Regards, S.

On 23 June 2011 11:53, Bruce  wrote:
> Anyone have any idea why the following metapost included in a layout
causes
> the error below?
>
> It is almost identical to code extracted from data.mp, yet it upsets
therion
> (I have added the 237 so you can see where the error occurs).
>
>
>
>        code metapost
>
>                         %define colours for custom 
> water point & area
> background
>
> 237                   color colour_water;
>
>                         colour_water 
> :=(226/255,244/255,253/255); %light
> blue
>
>                         color colour_sump;
>
>                         colour_sump := 
> (22/255,22/255,95/255);    %dark
blue
>
>        endcode
>
>
>
> D:\Program Files\Therion\therion.exe: error --
> ../../StdFiles/LayoutStandards.thc [237] --
> ../../StdFiles/LayoutStandards.thc [237] -- not enough option arguments --
> color -- must be 2
>
>
>
> Regards
>
> Bruce
>
> ___
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion
>
>
___
Therion mailing list
Therion at speleo.sk
http://mailman.speleo.sk/mailman/listinfo/therion




[Therion] metapost color definition

2011-06-23 Thread Bruce
Anyone have any idea why the following metapost included in a layout causes
the error below?

It is almost identical to code extracted from data.mp, yet it upsets therion
(I have added the 237 so you can see where the error occurs).



   code metapost  

%define colours for custom water point & area
background

237   color colour_water; 

colour_water :=(226/255,244/255,253/255); %light
blue

color colour_sump;

colour_sump := (22/255,22/255,95/255);%dark blue

   endcode



D:\Program Files\Therion\therion.exe: error --
../../StdFiles/LayoutStandards.thc [237] --
../../StdFiles/LayoutStandards.thc [237] -- not enough option arguments --
color -- must be 2



Regards

Bruce

-- next part --
An HTML attachment was scrubbed...
URL: 



[Therion] metapost color definition

2011-06-23 Thread Stacho Mudrak
It is a very rare case, where layout options are mixing with metapost
code. Both have color keyword. It is because endcode is not needed in
layout.

Could you please try to add ! as a first character on the line 237.
Therion will then know, that it is a line with the code. Or also a ;
could do the job.

Regards, S.

On 23 June 2011 11:53, Bruce  wrote:
> Anyone have any idea why the following metapost included in a layout causes
> the error below?
>
> It is almost identical to code extracted from data.mp, yet it upsets therion
> (I have added the 237 so you can see where the error occurs).
>
>
>
>        code metapost
>
>                         %define colours for custom 
> water point & area
> background
>
> 237                   color colour_water;
>
>                         colour_water 
> :=(226/255,244/255,253/255); %light
> blue
>
>                         color colour_sump;
>
>                         colour_sump := 
> (22/255,22/255,95/255);    %dark blue
>
>        endcode
>
>
>
> D:\Program Files\Therion\therion.exe: error --
> ../../StdFiles/LayoutStandards.thc [237] --
> ../../StdFiles/LayoutStandards.thc [237] -- not enough option arguments --
> color -- must be 2
>
>
>
> Regards
>
> Bruce
>
> ___
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion
>
>



[Therion] metapost line definitions 'u'

2010-02-07 Thread Martin Budaj
On Sun, Feb 7, 2010 at 11:29 AM, Bruce  wrote:
> Is u: (and v: w: for that matter) intended to correspond to a particular
> drawn entity size in the finished pdf, or are they just arbitrary variables
> for which one can calculate the value of, using the code in the initialise
> definition?

u allows nonlinear scaling of symbols depending on scale. The macro
initialize assigns a fixed value to 'u' which will be used in pdf for
that scale. On average, diameter of point symbols is 1u in the output.

v and w behave differently (v could be used e.g. for some area fills
with decreasing distance among symbols for smaller scales but only up
to a certain threshold, then bigger distance again; w is almost
constant). Currently they are not (or perhaps only occasionaly) used
in symbols design.

In the beginning we wanted to do some sort of optimization of values
assigned to u, v, w but did not manage to do it so far. It would be
useful if somebody could test alternative values (and alternative
breaks for map scale in the initialize macro) for various scales and
various styles of map drawing (lot of symbols vs. sparsely filled
map). Good setup of these values could improve map appearance
substantially.

Cheers,
Martin



[Therion] Metapost and user attributes

2007-12-22 Thread Xavier Pennec
Dear all,

I have a survey with lots of sections (which are on another map than the 
plan and the elevation, see attached files NaduelFilonCerisiersPlan.pdf 
and  NaduelRD8_sections.pdf) and I would like to add automatically a 
label numbering each section at the end of the section line in the plan. 
As I want to be able not to display the section lines AND the their 
numbers when I inlcude that survey into the larger map, I thought that 
adding a user attribute to the section line would be the right way.

Thus, I used a user attribute called label in my th2 file:
   line section -reverse on -direction both -attr label "one"
 312.0 327.0
 334.09 327.0 396.0 327.0 425.0 327.0
   endline

and I redefined the section line metapost command into in my layout:

code metapost
def l_section (expr P)(text txt) =
  T:=identity;
  path Q; Q = punked P;
  pickup PenC;
  for t = 0 upto length P - 1:
pair zz[];
zz1 := point t of P;
zz2 := point t+1 of P;
zz3 := postcontrol t of P;
zz4 := precontrol t+1 of P;
if (length(zz3-1/3[zz1,zz2]) > 0.1pt) or
   (length(zz4-2/3[zz1,zz2]) > 0.1pt):
  zz5 = whatever[zz1,zz2];
  (zz3-zz5) = whatever * (zz1-zz2) rotated 90;
  draw zz1--zz5;
  zz6 = whatever[zz1,zz2];
  (zz4-zz6) = whatever * (zz1-zz2) rotated 90;
  draw zz2--zz6;
else:
  draw zz1--zz2;
fi;
  endfor;
  for pnt=txt:
if pnt=-1:
else:
  T:=identity rotated angle(thdir(Q,pnt)) shifted (point pnt of Q);
  pickup PenC;
  thdraw (0,0)--(0,.8u);
  thdraw (-.1u,.55u)--(0,.8u)--(.1u,.55u);
  if known ATTR_label:
p_label( ATTR_label, (point pnt of Q), 0, 5);
  fi;
fi;
exitif pnt=-1;
  endfor;
enddef;
endcode

The file NaduelRD5_plan.pdf is an example on what it gives. With that 
solution, I have two problems:
- the first one is that is I change -attr label "one"with 
-attr label "1" then metapost crashes because ATTR_label is 
intrepreted in that case as a known numeric and not as a string.
- the second problem is how to give an offset to the label so that it is 
actually above and below the lines?

If there is any metapost guru that can help, I'll appreciate.

Xavier

PS: there would be another solution to my problem, which would be to put 
sections and their labels in separate scraps, simulating different 
layers as in gimp, and not to include these scraps into the large map. 
However, to define properly a scrap as a layer of another one, it would 
be needed to deform both scarps exactly in the same way, which is not 
the case right now if some reference survey station is moved in one 
scrap only. Thus, I would imagine that a bettre solution would be a 
special type of layer scrap where the geometry is copied from another 
(e.g. something like scrap scrap2_layer2 -copy scrap2). Is that 
something feasible?

-- next part --
A non-text attachment was scrubbed...
Name: NaduelFilonCerisiersPlan.pdf
Type: application/pdf
Size: 177269 bytes
Desc: not available
URL: 

-- next part --
A non-text attachment was scrubbed...
Name: NaduelRD8_sections.pdf
Type: application/pdf
Size: 206878 bytes
Desc: not available
URL: 

-- next part --
A non-text attachment was scrubbed...
Name: NaduelRD5_plan.pdf
Type: application/pdf
Size: 19981 bytes
Desc: not available
URL: 



[Therion] metapost symbols

2007-01-16 Thread Martin Budaj
On 1/14/07, Stefan Oswald  wrote:
> here are the results of our Therion meeting yesterday;
> An idea would be to add the factor for density/size of symbols in the source 
> code and adjust
> these variables in the map editor by a -density {} command in the 
> mapeditor\area\options.

We also considered a similar idea. There is indeed an experimental
implementation of area blocks macro (a_blocks_SKBB_ in the file
thArea.mp) which allows not only density and size setting, but density
and size may change along specified direction (there are 5 arguments:
direction, starting size and density, ending size and density).

It is perhaps too complicated and simple density/size settings (for
all randomle generated areas) would be sufficient. What do others
think?

> Also a -diameter {} command for block points would allow to change block size 
> of each point
> individually.

We intented point symbols to be just symbolic representation of
passage fills. If there is a rock which is important for orientation,
it should be drawn precisely as line brock-border, otherwise it is
enough to give information that some blocks are there using point or
area blocks symbols. (In addition point symbols can be scaled using
-scale option).

Cheers,
Martin



[Therion] metapost symbols

2007-01-14 Thread Stefan Oswald
Hello, 

here are the results of our Therion meeting yesterday; 
An idea would be to add the factor for density/size of symbols in the source 
code and adjust these variables in the map editor by a -density {} command in 
the mapeditor\area\options. Also a -diameter {} command for block points would 
allow to change block size of each point individually.  


#POINT BLOCK +size adjust (symbolsize)

code metapost

   def p_blocks_UIS (expr pos,theta,sc,al)=
symbolsize:=1.0u; %Factor*u; Factor=size of the blocks
U:=(.5u,.5u);
T:=identity aligned al rotated theta scaled sc shifted pos;
pickup PenC;
thdraw 
(.0symbolsize,.0symbolsize)--(1.0symbolsize,-.5symbolsize)--(0.0symbolsize,-1.5symbolsize)--(-1.0symbolsize,-1.0symbolsize)--cycle;
thdraw 
(.5symbolsize,-.25symbolsize)--(1.0symbolsize,.5symbolsize)--(0.0symbolsize,1.5symbolsize)--(-0.5symbolsize,.5symbolsize);
thdraw 
(.0symbolsize,.0symbolsize)--(.0symbolsize,.5symbolsize)--(-1.5symbolsize,.5symbolsize)--(-1.5symbolsize,-0.5symbolsize)--(-0.5symbolsize,-0.5symbolsize);
   enddef;
endcode

#AREA BLOCK +density adjust (distance)

code metapost
  def a_blocks (expr p) =
distance:=1;
T:=identity;
pickup PenC;
path q, qq; q = bbox p;
picture tmp_pic; 
uu := max(u, (xpart urcorner q - xpart llcorner q)/100, (ypart urcorner 
q - ypart llcorner q)/100);
tmp_pic := image(
  for i = xpart llcorner q step distance*uu until xpart urcorner q:
for j = ypart llcorner q step distance*uu until ypart urcorner q:
  qq := punked 
(((-.5uu,-.5uu)--(.5uu,-.5uu)--(.5uu,.5uu)--(-.5uu,.5uu)--cycle) 
randomized (uu/2))
   rotated uniformdeviate(360) 
   shifted ((i,j) randomized 1.0uu);
if xpart (p intersectiontimes qq) < 0:
  thclean qq;
  thdraw qq;
fi;
endfor;  
  endfor;
);
clip tmp_pic to p;
draw tmp_pic;
  enddef;  
endcode


greetings, 

Stefan



[Therion] Metapost problem...

2006-05-14 Thread Martin Sluka

On 14.5.2006, at 10:55, thierrygonon wrote:

> Hello, I've finally succeed in changing the mpost and pdfetex path...

Which TeX you use?

I use the standard installation through i-installer and no any problems.

Martin



[Therion] Metapost problem...

2006-05-13 Thread Martin Sluka

On 13.5.2006, at 9:17, thierrygonon wrote:

>>> I'm using therion 0.3.11 with Mac OS X. When I try to compile my  
>>> files
>>> (in my case, just a .th one), the result is :
>>> ### metapost log file 
>>> therion: warning -- can't open data.log file for input
>>> can't open data.log file for input end of  
>>> metapost
>>> log file 
>>> therion: error -- metapost exit code -- 32512
>>>
>>
> Thank you for your very quick answer Stacho !
>
> I've made the changes you've indicated, but I don't know where is the
> THERION environnement variable, so I can't modify this ! My  
> therion.ini
> file stands in the general therion directory...

In the wiki is a hint how to find the environment variable. - Docs/ 
wiki - section Tips & Tricks - just first point.

I'll add files I use for therion with their localisation. I hope  
Stacho will be able to install macosx on his PC too in short time,  
just to tune the therion for it *(;-)>

Martin


-- next part --
A non-text attachment was scrubbed...
Name: Archive.zip
Type: application/zip
Size: 721 bytes
Desc: not available
URL: 

-- next part --



[Therion] Metapost problem...

2006-05-13 Thread Stacho Mudrak
It looks, like therion is not able to run mpost from command line. Are 
you able to run mpost from console?

You will probably need to uncomment "mpost-path" and set it to path to 
your mpost executable in therion.ini file (same with pdfetex). Then you 
will need to set THERION environment variable to directory, where 
therion.ini file stands.

Martin Sluka is using therion on Mac OS X intensively, so may be he will 
give you some hints about it also.

HTH, S.

thierrygonon wrote:
> Hello,
> 
> I'm using therion 0.3.11 with Mac OS X. When I try to compile my files 
> (in my case, just a .th one), the result is :
> ### metapost log file 
> therion: warning -- can't open data.log file for input
> can't open data.log file for input end of metapost 
> log file 
> therion: error -- metapost exit code -- 32512
> 
> The problem seems to be linked with Metapost...
> 
> What's the problem ???
> 
> Thank you very much for your help !!
> 
> Thierry
> ___
> Therion mailing list
> Therion at speleo.cz
> http://www.speleo.cz/mailman/listinfo/therion
> 
> 




[Therion] Metapost problem...

2006-05-13 Thread thierrygonon
Hello,

I'm using therion 0.3.11 with Mac OS X. When I try to compile my files 
(in my case, just a .th one), the result is :
### metapost log file 
therion: warning -- can't open data.log file for input
can't open data.log file for input end of metapost 
log file 
therion: error -- metapost exit code -- 32512

The problem seems to be linked with Metapost...

What's the problem ???

Thank you very much for your help !!

Thierry



[Therion] Metapost changing warningcheck

2006-03-15 Thread Philip Schuchardt
With a big cave I have scale set to = 1 200.  Then I get these warnings from 
metapost.  Is there anyway to set warningcheck to 0?  With metapost .60 and 
above, 4096 isn't really an issue.

-- Error Message -
The equation I just processed has given some variable
a value of 4096 or more. Continue and I'll try to cope
with that big value; but it might be dangerous.
(Set warningcheck:=0 to suppress this message.)

Philip Schuchardt