ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: about the baseline of \inframed{text} in the enumerations
       [not found] <mailman.1.1515063601.7370.ntg-context@ntg.nl>
@ 2018-01-04 12:35 ` Jeong Dal
  0 siblings, 0 replies; 3+ messages in thread
From: Jeong Dal @ 2018-01-04 12:35 UTC (permalink / raw)
  To: list ntg-context@ntg.nl ntg-context@ntg.nl ntg-context@ntg.nl
	ntg-context@ntg.nl

Dear Hans,

Deleting “height=“ fixes the problem.

Thank you so much.

Best regards,

Dalyoung
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: about the baseline of \inframed{text} in the enumerations
  2018-01-04  9:11 ` Jeong Dal
@ 2018-01-04 10:23   ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2018-01-04 10:23 UTC (permalink / raw)
  To: ntg-context

On 1/4/2018 10:11 AM, Jeong Dal wrote:

>     numbercommand={\inframed[corner=round, framecolor=dYellow, loffset=1ex, roffset=1ex, height=1.3em, background=color,backgroundcolor=dGreen]},
just omit the height key

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* about the baseline of \inframed{text} in the enumerations
       [not found] <mailman.1.1514977201.20078.ntg-context@ntg.nl>
@ 2018-01-04  9:11 ` Jeong Dal
  2018-01-04 10:23   ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Jeong Dal @ 2018-01-04  9:11 UTC (permalink / raw)
  To: ntg-context

Dear all,

First, Happy New Year!

In the output of the following sample code, the baseline of the framed text “Example” is slightly lower than the following sentences. But, in the wiki, \inframed is set center-aligned.

Please tell me how to fix it.

Thank you for reading.

Best regards,

Dalyoung


\setupcolors[state=start]
\definecolor[dGreen] [r=0,g=.375,b=.0]
\definecolor[lGreen] [r=0, g=.625, b=0]
\definecolor[lYellow] [r=.625,g=.625,b=.0]
\definecolor[dYellow] [r=.375,g=.375,b=.0]

\setupenumeration[alternative=serried,width=broad,distance=0.3em]

\defineenumeration[ExamA]
   [text={\white\translate[en=Example, kr=예]},
%   textcommand=,
   numbercommand={\inframed[corner=round, framecolor=dYellow, loffset=1ex, roffset=1ex, height=1.3em, background=color,backgroundcolor=dGreen]},
    prefix=yes,
    prefixsegments=chapter,
    way=bychapter,
%    counter=Exam,
%    number=yes,
    before={\blank[big]},
    after={\blank}]
    
\starttext
\startExamA
The baseline of the framed "Example" is lower than the following sentences. It seems to be top-aligned not center-aligned. In the wiki, the command "\tex{\inframed}" is center-aligned.  I don't know why my output is different from it and  how to fix it.
\stopExamA
\startExamA
The baseline of the framed "Example" is lower than the following sentences. It seems to be top-aligned not center-aligned. In the wiki, the command "\tex{\inframed}" is center-aligned.  I don't know why my output is different from it and  how to fix it.
\stopExamA


\stoptext
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-04 12:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.1.1515063601.7370.ntg-context@ntg.nl>
2018-01-04 12:35 ` about the baseline of \inframed{text} in the enumerations Jeong Dal
     [not found] <mailman.1.1514977201.20078.ntg-context@ntg.nl>
2018-01-04  9:11 ` Jeong Dal
2018-01-04 10:23   ` Hans Hagen

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).