<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 6 October 2014 20:15, Philip Taylor <span dir="ltr"><<a href="mailto:P.Taylor@rhul.ac.uk" target="_blank">P.Taylor@rhul.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
A TeX source needs to reference images from a location that is<br>
host-dependent, and I had hoped to accomplish this by \inputting a<br>
configuration file partially specified by a Windows environment<br>
variable.  In essence :<br>
<br>
D:\>set test=d:\<br>
D:\>tex<br>
This is TeX, Version 3.1415926 (TeX Live 2013/W32TeX)<br>
**\catcode `\% = \catcode `\a \input %test%/config.tex<br>
*\end<br>
<br>
However, not only does TeX (or XeTeX, or PdfTeX) not open the desired<br>
file, the diagnostic is even more confusing :<br>
<br>
(d:/TeX/Live/2013/texmf-dist/tex/latex/tools/.tex File ignored)<br>
No pages of output.<br>
Transcript written on texput.log.<br>
<br>
Cam anyone explain (a) why the environment variable is not deferenced<br>
when \input passes its parameter to the appropriate system internal, and<br>
(b) why TeX /does/ open (or perhaps only try to open)<br>
d:/TeX/Live/2013/texmf-dist/tex/latex/tools/.tex ?<br>
<span class=""><font color="#888888"><br>
Philip Taylor<br>
<br>
</font></span></blockquote></div><br></div><div class="gmail_extra">probably this would help <br></div><div class="gmail_extra"><br><a href="http://tex.stackexchange.com/questions/62010/can-i-access-system-environment-variables-from-latex-for-instance-home/62039#62039">http://tex.stackexchange.com/questions/62010/can-i-access-system-environment-variables-from-latex-for-instance-home/62039#62039</a><br><br></div><div class="gmail_extra">as for loading .tex I assume that's just because (a) the shell was never called to expand environment variables and (b) I don't think you can have a% in the filename in windows so you got the empty filename with .tex appended... the latex tools directory has a .tex file exactly to catch that kind of weirdness.<br><br></div><div class="gmail_extra">David<br></div><div class="gmail_extra">(is texlive really the right list for this?)<br></div></div>