LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
David Kastrup <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Sun, 21 Mar 2004 19:26:17 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (40 lines)
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

ATOM RSS1 RSS2