* Draw a line below the header texts
@ 2013-04-27 9:00 Tim Li
2013-04-29 21:54 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Tim Li @ 2013-04-27 9:00 UTC (permalink / raw)
To: ntg-context
[-- 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Draw a line below the header texts
2013-04-27 9:00 Draw a line below the header texts Tim Li
@ 2013-04-29 21:54 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2013-04-29 21:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 27.04.2013 um 11:00 schrieb Tim Li <timli2013@outlook.com>:
> 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)
>
> \setupbackgrounds
> [header][text]
> [bottomframe=on]
\setupheader[text][after=\hrule]
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-04-29 21:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-27 9:00 Draw a line below the header texts Tim Li
2013-04-29 21:54 ` Wolfgang Schuster
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).