From: Jeong Dalyoung <haksan@me.com>
To: ntg-context@ntg.nl
Subject: About Chapter head definition and FunnyFrame
Date: Mon, 03 Sep 2012 12:34:43 +0900 [thread overview]
Message-ID: <168587A0-5EC8-4906-9918-B6D592750F90@me.com> (raw)
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 }.
system > tex > 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
___________________________________________________________________________________
next reply other threads:[~2012-09-03 3:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-03 3:34 Jeong Dalyoung [this message]
2012-09-03 4:35 ` Wolfgang Schuster
2013-03-03 14:52 ` john Culleton
2013-03-03 17:54 ` Epigraphs (was About Chapter head definition and FunnyFrame) Wolfgang Schuster
[not found] <mailman.336.1346652860.14247.ntg-context@ntg.nl>
2012-09-03 10:38 ` About Chapter head definition and FunnyFrame dalyoung
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=168587A0-5EC8-4906-9918-B6D592750F90@me.com \
--to=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).