From 7652b2829568a1ad04753f36e78f6c701108b288 Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Sun, 29 Oct 2023 14:54:34 +0200 Subject: [PATCH] add table captions --- src/utils/function-table.tex | 71 +++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 34 deletions(-) diff --git a/src/utils/function-table.tex b/src/utils/function-table.tex index 9d85abb..c411472 100644 --- a/src/utils/function-table.tex +++ b/src/utils/function-table.tex @@ -1,44 +1,47 @@ \mdfsetup{ - innertopmargin=8pt, - innerbottommargin=8pt, - skipbelow=0pt, - skipabove=0pt, - everyline=true, - backgroundcolor=gray!2, - linecolor=black, - fontcolor=black, - roundcorner=0pt, - splittopskip=25pt, - secondextra={ - \node[ - overlay, - fill=white, - anchor=west, - inner xsep=10pt - ] at ([xshift=10pt]O|-P) {Turpinājums}; - }, - middleextra={ - \node[ - overlay, - fill=white, - anchor=west, - inner xsep=10pt - ] at ([xshift=10pt]O|-P) {Excursus (Cont.)}; - } - } + innertopmargin=8pt, + innerbottommargin=8pt, + skipbelow=0pt, + skipabove=0pt, + everyline=true, + backgroundcolor=gray!2, + linecolor=black, + fontcolor=black, + roundcorner=0pt, + splittopskip=25pt, + % secondextra={ + % \node[ + % overlay, + % fill=white, + % anchor=west, + % inner xsep=10pt + % ] at ([xshift=10pt]O|-P) {Turpinājums}; + % }, + % middleextra={ + % \node[ + % overlay, + % fill=white, + % anchor=west, + % inner xsep=10pt + % ] at ([xshift=10pt]O|-P) {Excursus (Cont.)}; + % } +} \newcommand{\moduleFunctionTableItem}[2]{ - \begin{mdframed} - \textbf{#1} - \end{mdframed} + \begin{mdframed} + \textbf{#1} + \end{mdframed} - \begin{mdframed} - #2 - \end{mdframed} + \begin{mdframed} + #2 + \end{mdframed} } \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 identifikators}{#4} \moduleFunctionTableItem{Ievads}{#5}