I am currently trying to write a book containing multiple chapters, with each chapter saved in a separate tex file. In each chapter, I have similar sections with label "sec:introduction", "sec:methods", "sec:conclusions", etc. When combining these chapters with
\input command, I got error message saying labels are "multiply defined". I am wondering if it is possible to somehow let latex compiler realize that they are in different files and will not conflict with each other in any references (denoted by
\ref)? I know changing these labels altogether would be a choice, but there are other multiply defined labels related to equations, figures, etc which could take a while to fix.
Any suggestions would be greatly appreciated, thank you!