From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/18585 Path: main.gmane.org!not-for-mail From: h h extern Newsgroups: gmane.comp.tex.context Subject: Re: Unexpected changes with pdfeTeX 1.20 (?) Date: Tue, 01 Mar 2005 21:37:02 +0100 Message-ID: <4224D26E.4080406@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1109709546 10575 80.91.229.2 (1 Mar 2005 20:39:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Mar 2005 20:39:06 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 01 21:39:06 2005 Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1D6E5v-0007ey-OG for gctc-ntg-context-518@m.gmane.org; Tue, 01 Mar 2005 21:35:52 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C369E127C7; Tue, 1 Mar 2005 21:40:32 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18498-02; Tue, 1 Mar 2005 21:40:32 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7CFC3127B1; Tue, 1 Mar 2005 21:37:03 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 08C61127B1 for ; Tue, 1 Mar 2005 21:37:02 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18224-03 for ; Tue, 1 Mar 2005 21:37:00 +0100 (CET) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id DE64612798 for ; Tue, 1 Mar 2005 21:37:00 +0100 (CET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j21Katgl011421 for ; Tue, 1 Mar 2005 21:36:55 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 1B10A17B8B; Tue, 1 Mar 2005 21:23:35 +0100 (CET) Original-Received: from [127.0.0.1] (unknown [10.100.1.1]) by server-1.pragma-net.nl (Postfix) with ESMTP id DF96617A33 for ; Tue, 1 Mar 2005 20:23:32 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: ClamAV 0.80/705/Fri Feb 11 17:51:32 2005 clamav-milter version 0.80j on mailrelay01 X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl X-MailScanner-From: ntg-context-bounces@ntg.nl X-MailScanner-To: gctc-ntg-context-518@m.gmane.org Xref: main.gmane.org gmane.comp.tex.context:18585 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:18585 Steffen Wolfrum wrote: > Hi, > > while looking closer at the result of typesetting an older (Nov. 2004) > document with todays pdfeTeX and context stuff I noticed that the layout > of my TOC changed: > > Normally I write all setups in a SetupEnvironment file that is loaded at > the beginning of a project structure. > Like this: > > \startproject WLTHR_1 > \environment SetupEnvironment_WLTHR > \startfrontmatter > \component Kapitel/Titelei > \component Kapitel/Vorwort > \completecontent > \stopfrontmatter > \startbodymatter > \component Kapitel/Kap_1 > \component Kapitel/Kap_2 > \component Kapitel/Kap_3 > \component Kapitel/Kap_4 > \component Kapitel/Kap_5 > \stopbodymatter > \startbackmatter > \component Kapitel/Katalog > \component Kapitel/Literatur > \stopbackmatter > \stopproject > > But as in SetupEnvironment also \setupindenting is set, now the TOC gets > this indenting too! > Once (2004, before pdfeTeX 1.20 ?) this didn't affect the generated > \completecontent - only the real \component files. > > Is this change known? Are there more differences like this, so one knows > what to look for when typesetting older documents with new TeX > (ConTeXt?) files? > > Steffen > > > > A minimal test looks like this: > > \starttext > \showframe > \showgrid > \definecombinedlist[content] > [chapter,section][level=section] > \setupindenting[30pt]% <---------------- > \completecontent% <--------------- > %\setupindenting[30pt]% <---------------- > \chapter{Kapitel} > text > \section{Unterkapitel} > text > \section{Unterkapitel} > text > \stoptext fix (\dontleavehmode -> \noindent) in core-sec.tex; you can put the patch in cont-new.tex if you have a recent version \def\dodofixdlistelementABC#1#2#3#4#5#6% weeden {\endgraf \leftskip\listparameter\c!margin% na de \endgraf ! \listparameter\c!before \!!widthc\listparameter\c!distance \doifelse{\listparameter\c!width}\v!fit {\!!widtha\zeropoint} {\doifelsenothing{#3} {\doifelse{\listparameter\c!aligntitle}\v!yes {\!!widtha\zeropoint \!!widthc\zeropoint} {\!!widtha\listparameter\c!width}} {\!!widtha\listparameter\c!width}}% \getvalue{\??li\c!alternative\listparameter\c!alternative}% \endgraf \def\makelistelement##1##2% {\doifelse{\listparameter\c!interaction}{##1} {\setbox0\hbox{\showcontrastlocation\??ia{#6}{##2}}% \linklisttoelement{#2}{#5}{#6}{\box0}}%{\copy0}}% {\hbox{##2}}}% \doif{\listparameter\c!interaction}\v!text % not supported {\setlistparameter\currentlist\c!interaction\v!all}% % \dontleavehmode % new, else no margin, but wrong \noindent \makelistelement\v!all {\setlocalhsize \hsize\localhsize \hbox to \hsize {\forgetall \dostartlistattributes\c!style\c!color\empty \!!widthb\hsize \setbox2\hbox \ifdim\!!widtha>\zeropoint to \!!widtha \fi {\makelistelement\v!sectionnumber {\donestedlistattributes\c!numberstyle\c!numbercolor {\listparameter\c!numbercommand{\currentlistsymbol}}% \hfill}}% \setbox4\hbox {\doif{\listparameter\c!pagenumber}\v!yes {\doifsomething{#5} % \listwidth is new ; temp hack {\hbox \ifdim\listwidth>\zeropoint to \listwidth\fi {\hfill \makelistelement\v!pagenumber {\donestedlistattributes\c!pagestyle\c!pagecolor {\listparameter\c!pagecommand {\pageprefix\??li\currentlist[#5]% \translatednumber[#5]}}}}}}}% \vbox {\hsize\!!widthb \setupalign[\listparameter\c!align]% \ifdim\!!widtha<\hsize \hangindent\wd2 \dimen2=\!!widthc % \listparameter\c!distance \advance\hangindent \dimen2 \hangafter\plusone \doif{\listparameter\c!hang}\v!no{\hangafter\zerocount}% \ifdim\wd4=\zeropoint % \ifvoid4 % we kunnen gewoon afbreken aan het eind \else \ifdim\listskip>\zeropoint\relax \rightskip\listskip\!!plus10em\relax \parfillskip-\rightskip \fi \fi \else \dimen2\zeropoint \fi \parindent\zeropoint\relax \leavevmode \box2\relax \hskip\dimen2 \bgroup \donestedlistattributes\c!textstyle\c!textcolor {\let\\=\newlineinlist \dontconvertfont %\listparameter\c!textcommand{#4}}% \limitatedlistentry{#4}}% %\carryoverpar % new otherwise wrong linespacing \egroup \ifdim\wd4=\zeropoint\relax % \ifvoid4 % \ifdim\!!widtha<\hsize \hfill\strut \fi % spoils align \else \nobreak\listfill \box4\relax \relax \fi}% \hss \dostoplistattributes}}% new \endgraf % new, else problems with nointerlinespace and prevdepth \nointerlineskip % anders verkeerde spatiering bij multi-line \endgraf \allowbreak \listparameter\c!after} ----------------------------------------------------------------- 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 -----------------------------------------------------------------