summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ufrgscca/latex/ufrgscca-coord.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-03-23 03:01:23 +0000
committerNorbert Preining <norbert@preining.info>2024-03-23 03:01:23 +0000
commitf3da2d2d43f8edbd18674b2ca6fa6b1a2012f7d0 (patch)
treea57993cc4795ae5ebfde93c042a0230c6911d7a7 /macros/latex/contrib/ufrgscca/latex/ufrgscca-coord.sty
parentafa6b76072e6106ffd418c05eff7da555eebb605 (diff)
CTAN sync 202403230301
Diffstat (limited to 'macros/latex/contrib/ufrgscca/latex/ufrgscca-coord.sty')
-rw-r--r--macros/latex/contrib/ufrgscca/latex/ufrgscca-coord.sty101
1 files changed, 28 insertions, 73 deletions
diff --git a/macros/latex/contrib/ufrgscca/latex/ufrgscca-coord.sty b/macros/latex/contrib/ufrgscca/latex/ufrgscca-coord.sty
index c258ab8b34..f487134fef 100644
--- a/macros/latex/contrib/ufrgscca/latex/ufrgscca-coord.sty
+++ b/macros/latex/contrib/ufrgscca/latex/ufrgscca-coord.sty
@@ -12,7 +12,7 @@
%%
%% The Current Maintainer of this work is Alceu Frigeri
%%
-%% This is version {2.7} {2024/03/10}
+%% This is version {2.8} {2024/03/22}
%%
%% The list of files that compose this work can be found in the README.md file at
%% https://ctan.org/pkg/ufrgscca
@@ -22,13 +22,13 @@
%% EE stands for "Engineering School"
%% CCA stands for "Control and Automation Engineering Course" (Portuguese acronym)
%%%==============================================================================
-\NeedsTeXFormat{LaTeX2e}[2022/06/01]
+\NeedsTeXFormat{LaTeX2e}[2023/11/01]
\ProvidesExplPackage
{ufrgscca-coord}
- {2024/03/10}
- {2.7}
+ {2024/03/22}
+ {2.8}
{UFRGS/CCA coord commands}
@@ -42,8 +42,8 @@
{
name .code:n = {ufrgscca-coord} ,
prefix .code:n = {ufrgscca} ,
- date .code:n = {2024/03/10},
- version .code:n = {2.7} ,
+ date .code:n = {2024/03/22},
+ version .code:n = {2.8} ,
description .code:n = {UFRGS/CCA~ coordination~ report~ commands}
}
\cs_if_exist:NF \PkgInfo
@@ -58,16 +58,6 @@
-%%%%%%%
-%%%
-%%% V-less : Blocks of code affected:
-%%% Coord (checklist) 'kind of easy'
-%%% curr (all!) 'to be seen how'
-%%% ppc (all!) 'to be seen how'
-%%%
-%%%%%%%
-
-
\cs_generate_variant:Nn \tl_set:Nn {Ne}
@@ -123,7 +113,6 @@
\RequirePackage{ufrgscca-core}
\RequirePackage{ufrgscca-forms}
-%\RequirePackage{pgfcalendar}
\starray_new:n {prof}
@@ -788,28 +777,11 @@
}
-\prop_new:N \l__ufrgscca_check_prop
-\prop_new:N \l__ufrgscca_checkA_prop
-\prop_new:N \l__ufrgscca_checkB_prop
-\prop_new:N \l__ufrgscca_checkref_prop
-
\tl_new:N \l__ufrgscca_chkID_tl
\tl_new:N \l__ufrgscca_chkIDa_tl
\tl_new:N \l__ufrgscca_chkIDb_tl
\NewDocumentCommand{\checkdef}{mmm}{
-% \starray_get_prop:nnN {activity}{chkmarked}\l__ufrgscca_check_prop
-% \prop_gput:Nnn \l__ufrgscca_check_prop {#1}{\__ufrgscca_checkedbox:~\ #3}
-% \starray_gset_prop:nnV {activity}{chkmarked}\l__ufrgscca_check_prop
-%
-% \starray_get_prop:nnN {activity}{chkunmarked}\l__ufrgscca_check_prop
-% \prop_gput:Nnn \l__ufrgscca_check_prop {#1}{\__ufrgscca_uncheckedbox:~\ #3}
-% \starray_gset_prop:nnV {activity}{chkunmarked}\l__ufrgscca_check_prop
-%
-% \starray_get_prop:nnN {activity}{chkref}\l__ufrgscca_check_prop
-% \prop_gput:Nnn \l__ufrgscca_check_prop {#2}{#1}
-% \starray_gset_prop:nnV {activity}{chkref}\l__ufrgscca_check_prop
-
\starray_get_prop:nnN {activity}{chkID}\l__ufrgscca_chkID_tl
\prop_gput:cnn {l__ufrgscca_ \l__ufrgscca_chkID_tl _chkmarked_prop} {#1}{\__ufrgscca_checkedbox:~\ #3}
\prop_gput:cnn {l__ufrgscca_ \l__ufrgscca_chkID_tl _chkunmarked_prop} {#1}{\__ufrgscca_uncheckedbox:~\ #3}
@@ -824,64 +796,47 @@
\NewDocumentCommand{\checklist}{O{}m}{
\tl_if_blank:nF {#1}
{ \starray_set_iter_from_hash:nn {activity}{#1} }
-% \starray_get_prop:nnN {student}{checklist}\l__ufrgscca_check_prop
-% \starray_get_prop:nnN {activity}{chkmarked}\l__ufrgscca_checkB_prop
-% \starray_get_prop:nnN {activity}{chkref}\l__ufrgscca_checkref_prop
- %% V-less : checklists as hash_.... prop
+
\starray_get_prop:nnN {student} {chkID} \l__ufrgscca_chkIDa_tl
\starray_get_prop:nnN {activity} {chkID} \l__ufrgscca_chkIDb_tl
- \prop_set_eq:Nc \l__ufrgscca_check_prop {l__ufrgscca_ \l__ufrgscca_chkIDa_tl _checklist_prop}
- \prop_set_eq:Nc \l__ufrgscca_checkB_prop {l__ufrgscca_ \l__ufrgscca_chkIDb_tl _chkmarked_prop}
- \prop_set_eq:Nc \l__ufrgscca_checkref_prop {l__ufrgscca_ \l__ufrgscca_chkIDb_tl _chkref_prop}
-
+
\clist_map_inline:nn {#2}
{
- \prop_get:NnNT \l__ufrgscca_checkref_prop {##1} \l__ufrgscca_checkref_tl
+ \prop_get:cnNT {l__ufrgscca_ \l__ufrgscca_chkIDb_tl _chkref_prop} {##1} \l__ufrgscca_checkref_tl
{
- \prop_get:NeN \l__ufrgscca_checkB_prop {\l__ufrgscca_checkref_tl} \l__ufrgscca_checkB_tl
- \prop_gput:Nee \l__ufrgscca_check_prop {\l__ufrgscca_checkref_tl} {\l__ufrgscca_checkB_tl}
+ \prop_get:ceN {l__ufrgscca_ \l__ufrgscca_chkIDb_tl _chkmarked_prop} {\l__ufrgscca_checkref_tl} \l__ufrgscca_checkB_tl
+ \prop_gput:cee {l__ufrgscca_ \l__ufrgscca_chkIDa_tl _checklist_prop} {\l__ufrgscca_checkref_tl} {\l__ufrgscca_checkB_tl}
}
}
-% \starray_gset_prop:nnV {student}{checklist}{\l__ufrgscca_check_prop}
- %% V-less : could be improved, direct reference
- \prop_set_eq:cN {l__ufrgscca_ \l__ufrgscca_chkIDa_tl _checklist_prop} \l__ufrgscca_check_prop
}
-\prop_new:N \l__ufrgscca_check_list_prop
\tl_new:N \l__ufrgscca_tmpx_tl
\tl_new:N \l__ufrgscca_tmpy_tl
\tl_new:N \l__ufrgscca_table_tl
\cs_new_protected:Npn \__ufrgscca_checktable_lines:nn #1#2 {
-% \starray_get_prop:nnN {activity} {chkunmarked} \l__ufrgscca_checkA_prop
-% \starray_get_prop:nnN {student} {checklist} \l__ufrgscca_check_prop
- %% V-less : checklists as hash_.... prop
\starray_get_prop:nnN {student} {chkID} \l__ufrgscca_chkIDa_tl
\starray_get_prop:nnN {activity} {chkID} \l__ufrgscca_chkIDb_tl
- \prop_set_eq:Nc \l__ufrgscca_check_prop {l__ufrgscca_ \l__ufrgscca_chkIDa_tl _checklist_prop}
- \prop_set_eq:Nc \l__ufrgscca_checkA_prop {l__ufrgscca_ \l__ufrgscca_chkIDb_tl _chkunmarked_prop}
-
-% \prop_show:N \l__ufrgscca_check_prop
-% \prop_show:c {l__ufrgscca_ \l__ufrgscca_chkIDa_tl _checklist_prop}
+ {
+ \prop_map_inline:cn {l__ufrgscca_ \l__ufrgscca_chkIDa_tl _checklist_prop}
+ { \prop_put:cnn {l__ufrgscca_ \l__ufrgscca_chkIDb_tl _chkunmarked_prop} {##1}{##2} }
- \prop_map_inline:Nn \l__ufrgscca_check_prop
- { \prop_gput:Nnn \l__ufrgscca_checkA_prop {##1}{##2} }
-
- \tl_gclear:N \l__ufrgscca_table_tl
- \clist_map_inline:nn {#1}
- {
- \tl_gclear:N \l_tmpa_tl
- \clist_map_inline:nn {#2}
- {
- \tl_gset:Nn \l__ufrgscca_tmpx_tl {##1####1}
- \prop_get:NeNTF \l__ufrgscca_checkA_prop {\l__ufrgscca_tmpx_tl} \l__ufrgscca_tmpy_tl
- {\tl_gput_right:Ne \l__ufrgscca_table_tl {\l_tmpa_tl~ \l__ufrgscca_tmpy_tl}}
- {\tl_gput_right:Ne \l__ufrgscca_table_tl {\l_tmpa_tl~ }}
- \tl_gset:Nn \l_tmpa_tl {~&~}
- }
- \tl_put_right:Nn \l__ufrgscca_table_tl {\\*}
+ \tl_gclear:N \l__ufrgscca_table_tl
+ \clist_map_inline:nn {#1}
+ {
+ \tl_gclear:N \l_tmpa_tl
+ \clist_map_inline:nn {#2}
+ {
+ \tl_gset:Nn \l__ufrgscca_tmpx_tl {##1####1}
+ \prop_get:ceNTF {l__ufrgscca_ \l__ufrgscca_chkIDb_tl _chkunmarked_prop} {\l__ufrgscca_tmpx_tl} \l__ufrgscca_tmpy_tl
+ {\tl_gput_right:Ne \l__ufrgscca_table_tl {\l_tmpa_tl~ \l__ufrgscca_tmpy_tl}}
+ {\tl_gput_right:Ne \l__ufrgscca_table_tl {\l_tmpa_tl~ }}
+ \tl_gset:Nn \l_tmpa_tl {~&~}
+ }
+ \tl_gput_right:Nn \l__ufrgscca_table_tl {\\*}
+ }
}
\l__ufrgscca_table_tl
}