For any business correspondence, I use a graphic, aglogo.jpg. As long as I'm in the directory where it resides, of course latex always finds it. But, if I'm working in a different directory it's not found. Is there a way to make latex find aglogo.jpg no matter what directory I'm in?

  • 3
    Put it in your texmflocal or some other texmf tree used by your system. – Ulrike Fischer Jan 2 '19 at 18:17
  • This is similar in nature to placement of your own .sty or .cls, even though it's an image. As such, it's a duplicate of Where do I place my own .sty or .cls files, to make them available to all my .tex files? – Werner Jan 2 '19 at 18:21
  • 2
    put into your document's preamble \graphicspath{{/my/path/of/the/image}} – user2478 Jan 2 '19 at 18:27
  • I added the line in the preamble: \graphicspath{{/home/johnfg/church/aglogo.jpg}} but still got this error from pdflatex: – John Godfrey Jan 2 '19 at 18:51
  • LaTeX Warning: File `aglogo.jpg' not found on input line 136. – John Godfrey Jan 2 '19 at 18:51

Browse other questions tagged or ask your own question.