[OS X TeX] Gotta include problem

David Arnold dwarnold45 at suddenlink.net
Fri May 13 06:25:37 CEST 2011


Ross,

I think your suggestion is working. And with Find and Replace, it is not taking too long.

Thanks very much.

David

On May 12, 2011, at 9:14 PM, David Arnold wrote:

> All my figure files have unique names.
> 
> This seems like it may work, although it leaves me with a lot of editing to do.
> 
> In /ElemAlgText/chapter1/chapter1.tex, I'll include a \graphicspath{graphics/}. Then I'll go through each of the \include{section1} files and change each occurrence of \includegraphics{graphics/fig1} to \includegraphics{fig1}.
> 
> Then in /ElemAlgText/main.tex, I'll include a \graphicspath{{chapter1/graphics/}...{chapter8/graphics/}}. Should work?
> 
> D.
> 
> On May 12, 2011, at 8:54 PM, Ross Moore wrote:
> 
>> Hello David and Tamer,
>> 
>> On 13/05/2011, at 1:42 PM, M. Tamer Özsu wrote:
>> 
>>> I think you need to say
>>> 
>>> \includegraphics{chapter1/graphics/fig1}
>> 
>> Better (sometimes) is to declare the graphics path in the preamble:
>> e.g.
>> 
>> \graphicspath{{chapter1/graphics/}{chapter2/graphics/}...{yet another path}}
>> 
>> Each {...} represents a prefix that LaTeX is supposed to prepend
>> to the filename, when searching for an image file.
>> 
>> 
>> 
>> However, if you are using the same file names,  such as  fig1  
>> fig2  fig3 ... , within in each chapter then this will not work.
>> LaTeX will always choose the first valid filename that is found.
>> 
>> As with symbolic labels, it is better to name your images with
>> a name that reflects the content of the image, rather than 
>> the position it occupies within the document.
>> 
>> This makes it much easier to allow reuse of the same graphic within
>> different documents.
>> 
>>> 
>>> ==Tamer
>> 
>> 
>> Hope this helps,
>> 
>> 	Ross
>> 
>> ------------------------------------------------------------------------
>> Ross Moore                                       ross.moore at mq.edu.au 
>> Mathematics Department                           office: E7A-419      
>> Macquarie University                             tel: +61 (0)2 9850 8955
>> Sydney, Australia  2109                          fax: +61 (0)2 9850 8114
>> ------------------------------------------------------------------------
>> 
>> 
>> 
>> ----------- Please Consult the Following Before Posting -----------
>> TeX FAQ: http://www.tex.ac.uk/faq
>> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
>> List Archive: http://tug.org/pipermail/macostex-archives/
>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
>> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>> 
> 
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
> 




More information about the macostex-archives mailing list