[texhax] \input command under Linux
Zsolt Udvari
udvzsolt at gmail.com
Wed May 5 07:24:57 CEST 2010
$ pwd
/home/users/uzsolt/tmp
$ cat test.tex
\input /home/users/uzsolt/mytex.tex
\bye
$ cat /home/users/uzsolt/mytex.tex
Hello, World!
$ tex test.tex
This is TeX, Version 3.1415926 (Web2C 7.5.7)
(./test.tex (/home/users/uzsolt/mytex.tex) [1] )
Output written on test.dvi (1 page, 228 bytes).
Transcript written on test.log.
$
So, it works for me. Maybe try with extension. Please try:
cat /home/randy/RJSTeX/UTILITIES/AAMacros
Works well? The file's permissions are OK? And please post the exact
error message, not only "FAILS".
E.g.
$ chmod a-r ../mytex.tex
$ LC_ALL=C cat ../mytex.tex
cat: ../mytex.tex: Permission denied
$ tex test.tex
This is TeX, Version 3.1415926 (Web2C 7.5.7)
(./test.tex/home/users/uzsolt/mytex.tex: Permission denied
! I can't find file `/home/users/uzsolt/mytex.tex'.
l.1 \input /home/users/uzsolt/mytex
(Press Enter to retry, or Control-D to exit)
Please type another input file name:
<-------------->
Zsolt
2010/5/3 Randolph J. Schilling <RChilling at comcast.net>:
> Hello-
>
> I have a .tex file with the following Linux path and name:
> /home/randy/RJSTeX/UTILITIES/AAMacros.
> This file contains nothing but macros and I want to be able
> to use TeX's \input command to be able to use these macros
> in other .tex files.
> What is the correct syntax for the \input command?
>
> These attempts failed with the "can't find this file" error:
> \input /home/randy/RJSTeX/UTILITIES/AAMacros (FAILS)
> \input home/randy/RJSTeX/UTILITIES/AAMacros (FAILS)
> \input AAMacros (FAILS)
>
> I know how to do this in windows but I'm stuck trying
> to set things up under Ubuntu. I'd be grateful for any help.
>
> Thanks - Randy
>
>
>
>
>
> Randolph J. Schilling
> 8217 Brimer Road
> Mabelvale, AR 72103
> (501)442-1699
> rchilling at comcast.net
>
>
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
>
More information about the texhax
mailing list