[Therion] Modular Reuse of thconfig Layouts

Stacho Mudrak s.m at group-s.sk
Fri Nov 30 10:58:02 CET 2007


Quoting Bruce Mutton <bruce.mutton at paradise.net.nz>:
> I have played around a bit, trying to save layouts in different files and
> using lines like;
> 
> copy StandardLayout
> 
> but 'StandardLayout' only seems to be visible from within the same file.
> 
> Have had no luck with 'input', 'source' or 'select'.
> 
> Probably I'm just missing out a bit of syntax or namespace visibility.
> 
> Any suggestions

Your StandardLayout is not visible, probably because therion did not read
configuration file with this layout. To load layouts in some standard file, you
need to input this file first, then use copy. Example:

Let file colors.thcfg contains:

layout standard-colors
  color map-fg altitude
endlayout

To include this layout in your main thconfig file you write:

source my-data.th # to include data

input colors.thcfg # to include file

layout output-layout
  copy standard-colors
  ... other specific settings ...
endlayout

export map -layout outpu-layout

HTH, S.



More information about the Therion mailing list