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] --- inputs/test.but | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'inputs') diff --git a/inputs/test.but b/inputs/test.but index 683d19b..9eb469d 100644 --- a/inputs/test.but +++ b/inputs/test.but @@ -25,7 +25,9 @@ a bit] \define{coopt} co\u00F6{-o}pt -\versionid $Id: test.but,v 1.22 2004/03/25 19:16:28 simon Exp $ +\define{eur} \u20AC{EUR } + +\versionid $Id: test.but,v 1.23 2004/03/25 19:27:12 simon Exp $ \C{ch\\ap} First chapter title; for similar wrapping reasons this chapter title will be ludicrously long. I wonder how much more @@ -154,6 +156,8 @@ A\_paragraph\_full\_of\_nonbreaking\_spaces\_to\_test\_the\_idea\_that\_word\_wr Use of macros: let's talk about \coopt. And about \coopt some more. And a nested macro: \metacoopt. +A slightly more difficult macro: \eur\.2500. + Oh, while I'm here: some special characters. The \\, \{ and \} characters, to be precise. And their code equivalents, \c{\\}, \i\c{\{}, \c{\}}. -- cgit v1.1