[OS X TeX] MacTeX inputs

Paul Vickers paul.vickers at unn.ac.uk
Mon Nov 13 15:27:56 CET 2006


Louis

Why are you using \input? It would be more usual to write:

\usepackage{color}
\usepackage{graphicx}

{\color{red} This line is red.}
\includegraphics[scale=0.5]{Logo}

\input tells TeX to include the contents of the file at that point. As 
color and graphicx are both packages I assume you will be getting an 
error to do with trying to have a single file provide more than one 
package ( a package file has a 'provides' command in it). You use 
packages with the \usepackage command.

Paul

Louis S VanSlyck wrote:
> One can use pen color by:
> 
> \input color
> {\color{red} This line is red.}
> 
> Or one can insert a picture by:
> 
> \input graphicx
> \includegraphics[scale=0.5]{Logo}
> 
> But the two inputs seem to be mutually exclusive.
> Whichever \input command appears first causes an error at the second, 
> and typeset fails.
> 
> What don't I know? (Of course that list is unbounded, so please limit 
> comments to the particular question.)
> 
> I'm using plainTeX in TeXShop, on a G4 with OS X 10.3.9.
> 
> Lou
> 
> ------------------------- Info --------------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>          & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Archive: http://tug.org/pipermail/macostex-archives/
> 
> 

-- 
____________________________________
Dr P. Vickers BSc PhD CEng MIEE ILTM
Reader in Human-Computer Interaction

School of Computing, Engineering, & Information Sciences
Northumbria University
Pandon Building, Camden Street
Newcastle-upon-Tyne
NE2 1XE

Tel +44 (0)191 243-7614
Fax +44 (0)870 133-9127
e-mail: paul.vickers at northumbria.ac.uk
web: www.paulvickers.com/northumbria

Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of
Northumbria University.

====

This e-mail is intended solely for the addressee. It may contain private
and confidential information. If you are not the intended addressee,
please take no action based on it nor show a copy to anyone. Please
reply to this e-mail to highlight the error. You should also be aware
that all electronic mail from, to, or within Northumbria University may
be the subject of a request under the Freedom of Information Act 2000
and related legislation, and therefore may be required to be disclosed
to third parties.

This e-mail and attachments have been scanned for viruses prior to
leaving Northumbria University. Northumbria University will not be
liable for any losses as a result of any viruses being passed on.
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list