diff options
author | Jeffrey H. Kingston <jeff@it.usyd.edu.au> | 2010-09-14 19:21:41 +0000 |
---|---|---|
committer | Jeffrey H. Kingston <jeff@it.usyd.edu.au> | 2010-09-14 19:21:41 +0000 |
commit | 71bdb35d52747e6d7d9f55df4524d57c2966be94 (patch) | |
tree | 480ee5eefccc40d5f3331cc52d66f722fd19bfb9 /doc/expert/pre_unde | |
parent | b41263ea7578fa9742486135c762803b52794105 (diff) | |
download | lout-71bdb35d52747e6d7d9f55df4524d57c2966be94.tar.gz |
Lout 3.17.
git-svn-id: http://svn.savannah.nongnu.org/svn/lout/trunk@2 9365b830-b601-4143-9ba8-b4a8e2c3339c
Diffstat (limited to 'doc/expert/pre_unde')
-rw-r--r-- | doc/expert/pre_unde | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/expert/pre_unde b/doc/expert/pre_unde new file mode 100644 index 0000000..1261449 --- /dev/null +++ b/doc/expert/pre_unde @@ -0,0 +1,30 @@ +@Section + @Tag { underline } + @Title { "@Underline" } +@Begin +@PP +underline.sym @Index { @@Underline symbol } +The @@Underline symbol underlines its right parameter, but only if that +parameter is a word or a paragraph: +@ID @Code "We @Underline { really do } mean this." +produces +@ID { We @Underline { really do } mean this. } +It is not possible to underline an arbitrary object using this symbol; +the @@Underline symbol will be ignored if this is attempted. +@PP +It is very easy to @I define a symbol which will underline an arbitrary +object, using the @@Graphic symbol. This raises the question of why +@@Underline is needed at all. The answer is that @@Underline has two +properties that distinguish it from symbols based on @@Graphic. +@PP +First, when @@Underline both contains a paragraph and is used within a +paragraph, as in the example above, the inner and outer paragraphs are +merged into one, permitting the underlined text to break over several +lines. This is how the @@Font symbol works too, but symbols based on +@@Graphic do not permit this merging. +@PP +Second, Adobe font files specify the correct position and thickness of +underlining for each font, and the @@Underline symbol follows these +specifications. The font used is the font of the first object underlined, +if it is a simple word, or else the font of the enclosing paragraph. +@End @Section |