Deklarace promene

Petr Sojka sojka at informatics.muni.cz
Wed Feb 7 23:21:53 CET 2001


On Tue, Feb 06, 2001 at 04:14:09PM +0100, Roman Sobotka wrote:
Dobry den,

> Resim trivialini zalezitost. Rad bych si na zacatku
> LaTeXoveho souboru definoval promenou pro cestu k obrazkum,
> treba jako by to bylo v Bash shellu:
>
> PATH_TO_PIC=~/tex/pictures
> \includegraphics{$PATH_TO_PIC/fig1.eps}
>
> Takle nejak, ale v TeXu.

\documentclass{article}
\begingroup \catcode`\~=11
\gdef\PATHTOPIC{~/tex/pictures}
\endgroup
\usepackage{graphicx}
\begin{document}
\includegraphics{\PATHTOPIC/obr.eps}
\end{document}

--ps



More information about the csTeX mailing list