TransWikia.com

Image directory not found in texstudio

TeX - LaTeX Asked by InigoM on February 5, 2021

I’m learning how to insert an image in TeXStudio on Mac OS. I tried to drag the image directly to the pdf, which gives the following:

    documentclass[11pt,a4paper]{article}
    usepackage[utf8]{inputenc}
    usepackage[T1]{fontenc}
    usepackage{graphicx}
    author{Yifu Zhang}
    begin{document}

    Here is a photo I wanna share


    begin{figure}
        centering
        includegraphics[width=0.7linewidth]{Users/yifu.zhang/Desktop/Presentation12}
        caption{}
        label{fig:presentation12}
    end{figure}

    end{document}

However, I got error message saying file not found. I thought it was because of the .png problem, so I tried .jpeg and added the .jpeg in the end like this:

   includegraphics[width=0.7linewidth]{Users/yifu.zhang/Desktop/Presentation12.jpeg} 

which still doesn’t work. Can anyone help me out? Thanks!

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP