I am writing a mathematical paper, and in it I need to include certain images relevant to the topic. However, when I try to do so, I receive an error code, and nothing I have found on the subject is giving me any insight on how to relieve this error. I have the following;  \usepackage{graphicx} \graphicspath{ {C:/Texpics} }   \begin{document} \includegraphics{img.png}   And I receive;  ! LaTeX Error: File `img.png' not found.   Any advice would be appreciated. Working in both TeXworks and Texmaker gives the same result.
123654
I am trying to include a graph in a tex document. I do realize that there have already been several questions asked about this topic, but I think by now I have tried all suggested solutions but none seem to work. This is the minimal example:  \documentclass[12pt]{report} \usepackage{graphicx} \graphicspath{{C:/Users/felix/Desktop/Bachelorarbeit/TeX/BA_text2/images}} \usepackage[a4paper]{geometry}  \begin{document} \begin{figure} \includegraphics[scale=1]{gap_v3_v4_AT.png} \end{figure} \end{document}   Information about my setup:  I am using Texmaker and MiKTeX 2.9.   Things I have tried:   Absolute and relative paths,  not initialising a figure environment, including the directory where the graph is in the MiKTeX Options-> root directory (was suggested in one of the answers to a similar question)   There is definetly a .png file with the same exact name in the folder set by \graphicspath.   I would be really grateful for any ideas!
57451
I'm trying to a large number of figures. The code is  \begin{figure} \includegraphics[scale=0.5]{m2T4.pdf} \caption{M2T, Problem Size 513} \end{figure}   I'm not able to compile, I get the error  ! LaTeX Error: Too many unprocessed floats. See the LaTeX manual or LaTeX Companion for explanation. Type H &lt;return&gt; for immediate help. ... l.113 \includegraphics [scale=0.5]{m2T4.pdf} You've lost some text. Try typing &lt;return&gt; to proceed. If that doesn't work, type X &lt;return&gt; to quit. ! Undefined control sequence. \@float@Hx ...ltovf \fi \global \setbox \@currbox \color@vbox \normalcolor \... l.113 \includegraphics [scale=0.5]{m2T4.pdf} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! Missing number, treated as zero. &lt;to be read again&gt; \vbox l.113 \includegraphics [scale=0.5]{m2T4.pdf} A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) pdfTeX warning: pdflatex (file ./m2T4.pdf): PDF inclusion: found PDF version &lt;1 .5&gt;, but at most version &lt;1.4&gt; allowed &lt;m2T4.pdf, id=1121, 538.28104pt x 212.1526pt&gt; File: m2T4.pdf Graphic file (type pdf) &lt;use m2T4.pdf&gt;
115596
This code:  \documentclass[11pt,openright]{book} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage[british]{babel}  \usepackage{tikz} \usetikzlibrary{external} \tikzexternalize[prefix={"C:/Users/MyName MySurname/Documents/LaTeX/Figures/"}]  %\tikzexternalize[prefix={Figures/}]   \begin{document} \begin{tikzpicture}     \draw (0,0) circle (1cm); \end{tikzpicture} \end{document}   gives me the error:     ! I can't write on file `"C:/Users/MyName   MySurname/Documents/LaTeX/Figures/MyMWE-figure0.md5"'.   I'm working with Windows 10, MiKTeX 2.9 distibution.  Following the advice Tarass gave me on a comment of this question:  and as indicated here:  I've registered a user-managed TEXMF directory but I still get the same error.  With \tikzexternalize[prefix={Figures/}] all works perfectly but, since I'm using LyX, the files are stored in a LyX temp dir, hence I loose them when I close the program (making externalization useless), so I need to use an absolute path.
103741
I have inserted an image in my LaTeX document and the image always displays with the file path of the image directly above it.  How can I prevent this file path from displaying?  I am inserting the image like this:  \begin{figure} \centering     \includegraphics{C:/Users/Name/Pictures/image1.png} \caption{a caption} \label{fig:reference} \end{figure}   Here is a working example of document that produces this behaviour:  \documentclass{article}  \usepackage{graphicx} \begin{document} \begin{figure} \includegraphics{C:/Users/Name/Pictures/image 1.png}  \end{figure}  \end{document}   The image was inserted using the TeXnicCenter Insert>Picture function.  When I generate the pdf document, directly above any image (I have inserted multiple images using this technique) the file path displays above the image, in the case above it would show: "file\path\of\image", how can I prevent this from displaying?
2706
I'm generating a PDF document with pdflatex (more precisely, latexmk invoked from TexMaker 3.4. My LaTeX install is TeXLive 20120719). I can read the document fine in Okular and Gmail's attachment preview, but a colleague that runs Acrobat Reader on Windows reports: "There was a problem reading this document (131)".  EDIT: The error disappears when using \usepackage[demo]{graphicx}, which puts black boxes instead of the real images. They are all PDFs, PNGs and JPGs. Instead of using demo, I added the code for a \demoincludegraphics command, which makes the file work in Reader when using it to replace the logo in the headers, as shown below. But enabling it (using \includegraphics instead of \demoincludegraphics) and removing everything else also works in Reader! There is some strange global interaction that makes the file appear broken to Reader when enabling all the graphics...  My code compiles fine, reason why I only attach the preamble and a simple text for a Minimal Working Example:  \documentclass[12pt,lettersize,twoside]{article}  \usepackage[utf8]{inputenc} \usepackage[spanish,es-tabla]{babel}   \usepackage[fixlanguage]{babelbib} \usepackage{amssymb,amsmath} \usepackage{graphicx}    \usepackage{array}    \usepackage{caption} \usepackage{subfig} \usepackage{rotating} \usepackage{booktabs} \usepackage{multirow} \usepackage{calc} \usepackage{stfloats} \usepackage{fixltx2e} \usepackage{url} \usepackage[colorlinks=true,linkcolor=blue,citecolor=red]{hyperref} \usepackage[all]{hypcap}  % Margins \usepackage[top=2cm, bottom=2cm, left=3cm, right=2cm]{geometry}  % Make header show up in the first page \makeatletter \renewcommand\maketitle{\par \begingroup     \renewcommand\thefootnote{\@fnsymbol\c@footnote}%     \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%     \long\def\@makefntext##1{\parindent 1em\noindent             \hb@xt@1.8em{%                 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%     \if@twocolumn     \ifnum \col@number=\@ne         \@maketitle     \else         \twocolumn[\@maketitle]%     \fi     \else     \newpage     \global\@topnum\z@   % Prevents figures from going at top of page.     \@maketitle     \fi     \thispagestyle{fancy}\@thanks % was {empty} \endgroup \setcounter{footnote}{0}% \global\let\thanks\relax \global\let\maketitle\relax \global\let\@maketitle\relax \global\let\@thanks\@empty \global\let\@author\@empty \global\let\@date\@empty \global\let\@title\@empty \global\let\title\relax \global\let\author\relax \global\let\date\relax \global\let\and\relax } \makeatother  % Remove date field in title; Remove preceding vertical space \makeatletter \renewcommand{\@maketitle}{ \vspace{-3cm} \begin{center}% {\LARGE \@title}\\ \vspace{2mm}% {\@author} \end{center}% \par} \makeatother \makeatletter  % Demo includegraphic boxes \newcommand{\demoincludegraphics}[2][]{%   \setlength{\fboxsep}{-\fboxrule}% Remove frame separator/gap   \framebox{\rule{0pt}{100pt}\rule{150pt}{0pt}}% Framed box of 150pt x 100pt }  % Headers Config  \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead{} \renewcommand{\headrulewidth}{0.4pt} \setlength{\headheight}{2.2cm}  \addtolength{\textheight}{-1.62cm} \fancyhead[LO,RE]{\demoincludegraphics[height=1.6cm]{logo-slogan}} \fancyhead[LE,RO]{}  % Footers Config \fancyfoot{} \renewcommand{\footrulewidth}{0pt} \fancyfoot[C]{\thepage}  % Notas al pie etiquetadas por simbolos   \renewcommand{\thefootnote}{\fnsymbol{footnote}}  \title{Doc Title} \author{My name}  \begin{document}  \maketitle  This is a test. It includes graphics and other floats.   \end{document}   EDIT: I found a workaround: Processing the generated pdf file through Ghostscript, as follows:   gs -dSAFER -dBATCH -dNOPAUSE  -sDEVICE=pdfwrite -sOutputFile=output.pdf input.pdf   where input.pdf is the file generated by pdfLaTeX, and output.pdf the one that will be readable by Adobe Reader and the rest of the PDF readers.
63350
I need to submit the final version of my paper to a conference but they request a .zip file that including .ps and .dvi file of my .tex document. Since my whole project is on Overleaf, I want to know how can I accomplish it?   Here, what I have done so far:   First I learned that I have to change compiler from pdflatex to latex... Done! Then when I compile, it returned errors that request natural size of figures. And I used the answer given here:     Now it doesn't yell out me, compiles with no error, however still can't see the figures in the output. I don't even know if it is normal or not. Also, can't download a .div file, still gives .pdf file to me.  About .ps file, I haven't there yet, didn't try. But if you know what to do, please inform me. Thanks in advance.
22173
I know how to add a picture to my LaTeX file, e.g. \includegraphics[width=7cm]{curve.pdf}. What I'd now like to do is place some latex symbols onto the picture. Like a \gamma to name a curve. I do not want to do that in the graphics editing program e.g. because I might want to rename that curve later and don't want to repeat the editing process.  I know I can do a \put in a picture environment. But this environment forces me to specify its size at the beginning. That would be cumbersome since I'd have to go open the graphics file and do some calculations. Is there a way to get the dimensions (or aspect ratio) of a graphics file within LaTeX, so I might use it there? But even if I could do these calculations automatically, I still wouldn't like the redundancy of specifying the width for \includegraphics again, but I could live with that.  Also, is it possible to specify the size in cm to the picture environment? I just tried and got some errors.  So basically what I am looking for is a solution as simple as possible which:  a) lets me specify a width or a height and a file, and displays the image scaled while keeping its aspect ratio and then   b) lets me put LaTeX stuff inside the image in relative coordinates (percentages or 0...1), so I won't have to redo anything should I decide that the image needs to be a bit larger or smaller.  (b is kind of like setting \unitlength to the whole width=height for the 'picture' environment. But of course most images are not square and I also don't appreciate the redundancy (but could live with it).)
108293
I'm beginner in Latex, and need help, How can I, select all images on folder? I trying using the popular /*.jpg, but do not function  \documentclass{article} \usepackage{graphicx}  \begin{document}  \begin{figure} \includegraphics[width=0.5\textwidth]{C:/Users/myuser/Pictures/Images/*.jpg} \end{figure}  \end{document}
43206
Firstly and fore-mostly I am a complete new comer to the world of LaTeX and so please do bear with me. I will try to be as accurate as I can but if you need any more info please let me know.  All I want is to figure out how to import a graphic into LaTeX (MacTeX).  I am using the following in my code:  \documentclass[10pt,a4paper,draft]{report} \usepackage{graphicx}   Then in my document section I'm using   \begin{figure} \includegraphics[width = 50mm]{Name.jpg} \caption{Label} \end{figure}   Once I compile the document, the area for the picture has been allocated but there is no image, I have tried .png and .pdf files also.  I know that this is a very simple question and I hope there is a simple solution but I cannot find anything on the net about this (which may mean I'm being dim).  Also I'm using Latexian but I have tried 4 different editors and it doesn't work in any.
26770
I have a problem with this file tex:  \begin{document} \begin{figure} \begin{center} \begin{pspicture}(0,0)(1,3.8) \psline{-&lt;}(0,0)(0,.2) \psline{-}(0,.2)(0,.4) \psline{*-&gt;}(0,.4)(0,.9) \psline{-*}(0,.9)(0,1.4) \psline{-&lt;}(0,1.4)(0,2.4) \psline{-}(0,2.4)(0,3.4) \psline{*-}(0,3.4)(0,3.6) \psline{&gt;-}(0,3.6)(0,3.8) \rput(1,.4){$y=0$}%testo \rput(1,1.4){$y=1$} \rput(1,3.4){$y=3$} \end{pspicture} \end{center} \caption{} \end{figure} \end{document}   but I don't understand where is the error.
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.
87102
I'm working on a mathematics magazine that involves multiple articles from different authors. I would like to give each article a sub-directory in which I can store all the relevant files - .tex, image files, etc. However, when I then \include the article .tex file from the master file, the images won't be linked correctly without editing.  For example, suppose the article is stored in articles/article1/ and includes an image matrix.png. In the article .tex file this would be inserted, normally, through \includegraphics{matrix.png}. However, when we move to including the article in the magazine through the master file, all these instances would have to be changed to \includegraphics{articles/article1/matrix.png}  So, is it possible to change the LaTeX working directory before including the article such that instances of \includegraphics will not have to be changed, but rather that LaTeX will know to search for these files in the article directory? I'm thinking that this would be similar-ish in functionality to HTML's base href command for links.  Or, is there a better way to achieve all this?
93878
I have hundreds of figures with filenames containing "#" to include using \includegraphics, I've tried packages like grffile or currfile, but none of them work. Can anyone suggest a real solution so that I don't need to change hundreds of file names? Thanks.  Update: 1. I'm using Windows. 2. When I compile it, it shows "Illegal parameter number in definition"
2517
I'm trying to include graphics in my Latex-file, which I compiled with latex+dvipdf on OS X. Latex however returns this error: "Cannot determine size of graphic"  My graphic is exported from PowerPoint, so I have tried both .pdf and .png. I get the same errors for both.  Sample code that doesn't work:  \begin{figure}[htb] \begin{center} \leavevmode \includegraphics[width=0.8\textwidth]{graph.png} \end{center} \end{figure}   If I have to manually set some measurements of the image, please tell me how I can find out those measurements. I need the image to take up about 80% of text width and be centered. Thanks.
52197
How to make an example image in LaTeX, a dummy image, a spot holder? I have seen it before, but I can't remember how they would made. It would be nice to be able to use example images - if you should help anyone or you need to question in this community. You might say I could , but I tried - and are obviously too stupid to find anything.  \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[ngerman, danish]{babel} \usepackage[T1]{fontenc} %\usepackage[]{}  \begin{document}  \iffalse \begin{figure} \includegraphics[scale=1]{•}  \end{figure} \fi  \end{document}   Is it also possible to resize the example image? So I need a usepackage to make an image without including an immage. An placeholder so anyone can try my code without needing images - just needing my tex-code. I hope you understand?  Kind regards!
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.
1868
I want to place 2 images side by side in LaTeX. I have 2 .png files and I don't understand how to do it in LaTeX. I have tried many ways but could not get a good result.