Command in enumeration title
Hi list, there is possibly an easy explanation for my following problem, but I don't know it. Why does \Word have no effect in the following example, and how can I make it work? In my real document I have \Word in a macro inside the title, so I can't just write "Foo" in the title. \defineenumeration[myenum][title=yes] \starttext \startmyenum{\Word{foo}} bar \stopmyenum \stoptext Any help appreciated, thanks in advance! Stefan -- _______ ey, leute, ich hab so lange gebraucht um mir plan a auszudenken, fragt jetzt doch nicht auch noch nach plan b! Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
On Feb 26, 2012, at 6:44 AM, Stefan Müller wrote:
Hi list,
there is possibly an easy explanation for my following problem, but I don't know it. Why does \Word have no effect in the following example, and how can I make it work? In my real document I have \Word in a macro inside the title, so I can't just write "Foo" in the title.
\defineenumeration[myenum][title=yes]
\starttext
\startmyenum{\Word{foo}} bar \stopmyenum
\stoptext
Any help appreciated, thanks in advance! Stefan --
Hi, I'm new to ConTeXt, but I tried your example, adding \def\Word#1{#1-#1} and got myenum 1 (foo-foo) bar for output. It seems right to me, perhaps? Maybe the problem is with your macro \Word? I'm running: ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2012.1.25 int: english/english Michael ________________________________ This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments).
Hi Michael, thanks for your answer. The macro \Word is a predefined macro that capitalizes the first letter of its argument. E.g. "\Word{title}" should expand to "Title", but it doesn't in my example. Stefan -- _______ ey, leute, ich hab so lange gebraucht um mir plan a auszudenken, fragt jetzt doch nicht auch noch nach plan b! Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
Hi Stefan, I didn't know about \Word. It retried your example and it works as is in my version of ConTeXt, which is an earlier one that yours it seems. [Your other enumeration example, with way=bychapter etc., works the way you want, too.] Sorry, I don't think I can help. Perhaps one of the more expert users can verify whether it works or not. Best, Michael ________________________________ This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments).
Hi, yeah, is seems as if both problems (this and the one about "way=bychapter" from my other thread) have been introduced some time ago. It worked on MkIV version 20111125 21:29. On 27.02.2012 00:30, Rogers, Michael K wrote:
Hi Stefan,
I didn't know about \Word. It retried your example and it works as is in my version of ConTeXt, which is an earlier one that yours it seems. [Your other enumeration example, with way=bychapter etc., works the way you want, too.] Sorry, I don't think I can help. Perhaps one of the more expert users can verify whether it works or not.
Best,
Michael
On 26-2-2012 14:34, "Stefan Müller" wrote:
Hi Michael,
thanks for your answer. The macro \Word is a predefined macro that capitalizes the first letter of its argument. E.g. "\Word{title}" should expand to "Title", but it doesn't in my example.
does style={\setcharactercasing[3]} work out ok? ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Fri, 02 Mar 2012 21:03:34 +0100, Hans Hagen wrote:
On 26-2-2012 14:34, "Stefan Müller" wrote:
Hi Michael,
thanks for your answer. The macro \Word is a predefined macro that capitalizes the first letter of its argument. E.g. "\Word{title}" should expand to "Title", but it doesn't in my example.
does style={\setcharactercasing[3]} work out ok?
Hi Hans, thanks for your answer and sorry for the delay. I tried \defineenumeration[myenum][title=yes, titlestyle={\setcharactercasing[3]}] \starttext \startmyenum{\Word{title}} muh \stopmyenum \stoptext with MkIV 201200221 14:02 to no avail (it seems that there is no key "titlestyle", but I tried). I still get "title" without capitalization. If I use style={\setcharactercasing[3]} or headstyle={\setcharactercasing[3]} then I get "Muh" or "Myenum", respectively, with capital "M" as expected but still "title". Best regards, Stefan -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
participants (4)
-
"Stefan Müller"
-
Hans Hagen
-
Rogers, Michael K
-
Stefan Müller