diff --git a/main.tex b/main.tex index 68b4d42..b621cb8 100644 --- a/main.tex +++ b/main.tex @@ -101,24 +101,32 @@ % فراخوانی فایل‌های محتوای پروژه % ========================================== \input{Content/01_project_content.tex} % متن اصلی -\input{Content/02_appendices.tex} % پیوست‌ها -\input{Content/03_glossary.tex} % واژه‌نامه تخصصی + +\ifHasAppendices + \input{Content/02_appendices.tex} % پیوست‌ها +\fi + +\ifHasGlossary + \input{Content/03_glossary.tex} % واژه‌نامه تخصصی +\fi % --- بخش مراجع خودکار --- -\newpage -\phantomsection -\addcontentsline{toc}{section}{مراجع و منابع} - -\nocite{*} - -% چاپ منابع فارسی (راست‌چین) -\printbibliography[keyword=persian, title={منابع فارسی}] -\vspace{1cm} - -% چاپ منابع انگلیسی (چپ‌چین) -\begin{latin} -\printbibliography[keyword=english, title={\lr{English References}}, resetnumbers=true] -\end{latin} +\ifHasReferences + \newpage + \phantomsection + \addcontentsline{toc}{section}{مراجع و منابع} + + \nocite{*} + + % چاپ منابع فارسی (راست‌چین) + \printbibliography[keyword=persian, title={منابع فارسی}] + \vspace{1cm} + + % چاپ منابع انگلیسی (چپ‌چین) + \begin{latin} + \printbibliography[keyword=english, title={\lr{English References}}, resetnumbers=true] + \end{latin} +\fi \clearpage