<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
Hi Torsten,
<div><br>
</div>
<div>You should be able to get it to work.</div>
<div>
<blockquote type="cite">
<div dir="ltr">
<p><font color="#000000"><span style="caret-color: rgb(0, 0, 0); background-color: rgba(255, 255, 255, 0);">If I add "....Survey-Folder/General-Folder//;" to TEXINPUTS it does work with "\loadpicture{image.jpg}".<br>
But this is not the resolution as you might reference in the thconfig file to data within the project-folder.</span></font></p>
</div>
</blockquote>
<div>You will be able to relate to the image.jpg and the project-folder interchangeably, just make sure you dont get rid of any of the standard settings.</div>
<div><br>
</div>
<div>I got rid of the ;. On the end of texinputs and it broke.</div>
<div><br>
</div>
<div>If you have overwritten any of the standard texinputs variables then it will stop working.</div>
<br>
If you can’t get it to work, please copy and paste the export texinputs line and we can take a look.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Alastair Gott<br>
<br>
<div id="AppleMailSignature" dir="ltr">Sent from my iPhone</div>
<div dir="ltr"><br>
On 28 Nov 2019, at 08:48, Torsten Schnitter via Therion <<a href="mailto:therion@speleo.sk">therion@speleo.sk</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<p>Hi Alastair<br>
</p>
<p>Is there a way to work with TEXINPUTS and relative paths?<br>
The idea is to have a base folder in TEXINPUTS and to reference from this base folder to the final files within the thconfig commands.<br>
I tried but couldn't get it to work.<br>
</p>
<p>If you have a folder structure with a main folder for all the survey stuff and subfolders for every cave system/survey project.<br>
And also a subfolder for general stuff (may be with more subfolders).<br>
Within every project you have the thconfig file with e.g. the \loadpicture command.</p>
<p>Survey-Folder<br>
   General-Folder<br>
      image.jpg<br>
   Project-Folder<br>
      thconfig<br>
</p>
<p>I would like to reference with relative paths from that thconfig to the 1st level subfolder with general stuff for example.<br>
I added "....Survey-Folder//;" to TEXINPUTS and tried "\loadpicture{/General-Folder/image.jpg}" but it didn't work.</p>
<p>If I add "....Survey-Folder/General-Folder//;" to TEXINPUTS it does work with "\loadpicture{image.jpg}".<br>
But this is not the resolution as you might reference in the thconfig file to data within the project-folder.<br>
</p>
<p>regards,<br>
Torsten<br>
</p>
<blockquote type="cite">alastair gott <<a href="mailto:alastairgott@hotmail.com">alastairgott@hotmail.com</a>> hat am 27. November 2019 um 12:13 geschrieben:
<br>
<br>
<div style="color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12pt;">
HI Torsten and Bruce,</div>
<div style="color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12pt;">
I'm not a "coder" but I implemented the  <span style="font-family: Arial,Helvetica,sans-serif,serif,EmojiFont; display: inline; background-color: #ffffff;">
export Texinputs</span> last night for relative file locations, It was OK in the end but it took me a while to work out where the export texinputs was actually kept.</div>
<div style="color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12pt;">
I broke texinputs on my PC last night by accidentally removing the final ;.</div>
<div style="color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12pt;">
 Which meant that it could not find the normal therion functions to work, luckily I worked out my mistake.</div>
<div style="color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12pt;">
Do you think it would be possible to create a file within the therion software files where absolute file locations can be kept separately to the texinputs?</div>
<div style="color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12pt;">
<div style="font-family: Arial,Helvetica,sans-serif; font-size: 12pt; margin-bottom: 0px; margin-top: 0px;">
<span style="font-size: medium;"><span style="font-family: Arial;">This would allow you to ask anyone using your thconfig to go onto a publicly shared file system and copy it into their computer. ie C:\Users\alastair\OneDrive\#####</span></span></div>
<div style="font-family: Arial,Helvetica,sans-serif; font-size: 12pt; margin-bottom: 0px; margin-top: 0px;">
<br>
</div>
</div>
<div style="color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12pt;">
If this is possible, would it also be possible to create another window in the thconfig which looks to the absolute file locations and allows you to "select" images from there. Much like the survey structure.</div>
<div style="color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12pt;">
<image.png> <br>
</div>
<div style="color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12pt;">
 which then spits out the code:</div>
