Texmaker and TeXstudio ⇒ Supplying path to local files to TeXstudio
Supplying path to local files to TeXstudio
I am trying to get started with TeXstudio.
I compiled my first file successfully, yet am missing the inclusion of local files and graphics.
In the structure it shows a number of files in red that "do not exist"; they do.
I specified a path to these local files in MiKTeX settings.
Looking at the output it seems to be finding everything somehow except for the graphics which are in the same path.
I read in the user manual under 1.3.2 "Details of the execution environment" about Environment Variables potentially to be used, but do not know what to do.
Please help.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Supplying path to local files to TeXstudio
TeXstudio is an editor that tries to be smart. But as always, when trying to be smart, chances are high you are making a fool of yourself. Telling people that existing files do not exist or that defined commands are undefined is kind of a hobby of those modern smart editors.
Place the figures somewhere in the same directory with your tex-file, or in a subdirectory. If you use a subdirectory, you have to use
\includegraphics[width=.6\textwidth]{subdirname/imagename}
, the width is just an example.Re: Supplying path to local files to TeXstudio
I use quite a few macros that I keep in separate files.
Also, I use graphics which I include in documents over and over again.
This is why I keep them in a separate local path.
Copying the files to be used in the current working directory each time would be cumbersome and contradicting the idea of specifying a path, $TEXINPUTS as it were, and keep the data only once.
It must be possible to do with these sophisticated systems.
Who has explored this using TeXstudio?
Re: Supplying path to local files to TeXstudio
It was a run-time error that could be overcome by using the graphicx instead of the graphics package.
Thank you.