0

Hi I need to import a file.tex (I cannot move it from this folder) file from a different folder of the main file.

is it possible? how i should do?

  • 3
    \input{relative/path/to/the/other/folder/file.tex} – Ulrike Fischer Nov 4 '17 at 15:34
  • Welcome to TeX.SX! – Bobyandbob Nov 4 '17 at 15:37
  • It doesn't work! I'm using \input{C:/Users/Myname/Desktop/TESA_economics/SES/pluto.tex} The error is: !Missing $ inserted. <inserted tex> $ \input{C:/Users/Myname/Desktop/TESA_economics/SES/pluto.tex} Have you some idea? – Marc Nov 4 '17 at 15:40
  • Your problem is the space in your user name and also try to avoid special characters such as _ in your file or folder names. Try with a relative path. For example if your main file is in the folder TESA_economics: \input{./SES/pluto.tex} – user36296 Nov 4 '17 at 15:44
  • @samcarter underscores in file names are not special and not a problem. – Ulrike Fischer Nov 4 '17 at 15:52

Your Answer

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

Browse other questions tagged or ask your own question.