[Therion] How to include Metapost code from outside files
Bill Gee
bgee at campercaver.net
Tue Nov 11 16:25:26 CET 2014
Hi Martin -
That is exactly what I tried. It does not work from inside a layout/endlayout
pair.
I also tried it outside any enclosing pair and got this error:
===========
therion 5.3.13
initialization file: /usr/local/etc/therion.ini
reading ... done
configuration file: thconfig
reading ...
therion: error -- CustomSymbolsCode.txt [2] -- unknown configuration command --
code
writing xtherion file ... done
=============
Is there a more complete thconfig file that shows how this is done? Where
exactly in the thconfig file does the input line go?
Thanks - Bill Gee
On Tuesday, November 11, 2014 15:24:35 Martin Sluka wrote:
> thconfig:
>
> input layouts/layout_radavc_standard.thc
>
> m.
>
> 11. 11. 2014 v 15:04, Bill Gee <bgee at campercaver.net>:
> > Hello everyone -
> >
> > I have quite a bit of Metapost code for custom symbols. Rather than
> > repeat
> > several hundred lines in every layout/endlayout pair, I would like to put
> > the code in its own file and then <include> that file in the thconfig
> > file. How is that done?
> >
> > I tried using both "input sourcefile" and "source sourcefile". The same
> > error comes up for both. Text below.
> >
> > According to the Therion Book, the only valid place for code/endcode pairs
> > is inside a layout/endlayout pair. Is that true?
> >
> > Thanks - Bill Gee
> >
> > =============
> > therion 5.3.13
> > initialization file: /usr/local/etc/therion.ini
> > reading ... done
> > configuration file: thconfig
> > reading ...
> > therion: error -- thconfig [14] -- thconfig [14] -- unknown option --
> > input
> > CustomSymbolsCode.txt
> > writing xtherion file ... done
> >
> >
> >
> > therion 5.3.13
> > initialization file: /usr/local/etc/therion.ini
> > reading ... done
> > configuration file: thconfig
> > reading ...
> > therion: error -- thconfig [14] -- thconfig [14] -- unknown option --
> > source CustomSymbolsCode.txt
> > writing xtherion file ... done
> >
> >
> > _______________________________________________
> > Therion mailing list
> > Therion at speleo.sk
> > http://mailman.speleo.sk/mailman/listinfo/therion
More information about the Therion
mailing list