I tries to run my latex as a project, with each section using a different text file. But I seem unable to let import command do what I want it to do.

Here is the MWE: mainfile




directory structure:

mainfileenter image description here


! LaTeX Error: File `test.aux' not found.

Type X to quit or to proceed, or enter new name. (Default extension: aux)

Enter file name:

  • personally I wouldn't use import it complicates the processing for only cosmetic benefit but if you do use it /section would refer to a directory at the root of the filesystem which probably is not what you mean here Oct 18, 2021 at 7:08
  • You probably want ./section, if your main file is in the folder above "section" folder, and your testest.tex file is in the "section" folder.
    – Cicada
    Oct 18, 2021 at 7:25
  • @cicada thank you. You are correct, I need to add the dot before the section. Thank you so much.
    – jxhyc
    Oct 18, 2021 at 7:43
  • @DavidCarlisle what would you do. If it is not too much to ask
    – jxhyc
    Oct 18, 2021 at 7:47
  • or just {section} I would use the standard latex \input not \import Oct 18, 2021 at 7:52


You must log in to answer this question.

Browse other questions tagged .