Hi all I am trying to work out the best way to produce a catalog of all the supported Therion symbols. I'd like to do this directly from the Metapost source directory 'therion/mpost' so that it can be created automatically and therefore kept up to date. (maybe via the Makefile in that directory) What would be nice would be to produce catalogs of UIS, SKBB, ASF and US separately as well. I think a catalog of the symbols would be an excellent appendix to the Therion Book. So far I have done few symbols by copying and pasting bits of the Therion macros, thPoint, thArea etc files into a new mpost file. But this just duplicates what is in the source files. My idea was to have a metapost file that inputs the therion macros i.e. inputs therion.mp and then for each definition use appropriate parameters such as scale, rotation, position etc. File: therion/mpost/test.mp Scale:=1.0 input therion.mp % Testing UIS symbols % p_stalactite_UIS(expr pos,theta,sc,al); beginfig(1000); p_stalactite_UIS( (1.0,4.0), 0, 1, (0,0) ); endfig; However when I run this (mpost test.mp) I get many errors still. mpost$ mpost test.mp This is MetaPost, Version 0.641 (Web2C 7.5.4) (test.mp (therion.mp
0 ! Improper `:=' will be changed to `='. l.41 tracingstats:= 1; ? r OK, entering nonstopmode... ! Inconsistent equation (off by 1). <to be read again> ; l.41 tracingstats:=1;
(thPoint.mp) (thLine.mp) (thArea.mp [4001] [4002] [4003] [4004] [4005] [4006] [4007]) (thText.mp) (thSpecial.mp) (thTrans.mp) ) [1000]) ! Emergency stop. <*> test.mp 8 output files written: test.1000 .. test.4007 mpost$ Some of these output files are actually the EPSF-3.0 postscrip files and view fine in GhostView! I need some help with a minimal example of a file that I can process (with mpost or latex) which includes a few symbols but generated just from the code in therion/mpost. What might be the best way to do this that is useful to all of us? Mike -- Mike Lake Caver, Linux enthusiast and interested in anything technical.
I am trying to work out the best way to produce a catalog of all the supported Therion symbols. I'd like to do this directly from the Metapost source directory 'therion/mpost' so that it can be created automatically and therefore kept up to date. (maybe via the Makefile in that directory)
Try running therion with --print-symbols option. It creates a symbol catalog in xhtml format (map symbols are embedded as SVG fragments). You need recent opera or firefox to preview the file. Cheers, Martin P.S. recent development snapshot is missing one declaration in therion.mp file; insert the following code somewhere near the beginning of therion.mp file before generating the catalog: boolean ATTR__scrap_centerline; ATTR__scrap_centerline = false;
Hi I added the code to therion.mp and recompiled and ran therion again with this option and wow! Yes that is exactly what I wanted. It shows me exactly what symbols are missing from the ASF column and shows me what I get for each symbol. Why are some rows in a grey color? e.g. point station-name is in a grey color row but point station:fixed is in normal white. On Sat 10 Mar 2007, Martin Budaj wrote:
I am trying to work out the best way to produce a catalog of all the supported Therion symbols. I'd like to do this directly from the Metapost source directory 'therion/mpost' so that it can be created automatically and therefore kept up to date. (maybe via the Makefile in that directory)
Try running therion with --print-symbols option. It creates a symbol catalog in xhtml format (map symbols are embedded as SVG fragments). You need recent opera or firefox to preview the file.
Cheers, Martin
P.S. recent development snapshot is missing one declaration in therion.mp file; insert the following code somewhere near the beginning of therion.mp file before generating the catalog:
boolean ATTR__scrap_centerline; ATTR__scrap_centerline = false;
Mike -- Mike Lake Caver, Linux enthusiast and interested in anything technical.
On 3/11/07, Mike Lake <mikel@speleonics.com.au> wrote:
Why are some rows in a grey color? e.g. point station-name is in a grey color row but point station:fixed is in normal white.
Grey rows contain text symbols or labels, which are currently defined globally, outside of any symbol set. Martin
participants (2)
-
Martin Budaj -
Mike Lake