0

Can LaTeX include graphics/images in pdf if I write the path from external USB drive? I notice that it includes images if I write path from the SSD directory but not from my external USB drive. I use the following packages:

\documentclass{article}
\usepackage[margin=3cm,left=3cm]{geometry}
\usepackage{float}
\usepackage{subcaption}
\usepackage{graphicx}
\begin{document}

I use TexShop 3.61 on a MacBook Pro Retina OS X El Capitan 10.11.3 I searched the net but could not find an answer so far. My brain is getting tired. Thanks for any help you can provide Luís enter image description here

  • While this is a bit difficult to diagnose from afar I would guess this has nothing to do whether the files are on the USB drive or the SSD. LaTeX might have difficulties though with the special characters and spaces in the path to the files. These differ in your example between the two figure files. – Alexander May 3 '16 at 11:16
  • It is unlikely to be related to the disk type. I note that the typeset file path in your top image has dropped the accented u and shows Sade so most likely tex isn't understanding the character encoding used in filenames – David Carlisle May 3 '16 at 11:16
  • Hi, this funny thing happened, I got the answer to my question just by reviewing the image I included in my question!!!! I found out what was the problem: the acute accent in the path (Saúde). I changed the folder to “Saude” and voilá, problem solved. I thought I was going to have a brain drain after several hours searching for the solution to this problem. Thanks. – Luís Jervell May 3 '16 at 11:23
  • @DavidCarlisle didn't the quotation marks indicate that special characters are used in the file name? or are only spaces caught in the process? – naphaneal May 3 '16 at 11:27
  • @naphaneal only spaces (and anyway it's not enough to know the characters are not ascii you need to know how they are encoded, not all filesystems use utf8, I have no idea what a mac formatted usb stick uses:-) – David Carlisle May 3 '16 at 12:12
1

It is unlikely to be related to the disk type. I note that the typeset file path in your top image has dropped the accented u and shows Sade so most likely tex isn't understanding the character encoding used in filenames.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.