From 6b06f96f6c5e70a952e923a3d154f82402ec5cce Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 25 Mar 2004 19:27:12 +0000 Subject: 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] --- doc/input.but | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'doc') 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). -- cgit v1.1