I want to include a picture in my project that I have going in latex right now. This is the location of the file:    And this is how it's included in my project in latex (I've included the packages graphicx and float as well):    But this is the error code that I get and the picture will not show up in my .pdf when I run the code:     I have no clue as to why latex can't find the picture or how to solve this. Anyone got any ideas?
464
I want to import graphics into my main input file using the macro \includegraphics. It does not work if the filename contains spaces.   also discusses this subject, but there is no solution there.  My compilation routine is latex->dvips->ps2pdf (because of PSTricks).
107178
How would I include a figure from python in LaTeX, in order to use the same font in the text and to adjut the size.  If you can include the code that would be great.   Sorry, if my question is a bit simple.  The last two lines   mpl.use("pgf") mpl.rcParams.update(pgf_with_latex)   Are they ment to be in python code?   If so, what package need to be used with?
92860
All I am trying to include a pdf image in my tex file, but when I compiled the tex file, the console pop up the following error msg:     ! LaTeX Error: Cannot determine size of graphic in time_elapsed.pdf (no Boundin       gBox).   This is my code:  \begin{figure} \centering \includegraphics[scale=0.5]{time_elapsed.pdf} \label{fig5} \end{figure}   So how to solve the problem?
94000
This question is pretty simple: I'd like to have the possibility to get the exact size of a picture in LaTeX with, for example, the macro \the.  In fact, I've founded the way \settoheight{} and so on, but it didn't work at all. What I've got doesn't match with what I can see in the image properties (I suppose that's the name in English). The result: 8pt versus 1300 pixels. It's may be a mis-use...  Edit: In the end, my aim was to find a way to fit the picture in LaTeX. If width and height were both less than the dimensions of the body, then it should just be centred. It look like this :     Require:   \usepackage{graphicx} \usepackage{xifthen} \usepackage{calc}   Code (pretty ugly, I agree):   % Centrering+fitting for image, with captation and label (not auto) \newlength\imageheight \newlength\imagewidth \newcommand{\pic}[3]{% \settoheight\imageheight{\includegraphics{pictures/#1.png}}% \settowidth\imagewidth{\includegraphics{pictures/#1.png}}% \ifthenelse{\lengthtest{\imagewidth &gt; \textwidth}}{\ifthenelse{\lengthtest{\imageheight &gt; \imagewidth}}{\par\vspace{0.95em}% \begin{figure}     \centering\includegraphics[height=0.85\textheight]{pictures/#1.png}     \caption{#2}     \label{#3} \end{figure}% \par\vspace{0.95em}}{\par\vspace{0.95em}% \begin{figure}     \centering\includegraphics[width=0.95\textwidth]{pictures/#1.png}     \caption{#2}     \label{#3} \end{figure}% \par\vspace{0.95em}}}{\ifthenelse{\lengthtest{\imageheight &gt; \textheight}}{\par\vspace{0.95em}% \begin{figure}     \centering\includegraphics[height=0.85\textheight]{pictures/#1.png}     \caption{#2}     \label{#3} \end{figure}% \par\vspace{0.95em}}{\par\vspace{0.95em}% \begin{figure}     \centering\includegraphics{pictures/#1.png}     \caption{#2}     \label{#3} \end{figure}% \par\vspace{0.95em}}}} %   To use it : put your png files in a "pictures" directory, then, just simply call the picture like this : \pic{name_whitout_extension}{Captation_if_needed}{Label_if_needed}.    Edit 2 :   Thanks to Martin Scharrer's easyfig package, I've got a more or less 1,6 times faster solution to put my pictures, centred, with the perfect size.  CTAN:   VC:   Version v1.2 – 2012/05/15    This could be useful for some others, I hope.
19746
Can I tell graphicx somehow which graphic format to choose when I omit the file extension in includegraphics and both a PDF and a PNG version of the same image exist? The reason is that I have some very large PDF vector graphics (in terms of file size/drawing primitives) that take a pretty long time to load each time I view the document. I would like to convert them to PNGs while working on the document and only use the PDF versions in the final document. Therefore, a global option that I can switch in the end would be great.  An additional plus would be to do the conversion to PNG on the fly during the LaTeX run if there is a PDF that has not been converted to PNG yet, if a tool for that exists. (I know how to use convert, but not how to include it automatically in LaTeX.)
43779
I am trying to include a figure into LaTeX from a paper originally created using MS Word. I have already converted all the text/equations into LaTeX but I can't figure out how to get the figures over without re-drawing them using LaTeX code (which I do not want to do). The image is a plain box (like a tabular) one row by 7 columns with numbers inside each cell. Then I inserted arrows of varying length above and below the box (several short ones and one much longer).    I am trying to use the  package with the \includegraphics command.   I copied the figure (box and arrows) from my original article into a blank Word doc. The figure only takes up the first 4 or 5 lines of the blank document. I then selected/highlighted the image and printed the selection using 'PDFCreator'. This allowed me to save the image as a .eps file. I then copied and pasted the eps file into the folder where all my .tex files are saved.  When I compile the document using pdftexify there is a blank space where the image should be. In the console I get the following message when I compile the document:  [27] &lt;Fig3-eps-converted-to.pdf, id =105, 391.4625pt x 74.2774pt&gt; &lt;use Fig3-eps-converted-to.pdf&gt; Overfull \hbox 1.46153pt too wide) in paragraph at lines 511--516 []   My code looks like this:  \documentclass[12pt]{article}  \usepackage{graphicx} \usepackage{epstopdf} \begin{document}  %Text  \includegraphics{fig3.eps}  %text  \end{document}   I have read the sections on graphics in 'LaTeX: A Document Preparation System' and 'The Not So Short Introduction to LaTeX2e' but I still can't figure this out. Should I maybe use a PNG image since it is a pretty basic figure? Any advice on how to properly transfer images from a word doc to .eps format and/or how to get those .eps files into LaTeX properly would be a huge help.
42000
Do you think it's possible to include images into LaTeX without specifying the exact path to them. So instead of:  \includegraphics{path/to/image/myfig.pdf}   It would be:  \includegraphics{myfig.pdf}   While the image would still reside in the path/to/image/ directory. Basically, I'm asking if there is a macro that can recursively search for the image.  An alternative for me is to write a script outside of LaTeX that determines all the images that are included, performs the recursive search and copies those files temporarily in the same directory as the .tex file.
100925
I am writing an IEEEtran article. I use graphicx for inserting .pdf images. Normally, LaTeX selects a position like A. I want LaTeX automatically find and insert the image to a position like B. How can I do that? This is my code:  \usepackage{graphicx} \begin{document} \begin{figure}   \centering   % Requires \usepackage{graphicx}   \includegraphics{Figures/Fig1.pdf}\\   \caption{hi}\label{hi} \end{figure} \end{document}
117230
I am using Ubuntu Software Center. I found the package, click Install and it says that the package is installed. BUT when I tried to compile my .tex file it says      LaTeX Error: File `fullpage.sty' not found.   When I typed in the terminal locate fullpage.sty nothing appears. When I typed  apt-get install fullpage, it gives the following error:      E: Unable to locate package fullpage   I already did mktexlsr  What should I do in this case?
27189
Now I am using subfile to compile document independent, I want to insert a picture in the sub document like this: \documentclass[../../../dolphin-book-2020.tex]{subfiles}  \begin{document}  \subsection{GitHub Slow}  balabalabala.......   \begin{figure}[htbp]     \centering     \includegraphics[scale=0.2]{githubspeedup}     \caption{GitHub Speed Up}     \label{fig:githubspeedup} \end{figure}   \end{document}  when I compile using this command in macOS Catalina 10.15 :  /Library/TeX/texbin/latexmk -pdfxe -pvc -xelatex -interaction=nonstopmode ./github-slow.tex  show this error: (/usr/local/texlive/2020/texmf-dist/tex/latex/listings/lstlang1.sty) (/usr/local/texlive/2020/texmf-dist/tex/latex/listings/lstlang1.sty)  Package fontspec Warning: Font &quot;FandolFang-Regular&quot; does not contain requested (fontspec)                Script &quot;CJK&quot;.   ! LaTeX Error: File `githubspeedup' not found.  See the LaTeX manual or LaTeX Companion for explanation. Type  H &lt;return&gt;  for immediate help.  ...  l.31 ^^I\includegraphics[scale=0.2]{githubspeedup}  [1] (./github-slow.aux)  LaTeX Font Warning: Some font shapes were not available, defaults substituted.   LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.   ) (see the transcript file for additional information) Output written on github-slow.xdv (1 page, 28900 bytes). Transcript written on github-slow.log. === TeX engine is 'XeTeX' Latexmk: Index file 'github-slow.idx' was written Latexmk: Missing input file: 'githubspeedup' from line   '! LaTeX Error: File `githubspeedup' not found.' Latexmk: References changed. Latexmk: Log file says output to 'github-slow.xdv' Latexmk: Errors, so I did not complete making targets Latexmk: Failure to make the files correctly     ==&gt; You will need to change a source file before I do another run &lt;== Collected error summary (may duplicate other messages):   xelatex: Command for 'xelatex' gave return code 1       Refer to 'github-slow.log' for details  === Watching for updated files. Use ctrl/C to stop ... ^CLatexmk: User typed ctrl/C or ctrl/break.  I'll finish. Collected error summary (may duplicate other messages):   xelatex: Command for 'xelatex' gave return code 1       Refer to 'github-slow.log' for details Latexmk: Use the -f option to force complete processing,  unless error was exceeding maximum runs, or warnings treated as errors.  what should I do to make it work? I have already added picture path in the main file dolphin-book-2020.tex like this(all the picture store in the folder and no picture store in sub folder): \graphicspath{{./Pictures/}}  and this is the file structure:  I have tried define picture path in dolphin-book-2020.tex like this: \graphicspath{{../../../Pictures/}{../../Pictures/}{../Pictures/}{./Pictures/}}   this is the folder nested structure:  I also tried to write all possible path of picture: \graphicspath{     {Pictures/}     {../../../Pictures/}     {../../Pictures/}     {image/}     {/Users/dolphin/Documents/GitHub/dolphin-book-2020/Pictures} }  still could not found file.
24550
\documentclass[a4paper,10pt,twoside]{book} \usepackage[demo]{graphicx}  \begin{document}  \newcommand{\scalefactor}{scale = 0.25}  \begin{figure}[!ht]   \centering   %Next line does not work   \includegraphics[\scalefactor]{image}   % The following line works   %\includegraphics[scale = 0.25]{image} \end{figure}  \end{document}   Output:  ! Package keyval Error: scale = 0.25 undefined.   I need to scale a number of images by the same factor, hence the command.   How to solve this and more importantly Why is this only specific to \includegraphics
69695
Several times now I have inadvertently lost the .tex file that generated a PDF file with pdflatex. Given what I know of the internal structure of PDF files, it should be possible to embed a text file containing the original LaTeX file into the PDF file so that it can be extracted later.   I am aware of no technology for doing this, but perhaps you are. Does anybody have something like this?
41146
I used the OzTeX implementation of TeX, also I used to typeset my docs in plain TeX, not LaTeX for me, so I had no problem to insert an image using the OzTeX, now I'm back to TeX docs, am using the TeXWorks frontend, but I can't insert an .eps image file, it seems the \includegraphics macro its only for LaTeX, so I can't use it, any idea on how to insert an image when using plain TeX?
19049
I was recently in charge of organizing all of the references and labels in a very large scientific proposal document.  My workflow typically involved compiling the document, seeing a "There were undefined references." statement, and then searching the resultant PDF file for the usual "?" or "??."  Sometimes those missing references were in regard to labels for figures that were used throughout the text and not something in our bibliography.  It got me wondering:   Is it possible to have a "dummy" or "default" figure to use in \includegraphics statements if the requested file is missing?  Perhaps a use case would be if in the LaTeX document there were a command such as \includegraphics{scaling.pdf}, but scaling.pdf doesn't exist in the current directory, so we use the existing dummy.pdf automatically.  I assume this involves renewcommand'ing the includegraphics command, but how should one go about doing  it for this scenario?
1190
I have a little problem with the placement of my picture. I want to insert it at the end of the introduction chapter but its place is not where I want.   I think the problem become from the:  \begin{figure} ... \end{figure}   Because when I insert the picture without using \begin{figure}... the picture is at the end of the chapter as I want.   Look the picture below.
22558
I'm trying to use the svg package for inserting svg images in my latex file, as suggested in other questions. But now I ran into a problem:  For example I have a image figure1.svg, if I write  \includesvg{figure1}   it will give an error says  ERROR: LaTeX Error: File `figure1.pdf_tex' not found.   But if I write  \includesvg{figure1.svg}   it will give another error says  ERROR: LaTeX Error: Unknown graphics extension: .svg.   How can I fix this problem? I'll prefer not having to convert all my svg files to pdf_tex files with some external program.    Update  My LaTeX environment is latest the TeXLive 2013 on Windows 7. A MWE code would be  \documentclass{article} \usepackage{svg}  \begin{document}  \begin{figure}[htbp]   \centering   \includesvg{figure1.svg}   \caption{svg image} \end{figure}  \end{document}
71594
I need to install a LaTeX package on my MikTeX system.  Specifically, I am trying to make biblatex work, but I always get the error message:    ! LaTeX Error: File `biblatex.sty' not found.   I have changed the options to have the "Quick Build" command that includes biblatex too.   Code/commands are correct because it's working under Overleaf.