Park__ReportTemplate/main.tex

156 lines
4.6 KiB
TeX

\documentclass[12pt,a4paper,twoside,fleqn]{article}
\usepackage{System/team_template}
\addbibresource{Assets/references.bib}
% --- فراخوانی تنظیمات کاربر ---
\input{Config/00_config.tex}
\geometry{top=3.5cm, headsep=1.2cm}
\begin{document}
% ==========================================
% ساختار صفحه اول و دوم
% ==========================================
\ifSeparateCover
% --- حالت کاور مجزا ---
\thispagestyle{cover}
% تنظیم جایگاه لوگو در بالای صفحه
\vspace*{0.5cm}
\begin{center}
\includegraphics[width=4.0cm]{logo.png}
\end{center}
% هل دادن عنوان به مرکز بصری صفحه
\vspace*{\stretch{1}}
\begin{center}
\textcolor{accentYellow}{\rule{2.5cm}{1.5pt}} % Subtle gold bridge line
\vspace{0.8cm}
{\Huge \textcolor{primary}{\nazaninfont\textbf{\DocTitle}}}
\vspace{0.8cm}
{\large \textcolor{gray}{\DocSubtitle}}
\vspace{0.5cm}
\textcolor{accentYellow}{\rule{2.5cm}{1.5pt}} % Subtle gold bridge line
\end{center}
\vspace*{\stretch{2.5}}
\clearpage % اتمام صفحه کاور و رفتن به صفحه دوم
\vspace{0.8cm}
\else
\begin{center}
{\Huge \textcolor{primary}{\textbf{\DocTitle}}}
\vspace{0.2cm}
{\medium \textcolor{gray}{\DocSubtitle}}
\end{center}
\vspace{0.6cm}
\fi
% --- جدول شناسنامه سند ---
\begin{center}
\begin{table}[h!]
\centering
\renewcommand{\arraystretch}{1.5}
\arrayrulecolor{black}
\begin{tabular}{|>{\centering\arraybackslash}p{0.3\linewidth}|>{\centering\arraybackslash}p{0.22\linewidth}|>{\centering\arraybackslash}p{0.3\linewidth}|}
\hline
\rowcolor{tablehead}
شماره سند: \vspace{0.15cm} & نسخه: \vspace{0.15cm} & تاریخ تدوین: \vspace{0.15cm} \\
\rowcolor{tablehead}
{\bfseries \DocID} & {\bfseries \lr{\DocVersion}} & {\bfseries \DocDate} \\[0.25cm]
\hline
\ifMultiAuthor تهیه‌کنندگان: \else تهیه‌کننده: \fi \vspace{0.15cm} & سطح محرمانگی: \vspace{0.15cm} & وضعیت: \vspace{0.15cm} \\
{\bfseries \ifDefaultAuthor پارک علم و فناوری دانشگاه صنعتی امیرکبیر \else \DocAuthor \fi} & {\bfseries \DocSecret} & {\bfseries \DocStatus} \\[0.25cm]
\hline
\end{tabular}
\end{table}
\end{center}
\arrayrulecolor{black}
% تنظیم فاصله بعد از جدول قبل از شروع محتوا
\ifSeparateCover
\vspace{0.5cm}
\else
\vspace{0.1cm} % فاصله بسیار کم در حالت بدون کاور
\fi
% --- بخش فهرست‌های خودکار سند ---
\newpage
\pdfbookmark[1]{\contentsname}{toc}
\tableofcontents % فهرست مطالب
\iftotalfigures
\newpage
\listoffigures % فهرست نمودارها و تصاویر (خودکار)
\fi
\iftotaltables
\newpage
\listoftables % فهرست جدول‌ها (خودکار)
\fi
\newpage
% ---------------------------------
% ==========================================
% فراخوانی فایل‌های محتوای پروژه
% ==========================================
\input{Content/01_project_content.tex} % متن اصلی
\ifHasAppendices
\input{Content/02_appendices.tex} % پیوست‌ها
\fi
\ifHasGlossary
\input{Content/03_glossary.tex} % واژه‌نامه تخصصی
\fi
-% --- بخش مراجع خودکار ---
\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
% Check if the current page is odd. If so, insert a blank page
% to force the back cover onto an even page (the back of the document).
\ifodd\value{page}
\thispagestyle{empty}
\null % Insert invisible content to ensure the page isn't skipped
\newpage
\fi
% Back Cover Layout
\thispagestyle{cover} % Reusing your custom cover style for consistency
\vspace*{\stretch{1}}
\begin{center}
\textcolor{accentYellow}{\rule{2.5cm}{1.5pt}}
\vspace{0.9cm}
\includegraphics[width=5.0cm]{logo.png}
\vspace{0.5cm}
\textcolor{accentYellow}{\rule{2.5cm}{1.5pt}}
\end{center}
\vspace*{\stretch{2}}
\end{document}