ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* write a subtitle under the title of a chapter using outlined font
       [not found] <mailman.1.1584615601.9798.ntg-context@ntg.nl>
@ 2020-03-19 13:26 ` Jeong Dal
  2020-03-19 14:26   ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Jeong Dal @ 2020-03-19 13:26 UTC (permalink / raw)
  To: list ntg-context@ntg.nl ntg-context@ntg.nl ntg-context@ntg.nl
	ntg-context@ntg.nl


[-- Attachment #1.1: Type: text/plain, Size: 837 bytes --]

Hi,

long time ago, I can use outlined fonts for the title of a chapter by the help of the experts in this list.
Now, I’d like to write a subtitle under the title, but \crlf is not working.
I tried in several ways, but I couldn’t make it.

How to write them in two lines?

Thanks.

Best regards,

Dalyoung

**************
\startuseMPgraphic{outlineT}
	  draw outlinetext.b (\MPvar{tt})
	  (withcolor .75white)
	  (withcolor .725blue withpen pencircle scaled .75pt);
\stopuseMPgraphic

\define[1]\outlineFill{\useMPgraphic{outlineT}{tt="#1"}}%

\setuphead[chapter,title]
 [textcommand=\outlineFill,
  color=.625Blue,
  numbercommand=\outlineFill,
  number=yes]

\setupbodyfont[rm, 12pt]

\starttext

\startchapter[title={First Title\crlf{\tfa Sub Title}}]
\input knuth
\stopchapter

\stoptext

 

[-- Attachment #1.2: Type: text/html, Size: 4297 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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] 5+ messages in thread

* Re: write a subtitle under the title of a chapter using outlined font
  2020-03-19 13:26 ` write a subtitle under the title of a chapter using outlined font Jeong Dal
@ 2020-03-19 14:26   ` Hans Hagen
  2020-03-19 18:58     ` Jeong Dal
  2020-03-19 19:06     ` Jeong Dal
  0 siblings, 2 replies; 5+ messages in thread
From: Hans Hagen @ 2020-03-19 14:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Jeong Dal

On 3/19/2020 2:26 PM, Jeong Dal wrote:
> Hi,
> 
> long time ago, I can use outlined fonts for the title of a chapter by 
> the help of the experts in this list.
> Now, I’d like to write a subtitle under the title, but \crlf is not working.
> I tried in several ways, but I couldn’t make it.
> 
> How to write them in two lines?

     draw outlinetext.b ("\framed[align=normal]{" & ditto & \MPvar{tt} & 
ditto & "}")


> Thanks.
> 
> Best regards,
> 
> Dalyoung
> 
> **************
> \startuseMPgraphic{outlineT}
>    draw outlinetext.b (\MPvar{tt})
>    (withcolor .75white)
>    (withcolor .725blue withpen pencircle scaled .75pt);
> \stopuseMPgraphic
> 
> \define[1]\outlineFill{\useMPgraphic{outlineT}{tt="#1"}}%
> 
> \setuphead[chapter,title]
>   [textcommand=\outlineFill,
>    color=.625Blue,
>    numbercommand=\outlineFill,
>    number=yes]
> 
> \setupbodyfont[rm, 12pt]
> 
> \starttext
> 
> \startchapter[title={First Title\crlf{\tfa Sub Title}}]
> \input knuth
> \stopchapter
> 
> \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
> ___________________________________________________________________________________
> 


-- 

-----------------------------------------------------------------
                                           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] 5+ messages in thread

* Re: write a subtitle under the title of a chapter using outlined font
  2020-03-19 14:26   ` Hans Hagen
@ 2020-03-19 18:58     ` Jeong Dal
       [not found]       ` <d691fc8a-3e35-8735-7ec5-38313b44a1e3@xs4all.nl>
  2020-03-19 19:06     ` Jeong Dal
  1 sibling, 1 reply; 5+ messages in thread
From: Jeong Dal @ 2020-03-19 18:58 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

Dear Hans,

Thanks for the reply.
Your method works partly.

> 
>    draw outlinetext.b ("\framed[align=normal]{" & ditto & \MPvar{tt} & ditto & "}”)
> 

It allows to write it in two lines. However, the title is surrounded by ‘ “ ‘.
How to remove it?

Thank you 

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] 5+ messages in thread

* Re: write a subtitle under the title of a chapter using outlined font
  2020-03-19 14:26   ` Hans Hagen
  2020-03-19 18:58     ` Jeong Dal
@ 2020-03-19 19:06     ` Jeong Dal
  1 sibling, 0 replies; 5+ messages in thread
From: Jeong Dal @ 2020-03-19 19:06 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

Dear Hans,

I found how to.
By removing ‘& ditto’, then it works!

>   draw outlinetext.b ("\framed[align=normal]{" & \MPvar{tt}  & "}”)

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] 5+ messages in thread

* Re: write a subtitle under the title of a chapter using outlined font
       [not found]           ` <89e54b20-700e-1a4a-ad2d-bbb63a78a357@xs4all.nl>
@ 2020-03-21 13:18             ` Jeong Dal
  0 siblings, 0 replies; 5+ messages in thread
From: Jeong Dal @ 2020-03-21 13:18 UTC (permalink / raw)
  To: Hans Hagen
  Cc: list ntg-context@ntg.nl ntg-context@ntg.nl ntg-context@ntg.nl
	ntg-context@ntg.nl


[-- Attachment #1.1: Type: text/plain, Size: 923 bytes --]

Dear Hans,

Your method perfectly works!
The number of chapter use the same font as the main title font and there is no big space between main title and the subtitle.

Thank you.

Best regards,

Dalyoung


> 
> On 3/20/2020 11:07 AM, Jeong Dal wrote:
>> Dear Hans,
>> Here is another problem.
>> To use a big font for the title and a small font for the subtitle, I set the font size in the \setuphead.
>> Then it writes them fine in two lines, but a big linespace between them.
>> If I remove the “style=\BigFontTwo” from the \setuphead, and use it in the title input like
>> \startchapter[title={{\BigFontTwo A Long Long Title}\crlf{\tfa Sub Title}}]
>> then a big space is gone, but the chapter number follows the size of subtitle.
>> How to remove the big space while the chapter number follows the size of the title?
> \tfd \setupinterlinespace Foo \par
> \tfa \setupinterlinespace Bar \par

[-- Attachment #1.2: Type: text/html, Size: 3895 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2020-03-21 13:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.1.1584615601.9798.ntg-context@ntg.nl>
2020-03-19 13:26 ` write a subtitle under the title of a chapter using outlined font Jeong Dal
2020-03-19 14:26   ` Hans Hagen
2020-03-19 18:58     ` Jeong Dal
     [not found]       ` <d691fc8a-3e35-8735-7ec5-38313b44a1e3@xs4all.nl>
     [not found]         ` <22BDCD75-B8FF-4669-8B98-0F476C27A881@me.com>
     [not found]           ` <89e54b20-700e-1a4a-ad2d-bbb63a78a357@xs4all.nl>
2020-03-21 13:18             ` Jeong Dal
2020-03-19 19:06     ` Jeong Dal

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