From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/768 Path: main.gmane.org!not-for-mail From: David Arnold Newsgroups: gmane.comp.tex.context Subject: Re: Fw: Subsections (spoke too soon) Date: Mon, 30 Aug 1999 22:16:13 -0700 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.5.32.19990830221613.00b42ca0@mail.northcoast.com> References: <004001bef2bb$28ebc9e0$0c01a8c1@loginbv.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035391608 26854 80.91.224.250 (23 Oct 2002 16:46:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:46:48 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Hans Hagen In-Reply-To: <37CA4885.E8FE7F12@wxs.nl> Xref: main.gmane.org gmane.comp.tex.context:768 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:768 All, Looks like I spoke too soon when I claimed we had a good solution with the subhead set up below. Now I have some terrible line breaks and indenting problems that I did not have before. I checked, and if I eleiminate the subsection setup below, my problems go away. For example, the following source \section{Surface Area} A too infrequently used result from Pappus states that if a simple convex figure is rotated about a line then the surface area of the resulting figure equals the perimeter of the original figure multiplied by the distance traveled by that figure's centroid. For example, if the line of length $h$ in \in{Figure}[pappus] is revolved around the line $L$, \placefigure [here][pappus] {Producing a cylinder.} {\externalfigure[chap3/pappus.1]} then a cylinder of height $h$ and radius $r$ is produced, which is well-known to have lateral surface area equal to $2\pi rh$. Still, according to Pappus, the lateral surface area should equal gets typeset exactly like this: \section{Surface Area} A too infrequently used result from Pappus states that if a simple convex figure is rotated about a line then the surface area of the resulting figure equals the perimeter of the original figure multiplied by the distance traveled by that figure's centroid. For example, if the line of length $h$ in \in{Figure}[pappus] is revolved around the line $L$, then a cylinder of height $h$ and radius $r$ is produced, which is well-known to have lateral surface area equal to $2\pi rh$. Still, according to Pappus, the lateral surface area should equal with the figure on the next page. There are other bad problems, with some paragraphs indenting, some not. At 11:01 AM 8/30/99 +0200, you wrote: >Gilbert van den Dobbelsteen wrote: > >> Nice challenge, but in the end pretty easy: >> >> \setuphead >> [subsection] >> [alternative=text, >> before={\blank[10pt]}, >> after=, >> style=bold, >> command=\mysubsection] >> >> \def\mysubsection#1#2{#2.} >> >> You could also say: number=no, to tell context, that this will not be >> numbered. Though the output is not an different at all, the table of >> contents would be. EXperimenting is the game here. >> >> Now I wonder, would Hans come up with a completely different solution? > >No. But it makes me think of adding a 'stopper' (afsluiter) feature. > >Because 'subject' inherits from 'section', there is no need for the the >number=no, just use \subsubject. Also, beware of lower level headers >inheriting defaults! > >Note: when cross document links are turned on, (see pdftex manuals as an >example of this), text headers are handled ok, even multiple ones, even >when spanning mulriple lines, like in: > >[bf: a subsection] [bs: a subsubsection] the text etc > >If one wants to see some uncomprehensible horrible tex, take a look at >the code used to do this: typeset, unfold, combine, unwhateverbox, etc. >This is a typical example of nightmare programming. > >Hans > >----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl >----------------------------------------------------------------- > >