<div style="color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12pt;">
<div style="color: black; font-family: Arial,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; margin-bottom: 0px; margin-top: 0px;">
<div style="margin-bottom: 0px; margin-top: 0px;"><span style="margin-bottom: 0px; margin-top: 0px;">code tex-map</span></div>
</div>
<div style="color: black; font-family: Arial,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; margin-bottom: 0px; margin-top: 0px;">
\legendbox{00} {140} {nw} {\loadpicture{<string>/TCP.png}}</div>
<div style="color: black; font-family: Arial,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; margin-bottom: 0px; margin-top: 0px;">
<span style="margin-bottom: 0px; margin-top: 0px;">endcode</span> <br>
</div>
</div>
<div style="color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12pt;">
<span class="ox-9582f988bc-ecxApple-style-span" style="font-size: medium;"><span style="font-family: Arial;"><br>
</span></span></div>
<div style="color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12pt;">
<span class="ox-9582f988bc-ecxApple-style-span" style="font-size: medium;"><span style="font-family: Arial;"><br>
</span></span></div>
<div style="color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12pt;">
<span class="ox-9582f988bc-ecxApple-style-span" style="font-size: medium;"><span style="font-family: Arial;">Regards,</span></span></div>
<div style="color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12pt;">
<span class="ox-9582f988bc-ecxApple-style-span" style="font-size: medium;"><span style="font-family: Arial;">Alastair Gott.</span><span style="font-family: Arial;"><br>
</span></span></div>
<div id="ox-9582f988bc-divtagdefaultwrapper" style="font-size: 12pt; color: #000000; font-family: Arial,Helvetica,sans-serif;" dir="ltr">
<span class="ox-9582f988bc-ecxApple-style-span" style="font-size: medium;"><span style="font-family: Arial;"><br>
</span><span style="font-family: Arial;"><a href="mailto:AlastairGott@hotmail.com">AlastairGott@hotmail.com</a>,</span><span style="font-family: Arial;"><br>
</span><span style="font-family: Arial;">M: 07931779380.</span></span> <br>
</div>
 <br>
<hr style="display: inline-block; width: 98%;">
<div id="ox-9582f988bc-divRplyFwdMsg" dir="ltr"><span style="font-size: 11pt; color: #000000; font-family: Calibri, sans-serif;"><strong>From:</strong> Therion <<a href="mailto:therion-bounces@speleo.sk">therion-bounces@speleo.sk</a>> on behalf of Torsten Schnitter
 via Therion <<a href="mailto:therion@speleo.sk">therion@speleo.sk</a>><br>
<strong>Sent:</strong> 27 November 2019 09:07<br>
<strong>To:</strong> List for Therion users <<a href="mailto:therion@speleo.sk">therion@speleo.sk</a>><br>
<strong>Cc:</strong> Torsten Schnitter <<a href="mailto:torsten.schnitter@netcologne.de">torsten.schnitter@netcologne.de</a>><br>
<strong>Subject:</strong> Re: [Therion] How to rotate XVI?</span>
<div> </div>
</div>
<div>
<p>Hi Bruce<br>
</p>
<p>Sometimes it is more trick than magic. ;-)<br>
</p>
<p>I agree with this shaded line. That would be realy nice to have this available.<br>
May be with a paramter for the "thickness" of the shade.<br>
</p>
<p>I have some more statements \def\maplayout{ \legendbox ... {\loadpicture...} } for pictures and elevation map. As you already have supposed. I deleted all this in the previous example to make it more easy to read.<br>
I'm using absolute paths for loadpicture commands.<br>
But it would be much better if you can use relative paths like ..\logos\picture.jpg<br>
I'm also looking forward for a better solution to this.<br>
<br>
</p>
<p>regards,<br>
Torsten<br>
</p>
<blockquote type="cite">Bruce Mutton <<a href="mailto:bruce@tomo.co.nz">bruce@tomo.co.nz</a>> hat am 26. November 2019 um 09:37 geschrieben:
<br>
<br>
<div class="ox-9582f988bc-x_ox-9d1784b9f3-WordSection1">
<p class="ox-9582f988bc-x_ox-9d1784b9f3-MsoNormal">Thanks for the comprehensive answers Torsten</p>
<p class="ox-9582f988bc-x_ox-9d1784b9f3-MsoNormal">I was a little disappointed that the surface ‘line’ turns out to be a clever adaption of a long skinny ‘area’, but it is effective I suppose.  I seem to recall there was a conversation about creating a line
 with shading along one side recently…  That would be easier for the draughtsperson if someone has solved that one.  All the same, I think I may use your method one day.</p>
