[NTG-context] Directories of pictures

Renaud AUBIN aubin at nibua-r.org
Fri Oct 20 14:48:41 CEST 2006


Maurício a écrit :

>   Hi,
>
>   When I use \externalfigure inside of \placefigure, Context can only 
>find filenames in the current directory, i.e., the directory where I'm 
>executing texexec. How can I instruct Context to look for files on the 
>same directory of my .tex file?
>  
>
I have not read all the message before sending an answer... Sorry.

Consider a small doc I've just written tomorrow:

sample.tex
\starttext

\placefigure[here]{none}{
\startcombination[2*4]
{\externalfigure[lignedroite1][width=.4\textwidth]}{}
{\externalfigure[lignedroite2][width=.4\textwidth]}{}
{\externalfigure[lignedroite3][width=.4\textwidth]}{}
{\externalfigure[lignedroite4][width=.4\textwidth]}{}
{\externalfigure[lignedroite5][width=.4\textwidth]}{}
{\externalfigure[lignedroite6][width=.4\textwidth]}{}
{\externalfigure[lignedroite7][width=.4\textwidth]}{}
{\externalfigure[lignedroite8][width=.4\textwidth]}{}
\stopcombination
}

\placefigure[here]{none}{
\startcombination[2*4]
{\externalfigure[courbe1][width=.4\textwidth]}{}
{\externalfigure[courbe2][width=.4\textwidth]}{}
{\externalfigure[courbe3][width=.4\textwidth]}{}
{\externalfigure[courbe4][width=.4\textwidth]}{}
{\externalfigure[courbe5][width=.4\textwidth]}{}
{\externalfigure[courbe6][width=.4\textwidth]}{}
{\externalfigure[courbe7][width=.4\textwidth]}{}
{\externalfigure[courbe8][width=.4\textwidth]}{}
\stopcombination
}

\stoptext

the directory contains:

courbe1.png  courbe6.png        lignedroite1.png  lignedroite6.png
courbe2.png  courbe7.png        lignedroite2.png  lignedroite7.png
courbe3.png  courbe8.png        lignedroite3.png  lignedroite8.png
courbe4.png  entrainement1.png  lignedroite4.png  reponse2010.tex
courbe5.png  entrainement2.png  lignedroite5.png  roue-vissansfin.png

texexec sample give satisfaction...

My previous answer assumes that your pictures are in ./src/images/


Renaud


More information about the ntg-context mailing list