How to include Metapost code from outside files
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
thconfig: input layouts/layout_radavc_standard.thc m. 11. 11. 2014 v 15:04, Bill Gee <bgee@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@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
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@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@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
Hi Your thc-files should begin and end with following: layout xyz code metapost ...metapost code... endcode endlayout then you can use "input ..\...thc" AND "copy xyz" at the right place within the thconfig file. (for me it does work) cheers, Torsten
Bill Gee <bgee@campercaver.net> hat am 11. November 2014 um 16:25 geschrieben:
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@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@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
_______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
Hi Torsten - Many thanks! This was exactly the clue I needed. I have it working now. It saves a lot of clutter in the thconfig file. Bill Gee On Tuesday, November 11, 2014 16:42:48 Torsten Schnitter wrote:
Hi
Your thc-files should begin and end with following: layout xyz code metapost ...metapost code... endcode endlayout
then you can use "input ..\...thc" AND "copy xyz" at the right place within the thconfig file. (for me it does work)
cheers, Torsten
Bill Gee <bgee@campercaver.net> hat am 11. November 2014 um 16:25 geschrieben:
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@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@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
_______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
_______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
participants (3)
-
Bill Gee -
Martin Sluka -
Torsten Schnitter