Graphics, Figures & Tables ⇒ Importing graphics
-
- Posts: 6
- Joined: Thu Mar 19, 2009 8:01 pm
Importing graphics
Hello,
I am using Texnic Center v 7.5 and MikTex 2.7. After reading numerous posts regarding how to import pictures, I still cannot do it.
My latex file is located in: C:\Documents and Settings\jbrajkovic\My Documents\USB\PhD\Research. The pictures I want to import are located in reversal places on the C and D drive. How do I tell the program to look in those folder? BTW, moving the pictures to a different folder is not an option.
Many thanks,
Jurica Brajkovic
University of Southampton
I am using Texnic Center v 7.5 and MikTex 2.7. After reading numerous posts regarding how to import pictures, I still cannot do it.
My latex file is located in: C:\Documents and Settings\jbrajkovic\My Documents\USB\PhD\Research. The pictures I want to import are located in reversal places on the C and D drive. How do I tell the program to look in those folder? BTW, moving the pictures to a different folder is not an option.
Many thanks,
Jurica Brajkovic
University of Southampton
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
Re: Importing graphics
Having graphics on different drives, especially if they are in folders with spaces in the names, is not a way to get on quickly with LaTeX. Can't you copy the graphic files?
Joseph Wright
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Importing graphics
Actually you don't really describe what exactly the problem is. You only say where your graphics and your source files are located. There is always the possibility to give the complete path for graphics inclusion, with the restrictions that Joseph already mentioned.
Best regards and welcome to the board
Thorsten¹
Best regards and welcome to the board
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 6
- Joined: Thu Mar 19, 2009 8:01 pm
Re: Importing graphics
I use files I want to use in Latex in other documents so moving them would require a great deal of work in terms of re-specifying the paths for other programs. But if there is no other way to do it, I will have to make copies of the figures I need.
As I have tried various approaches, I have been getting different results. Generally, the message I get is that Latex cannot find the figure I want to insert. I was wondering if someone could specify the command I should use if I want to tell latex to look for pictures in the following folder:
C:\Documents and Settings\jbrajkovic\My Documents\USB\PhD\Research
thanks,
jurica
As I have tried various approaches, I have been getting different results. Generally, the message I get is that Latex cannot find the figure I want to insert. I was wondering if someone could specify the command I should use if I want to tell latex to look for pictures in the following folder:
C:\Documents and Settings\jbrajkovic\My Documents\USB\PhD\Research
thanks,
jurica
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Importing graphics
Note that not every file format is accepted by every compiler. Tell us which compiler (latex or pdflatex) you run on your document and which format your graphics files have (EPS, JPG, PDF or PNG). Use the search function of the forum and search for graphics formats to find out how to include them. Be aware of the fact that special characters (blank spaces, underscores) in both the name and the path of a file are not allowed (as stated earlier). Put the graphics files that belong to a project into a subdirectory of this project.jbrajkovic wrote:[...] As I have tried various approaches, I have been getting different results. Generally, the message I get is that Latex cannot find the figure I want to insert. [...]
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 6
- Joined: Thu Mar 19, 2009 8:01 pm
Re: Importing graphics
i use pdf of jpg format- i am converting it into a pdf document. as for the compiler, I really don't know which on it is - i guess a default Texnic Center one. Where do I look to determine the compiler?
But to see if it was blank spaces in the folder names, I created a path that did not have any spaces in folder names. But still did not work.
But to see if it was blank spaces in the folder names, I created a path that did not have any spaces in folder names. But still did not work.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Importing graphics
It looks like you are using the "LaTeX => PDF" build profile from TXC and you want to include images in JPG format. Hence your are compiling with pdflatex. To see clearly what's going wrong, please prepare a minimal working example (MWE), post its code here (using the code environment) and attach the according log file. This file will give a clue to the solution.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10