"\legendbox" "\loadpicture" and absolute paths
Hello, I am using the "\loadpicture" capability in "\legendbox" constructs to include map sections, elevations, etc. It all works nicely on my PC where I am using relative paths to the pdf files. My club has a desire to archive the map data for posterity - ie if my pc dies or I go walkabout, the map data should still be available so that others can add to the maps as they are extended. I would prefer to have the images included using relative pathnames, rather than absolute pathnames, so that future explorers can download the map data and extend it, without having to duplicate my file hierarchy. How can I include relative paths in the \loadpicture functionality? Thanks, Rowena
Hi all I have added a bit to http://therion.speleo.sk/wiki/doku.php/tex which covers using the TEXINPUTS environment variable as an alternative to setting an absolute path in ones therion files. It's not ideal but it works. Mike UTS CRICOS Provider Code: 00099F DISCLAIMER: This email message and any accompanying attachments may contain confidential information. If you are not the intended recipient, do not read, use, disseminate, distribute or copy this message or attachments. If you have received this message in error, please notify the sender immediately and delete this message. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of the University of Technology Sydney. Before opening any attachments, please check them for viruses and defects. Think. Green. Do. Please consider the environment before printing this email.
On Thu, Jan 15, 2015 at 9:59 AM rowena <rowena_l@tpg.com.au> wrote:
I am using the “\loadpicture” capability in “\legendbox” constructs to include map sections, elevations, etc. It all works nicely on my PC where I am using relative paths to the pdf files. My club has a desire to archive the map data for posterity – ie if my pc dies or I go walkabout, the map data should still be available so that others can add to the maps as they are extended. I would prefer to have the images included using relative pathnames, rather than absolute pathnames, so that future explorers can download the map data and extend it, without having to duplicate my file hierarchy.
How can I include relative paths in the \loadpicture functionality?
Hi, it took some time, but now \loadpicture supports both relative and absolute paths. Check out the devel branch (not yet merged to master): Source: https://github.com/therion/therion/tree/devel Windows installer: https://github.com/therion/therion/actions?query=workflow%3AInstaller+branch... Best wishes Martin
Hi Martin, Using the dev Windows version Therion 5.5.7+67fffb0 (2021-02-22) I'm still only able to use absolute paths. Is this a Windows only issue? I've also tried using the \savepath method (from thbook) below with no success. \savepath{mypath1}{../data/picture.png} \def\maplayout{ \legendbox{100}{80}{NW}{\loadpicture{mypath1}} } Thanks for looking at this. Regards, Henry Bennett On Sun, Feb 7, 2021 at 6:07 PM Martin Budaj <m.budaj@gmail.com> wrote:
On Thu, Jan 15, 2015 at 9:59 AM rowena <rowena_l@tpg.com.au> wrote:
I am using the “\loadpicture” capability in “\legendbox” constructs to include map sections, elevations, etc. It all works nicely on my PC where I am using relative paths to the pdf files. My club has a desire to archive the map data for posterity – ie if my pc dies or I go walkabout, the map data should still be available so that others can add to the maps as they are extended. I would prefer to have the images included using relative pathnames, rather than absolute pathnames, so that future explorers can download the map data and extend it, without having to duplicate my file hierarchy.
How can I include relative paths in the \loadpicture functionality?
Hi,
it took some time, but now \loadpicture supports both relative and absolute paths. Check out the devel branch (not yet merged to master):
Source: https://github.com/therion/therion/tree/devel Windows installer:
https://github.com/therion/therion/actions?query=workflow%3AInstaller+branch...
Best wishes Martin _______________________________________________ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion
Hi, \savepath has been implemented on February 27; your therion version is older. If you'll have problems also with the current version of therion, please send me your layout definition and the log file produced by therion. Best regards Martin On Sat, Mar 13, 2021 at 2:57 PM Henry Bennett <henry@hbennett.com> wrote:
Hi Martin,
Using the dev Windows version Therion 5.5.7+67fffb0 (2021-02-22) I'm still only able to use absolute paths. Is this a Windows only issue?
I've also tried using the \savepath method (from thbook) below with no success.
\savepath{mypath1}{../data/picture.png} \def\maplayout{ \legendbox{100}{80}{NW}{\loadpicture{mypath1}} }
Thanks for looking at this.
Regards, Henry Bennett
On Sun, Feb 7, 2021 at 6:07 PM Martin Budaj <m.budaj@gmail.com> wrote:
On Thu, Jan 15, 2015 at 9:59 AM rowena <rowena_l@tpg.com.au> wrote:
I am using the “\loadpicture” capability in “\legendbox” constructs to include map sections, elevations, etc. It all works nicely on my PC where I am using relative paths to the pdf files. My club has a desire to archive the map data for posterity – ie if my pc dies or I go walkabout, the map data should still be available so that others can add to the maps as they are extended. I would prefer to have the images included using relative pathnames, rather than absolute pathnames, so that future explorers can download the map data and extend it, without having to duplicate my file hierarchy.
How can I include relative paths in the \loadpicture functionality?
Hi,
it took some time, but now \loadpicture supports both relative and absolute paths. Check out the devel branch (not yet merged to master):
Source: https://github.com/therion/therion/tree/devel Windows installer:
https://github.com/therion/therion/actions?query=workflow%3AInstaller+branch...
Best wishes Martin _______________________________________________ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion
_______________________________________________ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion
Thank you. I can confirm that this works with the latest dev build under Windows. I had thought this was introduced in an early dev build after the mail earlier in February. My bad. Keep up the good work, regards, Henry On Sat, Mar 13, 2021 at 4:54 PM Martin Budaj <m.budaj@gmail.com> wrote:
Hi,
\savepath has been implemented on February 27; your therion version is older. If you'll have problems also with the current version of therion, please send me your layout definition and the log file produced by therion.
Best regards Martin
On Sat, Mar 13, 2021 at 2:57 PM Henry Bennett <henry@hbennett.com> wrote:
Hi Martin,
Using the dev Windows version Therion 5.5.7+67fffb0 (2021-02-22) I'm still only able to use absolute paths. Is this a Windows only issue?
I've also tried using the \savepath method (from thbook) below with no success.
\savepath{mypath1}{../data/picture.png} \def\maplayout{ \legendbox{100}{80}{NW}{\loadpicture{mypath1}} }
Thanks for looking at this.
Regards, Henry Bennett
On Sun, Feb 7, 2021 at 6:07 PM Martin Budaj <m.budaj@gmail.com> wrote:
On Thu, Jan 15, 2015 at 9:59 AM rowena <rowena_l@tpg.com.au> wrote:
I am using the “\loadpicture” capability in “\legendbox” constructs to include map sections, elevations, etc. It all works nicely on my PC where I am using relative paths to the pdf files. My club has a desire to archive the map data for posterity – ie if my pc dies or I go walkabout, the map data should still be available so that others can add to the maps as they are extended. I would prefer to have the images included using relative pathnames, rather than absolute pathnames, so that future explorers can download the map data and extend it, without having to duplicate my file hierarchy.
How can I include relative paths in the \loadpicture functionality?
Hi,
it took some time, but now \loadpicture supports both relative and absolute paths. Check out the devel branch (not yet merged to master):
Source: https://github.com/therion/therion/tree/devel Windows installer:
https://github.com/therion/therion/actions?query=workflow%3AInstaller+branch...
Best wishes Martin _______________________________________________ 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
participants (4)
-
Henry Bennett -
Martin Budaj -
Michael Lake -
rowena