我一直在尝试在latex中使用/ graphicspath将一些数字添加到文档中,但它似乎无法转到父目录并找到该文件夹。
例如,主.tex文件存储在
Parent/Write UP
和图形
Parent/Graphs
我试图使用的乳胶代码
\graphicspath{{../Graphs/}}
\begin{document}
\includegraphics{anything.png}
\end{document}
当我构建或键入includegraphics时,没有出现任何错误,并且找不到该文件的错误。
当我将图形文件夹放入Write Up文件夹时
Parent/Write UP/Graphs
并将其作为乳胶运行:
\graphicspath{{/Graphs/}}
\begin{document}
\includegraphics{anything.png}
\end{document}
我能看到所有的图形。
我正在使用Sublimetext V 3.11,Build 3176和MikTex
我跟着你做了什么,它对我有用。如果您通过终端进行编译,请检查您是否在正确的文件夹中。如果你想让它工作,你需要从Parent/Write UP
内部编译你的main.tex:
\graphicspath{{../Graphs/}}
\begin{document}
\includegraphics{anything.png}
\end{document}