Newsgroups: fj.comp.texhax
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!spinnews!spin-hsd0-tky!news-relay.jpn!yan.hp.com!hpujjpo!hpscit.sc.hp.com!sdd.hp.com!swrinde!tank.news.pipex.net!pipex!in2.uu.net!seas.smu.edu!vivaldi.inoc.dl.nec.com!netkeeper.sj.nec.com!newssv1-nec!necscc!csl.cl.nec!csls6!suehiro
From: suehiro@csl.cl.nec.co.jp (SUEHIRO Kenji)
Subject: chotto shita idea
Message-ID: <SUEHIRO.95Aug23213500@csls21.csl.cl.nec.co.jp>
Sender: news@csl.cl.nec.co.jp
Organization: NEC Corporation, Japan.
Date: Wed, 23 Aug 1995 12:35:00 GMT
Lines: 81
Xref: galaxy.trc.rwcp.or.jp fj.comp.texhax:6593
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.comp.texhax&nb=6593&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

$BBg$-$JJ8=q$N%=!<%9%U%!%$%k$r$$$/$D$+$KJ,$1$F:n$k$h$&$J$H$-!"3'$5$s$O$I$&(B
$B$7$F$$$k$G$7$g$&$+!#IaDL$O(B

  \documentstyle{...}
  $B%9%?%$%k;XDj$$$m$$$m(B
  \begin{document}
  \input{sub1.tex}
  \input{sub2.tex}
  ...
  \end{document}

$B$_$?$$$J%^%9%?!<!&%U%!%$%k$r:n$C$F!"(Bsub1.tex $B$@$19;@5$7$?$$$H$-$K$O(B
$B!&B>$N(B \input $B$r%3%a%s%H%"%&%H$9$k!#(B
$B!&(B\include $B$H(B \includeonly $B$r6n;H$9$k!#(B
$B$_$?$$$J$3$H$r$7$^$9$h$M!#$?$@!"$3$NJ}K!$@$H$$$:$l$K$7$F$bJ8=q$N0lIt$@$1(B
$B$r=hM}$7$?$$>l9g$K$O%^%9%?!<$r$$$8$i$J$1$l$P$J$j$^$;$s!#(B

$B$3$l$,LLE]$J$N$G!"0J2<$N$h$&$J$3$H$r9M$($^$7$?!#(B
  1) sub1.tex $B$O$=$l<+?HC1FH$G(B LaTeX $B$K$+$+$k$h$&$K$9$k!#(B
  2) sub1.tex $B$O$=$N$^$^%^%9%?!<$+$i(B \input $B$G$-$k$h$&$K$9$k!#(B
$B$3$&$9$l$P!"(Bsub1.tex $B$N9;@5;~$K$O!V(Blatex sub1$B!W$9$k$@$1$G$h$/!"%^%9%?!<(B
$B$r$$$8$kI,MW$,$"$j$^$;$s!J$?$@$7%/%m%9%j%U%!%l%s%9$O2r7h$G$-$^$;$s$,!K!#(B

$B$3$l$r<B8=$9$k$?$a$K$O!"4pK\E*$K$O<!$N$h$&$K(B sub1.tex $B$r9=@.$9$l$P$h$$$O(B
$B$:$G$9!#(B

  \if<$B%^%9%?!<$+$iFI$_9~$^$l$F$$$k$N$G$O$J$$(B>
  \documentstyle{...}
  $B%9%?%$%k;XDj$$$m$$$m(B
  \begin{document}
  \fi
  sub1.tex $B$NK\BN(B
  \if<$B%^%9%?!<$+$iFI$_9~$^$l$F$$$k$N$G$O$J$$(B>
  \end{document}
  \fi

$B!V%^%9%?!<$+$iFI$_9~$^$l$F$$$k!W$+$I$&$+$O!"%^%9%?!<$G(B \MasterFile $B$H$$(B
$B$&%^%/%m$rDj5A$7!"$3$l$,Dj5A$5$l$F$$$k$+$I$&$+$GH=Dj$9$k$3$H$K$7$^$9!#(B
$B$9$k$H$3$NItJ,$O(B

  \expandafter\ifx\csname MasterFile\endcsname\relax

$B$HI=$;$^$9$+$i!"7k6I(B sub1.tex $B$O(B

  \expandafter\ifx\csname MasterFile\endcsname\relax
  \documentstyle{...}
  $B%9%?%$%k;XDj$$$m$$$m(B
  \begin{document}
  \fi
  sub1.tex $B$NK\BN(B
  \expandafter\ifx\csname MasterFile\endcsname\relax
  \end{document}
  \fi

$B$G$h$$$3$H$K$J$j$^$9!#%^%9%?!<$NJ}$G$O!"(Bsub1.tex $B$J$I$rFI$_9~$`A0$KK:$l(B
$B$:$K(B \MasterFile $B$rDj5A$7$F$*$-$^$7$g$&!#(B

  \documentstyle{...}
  $B%9%?%$%k;XDj$$$m$$$m(B
  \begin{document}
  \def\MasterFile{$BCfL#$O2?$G$bNI$$(B}
  \input{sub1.tex}
  \input{sub2.tex}
  ...
  \end{document}

$B$H$3$m$G!"(B\documentstyle{...} $B$d!V%9%?%$%k;XDj$$$m$$$m!W$NItJ,$O%^%9%?!<(B
$B$H(B sub1.tex $B$J$I$H$GF1$8$K$J$k$O$:$G$9$+$i!"$3$NItJ,$OJL$N%9%?%$%k!&%U%!(B
$B%$%k$K$7$F(B \input $B$9$kJ}$,$h$$$G$7$g$&!#$3$N$H$->e$N9M$(J}$r1~MQ$9$l$P!"(B
$B%^%9%?!<%U%!%$%k<+?H$r%9%?%$%k!&%U%!%$%k$K$7$F$7$^$&$3$H$,$G$-$^$9!#$D$^(B
$B$j%^%9%?!<$r(B sub1.tex $B$J$I$+$i(B \input $B$G$-$k$h$&$K:n$j!"$3$N>l9g$K$O(B 
\begin{document} $B0J2<$r<B9T$7$J$$$h$&$K$7$F$*$/$o$1$G$9!J$3$l$O=IBj!K!#(B

                *                *                *

TeX $B$K4X$9$k$3$N<j$N$A$g$C$H$7$?%"%$%G%#%"$,$"$k?M$O65$($F$/$@$5$$!#(B
$B>e$NNc$N$b$C$H%(%l%,%s%H$JJ}K!$r;W$$$D$$$??M$b$<$R(B :-)$B!#(B
                _
--<IIII>--   _ | |
  --<IIII>--| |TTT     $BKv9-(B $B8,Fs!JKv9-!w#C!u#C8&5f=j!%#N#E#C!K(B
            TTT                         suehiro@csl.cl.nec.co.jp