<p class="ox-9582f988bc-x_ox-9d1784b9f3-MsoNormal"> </p>
<p class="ox-9582f988bc-x_ox-9d1784b9f3-MsoNormal">The legend scaling is interesting, and I see now that you posted this previously.  I wonder if a similar approach could be taken to scaling all the passage cross sections, with a simple ‘switch’?</p>
<p class="ox-9582f988bc-x_ox-9d1784b9f3-MsoNormal"> </p>
<p class="ox-9582f988bc-x_ox-9d1784b9f3-MsoNormal">I guess your <span class="ox-9582f988bc-x_ox-9d1784b9f3-fontstyle01">
\def\maplayout{ also contains a couple of \loadpicture statements, one for the Hidden river logo and one for the elevation.  Are you using absolute paths to specify the file to load, or environment variables?  I am interested in ways to make it easier for projects
 that are used with version control across a number of different versioned branches and computer systems.  I have not got the time to experiment, but if the environment variable has to point to the exact folder (as this page implies
</span><a href="https://therion.speleo.sk/wiki/tex#changing_the_look_or_layout_of_a_map_output">https://therion.speleo.sk/wiki/tex#changing_the_look_or_layout_of_a_map_output</a>)<span class="ox-9582f988bc-x_ox-9d1784b9f3-fontstyle01">, I can imagine it becomes
 unworkable on a computer system with dozens of cave projects, each comprising a number of caves.
</span></p>
<p class="ox-9582f988bc-x_ox-9d1784b9f3-MsoNormal"><span class="ox-9582f988bc-x_ox-9d1784b9f3-fontstyle01">This
<a href="https://www.mail-archive.com/therion@speleo.sk/msg05519.html">post by Martin B</a> in 2015 suggests we can define a root folder with an environment variable, and then spell out an absolute path relative to that.  Unfortunately if one uses a version
 control system that stores different development branches in different folders, both approaches are even more problematic.
</span></p>
<p class="ox-9582f988bc-x_ox-9d1784b9f3-MsoNormal"><span class="ox-9582f988bc-x_ox-9d1784b9f3-fontstyle01"> 
</span></p>
<p class="ox-9582f988bc-x_ox-9d1784b9f3-MsoNormal"><span class="ox-9582f988bc-x_ox-9d1784b9f3-fontstyle01">Sorry that this thread is rambling around topics that bear little relation to the original message.</span></p>
<p class="ox-9582f988bc-x_ox-9d1784b9f3-MsoNormal"> </p>
<p class="ox-9582f988bc-x_ox-9d1784b9f3-MsoNormal">Bruce</p>
<p class="ox-9582f988bc-x_ox-9d1784b9f3-MsoNormal"> </p>
<div>
<div style="border: none; border-top: solid #E1E1E1 1.0pt; padding: 3.0pt 0cm 0cm 0cm;">
<p class="ox-9582f988bc-x_ox-9d1784b9f3-MsoNormal"><strong>From:</strong> Therion <<a href="mailto:therion-bounces@speleo.sk">therion-bounces@speleo.sk</a>>
<strong>On Behalf Of </strong>Torsten Schnitter via Therion<br>
<strong>Sent:</strong> Monday, 25 November 2019 23:33<br>
<strong>To:</strong> List for Therion users <<a href="mailto:therion@speleo.sk">therion@speleo.sk</a>><br>
<strong>Cc:</strong> Torsten Schnitter <<a href="mailto:torsten.schnitter@netcologne.de">torsten.schnitter@netcologne.de</a>><br>
<strong>Subject:</strong> [Therion] ***UNCHECKED*** Re: How to rotate XVI?</p>
</div>
</div>
<p>Hi</p>
<p>I got the answer for rotation XVI file already from Stephen Clark.<br>
In the end it's easy and as Alastair also mentioned:<br>
export map -fmt xvi -proj [elevation 45 deg] -o ....</p>
<p>Concerning the questions from Bruce:<br>
1. Ground profile<br>
You have to export a kml file from your passages. But only these survey lines you would like to have the surface profile from.<br>
There is a website where you can transform this kml data to surface data. You will get an endless list with stations and added surface altitude. The website is
<a href="http://www.gpsvisualizer.com">www.gpsvisualizer.com</a><br>
I can't remember how to get the final file  but there was still some work to do on that file.<br>
In the end you need a file like this to generate a XVI file from that:<br>
survey<br>
 centreline<br>
  date ....<br>
   cs lat-long<br>
   walls off<br>
   mark temporary<br>
   flags surface<br>
   fix 1 44.1234567 1.345678 123.4<br>
   .... more fix stations ....<br>
   data nosurvey from to<br>
   1  2<br>
   2  3<br>
   .....<br>
 endcentreline<br>
endsurvey</p>
<p>2. Code for the surface line:<br>
scrap<br>
  line wall -id surface_line -outline none -clip off<br>
    ...<br>
  endline<br>
  line border -id lower_line -subtype invisible -clip off<br>
    ...<br>
  endline<br>
  area u:surface_grey -clip off<br>
    surface_line<br>
    lower_line<br>
  endarea<br>
endscrap</p>
<p>The code for area surface_grey is attached to this mail.<br>
(I'm not realy sure anymore about all the "-clip off" !?)</p>
<p>3. Text boxes and layout changes<br>
This is a bit more complex. I will put this infos into an extra email later.<br>
Just give me some time to sort it out and to make it "readable" for everyone.</p>
<p>regards,<br>
Torsten</p>
<p> </p>
<blockquote>
<p class="ox-9582f988bc-x_ox-9d1784b9f3-MsoNormal" style="margin-bottom: 12.0pt;">
Bruce Mutton <<a href="mailto:bruce@tomo.co.nz">bruce@tomo.co.nz</a>> hat am 25. November 2019 um 02:32 geschrieben:</p>
<div>
<p>I like your map Torsten.<br>
I hope Alistair’s solution is what you were looking for.<br>
I have some questions so that I might make such a nice map.</p>
<ol type="1" start="1">
<li class="ox-9582f988bc-x_ox-9d1784b9f3-MsoNormal">How did you obtain the ground profile?  I presume you may have walked it with a gps to obtain ‘real’ survey data or extracted it from Google Earth.</li><li class="ox-9582f988bc-x_ox-9d1784b9f3-MsoNormal">I like the line you used for the ground profile.  Would you share the code for that?</li><li class="ox-9582f988bc-x_ox-9d1784b9f3-MsoNormal">I like the layout of the text information boxes.  Would you share an example of the code for those? (cave name, location, surveyed, thanks, exploration history)</li></ol>
<p>Regards<br>
Bruce</p>
</div>
</blockquote>
</div>
</blockquote>
<p class="ox-9582f988bc-x_default-style"><br>
 </p>
<blockquote type="cite">_______________________________________________ <br>
Therion mailing list <br>
<a href="mailto:Therion@speleo.sk">Therion@speleo.sk</a> <br>
<a href="https://mailman.speleo.sk/listinfo/therion">https://mailman.speleo.sk/listinfo/therion</a>
<br>
</blockquote>
<p class="ox-9582f988bc-x_default-style"><br>
 </p>
</div>
</blockquote>
<p class="default-style"><br>
 </p>
<blockquote type="cite">_______________________________________________ <br>
Therion mailing list <br>
<a href="mailto:Therion@speleo.sk">Therion@speleo.sk</a> <br>
<a href="https://mailman.speleo.sk/listinfo/therion">https://mailman.speleo.sk/listinfo/therion</a>
<br>
</blockquote>
<p class="default-style"><br>
 </p>
</div>
</blockquote>
<blockquote type="cite">
<div dir="ltr"><span>_______________________________________________</span><br>
<span>Therion mailing list</span><br>
<span><a href="mailto:Therion@speleo.sk">Therion@speleo.sk</a></span><br>
<span><a href="https://mailman.speleo.sk/listinfo/therion">https://mailman.speleo.sk/listinfo/therion</a></span><br>
</div>
</blockquote>
</div>
</body>
</html>