[NTG-context] Setting `before` option of chapter breaks header text
If chapter titles are styled using the `before` option, the header texts on each first page of the documents (body|back|appendix)part are incorrect, because chapter name and number are empty. (Tested with ConTeXt version 2013.05.28 00:36 and 2013.09.03 10:22) Is this a bug? (If not, is there any other way to set `before` without breaking the headers?) Here an example: \setuphead[chapter][ before=\hairline\blank, % headers work, if this line is removed after=\nowhitespace\hairline, ] \setuppagenumbering[location=] % clear page numbers \startsectionblockenvironment[frontpart] \setupheadertexts[chapter][pagenumber] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \setupheadertexts[{Chapter \getmarking[chapternumber]: \getmarking[chapter]}][pagenumber] \stopsectionblockenvironment \startsectionblockenvironment[backpart] \setupheadertexts[chapter][pagenumber] \stopsectionblockenvironment \startsectionblockenvironment[appendix] \setupheadertexts[{Appendix \getmarking[chapternumber]: \getmarking[chapter]}][pagenumber] \stopsectionblockenvironment \starttext \startfrontmatter \chapter{Front One} Here the header is correct. \chapter{Front Two} \stopfrontmatter \startbodymatter \chapter{Body One} Incorrect header on this page. \page[yes] Here the header is correct. \chapter{Body Two} \stopbodymatter \startbackmatter \chapter{Back One} Incorrect (none) header on this page. \chapter{Back Two} \stopbackmatter \startappendices \chapter{Appedix One} Incorrect header on this page. \chapter{Appedix Two} \stopappendices \stoptext Regards, Michael ___ 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] Setting `before` option of chapter breaks header text
On 03.09.2013, at 16:13, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 03.09.2013 um 16:02 schrieb Michael Scholtz scmi...@gmail.com: If chapter titles are styled using the `before` option, the header texts on each first page of the documents (body|back|appendix)part are incorrect, because chapter name and number are empty. (Tested with ConTeXt version 2013.05.28 00:36 and 2013.09.03 10:22) Is this a bug? (If not, is there any other way to set `before` without breaking the headers?) It’s the wrong method to add rules at the begin/end of a heading. A better way to add rules is to put a frame around the text. \defineframedtext [ChapterFrame] [frame=off, width=\textwidth, topframe=on, bottomframe=on, offset=0pt, toffset=1ex, boffset=1ex] \setuphead [chapter] [before=\startChapterFrame, after=\stopChapterFrame] Wolfgang Thanks, I got this from the wiki page: http://wiki.contextgarden.net/Titles#Your_Own_Titling_Levels ...but it seems to be wrong there. I used `before` (probably in the wrong way ;-) ) to add more space above each chapter title. How to do this without `before`? Michael ___ 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] Setting `before` option of chapter breaks header text
On 03.09.2013, at 17:54, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 03.09.2013 um 16:32 schrieb Michael Scholtz scmi...@gmail.com: On 03.09.2013, at 16:13, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 03.09.2013 um 16:02 schrieb Michael Scholtz scmi...@gmail.com: If chapter titles are styled using the `before` option, the header texts on each first page of the documents (body|back|appendix)part are incorrect, because chapter name and number are empty. (Tested with ConTeXt version 2013.05.28 00:36 and 2013.09.03 10:22) Is this a bug? (If not, is there any other way to set `before` without breaking the headers?) It’s the wrong method to add rules at the begin/end of a heading. A better way to add rules is to put a frame around the text. \defineframedtext [ChapterFrame] [frame=off, width=\textwidth, topframe=on, bottomframe=on, offset=0pt, toffset=1ex, boffset=1ex] \setuphead [chapter] [before=\startChapterFrame, after=\stopChapterFrame] Wolfgang Thanks, I got this from the wiki page: http://wiki.contextgarden.net/Titles#Your_Own_Titling_Levels ...but it seems to be wrong there. It’s a solution which works but also with side effects because allow TeX to break the page between the rule and the heading which isn’t the case with framedtext where the whole block is unbreakable. I used `before` (probably in the wrong way ;-) ) to add more space above each chapter title. How to do this without `before`? Controlling the space before and after the heading is the default way in which the before/after keys are used. There has been a few suggestions to add a spacebefore key to \setuphead which will replace before=\blank for this but this hasn’t happened so far. In the example above you can now set the spaces before and after the heading in the framedtext setup with before={\blank[2cm]} and after=\blank. Wolfgang Thanks for the hints. I tried `\blank` commands in `before`, but it seems to have to effect. A space before `\blank` (like `before={\ \blank[5em]}`) makes it work, but is not so nice. But using `toffset` and `boffset` does the job, even without `\blank`s: \defineframedtext[ChapterFrame][ frame=off, width=\textwidth, offset=0pt, toffset=5em, boffset=2em, ] \setuphead[chapter][ before=\startChapterFrame, after=\stopChapterFrame, ] Regards, Michael ___ 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] Setting `before` option of chapter breaks header text
On 03.09.2013, at 20:32, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 03.09.2013 um 20:22 schrieb Michael Scholtz scmi...@gmail.com: I tried `\blank` commands in `before`, but it seems to have to effect. A space before `\blank` (like `before={\ \blank[5em]}`) makes it work, but is not so nice. TeX ignores a \blank at the begin of a page, to force the space you can “before=\blank[force,value]”. But using `toffset` and `boffset` does the job, even without `\blank`s: This is wrong because the toffset and buffet control the margins *in* the boy and not around the box. Thanks again, with `force` option everything works fine. Regards, Michael ___ 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] Feature-Request: Sort bibliography entries in alphabetical order by the entries' “short” value
On 07.08.2013, at 22:13, Hans Hagen pra...@wxs.nl wrote: On 8/7/2013 7:40 PM, Michael Scholtz wrote: Hi, the publication list can be configured with `\setuppublications` to be sorted by cite order (`sorttype=cite`) or the order of the publication entries (`sorttype=bbl`). With the following setup the short names of the publication entries are used for cite references: \setuppublications[ criterium=text, sorttype=cite, % – short? refcommand=short, numbering=short, ... ] The short names are set using the `s` attribute: \startpublication[ s={RFC2616}, ... ] ... \stoppublication A cite with this setup would look like [RFC2616]. In a long bibliography list it is useful if the entries are sorted in alphabetical order by these short names to allow a faster lookup of publications. Currently I'm using the filter module and a Tcl script to sort the publication entries ( http://tex.stackexchange.com/q/126939/7074 ), but it might be useful if something like a `sorttype=short` option would be added. I added 'short' as sorttype .. untested as no example. Great, thanks! Here an example for testing: \setuppublications[ alternative=apa-de, criterium=text, sorttype=short, refcommand=short, numbering=short, autohang=yes, setupinteraction=start, ] \setuppublicationlist[ samplesize={AA}, author=\invertedauthor, artauthor=\invertedauthor, ] %=== entries === \startpublication[ k=jd42, t=book, a={Doe}, y=2042, n=1, s={JD42}, ] \author[]{John}[]{}{Doe} \pubyear{2042} \title{Greetings form the future} \stoppublication \startpublication[ k=bh2008, t=book, a={Bringhurst}, y=2008, n=1, s={ELEM}, ] \author[]{Robert}[]{}{Bringhurst} \pubyear{2008} \title{The Elements of Typographic Style} \edition{3.2} \city{Point Roberts WA, Vancouver} \stoppublication \startpublication[ k=taco1999, t=article, a=Hoekwater, y=1999, s=TH99, n=1 ] \artauthor[]{Taco}[T.]{}{Hoekwater} \arttitle{\CONTEXT\ Publication Module, The user documententation} \journal{MAPS} \pubyear{To appear} \note{This article} \pages{66--76} \stoppublication \startpublication [ k=fielding2000, t=phdthesis, a={Fielding}, y=2000, n=1, s={FIE2000}, ] \author[]{Roy Thomas}[R. T.]{}{Fielding} \title{Architectural Styles and the Design of Network-based Software Architectures} \pubname{University of California, Irvine} \isbn{0-599-87118-0} \stoppublication %=== /entries === \starttext Foo \cite[fielding2000]. Bar \cite[taco1999]. Baz \cite[bh2008]. Bla \cite[jd42]. \completepublications \stoptext Michael ___ 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] Feature-Request: Sort bibliography entries in alphabetical order by the entries' “short” value
Hi, the publication list can be configured with `\setuppublications` to be sorted by cite order (`sorttype=cite`) or the order of the publication entries (`sorttype=bbl`). With the following setup the short names of the publication entries are used for cite references: \setuppublications[ criterium=text, sorttype=cite, % – short? refcommand=short, numbering=short, ... ] The short names are set using the `s` attribute: \startpublication[ s={RFC2616}, ... ] ... \stoppublication A cite with this setup would look like [RFC2616]. In a long bibliography list it is useful if the entries are sorted in alphabetical order by these short names to allow a faster lookup of publications. Currently I'm using the filter module and a Tcl script to sort the publication entries ( http://tex.stackexchange.com/q/126939/7074 ), but it might be useful if something like a `sorttype=short` option would be added. Regards, Michael ___ 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 ___