Re: [NTG-context] About Chapter head definition and FunnyFrame

2013-03-03 Thread john Culleton
On Mon, 3 Sep 2012 06:35:16 +0200
Wolfgang Schuster wolfgang.schus...@gmail.com wrote:

 
 Am 03.09.2012 um 05:34 schrieb Jeong Dalyoung hak...@me.com:
 
  Dear all,
  
  I have two questions.
  
  
  1. I defined \Myheader and use it to shape the chapter head as
  following:
  
  \def\Myheader#1#2{%
 
 Use
 
 \define[2]\Myheader{___}
 
 with a recent beta or
 
 \unexpanded\def\Myheader#1#2{___}
 
 with a older beta. You can also search in the list archive for
 \defineheadalternative where Hans describes a new method to create
 your own header layout.
 
 Wolfgang

Is there a facility in MKIV for creating an epigraph after a
chapter head? The Memoir class in LaTeX has such a command.

I'll look up \definheadalternative. Maybe it covers it, maybe
not. 
-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: Create Book Covers with Scribus
available at http://www.booklocker.com/books/4055.html
___
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
___


Re: [NTG-context] About Chapter head definition and FunnyFrame

2012-09-03 Thread dalyoung
Dear Wolfgang,

Both of your methods are working fine.

 \define[2]\Myheader{?}
 
 with a recent beta or
 
 \unexpanded\def\Myheader#1#2{?}

I also find out a new method '\defineheadalternative' too.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] About Chapter head definition and FunnyFrame

2012-09-02 Thread Jeong Dalyoung
Dear all,

I have two questions.


1. I defined \Myheader and use it to shape the chapter head as following:


\def\Myheader#1#2{%
\framedtext
[width=\overlaywidth,
height=9\bodyfontsize,
background=color,
backgroundcolor=lightgray,
offset=2pt,
strut=no,
frame=off,
align={middle, middle}]
{
{\tfb 제 #1 장}
\blank[big]
{\sans #2} }}

\startsectionblockenvironment[bodypart]
\setupheadertexts[][{\tfx COUNTING}]
\setuppagenumber[number=1]
\setuppagenumbering[alternative={singlesided,doublesided},location={footer,right}]
\setuphead[chapter][command=\Myheader,before={\dontleavehmode\blank[2*big]},after={\blank[5*big]},
 page=right]
\stopsectionblockenvironment

….

\chapter{The Addition Principle \crlf {\tfx Sum Rule}}

….

But it produces an error which  is 

…
! Argument of \Myheader has an extra }.

systemtex  error on line 94 in file SumRule.tex
…

What is wrong in this code?

2. I used funnyFrame defined in the MetaFun book. It works fine except that 
it is left aligned. I'd like to put such a frame in the middle. But 
\startalignment[middle] didn't work.
Is there any way to make FunnyFrame center aligned?

Thank you for the reading.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] About Chapter head definition and FunnyFrame

2012-09-02 Thread Wolfgang Schuster

Am 03.09.2012 um 05:34 schrieb Jeong Dalyoung hak...@me.com:

 Dear all,
 
 I have two questions.
 
 
 1. I defined \Myheader and use it to shape the chapter head as following:
 
 \def\Myheader#1#2{%

Use

\define[2]\Myheader{…}

with a recent beta or

\unexpanded\def\Myheader#1#2{…}

with a older beta. You can also search in the list archive for 
\defineheadalternative
where Hans describes a new method to create your own header layout.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___