home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.text.tex
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!sun-barr!cs.utexas.edu!swrinde!emory!athena.cs.uga.edu!shen
- From: shen@athena.cs.uga.edu (Mingzuo Shen)
- Subject: conditions in input-ed files
- Message-ID: <1992Nov11.233504.24779@athena.cs.uga.edu>
- Sender: shen@athena.cs.uga.edu (Mingzuo Shen)
- Organization: University of Georgia, Athens
- Distribution: usa
- Date: Wed, 11 Nov 1992 23:35:04 GMT
- Lines: 51
-
- Hi all,
-
- Say I have a small document which will be eventually
- input-ed into a larger document. But i would like to
- be able to independently tex-ing the small document
- without making any changes.
-
- There are several problems. In the larger document,
- there are things like magnification. So is is possible
- to write a condition of some sort, so that when the
- small document is independently tex-ed, it too has
- things like magnification and numbers pages from 1,
- but if the small document is input-ed into the
- larger document, then the magnification and page number
- and such in the small document should not be effective.
-
- I was trying to do things similar to the enviromental
- variables in the C shell and its subshells.
-
- In the large document, I say:
-
- \def\thisisthelargedocument{\true}
-
- Then in the small document, I said,
-
- \ifx\thisisthelargedocument\true{
- \magnification=\magstep 1
- \pageno = 1
- }\fi
-
- ... % body of the small document
-
- \ifx\thisisthelargedocument\true{
- \vfill
- \end
- }\fi
-
- I hope I am clearly stating my problem. The ultimate aim
- is to be able to independently tex a small document,
- while still be able to input that small document in a
- larger document, without making any (or major) changes
- to the small document. What I am doing at the present
- is to comment out setup things in the small document
- before it is included in a larger document. If I want
- the independently tex the small document again, I
- uncomment those setup commands.
-
- Thanks in advance for any help,
-
- Mingzuo Shen
-
-