Am 19.06.2012 um 10:39 schrieb Andreas Schneider: > Hello, > > I'm a bit lost with macro expansion here. I try to use some macros to > set the title (and subject) of the PDF document. The attached minimal > example shows what I want to achieve. > > I tried def, edef, gdef, define, explicit expand, expandoneafter, etc. > etc. without any success. Whatever I do, the title field in the PDF > metadata always contains the raw "\date..." command instead of the > formatted date. > > Any suggestions?
You can’t use \date (or any other unexpandable command) in an expandable context. Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________