
나는 최근 TeXstudio에서 다음과 같은 지시문을 발견했습니다 %!TEX root = ../main.tex
. 이 개념은 환상적입니다.
사진을 업로드할 폴더를 알려주는 지시문을 찾으려고 했습니다. 내 말은, 다음과 같이 말할 수 있는 지시문이 있습니까 %!TEX picture folder = ../../picture
?
답변1
graphicx
어쨌든 로드해야 하는 패키지 \graphicspath
는 \graphicspath{{../../picture}{folder2}}
. LaTeX는 이 폴더에서 이미지를 검색합니다.
\documentclass{article}
\usepackage{graphicx}
\graphicspath{{./img/}{./pictures/}}
\begin{document}
\includegraphics{one} %picture named one in directory img
\includegraphics{two} %picture named two in directory img
\includegraphics{three} %picture named three in directory pictures
\end{document}
이 명령의 장점은 cfr 덕분에 모든 편집기(texstudio뿐만 아니라)에서 작동한다는 것입니다. ( 명령 프롬프트에서) graphicspath
계속 읽을 수 있습니다 .grfguide
textdoc grfguide
따라서 texstudio와 같은 명령이 필요하지 %!TEX picture folder=...
않으며 내가 아는 한 아무 것도 없습니다.