Texmaker and TeXstudioSupplying path to local files to TeXstudio

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
Post Reply
mb2
Posts: 12
Joined: Sat Jun 04, 2016 2:20 pm

Supplying path to local files to TeXstudio

Post by mb2 »

Hi -
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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Supplying path to local files to TeXstudio

Post by Johannes_B »

I think you are writing a report (or letter) or something, so the graphics need to be used just once. MikTeX doesn't need to know anything abbout the figures, LaTeX needs to find them.

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.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
mb2
Posts: 12
Joined: Sat Jun 04, 2016 2:20 pm

Re: Supplying path to local files to TeXstudio

Post by mb2 »

Allow me to explain:
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?
mb2
Posts: 12
Joined: Sat Jun 04, 2016 2:20 pm

Re: Supplying path to local files to TeXstudio

Post by mb2 »

The problem is solved.
It was a run-time error that could be overcome by using the graphicx instead of the graphics package.
Thank you.
Post Reply