texlive[72419] Master/texmf-dist: csvsimple (30sep24)

commits+karl at tug.org commits+karl at tug.org
Mon Sep 30 22:09:28 CEST 2024


Revision: 72419
          https://tug.org/svn/texlive?view=revision&revision=72419
Author:   karl
Date:     2024-09-30 22:09:28 +0200 (Mon, 30 Sep 2024)
Log Message:
-----------
csvsimple (30sep24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/csvsimple/CHANGES.md
    trunk/Master/texmf-dist/doc/latex/csvsimple/README.md
    trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple-doc.sty
    trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple-example.pdf
    trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple-example.tex
    trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple-l3.pdf
    trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple-l3.tex
    trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple-legacy.pdf
    trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple-legacy.tex
    trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple.pdf
    trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple.tex
    trunk/Master/texmf-dist/tex/latex/csvsimple/csvsimple-l3.sty
    trunk/Master/texmf-dist/tex/latex/csvsimple/csvsimple-legacy.sty
    trunk/Master/texmf-dist/tex/latex/csvsimple/csvsimple.sty

Modified: trunk/Master/texmf-dist/doc/latex/csvsimple/CHANGES.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/csvsimple/CHANGES.md	2024-09-30 20:09:17 UTC (rev 72418)
+++ trunk/Master/texmf-dist/doc/latex/csvsimple/CHANGES.md	2024-09-30 20:09:28 UTC (rev 72419)
@@ -17,6 +17,20 @@
 
 
 
+## [2.7.0] - 2024-09-27
+
+### Added
+- Warning, if the CSV file does not contain (accepted) data lines
+
+### Changed
+- Comment lines or empty line before header line are now supported (issue #41)
+- If there is no data line, `late after head` and `late after last line` are applied nonetheless 
+    (loosely connected to issue #41). Note: You should not use files without data!
+- Technical information: The package documentation is now produced with lualatex instead of pdflatex        
+- Technical information: The documentation loads `minted2`, if it exists, to avoid encoding errors and latexmk problems with minted v3
+
+
+
 ## [2.6.1] - 2024-05-16
 
 ### Changed

Modified: trunk/Master/texmf-dist/doc/latex/csvsimple/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/csvsimple/README.md	2024-09-30 20:09:17 UTC (rev 72418)
+++ trunk/Master/texmf-dist/doc/latex/csvsimple/README.md	2024-09-30 20:09:28 UTC (rev 72419)
@@ -1,4 +1,4 @@
-# The LaTeX package csvsimple - version 2.6.1 (2024/05/16)
+# The LaTeX package csvsimple - version 2.7.0 (2024/09/27)
 
 
 > Copyright (c) 2008-2024 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>

Modified: trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple-doc.sty
===================================================================
--- trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple-doc.sty	2024-09-30 20:09:17 UTC (rev 72418)
+++ trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple-doc.sty	2024-09-30 20:09:28 UTC (rev 72419)
@@ -1,5 +1,5 @@
 % !TeX encoding=UTF-8
-%% The LaTeX package csvsimple - version 2.6.1 (2024/05/16)
+%% The LaTeX package csvsimple - version 2.7.0 (2024/09/27)
 %% csvsimple-doc.sty: style file for the documentation
 %%
 %% -------------------------------------------------------------------------------------------
@@ -18,8 +18,8 @@
 %%
 %% This work consists of all files listed in README.md
 %%
-\def\version{2.6.1}%
-\def\datum{2024/05/16}%
+\def\version{2.7.0}%
+\def\datum{2024/09/27}%
 
 \IfFileExists{csvsimple-doc.cfg}{\input{csvsimple-doc.cfg}}{}\providecommand\csvpkgprefix{}
 
@@ -55,6 +55,7 @@
 
 \RequirePackage{longtable,booktabs,ifthen,etoolbox}
 
+\IfFileExists{minted2.sty}{\RequirePackage{minted2}}{}
 \RequirePackage{tcolorbox}
 \tcbuselibrary{skins,xparse,minted,breakable,documentation,raster}
 
@@ -112,4 +113,4 @@
 
 \makeindex
 
-\pdfsuppresswarningpagegroup=1
+%\pdfsuppresswarningpagegroup=1

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

Modified: trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple-example.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple-example.tex	2024-09-30 20:09:17 UTC (rev 72418)
+++ trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple-example.tex	2024-09-30 20:09:28 UTC (rev 72419)
@@ -1,4 +1,4 @@
-%% The LaTeX package csvsimple - version 2.6.1 (2024/05/16)
+%% The LaTeX package csvsimple - version 2.7.0 (2024/09/27)
 %% csvsimple-example.tex: an example for csvsimple
 %%
 %% -------------------------------------------------------------------------------------------

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

Modified: trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple-l3.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple-l3.tex	2024-09-30 20:09:17 UTC (rev 72418)
+++ trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple-l3.tex	2024-09-30 20:09:28 UTC (rev 72419)
@@ -1,7 +1,7 @@
 % \LaTeX-Main\
 % !TeX encoding=UTF-8
 % !TeX spellcheck=en_US
-%% The LaTeX package csvsimple - version 2.6.1 (2024/05/16)
+%% The LaTeX package csvsimple - version 2.7.0 (2024/09/27)
 %% csvsimple.tex: Manual
 %%
 %% -------------------------------------------------------------------------------------------
@@ -1027,14 +1027,14 @@
 \clearpage
 \subsection{Header Processing and Column Name Assignment}%
 
-\begin{docCsvKey}{head}{\colOpt{=true\textbar false}}{default |true|, initially |true|}
-  If this key is set, the first line of the CSV file is treated as a header
+\begin{docCsvKey}[doc updated=2024-09-18]{head}{\colOpt{=true\textbar false}}{default |true|, initially |true|}
+  If this key is set, the first non-empty line of the CSV file is treated as a header
   line which can be used for column name assignments.
 \end{docCsvKey}
 
 
 \begin{docCsvKey}{no head}{}{no value}
-  Abbreviation for |head=false|, i.\,e. the first line of the CSV file is
+  Abbreviation for |head=false|, i.\,e. the first non-empty line of the CSV file is
   treated as data line.
   Note that this option cannot be used in combination with
   the |\csvauto...| commands like \refCom{csvautotabular}, etc.
@@ -1842,6 +1842,7 @@
 \subsection{Special Characters}\label{subsec:specchar}
 Be default, the CSV content is treated like normal \LaTeX\ text, see
 Subsection~\ref{macrocodexample} on page~\pageref{macrocodexample}.
+For example, \%~can be used to start an in-line comment.
 But, \TeX\ special characters of the CSV content may also be interpreted
 as normal characters (|\catcode| 12, other), if one or more of the following options are used.
 

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

Modified: trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple-legacy.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple-legacy.tex	2024-09-30 20:09:17 UTC (rev 72418)
+++ trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple-legacy.tex	2024-09-30 20:09:28 UTC (rev 72419)
@@ -1,6 +1,6 @@
 % \LaTeX-Main\
 % !TeX encoding=UTF-8
-%% The LaTeX package csvsimple - version 2.6.1 (2024/05/16)
+%% The LaTeX package csvsimple - version 2.7.0 (2024/09/27)
 %% csvsimple.tex: Manual
 %%
 %% -------------------------------------------------------------------------------------------

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

Modified: trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple.tex	2024-09-30 20:09:17 UTC (rev 72418)
+++ trunk/Master/texmf-dist/doc/latex/csvsimple/csvsimple.tex	2024-09-30 20:09:28 UTC (rev 72419)
@@ -1,6 +1,6 @@
 % \LaTeX-Main\
 % !TeX encoding=UTF-8
-%% The LaTeX package csvsimple - version 2.6.1 (2024/05/16)
+%% The LaTeX package csvsimple - version 2.7.0 (2024/09/27)
 %% csvsimple.tex: Manual
 %%
 %% -------------------------------------------------------------------------------------------

Modified: trunk/Master/texmf-dist/tex/latex/csvsimple/csvsimple-l3.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/csvsimple/csvsimple-l3.sty	2024-09-30 20:09:17 UTC (rev 72418)
+++ trunk/Master/texmf-dist/tex/latex/csvsimple/csvsimple-l3.sty	2024-09-30 20:09:28 UTC (rev 72419)
@@ -1,4 +1,4 @@
-%% The LaTeX package csvsimple - version 2.6.1 (2024/05/16)
+%% The LaTeX package csvsimple - version 2.7.0 (2024/09/27)
 %% csvsimple-l3.sty: Simple LaTeX CSV file processing (LaTeX3)
 %%
 %% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
 %% This work consists of all files listed in README.md
 %%
 \NeedsTeXFormat{LaTeX2e}[2023-11-01]
-\ProvidesExplPackage{csvsimple-l3}{2024/05/16}{2.6.1}
+\ProvidesExplPackage{csvsimple-l3}{2024/09/27}{2.7.0}
   {LaTeX3 CSV file processing}
 
 
@@ -148,9 +148,6 @@
     Therefore,~the~macro~#2 is~not~defined.
   }
 
-\msg_new:nnn { csvsimple }{ empty-head }
-  { File~'#1'~starts~with~an~empty~line~(empty~head)!.}
-
 \msg_new:nnn { csvsimple }{ file-error }
   { File~'#1'~not~existent,~not~readable,~or~empty!}
 
@@ -167,6 +164,8 @@
   { Call~of~CSV-Sorter~failed! }
   { See~log~file~'\l__csvsim_csvsorter_log_str'. }
 
+\msg_new:nnn { csvsimple }{ data-missing }
+  { File~'#1'~does~not~contain~(accepted)~data~lines!~The~result~may~be~unpleasant.}
 
 
 %---- core loop processing
@@ -227,19 +226,19 @@
 
 \cs_new_protected_nopar:Npn \__csvsim_read_head:
   {
-    \__csvsim_read_line:
-    \tl_if_eq:NNTF \csvline \c__csvsim_par_tl
+    \bool_do_while:nn
       {
-        \msg_error:nne { csvsimple }{ empty-head }{ \g__csvsim_filename_str }
+        \bool_lazy_or_p:nn { \tl_if_eq_p:NN \csvline \c__csvsim_par_tl }{ \tl_if_blank_p:o \csvline }
       }
       {
-        \int_gzero:N \g_csvsim_columncount_int
-        \__csvsim_scan_line:
-        \bool_if:NT \g__csvsim_colnames_detection_bool
-          {
-            \int_step_function:nN \g_csvsim_columncount_int \__csvsim_process_head_name:n
-          }
+        \__csvsim_read_line:
       }
+    \int_gzero:N \g_csvsim_columncount_int
+    \__csvsim_scan_line:
+    \bool_if:NT \g__csvsim_colnames_detection_bool
+      {
+        \int_step_function:nN \g_csvsim_columncount_int \__csvsim_process_head_name:n
+      }
   }
 
 
@@ -395,10 +394,15 @@
       }
     \__csvsim_set_colnames:
     \seq_gclear:N \g__csvsim_colname_seq
-    \bool_if:NF \g__csvsim_line_firstline_bool
+    \bool_if:NT \g__csvsim_line_firstline_bool
       {
-        \g__csvsim_hook_late_after_last_line_tl
+        \msg_warning:nne { csvsimple }{ data-missing }{ \g__csvsim_filename_str }
+        \bool_if:NT \g__csvsim_head_bool
+          {
+            \g__csvsim_hook_late_after_head_tl
+          }
       }
+    \g__csvsim_hook_late_after_last_line_tl
     \g__csvsim_hook_table_end_tl
     \g__csvsim_hook_after_reading_tl
     \bool_if:NT \g__csvsim_collect_data_bool

Modified: trunk/Master/texmf-dist/tex/latex/csvsimple/csvsimple-legacy.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/csvsimple/csvsimple-legacy.sty	2024-09-30 20:09:17 UTC (rev 72418)
+++ trunk/Master/texmf-dist/tex/latex/csvsimple/csvsimple-legacy.sty	2024-09-30 20:09:28 UTC (rev 72419)
@@ -1,4 +1,4 @@
-%% The LaTeX package csvsimple - version 2.6.1 (2024/05/16)
+%% The LaTeX package csvsimple - version 2.7.0 (2024/09/27)
 %% csvsimple-legacy.sty: Simple LaTeX CSV file processing (LaTeX2e)
 %%
 %% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
 %% This work consists of all files listed in README.md
 %%
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{csvsimple-legacy}[2024/05/16 version 2.6.1 LaTeX2e CSV file processing]
+\ProvidesPackage{csvsimple-legacy}[2024/09/27 version 2.7.0 LaTeX2e CSV file processing]
 
 
 %---- check package

Modified: trunk/Master/texmf-dist/tex/latex/csvsimple/csvsimple.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/csvsimple/csvsimple.sty	2024-09-30 20:09:17 UTC (rev 72418)
+++ trunk/Master/texmf-dist/tex/latex/csvsimple/csvsimple.sty	2024-09-30 20:09:28 UTC (rev 72419)
@@ -1,4 +1,4 @@
-%% The LaTeX package csvsimple - version 2.6.1 (2024/05/16)
+%% The LaTeX package csvsimple - version 2.7.0 (2024/09/27)
 %% csvsimple.sty: Simple LaTeX CSV file processing
 %%
 %% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
 %% This work consists of all files listed in README.md
 %%
 \NeedsTeXFormat{LaTeX2e}[2022-06-01]
-\ProvidesExplPackage{csvsimple}{2024/05/16}{2.6.1}
+\ProvidesExplPackage{csvsimple}{2024/09/27}{2.7.0}
   {LaTeX CSV file processing}
 
 \cs_if_exist:NT \c__csvsim_package_expl_bool



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