Re: [NTG-context] Footer
Hi Wolfgang, Thank you very much for this very nice solution ; my knowledge of ConTeXt is unfortunately not at this level. If I can afford I must do the following header [image: pied_3.png] Many thanks. Fabrice Le lun. 5 juil. 2021 à 20:20, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit : > Fabrice Couvreur schrieb am 05.07.2021 um 19:49: > > Hi, > > I have to write a book : > > on the even pages at the bottom and on the left : the page number, a > > vertical line and the number of the chapter preceded by the text > > "Chapter" ; > > on the odd pages at the bottom and on the right : the title of the > > chapter, a line vertical and page number. > > Thanks for your help. > > Fabrice > > > > \setupfootertexts > > [{\getmarking[chapter]}] > > [{\pagenumber}] > > [{\pagenumber}] > > [Chapter\space\pagenumber] > > > > \starttext > > \startchapter > >[title=First chapter] > >\dorecurse{10}{\input knuth} > > \stopchapter > > \startchapter > >[title=Second chapter] > >\dorecurse{10}{\input knuth} > > \stopchapter > > \stoptext > > > \startsetups [footer:leftpage] > \prefixedpagenumber > \space > \undepthed{\blackrule > [ > width=\linewidth, > height=\strutht, > depth=\dimexpr\footerheight+\bottomspace\relax, > ]} > \space > \labeltext{chapter} \getmarking[chapternumber] > \stopsetups > > \startsetups [footer:rightpage] > \getmarking[chapter] > \space > \undepthed{\blackrule > [ > width=\linewidth, > height=\strutht, > depth=\dimexpr\footerheight+\bottomspace\relax, > ]} > \space > \prefixedpagenumber > \stopsetups > > \setuplabeltext > [en] > [chapter=Chapter] > > \setuphead > [chapter] > [bodypartlabel=] > > \setupfootertexts > [] [\directsetup{footer:rightpage}] > [\directsetup{footer:leftpage}] [] > > \setuppagenumbering > [alternative=doublesided] > > \starttext > > \startchapter [title=First chapter] > \dorecurse{10}{\input knuth} > \stopchapter > > \startchapter [title=Second chapter] > \dorecurse{10}{\input knuth} > \stopchapter > > \stoptext > > 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 > > ___ > ___ 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 ___
Re: [NTG-context] Footer
Fabrice Couvreur schrieb am 05.07.2021 um 19:49: Hi, I have to write a book : on the even pages at the bottom and on the left : the page number, a vertical line and the number of the chapter preceded by the text "Chapter" ; on the odd pages at the bottom and on the right : the title of the chapter, a line vertical and page number. Thanks for your help. Fabrice \setupfootertexts [{\getmarking[chapter]}] [{\pagenumber}] [{\pagenumber}] [Chapter\space\pagenumber] \starttext \startchapter [title=First chapter] \dorecurse{10}{\input knuth} \stopchapter \startchapter [title=Second chapter] \dorecurse{10}{\input knuth} \stopchapter \stoptext \startsetups [footer:leftpage] \prefixedpagenumber \space \undepthed{\blackrule [ width=\linewidth, height=\strutht, depth=\dimexpr\footerheight+\bottomspace\relax, ]} \space \labeltext{chapter} \getmarking[chapternumber] \stopsetups \startsetups [footer:rightpage] \getmarking[chapter] \space \undepthed{\blackrule [ width=\linewidth, height=\strutht, depth=\dimexpr\footerheight+\bottomspace\relax, ]} \space \prefixedpagenumber \stopsetups \setuplabeltext [en] [chapter=Chapter] \setuphead [chapter] [bodypartlabel=] \setupfootertexts [] [\directsetup{footer:rightpage}] [\directsetup{footer:leftpage}] [] \setuppagenumbering [alternative=doublesided] \starttext \startchapter [title=First chapter] \dorecurse{10}{\input knuth} \stopchapter \startchapter [title=Second chapter] \dorecurse{10}{\input knuth} \stopchapter \stoptext 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 ___
[NTG-context] Footer
Hi, I have to write a book : on the even pages at the bottom and on the left : the page number, a vertical line and the number of the chapter preceded by the text "Chapter" ; on the odd pages at the bottom and on the right : the title of the chapter, a line vertical and page number. Thanks for your help. Fabrice \setupfootertexts [{\getmarking[chapter]}] [{\pagenumber}] [{\pagenumber}] [Chapter\space\pagenumber] \starttext \startchapter [title=First chapter] \dorecurse{10}{\input knuth} \stopchapter \startchapter [title=Second chapter] \dorecurse{10}{\input knuth} \stopchapter \stoptext [image: pied_2.png] [image: pied_1.png] ___ 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 ___
Re: [NTG-context] footer page number on first page of section: doesn't appear
On 12/4/2013 4:00 PM, Aditya Mahajan wrote: On Wed, 4 Dec 2013, Lars Huttar wrote: On Dec 4, 2013 12:16:12 pm Wolfgang Schuster wrote: ... This works only when your heading forces a page break with the “page=yes” setting in \setuphead. Thanks for this response. Actually, we were able to get it to work as follows. First, we used \definehead[section][chapter] to get section to inherit some settings from chapter. This included the page=yes setting you mentioned (which we don't want, because we handle page breaks with some separate special logic); but it also apparently includes some unknown magic that enables page numbers in footers. Then we add page=no to the \setuphead[section] command, to override the inherited page=yes. Apparently, it works: \definetext[footerpagenumber][footer][pagenumber] \definehead[section][chapter] \setuphead[section][page=no,header=empty,footer=footerpagenumber,number=no,align={middle,nothyphenated,verytolerant},style=ssbf] \starttext \section{My Own Section} \dorecurse{15}{ \input knuth \par } \stoptext I would love to know what the default properties of the \chapter head are, so we could know what we're inheriting, or how to set up section to do what we want without inheriting unknown properties from chapter. (Untested): Looking at the code, it looks that any value other than page=, (i.e, page=empty) should work. Did you try the above example without the \definehead[section][chapter] line? Aditya Uggh... I just tried it without the \definehead[section][chapter] line, and it works! (I.e. there is a page number in the footer, only on the first page of the section.) It wasn't working yesterday ... which makes me wonder what else I changed since then. Thanks, Lars ___ 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] footer page number on first page of section: doesn't appear
Hi, Based on our reading of http://wiki.contextgarden.net/FO_Page_Layout#First_Page we have the following MWE, which we want to put a page number in the footer on the first page only: \definetext[footerpagenumber][footer][pagenumber] \setuphead[section][header=empty,footer=footerpagenumber,number=no,align={middle,nothyphenated,verytolerant},style=ssbf] \starttext \section{My Own Section} \dorecurse{15}{ \input knuth \par } \stoptext Unfortunately, no page number shows up. If we add \setuppagenumbering[location=footer] before the \starttext, we get the page numbering we want, but it's on every page, not just the first. Is there something wrong with our setuphead? Thanks, Lars ___ 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] footer page number on first page of section: doesn't appear
Am 04.12.2013 um 18:37 schrieb Lars Huttar lars_hut...@sil.org: Hi, Based on our reading of http://wiki.contextgarden.net/FO_Page_Layout#First_Page we have the following MWE, which we want to put a page number in the footer on the first page only: \definetext[footerpagenumber][footer][pagenumber] \setuphead[section][header=empty,footer=footerpagenumber,number=no,align={middle,nothyphenated,verytolerant},style=ssbf] \starttext \section{My Own Section} \dorecurse{15}{ \input knuth \par } \stoptext Unfortunately, no page number shows up. If we add \setuppagenumbering[location=footer] before the \starttext, we get the page numbering we want, but it's on every page, not just the first. Is there something wrong with our setup head? This works only when your heading forces a page break with the “page=yes” setting in \setuphead. 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 ___
Re: [NTG-context] footer page number on first page of section: doesn't appear
On Dec 4, 2013 12:16:12 pm Wolfgang Schuster wrote: On 12/4/2013 12:37 PM, Lars Huttar wrote: Hi, Based on our reading of http://wiki.contextgarden.net/FO_Page_Layout#First_Page we have the following MWE, which we want to put a page number in the footer on the first page only: \definetext[footerpagenumber][footer][pagenumber] \setuphead[section][header=empty,footer=footerpagenumber,number=no,align={middle,nothyphenated,verytolerant},style=ssbf] \starttext \section{My Own Section} \dorecurse{15}{ \input knuth \par } \stoptext Unfortunately, no page number shows up. If we add \setuppagenumbering[location=footer] before the \starttext, we get the page numbering we want, but it's on every page, not just the first. Is there something wrong with our setuphead? This works only when your heading forces a page break with the “page=yes” setting in \setuphead. Thanks for this response. Actually, we were able to get it to work as follows. First, we used \definehead[section][chapter] to get section to inherit some settings from chapter. This included the page=yes setting you mentioned (which we don't want, because we handle page breaks with some separate special logic); but it also apparently includes some unknown magic that enables page numbers in footers. Then we add page=no to the \setuphead[section] command, to override the inherited page=yes. Apparently, it works: \definetext[footerpagenumber][footer][pagenumber] \definehead[section][chapter] \setuphead[section][page=no,header=empty,footer=footerpagenumber,number=no,align={middle,nothyphenated,verytolerant},style=ssbf] \starttext \section{My Own Section} \dorecurse{15}{ \input knuth \par } \stoptext I would love to know what the default properties of the \chapter head are, so we could know what we're inheriting, or how to set up section to do what we want without inheriting unknown properties from chapter. Thanks again, Lars ___ 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] footer page number on first page of section: doesn't appear
On Wed, 4 Dec 2013, Lars Huttar wrote: On Dec 4, 2013 12:16:12 pm Wolfgang Schuster wrote: On 12/4/2013 12:37 PM, Lars Huttar wrote: Hi, Based on our reading of http://wiki.contextgarden.net/FO_Page_Layout#First_Page we have the following MWE, which we want to put a page number in the footer on the first page only: \definetext[footerpagenumber][footer][pagenumber] \setuphead[section][header=empty,footer=footerpagenumber,number=no,align={middle,nothyphenated,verytolerant},style=ssbf] \starttext \section{My Own Section} \dorecurse{15}{ \input knuth \par } \stoptext Unfortunately, no page number shows up. If we add \setuppagenumbering[location=footer] before the \starttext, we get the page numbering we want, but it's on every page, not just the first. Is there something wrong with our setuphead? This works only when your heading forces a page break with the “page=yes” setting in \setuphead. Thanks for this response. Actually, we were able to get it to work as follows. First, we used \definehead[section][chapter] to get section to inherit some settings from chapter. This included the page=yes setting you mentioned (which we don't want, because we handle page breaks with some separate special logic); but it also apparently includes some unknown magic that enables page numbers in footers. Then we add page=no to the \setuphead[section] command, to override the inherited page=yes. Apparently, it works: \definetext[footerpagenumber][footer][pagenumber] \definehead[section][chapter] \setuphead[section][page=no,header=empty,footer=footerpagenumber,number=no,align={middle,nothyphenated,verytolerant},style=ssbf] \starttext \section{My Own Section} \dorecurse{15}{ \input knuth \par } \stoptext I would love to know what the default properties of the \chapter head are, so we could know what we're inheriting, or how to set up section to do what we want without inheriting unknown properties from chapter. (Untested): Looking at the code, it looks that any value other than page=, (i.e, page=empty) should work. Did you try the above example without the \definehead[section][chapter] line? Aditya___ 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] Footer text style
Lukáš wrote: Added to http://wiki.contextgarden.net/Command/setuppagenumbering as an example. Thanks! That is greatly appreciated. (BTW: Any idea how to make wiki-contex-source-compiler show the page number, if *really* wanted - i.e. in this case?) \showframe[] does the trick: when an empty options argument [] is given, \showframe only draws a green edge around the page boundary. (When no arguments are given, OTOH, a frame is drawn around all areas. See http://wiki.contextgarden.net/Command/showframe .) NB: \showframe seems to be broken in the wiki's mkiv installation, which is old. The next example draws no frame, but if you remove the mode=mkii then all is well. It works with both mkii and the latest beta on my local machine. context mode=mkiv \showframe asdf /context Cheers, Sietse ___ 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] Footer text style
Hello, I'm struggling a bit with setting font style for page footer: \setuppagenumbering [location={footer,middle}, ] \setupfooter[text][style=\bfc] \starttext \dorecurse{3}{\input knuth\page} \stoptext Why the footer is not bold and big ('\bfc')? - How to make it '\bfc'? TIA. Lukas (ConTeXt ver: 2012.08.02 10:55 MKIV fmt: 2012.8.3 int: english/english) -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 t-Foot.mkiv Description: Binary data t-Foot.pdf Description: Adobe PDF document ___ 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] Footer text style
On 16-8-2012 09:53, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I'm struggling a bit with setting font style for page footer: \setuppagenumbering [location={footer,middle}, ] \setupfooter[text][style=\bfc] \starttext \dorecurse{3}{\input knuth\page} \stoptext Why the footer is not bold and big ('\bfc')? - How to make it '\bfc'? because that only applies to \setupfootertexts in your case you can use \setuppagenumbering [location={footer,middle},style=\bfc] TIA. Lukas (ConTeXt ver: 2012.08.02 10:55 MKIV fmt: 2012.8.3 int: english/english) ___ 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 ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] Footer text style
On Thu, 16 Aug 2012 10:07:27 +0200, Hans Hagen pra...@wxs.nl wrote: On 16-8-2012 09:53, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I'm struggling a bit with setting font style for page footer: \setuppagenumbering [location={footer,middle}, ] \setupfooter[text][style=\bfc] \starttext \dorecurse{3}{\input knuth\page} \stoptext Why the footer is not bold and big ('\bfc')? - How to make it '\bfc'? because that only applies to \setupfootertexts in your case you can use \setuppagenumbering [location={footer,middle},style=\bfc] Thanks, Hans. Added to http://wiki.contextgarden.net/Command/setuppagenumbering as an example. (BTW: Any idea how to make wiki-contex-source-compiler show the page number, if *really* wanted - i.e. in this case?) Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ 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] Footer issue
Hi all, why \setupheader[text][after=\thinrule] and \setupfooter[text][before=\textrule] both work, but \setupfooter[text][before=\thinrule] doesn't work? Cheers -- Diego Depaoli ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Footer issue
Diego Depaoli wrote: Hi all, why \setupheader[text][after=\thinrule] and \setupfooter[text][before=\textrule] both work, but \setupfooter[text][before=\thinrule] doesn't work? maybe add a \endgraf after the \thinrule - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Footer issue
2008/6/5 Hans Hagen [EMAIL PROTECTED]: Diego Depaoli wrote: Hi all, why \setupheader[text][after=\thinrule] and \setupfooter[text][before=\textrule] both work, but \setupfooter[text][before=\thinrule] doesn't work? maybe add a \endgraf after the \thinrule Thanks -- Diego Depaoli ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Footer issue
Diego Depaoli wrote: Hi all, why \setupheader[text][after=\thinrule] and \setupfooter[text][before=\textrule] both work, but \setupfooter[text][before=\thinrule] doesn't work? has to do with a new paragraph being started or a previous one being ended - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___