From: Tim Li <timli2013@outlook.com>
To: "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: Draw a line below the header texts
Date: Sat, 27 Apr 2013 09:00:05 +0000 [thread overview]
Message-ID: <BLU152-W44FCD2F4FA4C9058BF8525A9B00@phx.gbl> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1663 bytes --]
Hi, now I need a line below the header text to seperate the header texts from the text area. I have't soloved this problem, have to ask for help (the method from google doesn't work any more. This new one is from Aditya, but still has some problem that I don't know how to deal with) \setuplayout
[header=\lineheight,
headerdistance=\lineheight,
footer=\lineheight,
footerdistance=\lineheight] \setuppagenumbering
[location=,
alternative=doublesided] \definepagebreak
[chapterpagebreak]
[yes,header,footer,right] \definetext
[chapterstart]
[footer]
[{\hfill\it\pagenumber}] \setuphead
[chapter]
[style=\bfc,
header=empty, footer=chapterstart,
page=chapterpagebreak] \setupheader
[style=\it]
\setupheadertexts
[{\getmarking[sectionnumber]\hskip1em\getmarking[section][first]}]
[pagenumber]
[{Chapter~\getmarking[chapternumber]\hskip1em\getmarking[chapter]}]
[pagenumber] \setupbackgrounds [header][text] [bottomframe=on] \starttext
\chapter{First Chapter}
this is the first chapter
\section{section 1}
\page
\section{section 2}
the second page of the first chapter
\page
\section{section 3}
the third page of the first chapter
\chapter{Second Chapter}
this is the second chapter
\section{section 1}
\page
\section{section 2}
the second page of the second chapter
\stoptext The rule shouldn't be above the chapter head ``1 First Chapter" at page 1 and page 4 should be true empty, since it is just before Chapter 2 and has no contents. Of course, I hope that I can solve these two problems by myself, but ... I really need some help from you. Best regards, Tim
[-- Attachment #1.2: Type: text/html, Size: 2395 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2013-04-27 9:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-27 9:00 Tim Li [this message]
2013-04-29 21:54 ` 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=BLU152-W44FCD2F4FA4C9058BF8525A9B00@phx.gbl \
--to=timli2013@outlook.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).