add table captions

This commit is contained in:
Kristofers Solo 2023-10-29 14:54:34 +02:00
parent 810a7e363f
commit 7652b28295

View File

@ -1,44 +1,47 @@
\mdfsetup{ \mdfsetup{
innertopmargin=8pt, innertopmargin=8pt,
innerbottommargin=8pt, innerbottommargin=8pt,
skipbelow=0pt, skipbelow=0pt,
skipabove=0pt, skipabove=0pt,
everyline=true, everyline=true,
backgroundcolor=gray!2, backgroundcolor=gray!2,
linecolor=black, linecolor=black,
fontcolor=black, fontcolor=black,
roundcorner=0pt, roundcorner=0pt,
splittopskip=25pt, splittopskip=25pt,
secondextra={ % secondextra={
\node[ % \node[
overlay, % overlay,
fill=white, % fill=white,
anchor=west, % anchor=west,
inner xsep=10pt % inner xsep=10pt
] at ([xshift=10pt]O|-P) {Turpinājums}; % ] at ([xshift=10pt]O|-P) {Turpinājums};
}, % },
middleextra={ % middleextra={
\node[ % \node[
overlay, % overlay,
fill=white, % fill=white,
anchor=west, % anchor=west,
inner xsep=10pt % inner xsep=10pt
] at ([xshift=10pt]O|-P) {Excursus (Cont.)}; % ] at ([xshift=10pt]O|-P) {Excursus (Cont.)};
} % }
} }
\newcommand{\moduleFunctionTableItem}[2]{ \newcommand{\moduleFunctionTableItem}[2]{
\begin{mdframed} \begin{mdframed}
\textbf{#1} \textbf{#1}
\end{mdframed} \end{mdframed}
\begin{mdframed} \begin{mdframed}
#2 #2
\end{mdframed} \end{mdframed}
} }
\newcommand{\moduleFunctionTable}[9]{ \newcommand{\moduleFunctionTable}[9]{
\paragraph{#1} \label{tab:#2} \paragraph{#1}
\begin{table}[h]
\caption{#1}\label{tab:#2}
\end{table}
\moduleFunctionTableItem{Funkcijas nosaukums}{#3} \moduleFunctionTableItem{Funkcijas nosaukums}{#3}
\moduleFunctionTableItem{Funkcijas identifikators}{#4} \moduleFunctionTableItem{Funkcijas identifikators}{#4}
\moduleFunctionTableItem{Ievads}{#5} \moduleFunctionTableItem{Ievads}{#5}