From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50339 Path: news.gmane.org!not-for-mail From: "Oliver Heins" Newsgroups: gmane.comp.tex.context Subject: [***SPAM***] Bug? \getmarking fails under some circumstances Date: Tue, 12 May 2009 15:24:03 +0200 (CEST) Message-ID: <32430.7242445231$1242134789@news.gmane.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1242134789 18840 80.91.229.12 (12 May 2009 13:26:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2009 13:26:29 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue May 12 15:26:19 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1M3rzX-0002E4-05 for gctc-ntg-context-518@m.gmane.org; Tue, 12 May 2009 15:25:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EA4711FF52; Tue, 12 May 2009 15:25:53 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23498-06-6; Tue, 12 May 2009 15:24:39 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 94C831FF1F; Tue, 12 May 2009 15:24:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 59AC71FF1F for ; Tue, 12 May 2009 15:24:37 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25700-02-4 for ; Tue, 12 May 2009 15:24:13 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by ronja.ntg.nl (Postfix) with ESMTP id 467BC1FD7B for ; Tue, 12 May 2009 15:24:13 +0200 (CEST) Original-Received: from black.cryptix.de (black.cryptix.de [83.137.101.103]) by filter1-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4CDOBqG023519 for ; Tue, 12 May 2009 15:24:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by black.cryptix.de (Postfix) with ESMTP id 0A630266D36 for ; Tue, 12 May 2009 15:24:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at black.cryptix.de Original-Received: from black.cryptix.de ([127.0.0.1]) by localhost (black.cryptix.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W5rUhzMcqU4E for ; Tue, 12 May 2009 15:24:03 +0200 (CEST) Original-Received: from mail.cryptix.de (localhost [127.0.0.1]) by black.cryptix.de (Postfix) with ESMTP id 027E1266D47 for ; Tue, 12 May 2009 15:24:03 +0200 (CEST) X-Squirrel-UserHash: CQ0AGiUVDhwcFkgOHhQ= X-Squirrel-FromHash: UQdcQ1VWUV0= User-Agent: SquirrelMail/1.4.10a X-Priority: 3 (Normal) Importance: Normal X-Bayes-Prob: 0.9999 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=83.137.101.103; country=DE; region=16; city=Berlin; latitude=52.5167; longitude=13.4000; http://maps.google.com/maps?q=52.5167,13.4000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 223925947 - 8a44218d84f6 - 20090512 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:50339 Archived-At: Hello, I'm new to ConTeXt, so this is perhaps not a bug but a fault on my side. Under some circumstances, the living column heads fail to refer to the subsubject. As you can see from the attached minimal example \startsetups[header] \getmarking[subject]\ $\cdot$ \getmarking[subsubject] \stopsetups will yield something like =BBMikrotypografie *=AB, though it should be =BBMikrotypografie * Absatzumbruch=AB. If you uncomment the \subsubject-line at the end of the example, everything works as expected unless you uncomment the former line, too. A workaround is to add a \vfill\eject just before the next \subject. Best regards, olli You probably can ignore the environments used in the minimal example, they are copied from the document from which I ran into the problem and are just dummy text. I hope I have stripped down the preamble to an acceptable amount of lines. --------------------------------------------------- % interface=3Den output=3Dpdftex \usetypescript[fourier][ec] \setupbodyfont[fourier,12pt] \setuppapersize [A4][A4] \usemodule[layout] \chardef\charwidthmethod=3D3 \def\charwidthlanguage{\currentmainlanguage} \setuplayout [width=3D70\averagecharwidth, height=3Dmiddle, grid=3Dyes] \startsetups[header] \hfill \getmarking[subject]\ $\cdot$ \getmarking[subsubject] \hfill \stopsetups \setupheadertexts[\setups{header}] \setuphead [title] [before=3D\hairline, after=3D\blank\leftline{\tfa Ein Beispieldokument}\blank\leftline{\tfa Oliver Heins \ss$\langle$\from[email]$\rangle$} \bigskip\hairline] \definehead[subject][section] \setuphead[subject][number=3Dno] \definehead[subsubject][subsection] \setuphead[subsubject][number=3Dno] \setuphead [subject] [style=3D\tfb] % Text \starttext \startlinecorrection \title{Mikrotypografie und Interaktivit=E4t} \stoplinecorrection \setupindenting[medium, yes] \setupwhitespace[none] \vskip-\baselineskip \subject{Mikrotypografie} Besonderes Augenmerk legt scriptorium adp auf die typografische Qualit=E4t der erzeugten Dokumente. Die von uns verwendeten Textsatzsysteme aus der Programmfamilie \TeX{} erm=F6glichen einen besonders hochwertigen Satz. \subsubject{Mathematiksatz} Der Mathematiksatz von \TeX{} ist legend=E4r. Kein Wunder, wurde \TeX{} doch vom amerikanischen Informatikprofessor und Turing-Preistr=E4ger Donald Knuth entwickelt, der mit der immer schlechter werdenden Qualit=E4t seiner Buchreihe \quotation{The Art of Computer Programming} unzufrieden war, seit von Hand- auf Fotosatz umgestellt worden war. Von 1977 bis 1986 entwickelte Knuth \TeX{}: {\en\quotation{Ever since those beginnings in 1977, the TeX research project that I embarked on was driven by two major goals. The first goal was quality: we wanted to produce documents that were not just nice, but actually the best. {\dots} The second major goal was archival: to create systems that would be independent of changes in printing technology as much as possible. When the next generation of printing devices came along, I wanted to be able to retain the same quality already achieved, instead of having to solve all the problems anew. I wanted to design something that would be still usable in 100 years.}}\footnote{Donald E. Knuth, {\it Digital typography.} Stanford, Calif.: CSLI Publications, 1999, S.~559.} \TeX{} stellt im engeren Sinn lediglich eine Programmiersprache bereit, mit der sich Textsatzsysteme entwickeln lassen. Knuth entwickelte ein erstes mit dem sogenannten plain-\TeX-Format, weitere wie {\LaTeX} oder {\ConTeXt} folgten. scriptorium adp setzt die beiden letztgenannten Formate ein. Hier ein Beispiel f=FCr den Mathematiksatz von \TeX{}: \startlinecorrection \vskip-.5\baselineskip \placeformula \startformula \startmathalignment[m=3D2,distance=3D2em]%Notice distance=3D2em \NC \nabla\cdot \bf E \NC=3D \frac{\rho}{\varepsilon_0}, \NC \nabla\times \bf E \NC=3D -\frac{\partial \bf B}{\partial t}, \NR[+] \NC \nabla\cdot \bf B \NC=3D 0, \NC \nabla\times \bf B \NC=3D \mu_0{\bf j}+\varepsilon_0\mu_0 \frac{\partial \bf E}{\partial t}. \NR[+] \stopmathalignment \stopformula \vskip-.5\baselineskip \stoplinecorrection Auch im Flie=DFtext ist Mathematik problemlos m=F6glich. \startlinecorrection \placeformula \startformula f(x) =3D \startmathcases[style=3D\displaystyle] \NC \int_0^x g(y)\,dy, \NC if $x \ge 0$; \NR \NC \int_{-x}^0 g(y)\,dy, \NC otherwise. \NR \stopmathcases \stopformula \stoplinecorrection \subsubject{Absatzumbruch} Hervorzuheben ist insbesondere der absatzbasierte {\it Total|-|Fit}|-|Umbruchalgorithmus: nach einem raffinierten Optimierungsverfahren werden alle m=F6glichen Zeilenumbr=FCche (inklusive Worttrennung) im Absatz gleichzeitig bestimmt und bewertet. Der Umbruch, der den besten optischen Gesamteindruck verspricht, wird dann vom System benutzt. Im Vergleich mit dem verbreiteten {\it First|-|Fit}|-|Algorithmus, der die Zeilenumbr=FCche Zeile f=FCr Zeile festlegt, ohne einmal umbrochene Zeilenumbruchspunkte zu =E4ndern, ist das Schriftbild so erstellter Texte gleichm=E4=DFiger und ruhiger. Zudem setzen wir die Verfahren {\it Optischer Randausgleich} und {\it Schriftst=E4rkenver=E4nderung} (font expansion) ein: W=E4hrend beim optischen Randausgleich bestimmte Zeichen aus dem Rand des Textblocks herausragen, um den Rand optisch zu verbessern, wird mittels der Schriftst=E4rkenver=E4nderung durch das {\it hz|-|Programm} der Absatzausgleich verbessert. Das Verfahren geht auf den bekannten Typografen Hermann Zapf zur=FCck und verwendet eine leichte ($\pm$~2,5\,\perthousand) Dehnung oder Stauchung der einzelnen Zeichen. Dies ist gegen=FCber einer Spationierung, die den Grauwert der Seite nachhaltig st=F6rt, die bessere L=F6sung, um st=F6rende Leerr=E4ume insbesondere in engen Spalten zu vermeiden. Im folgenden interaktiven Beispiel bezeichnet \quotation{hanging} den optischen Randausgleich (von \quotation{hanging punctuation}, der urspr=FCnglichen Anwendungsweise dieses Verfahrens, bei der die Satzzeichen aus dem Textblock herausragten) und \quotation{hz} die Schriftst=E4rkenver=E4nderung (von \quotation{hz|-|Programm}, dem nach Hermann Zapf benannten Algorithmus). %\vfill\eject \subject{Interaktivit=E4t} %foobar %\subsubject{foobar} \stoptext ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________