Re: [NTG-context] framed with titles
Dear Pablo, I also think that it is good to collect styles for math people in the wiki. However, I have no experience to add something to the wiki, so I don’t know how. I may try first and if I can’t, I’ll may ask your help. I should mention again that these examples are not possible without Wolfgang’s solution. Thank you. Best regards, Dalyoung
would it be possible that you add both samples to the wiki?
This is the best way to have a reference for future needs.
Hi, I run the old code which was fine 3 years ago, but now, it doesn’t work as before. At that time, I had “Example 1.1” inside the frame . Now I got text “Example 1.1” only without frame at all. Would you please tell me what should I change? Thank you for reading. Best regards, Dalyoung %%% minimal example %%% \setupcolors[state=start] \definecolor[dGreen] [r=0,g=.375,b=.0] \defineenumeration[Example] [command={\inframed[corner=round, background=color, backgroundcolor=darkgreen,height=1.3em]}, text=Example, prefix=yes, prefixsegments=chapter, way=bychapter, number=yes, alternative=left, before={\blank[big]}, after=\blank] \starttext \chapter{first} \startExample This is a test for enumeration. \stopExample \startExample This is a test for enumeration. \stopExample \stoptext
2017. 12. 3. 오후 11:42, Jeong Dal
작성: Dear Pablo,
I also think that it is good to collect styles for math people in the wiki. However, I have no experience to add something to the wiki, so I don’t know how. I may try first and if I can’t, I’ll may ask your help.
I should mention again that these examples are not possible without Wolfgang’s solution.
Thank you.
Best regards,
Dalyoung
would it be possible that you add both samples to the wiki?
This is the best way to have a reference for future needs.
On 12/4/2017 11:51 PM, Jeong Dal wrote:
Hi,
I run the old code which was fine 3 years ago, but now, it doesn’t work as before. At that time, I had “Example 1.1” inside the frame . Now I got text “Example 1.1” only without frame at all.
Would you please tell me what should I change?
Thank you for reading.
Best regards,
Dalyoung
%%% minimal example %%% \setupcolors[state=start] \definecolor[dGreen] [r=0,g=.375,b=.0]
\defineenumeration[Example] [command={\inframed[corner=round, background=color, backgroundcolor=darkgreen,height=1.3em]}, text=Example, prefix=yes, prefixsegments=chapter, way=bychapter, number=yes, alternative=left, before={\blank[big]}, after=\blank]
\starttext \chapter{first} \startExample This is a test for enumeration. \stopExample \startExample This is a test for enumeration. \stopExample \stoptext you need "numbercommand":
\defineenumeration [Example] [headcommand={\framed[background=color,backgroundcolor=red]}, numbercommand={\inframed[height=2ex,background=color,backgroundcolor=green]}, titlecommand={\inframed[height=2ex,background=color,backgroundcolor=blue]}, title=yes, alternative=left, before={\blank[big]}, after=\blank] \starttext \chapter{first} \startExample{foo} This is a test for enumeration. \stopExample \startExample This is a test for enumeration. \stopExample \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Jeong Dal