texlive[75055] Master/texmf-dist: afperpack (29apr25)

commits+karl at tug.org commits+karl at tug.org
Tue Apr 29 21:46:04 CEST 2025


Revision: 75055
          https://tug.org/svn/texlive?view=revision&revision=75055
Author:   karl
Date:     2025-04-29 21:46:03 +0200 (Tue, 29 Apr 2025)
Log Message:
-----------
afperpack (29apr25)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/afperpack/README.md
    trunk/Master/texmf-dist/doc/latex/afperpack/afperpack.pdf
    trunk/Master/texmf-dist/doc/latex/afperpack/afperpack.tex
    trunk/Master/texmf-dist/tex/latex/afperpack/afperpack.sty

Modified: trunk/Master/texmf-dist/doc/latex/afperpack/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/afperpack/README.md	2025-04-29 19:45:50 UTC (rev 75054)
+++ trunk/Master/texmf-dist/doc/latex/afperpack/README.md	2025-04-29 19:46:03 UTC (rev 75055)
@@ -65,5 +65,9 @@
 
 ## Change log
 
-* Version 1.0 (this)
+* Version 1.0a (this)
+    - correcting a few typos in documentation (including #1) and (argh) .sty file
+    - added a (forgot) optional parameter to \cab (see documentation).
+
+* Version 1.0 
     - Initial setup.

Modified: trunk/Master/texmf-dist/doc/latex/afperpack/afperpack.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/afperpack/afperpack.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/afperpack/afperpack.tex	2025-04-29 19:45:50 UTC (rev 75054)
+++ trunk/Master/texmf-dist/doc/latex/afperpack/afperpack.tex	2025-04-29 19:46:03 UTC (rev 75055)
@@ -20,7 +20,7 @@
 %%
 %% The Current Maintainer of this work is Alceu Frigeri
 %%
-%% This is version {1.0} {2025/04/25}
+%% This is version {1.0a} {2025/04/29}
 %%
 %% The list of files that compose this work can be found in the README.md file at
 %% https://ctan.org/pkg/afperpack
@@ -59,13 +59,13 @@
 
 \begin{describelist}{key}
   \describe{showframe}{For geometry/format ``debugging''. This will just load the \tsobj[pkg]{showframe} package.}
-  \describe{showlabels}{For geometry/format ``debugging''. This will just load the \tsobj[pkg]{showlabels} package.}
+  \describe{showlabels}{For labels placement/location ``debugging''. This will just load the \tsobj[pkg]{showlabels} package.}
   \describe{english}{Babel will be loaded with \tsobj[option]{english} option. Otherwise \tsobj[option]{brazilian}. }
   \describe{beamer}{This will suppress the loading of the \tsobj[pkg]{geometry,titlesec,listings} packages. It doesn't loads \tsobj[pkg]{beamer}.}
   \describe{xpacks}{The packages \tsobj[pkg]{longtable,xpacks,csquotes,caption,supcaption,url,multirow,bigdelim} will be loaded.}
   \describe{times}{This will load the \tsobj[pkg]{mathptmx} package (times roman) instead of (default) \tsobj[pkg]{lmodern}.}
   \describe{noquests}{This will suppress the loading of the \tsobj[pkg]{tikzquests} package.}
-  \describe{tikz}{This will load \tsobj[pkg]{tikz,circuitikz,tikzquads,tikzdotncross,tikzfxgraph} packages.}
+  \describe{tikz}{This will load \tsobj[pkg]{tikz,circuitikz,tikzquads,tikzdotncross,pgfplots,tikzfxgraph} packages.}
   \describe{graphicx}{This will load the \tsobj[pkg]{graphicx} package.}
   \describe{math}{This will load the \tsobj[pkg]{
   amsmath , amsfonts , amssymb , amsthm , mathrsfs , mathtools, empheq , extarrows, steinmetz, mathfixs , siunitx , cases } packages.}
@@ -79,9 +79,9 @@
 
 \begin{codedescribe}{\cab}
 \begin{codesyntax}%
-\tsmacro{\cab}{options}
+\tsmacro{\cab}{options}\tsargs[oarg]{extra}
 \end{codesyntax}
-This will typesets, in a new page, a typical exam header. \tsobj[marg]{options} is a key=val list of:
+This will typesets, in a new page, a typical exam header. \tsobj[oarg]{extra} will be (if present) typeset as is, in a box below the main cab. \tsobj[marg]{options} is a key=val list of:
 \begin{describelist*}{key}
   \describe{uni}{University's name. (default: Universidade Federal do Rio Grande do Sul)}
   \describe{dept}{Department's name. (default: Escola de Engenharia / DELAE)}
@@ -89,12 +89,14 @@
   \describe{classcode}{Class' code. (default: ENGcode)}
   \describe{exam}{Exam text. (default: Verificação de Aproveitamento)}
   \describe{sem}{Semester. (default: 202x/Y)}
+  \describe{semester}{alias to \tsobj[key]{sem}.}
   \describe{name label}{Student`s label. (default: Nome)}
   \describe{id label}{Student`s ID label. (default: Cartão)}
   \describe{duo label}{Duo labe. (default: Dupla)}
+  \describe{duo}{If true, a duo label will be added to the identification lines (default: false)}
+  \describe{nonames}{If true, the identification lines will be suppressed.}
   \describe{simplegrad}{If true, the grad option box will be used, with a preset text. (default: false)}
-  \describe{duo}{If true then duo label will be added to identification line (default: false)}
-  \describe{nonames}{If true, the identification lines will be suppressed.}
+  \describe{simplegrad text}{Changes the default text of a simplegrad box.}
 \end{describelist*}
 \end{codedescribe}
 

Modified: trunk/Master/texmf-dist/tex/latex/afperpack/afperpack.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/afperpack/afperpack.sty	2025-04-29 19:45:50 UTC (rev 75054)
+++ trunk/Master/texmf-dist/tex/latex/afperpack/afperpack.sty	2025-04-29 19:46:03 UTC (rev 75055)
@@ -12,7 +12,7 @@
 %%
 %% The Current Maintainer of this work is Alceu Frigeri
 %%
-%% This is version {1.0} {2025/04/25}
+%% This is version {1.0a} {2025/04/29}
 %%
 %% The list of files that compose this work can be found in the README.md file at
 %% https://ctan.org/pkg/afperpack
@@ -22,8 +22,8 @@
 
 \ProvidesExplPackage
     {afperpack}
-    {2025/04/25}
-    {1.0}
+    {2025/04/29}
+    {1.0a}
     {afperpack personal package/preferences.}
 
 %%%%%%%
@@ -36,8 +36,8 @@
   {
      name        .code:n = {afperpack} ,
      prefix      .code:n = {afperpack} ,
-     date        .code:n = {2025/04/25},
-     version     .code:n = {1.0} ,
+     date        .code:n = {2025/04/29},
+     version     .code:n = {1.0a} ,
      description .code:n = {afperpack personal package/preferences.}
   }
 \cs_if_exist:NF \PkgInfo 
@@ -210,10 +210,13 @@
   \usetikzlibrary{arrows,shapes}
   \usetikzlibrary{shapes.geometric} %needed for the triangle
   \usetikzlibrary{shapes.misc} %needed for the triangle
+	\usetikzlibrary{shapes.multipart}  
   \usetikzlibrary{graphs,3d}
   \usetikzlibrary{datavisualization,datavisualization.formats.functions}
   \usetikzlibrary[commutative-diagrams]  %% oriented graphs.
-  
+  \usetikzlibrary{positioning}%
+  \usetikzlibrary{shadows}%
+
   %
   % For the brave and unaware...
   %
@@ -284,6 +287,10 @@
     sem .tl_set:N = \l__afperpack_sem_tl ,
     sem .default:n         = {202x / y} ,
     
+    semester .usage:n = general ,
+    semester .tl_set:N = \l__afperpack_sem_tl ,
+    semester .default:n         = {202x / y} ,
+
     name~ label .usage:n = general ,
     name~ label .tl_set:N = \l__afperpack_name_label_tl ,
     name~ label .default:n         = {Nome} ,
@@ -298,6 +305,17 @@
 
     simplegrad .usage:n = general ,
     simplegrad .bool_set:N = \l__afperpack_simplegrad_bool ,
+    
+    simplegrad~ text .usage:n = general ,
+    simplegrad~ text .tl_set:N = \l__afperpack_simplegrad_tl ,
+    simplegrad~ text .default:n = 
+      {
+        Assinalar~ um~ “\textbf{X}”,~ no~ tipo~ de~ correção~ a~ ser~ realizada.
+  			  \begin{description}
+   	        \item[(~\ )~ Simplificada]~	Será~ atribuída~ uma~ nota~ igual~ a~ $3$~ –--~ independente~ do~ que~ estiver~ escrito~ na~ prova.
+   	        \item[(~\ )~ Completa]~	Todas~ as~ questões~ serão~ corrigidas~ e~ a~ nota~ será~ dada~ pela~ soma~ dos~ pontos~ obtidos~ em~ cada~ questão.~ Neste~ caso,~ a~ nota~ estará~ no~ intervalo~ $[0;10]$.
+          \end{description}
+      } ,
 
     duo .usage:n = general ,
     duo .bool_set:N = \l__afperpack_duo_bool ,
@@ -310,29 +328,33 @@
       {
         uni , dept , class , classcode , exam , sem , 
         duo~ label, id~ label , name~ label , 
-        simplegrad = false , duo = false , nonames = false 
+        simplegrad~ text ,
+        simplegrad = false , duo = false , nonames = false ,
       } ,
     default .value_forbidden:n = true ,
   }
 
 
-\cs_new_protected:Npn \__afperpack_simplecab:
+\cs_new_protected:Npn \__afperpack_fbox:n #1
   {
     \fbox{
       \footnotesize
   	  \begin{minipage}{.6\textwidth}
-        Assinalar~ um~ “\textbf{X}”,~ no~ tipo~ de~ correção~ a~ ser~ realizada.
-  			  \begin{description}
-   	        \item[(~\ )~ Simplificada]~	Será~ atribuída~ uma~ nota~ igual~ a~ $3$~ –--~ independente~ do~ que~ estiver~ escrito~ na~ prova.
-   	        \item[(~\ )~ Completa]~	Todas~ as~ questões~ serão~ corrigidas~ e~ a~ nota~ será~ dada~ pela~ soma~ dos~ pontos~ obtidos~ em~ cada~ questão.~ Neste~ caso,~ a~ nota~ estará~ no~ intervalo~ $[0;10]$.
-          \end{description}
+        #1
       \end{minipage}
   	}\\[3ex]
   }
 
 
-\NewDocumentCommand{\cab}{m}
+\cs_new_protected:Npn \__afperpack_simplecab:
   {
+    \__afperpack_fbox:n
+      { \l__afperpack_simplegrad_tl }
+  }
+
+
+\NewDocumentCommand{\cab}{mO{}}
+  {
     \keys_set:nn{afperpack / cab}{default , #1}
     \bool_lazy_or:nnTF {\tl_if_blank_p:V \l__afperpack_code_tl}{\tl_if_empty_p:V \l__afperpack_class_tl}
       { \tl_set:Nn \l_tmpa_tl {} }
@@ -367,6 +389,11 @@
         \l__afperpack_duo_label_tl :\ldots\ldots\ldots\ldots\ldots\ldots\ldots\ldots\ldots\ldots\ldots\vspace{10mm}
         \l__afperpack_id_label_tl :\ldots\ldots\ldots\ldots\ldots\ldots
       }
+    \tl_if_blank:nF {#2}
+      {
+        \\[-3ex]
+        \__afperpack_fbox:n {#2}
+      } 
     \end{center}
   }
   



More information about the tex-live-commits mailing list.