From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Jeong Dal <haksan@me.com>
Subject: Re: two different outputs.
Date: Tue, 1 Jan 2019 21:13:02 +0100 [thread overview]
Message-ID: <7b751a31-77ca-c72f-7eeb-47ce98f2f5d5@gmail.com> (raw)
In-Reply-To: <24DA614E-FB73-4CAE-AB7D-4B411BE9B6BA@me.com>
Jeong Dal schrieb am 01.01.19 um 01:33:
> Dear all,
>
> First, Happy new year!
>
> I tried to make a style of title as following. The first code creates the title as I wanted, but the second which uses “\title” creates the title strange. they are almost same code.
> To include it in the list of contents, I use “\title”.
\setuphead [title] [incrementnumber=list]
> Is there a way to make output as the first one and include it in the list of contents?
You have to apply your command to the deeptextcommand key.
%%%% begin example
% \definefontfamily [mainface] [ss] [Noto Sans CJK KR]
%
% \setupbodyfont [mainface]
%
% \definefont [BigFontOne] [SansBold sa 4]
\definefontfamily [notosanscjkkr] [ss] [Noto Sans CJK KR]
%\definefont [BigFontOne] [file:notosanscjkkrbold*default sa 4]
\definefont [BigFontOne] [\classfont{notosanscjkkr}{Bold} sa 4]
\setupbodyfont [pagella]
\definecolor [BigColorOne] [r=.86,g=.850,b=.54]
\define[1]\TitlePage
{\rlap{\offset[x=2pt,y=2pt]{\color[blue]{\effect[outer]{#1}}}}%
\effect[inner]{#1}}
\setuphead
[title]
[deeptextcommand=\TitlePage,
color=BigColorOne,
style=BigFontOne,
incrementnumber=list]
\starttext
\title{Contents}
\placelist[chapter,title]
\title{Title}
\title{타이틀}
\stoptext
%%%% end example
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2019-01-01 20:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1.1546254001.21789.ntg-context@ntg.nl>
2019-01-01 0:33 ` Jeong Dal
2019-01-01 20:13 ` Wolfgang Schuster [this message]
2019-01-01 22:28 ` Jeong Dal
2019-01-01 22:47 ` Wolfgang Schuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7b751a31-77ca-c72f-7eeb-47ce98f2f5d5@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=haksan@me.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).