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.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- 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.