110 lines
4.2 KiB
TeX
110 lines
4.2 KiB
TeX
% System/minutes_team_template.tex
|
|
|
|
% --- 1. Header Table (Logo right, Title center, Details left, Team Logo far left) ---
|
|
\vspace*{-3cm}
|
|
\noindent\makebox[\linewidth][c]{
|
|
\renewcommand{\arraystretch}{1.5}
|
|
\arrayrulecolor{primary}
|
|
\begin{tabular}{|
|
|
>{\centering\arraybackslash}p{\dimexpr 0.18\textwidth - 2\tabcolsep \relax}|
|
|
>{\centering\arraybackslash}p{\dimexpr 0.36\textwidth - 2\tabcolsep \relax}|
|
|
>{\centering\arraybackslash}p{\dimexpr 0.28\textwidth - 2\tabcolsep \relax}|
|
|
>{\centering\arraybackslash}p{\dimexpr 0.18\textwidth - 2\tabcolsep \relax}|}
|
|
\hline
|
|
\multirow{4}{*}{\includegraphics[height=1.8cm]{logo.png}} &
|
|
\multirow{2}{*}{\Large \textbf{\textcolor{primary}{فرم صورتجلسه}}} &
|
|
\textbf{تاریخ:} \MinutesDate &
|
|
\multirow{4}{*}{\includegraphics[height=1.8cm]{\MinutesTeamLogo}} \\
|
|
& & \textbf{ساعت:} \MinutesStart \ -- \MinutesEnd & \\
|
|
& \multirow{2}{=}{\centering \small \MinutesGroupTitle} & \textbf{شماره:} \MinutesNumber & \\
|
|
& & \textbf{پیوست:} \MinutesAttachment & \\
|
|
\hline
|
|
\end{tabular}
|
|
}
|
|
|
|
\arrayrulecolor{black}
|
|
\par\vspace{0.4cm}
|
|
|
|
% --- Logic Macro for Smart Attendees Display ---
|
|
\newif\ifhasmen
|
|
\newif\ifhaswomen
|
|
|
|
\newcommand{\PrintGroup}[3]{%
|
|
\expandafter\def\expandafter\menlist\expandafter{#2} \expandafter\def\expandafter\womenlist\expandafter{#3}
|
|
\def\emptyval{} \def\dashval{-}
|
|
\hasmenfalse \haswomenfalse
|
|
|
|
% Check if lists are not empty and not dash
|
|
\ifx\menlist\emptyval\else\ifx\menlist\dashval\else\hasmentrue\fi\fi
|
|
\ifx\womenlist\emptyval\else\ifx\womenlist\dashval\else\haswomentrue\fi\fi
|
|
|
|
\ifhasmen
|
|
\ifhaswomen
|
|
\textbf{#1}\\[0.1cm]
|
|
\textbf{آقایان / دکتر / مهندس:} #2 \\[0.1cm]
|
|
\textbf{خانمها / دکتر / مهندس:} #3
|
|
\else
|
|
\textbf{#1 آقایان / دکتر / مهندس:} #2
|
|
\fi
|
|
\else
|
|
\ifhaswomen
|
|
\textbf{#1 خانم / دکتر / مهندس:} #3
|
|
\else
|
|
\textbf{#1} -
|
|
\fi
|
|
\fi
|
|
}
|
|
|
|
% --- 2. Attendees Box ---
|
|
\begin{tcolorbox}[enhanced, colback=white, colframe=primary, boxrule=1pt, arc=2mm, right=12pt, left=12pt, top=10pt, bottom=10pt]
|
|
\textbf{\faUserTie\ رئیس جلسه:} \MinutesChair \hfill \textbf{\faPenNib\ دبیر جلسه:} \MinutesSecretary \\[-0.1cm]
|
|
\textcolor{primary!40}{\rule{\textwidth}{0.5pt}} \\[-0.2cm]
|
|
\PrintGroup{حاضرین:}{\MinutesPresentMen}{\MinutesPresentWomen} \\[0.3cm]
|
|
\PrintGroup{غائبین:}{\MinutesAbsentMen}{\MinutesAbsentWomen}
|
|
\end{tcolorbox}
|
|
\vspace{0.4cm}
|
|
|
|
% --- Agenda Box (Using the new variable) ---
|
|
\begin{tcolorbox}[enhanced, colback=white, colframe=primary, boxrule=1pt, arc=2mm, right=12pt, left=12pt, top=10pt, bottom=10pt]
|
|
\textbf{\faListUl\ موضوعات جلسه:} \\
|
|
\MinutesAgenda
|
|
\end{tcolorbox}
|
|
\vspace{0.8cm}
|
|
|
|
% --- Custom Command for Discussion Items ---
|
|
\newcommand{\DiscussionItem}[4]{
|
|
\vspace{0.4cm}
|
|
\noindent\textbf{\textcolor{primary}{#1}}\par
|
|
\vspace{0.1cm}
|
|
\noindent #2\par
|
|
\nopagebreak
|
|
\vspace{0.2cm}
|
|
\noindent\begin{tabular}{|>{\raggedright\arraybackslash}m{0.45\linewidth}|>{\raggedright\arraybackslash}m{0.45\linewidth}|}
|
|
\hline
|
|
\rowcolor{tablehead} \textbf{مسئول اقدام:} #3 & \textbf{مهلت:} #4 \\
|
|
\hline
|
|
\end{tabular}
|
|
\vspace{0.2cm}
|
|
}
|
|
|
|
% --- 3. Meeting Content (Agenda, Resolutions, Specific Tables) ---
|
|
\input{Minutes_Content/01_minutes_content.tex}
|
|
|
|
% --- 4. Signatures Section ---
|
|
\vspace{1cm}
|
|
\begin{center}
|
|
\large\textbf{\textcolor{primary}{امضای حاضرین}}
|
|
\end{center}
|
|
\vspace{0.2cm}
|
|
\begin{table}[h!]
|
|
\centering
|
|
\renewcommand{\arraystretch}{3.5} % Extra space for physical signing
|
|
\arrayrulecolor{black}
|
|
\begin{tabular}{|>{\centering\arraybackslash}m{0.25\linewidth}|>{\centering\arraybackslash}m{0.3\linewidth}|>{\centering\arraybackslash}m{0.35\linewidth}|}
|
|
\hline
|
|
\rowcolor{tablehead}
|
|
\textbf{رئیس جلسه} & \textbf{دبیر جلسه} & \textbf{اعضای حاضر} \\
|
|
\MinutesChair & \MinutesSecretary & \small \MinutesPresentMen \ \MinutesPresentWomen \\
|
|
\hline
|
|
\end{tabular}
|
|
\end{table} |