Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
metapost [2019/12/24 00:32]
tarquinwj Break line
metapost [2019/12/24 14:23] (current)
tarquinwj typo
Line 1444: Line 1444:
   text en "line u:​break"​ "​passage omitted/​offset"​   text en "line u:​break"​ "​passage omitted/​offset"​
  
-By default, it will pick up the colour of the scrap background, to put between the double lines. However, it normally looks better with the map-bg colour between them. Unfortunately,​ Therion does not appear to expose this colour to MetaPost code (it is created in raw Tex). So you will need to do it manually. If you do not specify map-bg, it is white. If you have set it to a colour like "​70",​ this is "(.7, .7, .7)" in MetaPost. If you have set it to a colour like "[70 35 50]", this is "(.7, .35, .5)" in MetaPost. The code will check for a variable called fill_l_u_break,​ and will try to use it as a fill colour if it exists.+By default, it will pick up the colour of the scrap background, to put between the double lines. However, it normally looks better with the map-bg colour between them. Unfortunately,​ Therion does not appear to expose this colour to MetaPost code (it is created in raw Tex). So you will need to do it manually. If you do not specify map-bg, it is white; "(1, 1, 1)" in MetaPost. If you have set it to a colour like "​70",​ this is "(.7, .7, .7)" in MetaPost. If you have set it to a colour like "[70 35 50]", this is "(.7, .35, .5)" in MetaPost. The code will check for a variable called fill_l_u_break,​ and will try to use it as a fill colour if it exists.
  
 You cannot use "color fill_l_u_break;"​ in a "code metapost"​ section, because Therion will try to treat the keyword "​color"​ as a Therion command instead of a MetaPost keyword. You can either write ";​color fill_l_u_break;"​ with a leading semicolon which MetaPost will ignore, or use the synonym "​rgbcolor fill_l_u_break;"​ which Metpost understands but Therion will not recognise. You cannot use "color fill_l_u_break;"​ in a "code metapost"​ section, because Therion will try to treat the keyword "​color"​ as a Therion command instead of a MetaPost keyword. You can either write ";​color fill_l_u_break;"​ with a leading semicolon which MetaPost will ignore, or use the synonym "​rgbcolor fill_l_u_break;"​ which Metpost understands but Therion will not recognise.
Line 1453: Line 1453:
   endcode   endcode
  
 +By default, the break line is set up for use along a horizontal passage. This follows the usual style used in the UK; two parallel lines, separated by a horizontal gap, with the tops and bottoms horizontally aligned (no matter whether the lines are drawn vertically or tilted at 45 degrees or more). If you are using it on a vertical section of cave, you can set the "-attr orientation vertical"​ option on the line. This will cause it to leave a vertical gap between the lines, and to align them horizontally compared with each other. This makes only a tiny difference when tilted at 45 degrees, but it looks better, and matches the normal style used in rigging topos.
 ====Area Symbols==== ​ ====Area Symbols==== ​
 ===Show area water in a different color=== ===Show area water in a different color===
  • metapost.1577143979.txt.gz
  • Last modified: 4 weeks ago
  • by tarquinwj