Hi, I am not a guru, but I think that you should setup your pagesize properly. For the calculation of the paper-width margin widths are not used. The elements for calculations are the backspace and makeupwidth and the rest to sum up to the paperwidth as given in the definition of the papersize. Margins are kind of virtual. If text spills out of the margin then the backspace and the margin have to be adjusted. e.g. \setuplayout [location=middle, topspace=1.5cm, backspace=2cm, margin=18mm, width=middle] Location=middle tells only, that the lettersized paper should placed centered onto the lettersized paper, oversized. When I comment the line with insidesection= I get a consistent result i.e. that the text of the sections with start\stop in the text body starts one line to low compared to the traditional way of coding. Otherwise with this insidesection={\blank[-line]} it appears, that the text next uneven section numbers is typeset at the expected place, where text next to even section numbers is not. — This might indeed be something which Hans should look at. Best Will
On 29 Jul 2017, at 16:52, Rik
wrote: Bump.
The problem persists two updates later.
In the picture below, the green line represents the edge of the page.
Does anyone else get the same result? -- Rik
On 2017-07-23 15:48, Rik Kabel wrote:
The following example demonstrates two problems with alternative=margintext in \setuphead: • When used with start/stop sectioning, text following the title may be set on the wrong line. • Without regard to the type of sectioning, margintext titles may spill over the left edge of the margin and beyond the page frame. \setuppapersize [letter] [letter,oversized] \setuplayout [location={middle,middle}] \showframe \setuphead [chapter] [number=no, alternative=inmargin] \setuphead [section] [ alternative=margintext, insidesection={\blank[-line]}, ] \starttext \starttitle [title={Problem description}] \bgroup \setupwhitespace[medium] \startparagraph This demonstrates two problems with \type{alternative=margintext} in \tex{setuphead}: \startitemize[packed,n] \startitem When used with start/stop sectioning, text following the title may be set on the wrong line. \stopitem \startitem Without regard to the type of sectioning, \type{margintext} titles may spill over the left edge of the margin and beyond the page frame. (Oddly, \tex{paperwidth} is less than the sum of \tex{makeupwidth} and the margin widths and distances for both letter and A4 paper.) \stopitem \stopitemize \stopparagraph \startparagraph With start/stop sectioning, the text following the section title may begin one line below the start of the title. That can be remedied if there is no whitespace between paragraphs with \type{insidesection={\blank[-line]}}, but the remedy fails when there is whitespace, and increasing the correction has no effect. With traditional sectioning, the text appears baseline|-|aligned with the heading, as expected. The the correction has no effect in any case with traditional sectioning. \stopparagraph \startparagraph It makes no difference in any test how the paragraphs are delimited—blank lines, \tex{bpar}/\tex{epar}, \tex{startparagraph}/\tex{stopparagraph}, or \tex{par}. \stopparagraph \startparagraph Tested with standalone beta 2017.07.17 00:20. \stopparagraph \egroup \page \startchapter [title={Start/stop sectioning}] \startsection[title={Mis\-cel\-la\-neous quo\-ta\-tions}] \startparagraph \input jojomayer \stopparagraph \startparagraph \input carrol \wordright{No indent no whitespace.} \stopparagraph \stopsection \bgroup \setupwhitespace[medium] \startsection[title={Miscellaneous quotations}] \startparagraph \input jojomayer \stopparagraph \startparagraph \input carrol \wordright{No indent medium whitespace.} \stopparagraph \stopsection \egroup \bgroup \setupindenting[yes,small] \startsection[title={Miscellaneous quotations}] \startparagraph \input jojomayer \stopparagraph \startparagraph \input carrol \wordright{Small indent no whitespace.} \stopparagraph \stopsection \egroup \bgroup \setupwhitespace[medium] \setupindenting[yes,small] \startsection[title={Miscellaneous quotations}] \startparagraph \input jojomayer \stopparagraph \startparagraph \input carrol \wordright{Small indent medium whitespace.} \stopparagraph \stopsection \egroup \stopchapter \chapter{Traditional sectioning} \section{Mis\-cel\-la\-neous quo\-ta\-tions} \input jojomayer \par \input carrol \wordright{No indent no whitespace.} \par No indent no whitespace. \par \bgroup \setupwhitespace[medium] \section{Miscellaneous quotations} \input jojomayer \par \input carrol \wordright{No indent medium whitespace.} \par \egroup \bgroup \setupindenting[yes,small] \section{Miscellaneous quotations} \input jojomayer \par \input carrol \wordright{Small indent no whitespace.} \par \egroup \bgroup \setupwhitespace[medium] \setupindenting[yes,small] \section{Miscellaneous quotations} \input jojomayer \par \input carrol \wordright{Small indent medium whitespace.} \par \egroup \showlayout \stoptext
-- Rik
___________________________________________________________________________________ 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 ___________________________________________________________________________________