[texhax] \input command under Linux
Lars Madsen
daleif at imf.au.dk
Mon May 3 15:08:21 CEST 2010
Uwe Lueck wrote:
> Randolph J. Schilling <RChilling at comcast.net> wrote at 03.05.2010 06:08:26:
>> 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.
>
> Just guessing: 1. maybe /mnt/home...
> 2a. move to that directory using cd; then pwd; copy the result (it's /mnt... with me)
> 2b. move to that directory using your file manager, then call the console there,
> (with me) it opens with that directory as the current one, then pwd ... as above.
>
> HTH -- Uwe.
>
>
Might be an idea not to use full paths but instead add the directory to
the list of directories where TeX search for files, and then just use
\input{AAMacros}
--
/daleif
More information about the texhax
mailing list