* Command in enumeration title
@ 2012-02-26 11:44 "Stefan Müller"
2012-02-26 13:28 ` Rogers, Michael K
0 siblings, 1 reply; 7+ messages in thread
From: "Stefan Müller" @ 2012-02-26 11:44 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Command in enumeration title
2012-02-26 11:44 Command in enumeration title "Stefan Müller"
@ 2012-02-26 13:28 ` Rogers, Michael K
2012-02-26 13:34 ` "Stefan Müller"
0 siblings, 1 reply; 7+ messages in thread
From: Rogers, Michael K @ 2012-02-26 13:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
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).
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Command in enumeration title
2012-02-26 13:28 ` Rogers, Michael K
@ 2012-02-26 13:34 ` "Stefan Müller"
2012-02-26 23:30 ` Rogers, Michael K
2012-03-02 20:03 ` Hans Hagen
0 siblings, 2 replies; 7+ messages in thread
From: "Stefan Müller" @ 2012-02-26 13:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Command in enumeration title
2012-02-26 13:34 ` "Stefan Müller"
@ 2012-02-26 23:30 ` Rogers, Michael K
2012-02-27 13:05 ` Stefan Müller
2012-03-02 20:03 ` Hans Hagen
1 sibling, 1 reply; 7+ messages in thread
From: Rogers, Michael K @ 2012-02-26 23:30 UTC (permalink / raw)
To: mailing list for ConTeXt users
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).
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Command in enumeration title
2012-02-26 23:30 ` Rogers, Michael K
@ 2012-02-27 13:05 ` Stefan Müller
0 siblings, 0 replies; 7+ messages in thread
From: Stefan Müller @ 2012-02-27 13:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Command in enumeration title
2012-02-26 13:34 ` "Stefan Müller"
2012-02-26 23:30 ` Rogers, Michael K
@ 2012-03-02 20:03 ` Hans Hagen
2012-03-05 9:21 ` "Stefan Müller"
1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2012-03-02 20:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Command in enumeration title
2012-03-02 20:03 ` Hans Hagen
@ 2012-03-05 9:21 ` "Stefan Müller"
0 siblings, 0 replies; 7+ messages in thread
From: "Stefan Müller" @ 2012-03-05 9:21 UTC (permalink / raw)
To: ntg-context; +Cc: Hans Hagen
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-03-05 9:21 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-26 11:44 Command in enumeration title "Stefan Müller"
2012-02-26 13:28 ` Rogers, Michael K
2012-02-26 13:34 ` "Stefan Müller"
2012-02-26 23:30 ` Rogers, Michael K
2012-02-27 13:05 ` Stefan Müller
2012-03-02 20:03 ` Hans Hagen
2012-03-05 9:21 ` "Stefan Müller"
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).