문제

I have some class files in latex with a company logo on the titlepage. I have now stored all templates for this company in one folder and added this path to MiKTeX . I have placed the logo in a child folder of the templates named "graphics". In the class files I then import the logo with \includegraphics{./graphics/logo}. This gives a file not found error.

Is there a way to have the logo at one place? Or do I need to copy the logo to the same place as I have the document?

도움이 되었습니까?

해결책

  1. Make sure your templates follow the required texmf structure. I put figures inside the tex/latex/... folder. I'm not sure if they have to go there, but they are always found if I put them there.

  2. There is no need to give the path. Just use \includegraphics{logo}. If logo is not in the local directory, MikTeX will search the path to find it (and will automatically look in sub-directories).

  3. Also, make sure you have refreshed the filename database after you added the logo file.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top