Andy Little wrote: > Some of these items are available by using escapes: > Making the escapes into macros also seems to work (in QuickBook 1.1) > > [/ using the double underscores as recommended gets a bit ugly > though!] > > [def __squared__ '''<superscript>2</superscript>'''] > [def __alpha__ '''α'''] > [def __ge__ '''≥'''] > [def __angstrom__ '''Ô''']
As usual I wondered about that right after I posted! However I still think there are two "gotchas" here: 1) I often want to combine these, that is to expand a macro right next to some other character without whitespace separating them, is that possible? Last time I looked there needed to be whitespace around macros. 2) What happens if you combine two macros that both expand to escapes, lets say a Greek character follows by a superscript: then you end up with six escapes '''α''''''<superscript>2</superscript>''' next to each other, do these expand correctly? But yes, in principle the idea of a macro/template library is a really excellent one. At present however aren't macro's restricted in scope? That's a good thing in general, but we need a mechanism to allow them to escape from the current file and propagate upwards into the file that #included them. Rushing off to experiment yours, John. _______________________________________________ Boost-docs mailing list [email protected] Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs
