I defined the acronyms in a separate file as acronyms.tex.
My file structure is as follows (ch2.tex is one folder in of main.tex):
Main Folder
- Ch.2 Folder
-- ch2.tex
- main.tex
I have a main file main.tex and a subfile ch2.tex:
in main.tex:
Code: Select all
\usepackage[acronym]{glossaries}
\usepackage{subfiles}
\makeglossaries
\loadglsentries[acronyms]{acronyms.tex}
Code: Select all
\documentclass[../main.tex]{subfiles}
../main.tex:20: LaTeX Error: File `acronyms.tex' not found. [\loadglsentries[acronyms]{acronyms.tex}]
But it was clearly found when I build main.tex?
I tried to add
Code: Select all
\loadglsentries[acronyms]{../acronyms.tex}
By the way, if I don't put the glossaries in an extra file but do all the definition in main.tex then it compiles fine for ch2.tex. So I figured it's probably some relative path issues, but I tried all the combinations I could think of but still no luck.
Any ideas?