Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(5.0.2195.6713); Sun, 21 Mar 2004 19:43:11 +0100 Received: by mail.proteosys.com (8.12.10/8.12.2) with ESMTP id i2LIh81s004878 for ; Sun, 21 Mar 2004 19:43:09 +0100 MIME-Version: 1.0 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.119.176]) by relay2.uni-heidelberg.de (8.12.10/8.12.10) with ESMTP id i2LIarSe016243; Sun, 21 Mar 2004 19:36:53 +0100 (MET) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C40F74.5C288980" Received: from listserv (listserv.uni-heidelberg.de [129.206.119.176]) by listserv.uni-heidelberg.de (8.12.7/8.12.7/SuSE Linux 0.6) with ESMTP id i2L77qUw029452; Sun, 21 Mar 2004 19:35:59 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Received: from LISTSERV.UNI-HEIDELBERG.DE by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 1.8e) with spool id 53616 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sun, 21 Mar 2004 19:35:58 +0100 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.12.7/8.12.7/SuSE Linux 0.6) with ESMTP id i2LIPuN6002291 for ; Sun, 21 Mar 2004 19:25:56 +0100 Received: from fencepost.gnu.org (fencepost.gnu.org [199.232.76.164]) by relay2.uni-heidelberg.de (8.12.10/8.12.10) with ESMTP id i2LIQQSe013370 for ; Sun, 21 Mar 2004 19:26:28 +0100 (MET) Received: from fencepost.gnu.org ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.24) id 1B57aK-0006nw-O4 for LATEX-L@listserv.uni-heidelberg.de; Sun, 21 Mar 2004 13:22:08 -0500 Lines: 40 Return-Path: X-OriginalArrivalTime: 21 Mar 2004 18:43:11.0813 (UTC) FILETIME=[5CA49750:01C40F74] X-Scanned-By: MIMEDefang 2.28 (www . roaringpenguin . com / mimedefang) X-Spam-Score: 0 () Content-class: urn:content-classes:message Subject: A proposal for \includeonly... Date: Sun, 21 Mar 2004 19:26:17 +0100 Message-ID: A X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: A proposal for \includeonly... Thread-Index: AcQPdFzAVHGKlgrtTK+uI8RmeyIvOg== From: "David Kastrup" Sender: "Mailing list for the LaTeX3 project" To: Reply-To: "Mailing list for the LaTeX3 project" Status: R X-Status: X-Keywords: X-UID: 4763 This is a multi-part message in MIME format. ------_=_NextPart_001_01C40F74.5C288980 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable How about the following change? \def\includeonly#1{% \@partswtrue \edef\@partlist{\zap@space#1 \@empty}} \@onlypreamble\includeonly to be changed into \def\includeonly{\@ifnextchar[\@nestedincludeonly \@ordinaryincludeonly} \def\@nestedincludeonly[#1]#2{\ifx\@nodocument\relax \else \def\jobname{#1}% \@ordinaryincludeonly{#2}% \def\next{\input{\jobname}}% \expandafter\expandafter\expandafter\next \expandafter\endinput \fi} \def\@ordinaryincludeonly#1{% \@partswtrue \edef\@partlist{\zap@space#1 \@empty}} \@onlypreamble\@ordinaryincludeonly That would mean that I could start an included file chapter2.tex with \includeonly[mainfile]{chapter2} and compilation of chapter2.tex would then instead compile mainfile with \includeonly{chapter2} active. Something like that. This would make working with \includeonly a lot more convenient. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum ------_=_NextPart_001_01C40F74.5C288980 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable A proposal for \includeonly...

How about the following change?

\def\includeonly#1{%
  \@partswtrue
  \edef\@partlist{\zap@space#1 \@empty}}
\@onlypreamble\includeonly

to be changed into

\def\includeonly{\@ifnextchar[\@nestedincludeonly
  \@ordinaryincludeonly}

\def\@nestedincludeonly[#1]#2{\ifx\@nodocument\relax
  \else
    \def\jobname{#1}%
    \@ordinaryincludeonly{#2}%
    = \def\next{\input{\jobname}}%
    = \expandafter\expandafter\expandafter\next
    \expandafter\endinput
  \fi}

\def\@ordinaryincludeonly#1{%
  \@partswtrue
  \edef\@partlist{\zap@space#1 \@empty}}
\@onlypreamble\@ordinaryincludeonly

That would mean that I could start an included file = chapter2.tex
with

  \includeonly[mainfile]{chapter2}

and compilation of chapter2.tex would then instead = compile mainfile
with \includeonly{chapter2} active.

Something like that.  This would make working = with \includeonly a lot
more convenient.

--
David Kastrup, Kriemhildstr. 15, 44793 Bochum

------_=_NextPart_001_01C40F74.5C288980--