diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-03-25 19:27:12 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-03-25 19:27:12 +0000 |
| commit | 6b06f96f6c5e70a952e923a3d154f82402ec5cce (patch) | |
| tree | d95e5b6635b71b8523bb8961cd7f28e8abf9fb02 /doc | |
| parent | 10f4d6055c80f45b538cfc6657994b31e4abf525 (diff) | |
| download | halibut-6b06f96f6c5e70a952e923a3d154f82402ec5cce.zip halibut-6b06f96f6c5e70a952e923a3d154f82402ec5cce.tar.gz halibut-6b06f96f6c5e70a952e923a3d154f82402ec5cce.tar.bz2 halibut-6b06f96f6c5e70a952e923a3d154f82402ec5cce.tar.xz | |
Introduce \. as a NOP command. The purpose of this is to act as a
zero-width delimiter between a macro invocation and text beyond it,
so that you can define (say) a macro which expands to a Euro sign
and then write `\eur\.2500' to avoid having space between the Euro
sign and the number.
[originally from svn r3982]
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/input.but | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/doc/input.but b/doc/input.but index 587836f..7755d57 100644 --- a/doc/input.but +++ b/doc/input.but @@ -1201,8 +1201,19 @@ macro, using the \c{\\define} command: \c \define{eur} \u20AC{EUR } -Then you can just write +Then you can just write ... \c This is likely to cost \eur 2500 at least. -\# FIXME: need a NOP to allow text to directly follow this. \.? +... except that that's not terribly good, because you end up with a +space between the Euro sign and the number. In this case, it's +helpful to use the special \c{\\.} command, which is defined to do +nothing at all! But it acts as a separator between your macro and +the next character: + +\c This is likely to cost \eur\.2500 at least. + +This way, you will see no space between the Euro sign and the number +(although, of course, there will be space between \q{EUR} and the +number if the Euro sign is not available, because the macro +definition specifically asked for it). |