summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/csvsimple
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-10-17 03:01:53 +0000
committerNorbert Preining <norbert@preining.info>2023-10-17 03:01:53 +0000
commit3e9c5c6e1c118283b7775fd707379f8c9fdd3fd5 (patch)
tree40f420b2cc25378ebd0cd509854828b1b7aa337f /macros/latex/contrib/csvsimple
parentc4125da665ac93db063e3c177f4fc5d172f5866f (diff)
CTAN sync 202310170301
Diffstat (limited to 'macros/latex/contrib/csvsimple')
-rw-r--r--macros/latex/contrib/csvsimple/CHANGES.md23
-rw-r--r--macros/latex/contrib/csvsimple/README.md2
-rw-r--r--macros/latex/contrib/csvsimple/csvsimple-doc.sty6
-rw-r--r--macros/latex/contrib/csvsimple/csvsimple-example.pdfbin72043 -> 72044 bytes
-rw-r--r--macros/latex/contrib/csvsimple/csvsimple-example.tex2
-rw-r--r--macros/latex/contrib/csvsimple/csvsimple-l3.pdfbin921414 -> 933300 bytes
-rw-r--r--macros/latex/contrib/csvsimple/csvsimple-l3.sty102
-rw-r--r--macros/latex/contrib/csvsimple/csvsimple-l3.tex371
-rw-r--r--macros/latex/contrib/csvsimple/csvsimple-legacy.pdfbin690970 -> 690985 bytes
-rw-r--r--macros/latex/contrib/csvsimple/csvsimple-legacy.sty4
-rw-r--r--macros/latex/contrib/csvsimple/csvsimple-legacy.tex2
-rw-r--r--macros/latex/contrib/csvsimple/csvsimple.pdfbin295749 -> 295804 bytes
-rw-r--r--macros/latex/contrib/csvsimple/csvsimple.sty4
-rw-r--r--macros/latex/contrib/csvsimple/csvsimple.tex2
14 files changed, 378 insertions, 140 deletions
diff --git a/macros/latex/contrib/csvsimple/CHANGES.md b/macros/latex/contrib/csvsimple/CHANGES.md
index 769baa5b68..18e055de83 100644
--- a/macros/latex/contrib/csvsimple/CHANGES.md
+++ b/macros/latex/contrib/csvsimple/CHANGES.md
@@ -16,6 +16,29 @@ and this project adheres to
### Security
+## [2.5.0] - 2023-10-16
+
+### Added
+- New survey tables (issue #29):
+ - `\csvautotabularray`
+ - `\csvautotabularray*`
+ - `\csvautolongtabularray`
+ - `\csvautolongtabularray*`
+- New corresponding options (issue #29)
+ - `autotabularray`
+ - `autotabularray*`
+ - `autolongtabularray`
+ - `autolongtabularray*`
+
+### Changed
+- Documentation typos fixed (issue #30)
+- Survey tables moved into a separate section
+
+### Fixed
+- `collect data` does not collect `after first line` (issue #28)
+
+
+
## [2.4.0] - 2023-05-09
### Added
diff --git a/macros/latex/contrib/csvsimple/README.md b/macros/latex/contrib/csvsimple/README.md
index f0c928fe02..d72e0a6cc7 100644
--- a/macros/latex/contrib/csvsimple/README.md
+++ b/macros/latex/contrib/csvsimple/README.md
@@ -1,4 +1,4 @@
-# The LaTeX package csvsimple - version 2.4.0 (2023/05/09)
+# The LaTeX package csvsimple - version 2.5.0 (2023/10/16)
> Copyright (c) 2008-2023 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
diff --git a/macros/latex/contrib/csvsimple/csvsimple-doc.sty b/macros/latex/contrib/csvsimple/csvsimple-doc.sty
index b30ec16b39..36f052ac9b 100644
--- a/macros/latex/contrib/csvsimple/csvsimple-doc.sty
+++ b/macros/latex/contrib/csvsimple/csvsimple-doc.sty
@@ -1,5 +1,5 @@
% !TeX encoding=UTF-8
-%% The LaTeX package csvsimple - version 2.4.0 (2023/05/09)
+%% The LaTeX package csvsimple - version 2.5.0 (2023/10/16)
%% 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.4.0}%
-\def\datum{2023/05/09}%
+\def\version{2.5.0}%
+\def\datum{2023/10/16}%
\IfFileExists{csvsimple-doc.cfg}{\input{csvsimple-doc.cfg}}{}\providecommand\csvpkgprefix{}
diff --git a/macros/latex/contrib/csvsimple/csvsimple-example.pdf b/macros/latex/contrib/csvsimple/csvsimple-example.pdf
index 13485dc4d8..8915e27291 100644
--- a/macros/latex/contrib/csvsimple/csvsimple-example.pdf
+++ b/macros/latex/contrib/csvsimple/csvsimple-example.pdf
Binary files differ
diff --git a/macros/latex/contrib/csvsimple/csvsimple-example.tex b/macros/latex/contrib/csvsimple/csvsimple-example.tex
index 3d0fdd0448..5d872f5fb2 100644
--- a/macros/latex/contrib/csvsimple/csvsimple-example.tex
+++ b/macros/latex/contrib/csvsimple/csvsimple-example.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package csvsimple - version 2.4.0 (2023/05/09)
+%% The LaTeX package csvsimple - version 2.5.0 (2023/10/16)
%% csvsimple-example.tex: an example for csvsimple
%%
%% -------------------------------------------------------------------------------------------
diff --git a/macros/latex/contrib/csvsimple/csvsimple-l3.pdf b/macros/latex/contrib/csvsimple/csvsimple-l3.pdf
index 460c0de9fb..9bf62e2f40 100644
--- a/macros/latex/contrib/csvsimple/csvsimple-l3.pdf
+++ b/macros/latex/contrib/csvsimple/csvsimple-l3.pdf
Binary files differ
diff --git a/macros/latex/contrib/csvsimple/csvsimple-l3.sty b/macros/latex/contrib/csvsimple/csvsimple-l3.sty
index 87e48bda79..cb6a676054 100644
--- a/macros/latex/contrib/csvsimple/csvsimple-l3.sty
+++ b/macros/latex/contrib/csvsimple/csvsimple-l3.sty
@@ -1,4 +1,4 @@
-%% The LaTeX package csvsimple - version 2.4.0 (2023/05/09)
+%% The LaTeX package csvsimple - version 2.5.0 (2023/10/16)
%% csvsimple-l3.sty: Simple LaTeX CSV file processing (LaTeX3)
%%
%% -------------------------------------------------------------------------------------------
@@ -17,7 +17,7 @@
%%
%% This work consists of all files listed in README.md
%%
-\ProvidesExplPackage{csvsimple-l3}{2023/05/09}{2.4.0}
+\ProvidesExplPackage{csvsimple-l3}{2023/10/16}{2.5.0}
{LaTeX3 CSV file processing}
@@ -967,6 +967,7 @@
\cs_new_protected_nopar:Npn \__csvsim_collect_data:
{
\__csvsim_gset_tl_to_collect:N \g__csvsim_hook_after_head_tl
+ \__csvsim_gset_tl_to_collect:N \g__csvsim_hook_after_first_line_tl
\__csvsim_gset_tl_to_collect:N \g__csvsim_hook_after_line_tl
\__csvsim_gset_tl_to_collect:N \g__csvsim_hook_before_first_line_tl
\__csvsim_gset_tl_to_collect:N \g__csvsim_hook_before_line_tl
@@ -1325,6 +1326,56 @@
table~head = \toprule\endhead
\bottomrule\endfoot,
},
+ _autotabularray_ .meta:n =
+ {
+ file = {#1},
+ command = \csvlinetotablerow,
+ no~head,
+ generic~collected~table = tblr,
+ },
+ autotabularray .meta:n =
+ {
+ _autotabularray_ = {#1},
+ generic~table~options =
+ { {
+ row{1} = {font=\bfseries},
+ hline{1,Z} = {0.8pt},
+ hline{2} = {0.4pt},
+ } }
+ },
+ autotabularray* .meta:n =
+ {
+ _autotabularray_ = {#1},
+ generic~table~options =
+ { {
+ hline{1,Z} = {0.8pt},
+ } }
+ },
+ _autolongtabularray_ .meta:n =
+ {
+ file = {#1},
+ command = \csvlinetotablerow,
+ no~head,
+ generic~collected~table = longtblr,
+ },
+ autolongtabularray .meta:n =
+ {
+ _autolongtabularray_ = {#1},
+ generic~table~options =
+ { {
+ row{1} = {font=\bfseries},
+ hline{1,Z} = {0.8pt},
+ hline{2} = {0.4pt},
+ } }
+ },
+ autolongtabularray* .meta:n =
+ {
+ _autolongtabularray_ = {#1},
+ generic~table~options =
+ { {
+ hline{1,Z} = {0.8pt},
+ } }
+ },
}
@@ -1380,6 +1431,53 @@
}
+\NewDocumentCommand \csvautotabularray { s +O{} m +o +o }
+ {
+ \keys_set:nn { csvsim } { default, every~csv }
+ \IfBooleanTF {#1}
+ {
+ \keys_set:nn { csvsim } { autotabularray*={#3}, #2}
+ }
+ {
+ \keys_set:nn { csvsim } { autotabularray={#3}, #2}
+ }
+ \IfNoValueF {#4}
+ {
+ \IfNoValueTF {#5}
+ {
+ \keys_set:nn { csvsim } { generic~table~options = { { #4 } } }
+ }
+ {
+ \keys_set:nn { csvsim } { generic~table~options = { [ #4 ]{ #5 } } }
+ }
+ }
+ \__csvsim_loop:
+ }
+
+
+\NewDocumentCommand \csvautolongtabularray { s +O{} m +o +o }
+ {
+ \keys_set:nn { csvsim } { default, every~csv }
+ \IfBooleanTF {#1}
+ {
+ \keys_set:nn { csvsim } { autolongtabularray*={#3}, #2}
+ }
+ {
+ \keys_set:nn { csvsim } { autolongtabularray={#3}, #2}
+ }
+ \IfNoValueF {#4}
+ {
+ \IfNoValueTF {#5}
+ {
+ \keys_set:nn { csvsim } { generic~table~options = { { #4 } } }
+ }
+ {
+ \keys_set:nn { csvsim } { generic~table~options = { [ #4 ]{ #5 } } }
+ }
+ }
+ \__csvsim_loop:
+ }
+
%---- sorting
diff --git a/macros/latex/contrib/csvsimple/csvsimple-l3.tex b/macros/latex/contrib/csvsimple/csvsimple-l3.tex
index 32595572b5..3377217755 100644
--- a/macros/latex/contrib/csvsimple/csvsimple-l3.tex
+++ b/macros/latex/contrib/csvsimple/csvsimple-l3.tex
@@ -1,6 +1,7 @@
% \LaTeX-Main\
% !TeX encoding=UTF-8
-%% The LaTeX package csvsimple - version 2.4.0 (2023/05/09)
+% !TeX spellcheck=en_US
+%% The LaTeX package csvsimple - version 2.5.0 (2023/10/16)
%% csvsimple.tex: Manual
%%
%% -------------------------------------------------------------------------------------------
@@ -52,7 +53,7 @@
{\large Thomas F.~Sturm%
\footnote{Prof.~Dr.~Dr.~Thomas F.~Sturm, Institut f\"{u}r Mathematik und Informatik,
University of the Bundeswehr Munich, D-85577 Neubiberg, Germany;
- email: \href{mailto:thomas.sturm@unibw.de}{thomas.sturm@unibw.de}}\par\medskip
+ email: \href{mailto:thomas.sturm@unibw.de}{thomas.sturm@unibw.de}}\par\medskip
\normalsize\url{https://www.ctan.org/pkg/csvsimple}\par
\url{https://github.com/T-F-S/csvsimple}
}
@@ -429,109 +430,6 @@ is useless for |\csvreader|.
\end{dispExample}
\end{docCommand}
-\bigskip
-
-The following |\csvauto...| commands are intended for quick data overview
-with limited formatting potential.
-See Subsection~\ref{subsec:tabsupport} on page \pageref{subsec:tabsupport}
-for the general table options in combination with \refCom{csvreader} and
-\refCom{csvloop}.
-
-\begin{docCommands}[
- doc parameter = \oarg{options}\marg{file name}
- ]
- {
- { doc name = csvautotabular },
- { doc name = csvautotabular*, doc new = 2021-06-25 }
- }
- |\csvautotabular| or |\csvautotabular*|
- is an abbreviation for the application of the option key
- \refKey{/csvsim/autotabular} or \refKey{/csvsim/autotabular*}
- together with other \meta{options} to \refCom{csvloop}.
- This macro reads the whole CSV file denoted by \meta{file name}
- with an automated formatting.
- The star variant treats the first line as data line and not as header line.
-\begin{dispExample}
-\csvautotabular*{grade.csv}
-\end{dispExample}
-\begin{dispExample}
-\csvautotabular[filter equal={\csvcoliv}{f}]{grade.csv}
-\end{dispExample}
-\end{docCommands}
-
-\clearpage
-
-\begin{docCommands}[
- doc parameter = \oarg{options}\marg{file name}
- ]
- {
- { doc name = csvautolongtable },
- { doc name = csvautolongtable*, doc new = 2021-06-25 }
- }
- |\csvautolongtable| or |\csvautolongtable*|
- is an abbreviation for the application of the option key
- \refKey{/csvsim/autolongtable} or \refKey{/csvsim/autolongtable*}
- together with other \meta{options} to \refCom{csvloop}.
- This macro reads the whole CSV file denoted by \meta{file name}
- with an automated formatting.
- For application, the package |longtable| is required which has to be
- loaded in the preamble.
- The star variant treats the first line as data line and not as header line.
-\begin{dispListing}
-\csvautolongtable{grade.csv}
-\end{dispListing}
-\csvautolongtable{grade.csv}
-\end{docCommands}
-
-
-
-\begin{docCommands}[
- doc parameter = \oarg{options}\marg{file name}
- ]
- {
- { doc name = csvautobooktabular },
- { doc name = csvautobooktabular*, doc new = 2021-06-25 }
- }
- |\csvautobooktabular| or |\csvautobooktabular*|
- is an abbreviation for the application of the option key
- \refKey{/csvsim/autobooktabular} or \refKey{/csvsim/autobooktabular*}
- together with other \meta{options} to \refCom{csvloop}.
- This macro reads the whole CSV file denoted by \meta{file name}
- with an automated formatting.
- For application, the package |booktabs| is required which has to be
- loaded in the preamble.
- The star variant treats the first line as data line and not as header line.
-\begin{dispExample}
-\csvautobooktabular{grade.csv}
-\end{dispExample}
-\end{docCommands}
-
-
-\begin{docCommands}[
- doc parameter = \oarg{options}\marg{file name}
- ]
- {
- { doc name = csvautobooklongtable },
- { doc name = csvautobooklongtable*, doc new = 2021-06-25 }
- }
- |\csvautobooklongtable| or |\csvautobooklongtable*|
- is an abbreviation for the application of the option key
- \refKey{/csvsim/autobooklongtable} or \refKey{/csvsim/autobooklongtable*}
- together with other \meta{options} to \refCom{csvloop}.
- This macro reads the whole CSV file denoted by \meta{file name}
- with an automated formatting.
- For application, the packages |booktabs| and |longtable| are required which have to be
- loaded in the preamble.
- The star variant treats the first line as data line and not as header line.
-\begin{dispListing}
-\csvautobooklongtable{grade.csv}
-\end{dispListing}
-\csvautobooklongtable{grade.csv}
-\end{docCommands}
-
-
-
-\clearpage
\begin{docCommand}[doc updated = 2021-06-25]{csvset}{\marg{options}}
Sets \meta{options} for every following
@@ -564,6 +462,7 @@ The following students passed the test in mathematics:\\
\end{dispExample}
\end{docCommand}
+\enlargethispage*{1cm}
\begin{docCommand}{csvnames}{\marg{key}\marg{assignments}}
Abbreviation for |\csvstyle{|\meta{key}|}{column names=|\marg{assignments}|}|
@@ -723,7 +622,7 @@ purpose:
Typesets the current data line number. This is the
current number of accepted data lines without the header line.
Despite of the name, there is no associated \LaTeX\ counter |csvrow|,
- but \refCom{thecsvrow} is an accessor the \LaTeX3 integer
+ but \refCom{thecsvrow} accesses the \LaTeX3 integer
\refCom{g_csvsim_row_int}.
\end{docCommands}
@@ -736,7 +635,7 @@ purpose:
is either computed from the first valid line (header or data) or
given by \refKey{/csvsim/column count}.
Despite of the name, there is no associated \LaTeX\ counter |csvcolumncount|,
- but \refCom{thecsvcolumncount} is an accessor the \LaTeX3 integer
+ but \refCom{thecsvcolumncount} accesses the \LaTeX3 integer
\refCom{g_csvsim_columncount_int}.
\begin{dispExample}
\csvreader{grade.csv}{}{}%
@@ -769,6 +668,210 @@ is \thecsvinputline{}.
+\clearpage
+\section{Macros for Automatic Survey Tables}\label{sec:autotable}%
+
+The following |\csvauto...| commands are intended for quick data overview
+with \emph{limited} formatting potential.
+The most customizable |\csvauto...| commands are
+\refCom{csvautotabularray} and friends.
+
+For full control see Subsection~\ref{subsec:tabsupport} on page \pageref{subsec:tabsupport}
+for the general table options in combination with \refCom{csvreader} and
+\refCom{csvloop}.
+
+\begin{docCommands}[
+ doc parameter = \oarg{options}\marg{file name}
+ ]
+ {
+ { doc name = csvautotabular },
+ { doc name = csvautotabular*, doc new = 2021-06-25 }
+ }
+ |\csvautotabular| or |\csvautotabular*|
+ is an abbreviation for the application of the option key
+ \refKey{/csvsim/autotabular} or \refKey{/csvsim/autotabular*}
+ together with other \meta{options} to \refCom{csvloop}.
+ This macro reads the whole CSV file denoted by \meta{file name}
+ with an automated formatting.
+ The star variant treats the first line as data line and not as header line.
+\begin{dispExample}
+\csvautotabular*{grade.csv}
+\end{dispExample}
+\begin{dispExample}
+\csvautotabular[filter equal={\csvcoliv}{f}]{grade.csv}
+\end{dispExample}
+\end{docCommands}
+
+
+
+\begin{docCommands}[
+ doc parameter = \oarg{options}\marg{file name}
+ ]
+ {
+ { doc name = csvautolongtable },
+ { doc name = csvautolongtable*, doc new = 2021-06-25 }
+ }
+ |\csvautolongtable| or |\csvautolongtable*|
+ is an abbreviation for the application of the option key
+ \refKey{/csvsim/autolongtable} or \refKey{/csvsim/autolongtable*}
+ together with other \meta{options} to \refCom{csvloop}.
+ This macro reads the whole CSV file denoted by \meta{file name}
+ with an automated formatting.
+ For application, the package \ctanpkg{longtable} is required which has to be
+ loaded in the preamble.
+ The star variant treats the first line as data line and not as header line.
+\begin{dispListing}
+\csvautolongtable{grade.csv}
+\end{dispListing}
+\csvautolongtable{grade.csv}
+\end{docCommands}
+
+
+\clearpage
+
+
+\begin{docCommands}[
+ doc parameter = \oarg{options}\marg{file name}
+ ]
+ {
+ { doc name = csvautobooktabular },
+ { doc name = csvautobooktabular*, doc new = 2021-06-25 }
+ }
+ |\csvautobooktabular| or |\csvautobooktabular*|
+ is an abbreviation for the application of the option key
+ \refKey{/csvsim/autobooktabular} or \refKey{/csvsim/autobooktabular*}
+ together with other \meta{options} to \refCom{csvloop}.
+ This macro reads the whole CSV file denoted by \meta{file name}
+ with an automated formatting.
+ For application, the package \ctanpkg{booktabs} is required which has to be
+ loaded in the preamble.
+ The star variant treats the first line as data line and not as header line.
+\begin{dispExample}
+\csvautobooktabular{grade.csv}
+\end{dispExample}
+\end{docCommands}
+
+
+\begin{docCommands}[
+ doc parameter = \oarg{options}\marg{file name}
+ ]
+ {
+ { doc name = csvautobooklongtable },
+ { doc name = csvautobooklongtable*, doc new = 2021-06-25 }
+ }
+ |\csvautobooklongtable| or |\csvautobooklongtable*|
+ is an abbreviation for the application of the option key
+ \refKey{/csvsim/autobooklongtable} or \refKey{/csvsim/autobooklongtable*}
+ together with other \meta{options} to \refCom{csvloop}.
+ This macro reads the whole CSV file denoted by \meta{file name}
+ with an automated formatting.
+ For application, the packages \ctanpkg{booktabs} and \ctanpkg{longtable} are required which have to be
+ loaded in the preamble.
+ The star variant treats the first line as data line and not as header line.
+\begin{dispListing}
+\csvautobooklongtable{grade.csv}
+\end{dispListing}
+\csvautobooklongtable{grade.csv}
+\end{docCommands}
+
+
+\clearpage
+
+\begin{docCommands}[
+ doc parameter = \oarg{options}\marg{file name}\oarg{taboptions 1}\oarg{taboptions 2},
+ doc new = 2023-10-13
+ ]
+ {
+ { doc name = csvautotabularray },
+ { doc name = csvautotabularray* },
+ { doc name = csvautolongtabularray },
+ { doc name = csvautolongtabularray* },
+ }
+ These macros are abbreviations for the application of the option keys
+ \refKey{/csvsim/autotabularray}, \refKey{/csvsim/autotabularray*},\\
+ \refKey{/csvsim/autolongtabularray}, or \refKey{/csvsim/autolongtabularray*}
+ together with other \meta{options} to \refCom{csvloop}.
+ These macros read the whole CSV file denoted by \meta{file name}
+ with an automated formatting.
+ For application, the package \ctanpkg{tabularray} is required which has to be
+ loaded in the preamble.
+ \refCom{csvautotabularray} uses the \docAuxEnvironment*{tblr} environment and
+ \refCom{csvautolongtabularray} uses the \docAuxEnvironment*{longtblr} environment.
+ The star variants treat the first line as data line and not as header line.\par
+ Options to the table environments from \ctanpkg{tabularray} may be given
+ by either setting \refKey{/csvsim/generic table options} or
+ using \meta{taboptions 1} and \meta{taboptions 2}.\par
+ The default setting is
+\begin{dispListing}
+generic table options =
+ { {
+ row{1} = {font=\bfseries},
+ hline{1,Z} = {0.8pt},
+ hline{2} = {0.4pt},
+ } }
+\end{dispListing}
+ For the star variants, the default setting is
+\begin{dispListing}
+generic table options =
+ { {
+ hline{1,Z} = {0.8pt},
+ } }
+\end{dispListing}
+
+Examples:
+
+\begin{dispExample}
+\csvautotabularray{grade.csv}
+\end{dispExample}
+
+\begin{dispExample}
+\csvautotabularray[table centered,
+ generic table options =
+ {{
+ row{odd} = {red!85!gray!7},
+ row{1} = {bg=red!85!gray, fg=white, font=\bfseries},
+ }}
+ ]
+ {grade.csv}
+\end{dispExample}
+
+\clearpage
+
+Alternatively to \refKey{/csvsim/generic table options}
+(and overruling this option), one may give options to
+\docAuxEnvironment*{tblr} or \docAuxEnvironment*{longtblr}
+using \meta{taboptions 1} and \meta{taboptions 2}.
+If \meta{taboptions 2} is \emph{not present}, then \meta{taboptions 1}
+is used as mandatory argument.
+Otherwise, \meta{taboptions 1} is used as optional argument and
+\meta{taboptions 2} as mandatory argument.
+
+\begin{dispExample}
+\csvautotabularray[table centered]
+ {grade.csv}
+ [
+ row{odd} = {red!85!gray!7},
+ row{1} = {bg=red!85!gray, fg=white, font=\bfseries},
+ ]
+\end{dispExample}
+
+
+\begin{dispExample}
+\csvautotabularray[table centered]
+ {grade.csv}
+ [
+ tall,
+ caption = {My table},
+ remark{Note} = {My remark},
+ ]
+ [
+ row{odd} = {red!85!gray!7},
+ row{1} = {bg=red!85!gray, fg=white, font=\bfseries},
+ ]
+\end{dispExample}
+
+
+\end{docCommands}
\clearpage
@@ -1209,7 +1312,7 @@ filter options:
\begin{docCsvKeys}[
doc parameter = {=\marg{floating point expression}},
- doc description = {style,no default},
+ doc description = {style, no default},
doc new = {2022-10-21}
]
{
@@ -1223,7 +1326,7 @@ filter options:
\begin{docCsvKeys}[
doc parameter = {=\marg{boolean expression}},
- doc description = {style,no default},
+ doc description = {style, no default},
doc new = {2022-10-21}
]
{
@@ -1637,7 +1740,8 @@ are described with predefined keys. The following keys allow to use further
\subsubsection{General Survey Tables}\label{subsubsec:table_survey}
The following |auto| options are the counterparts for the respective quick
-overview commands like \refCom{csvautotabular}. They are listed for
+overview commands like \refCom{csvautotabular}, see Section~\ref{sec:autotable}.
+They are listed for
completeness, but are unlikely to be used directly.
\begin{docCsvKeys}[
@@ -1695,6 +1799,25 @@ completeness, but are unlikely to be used directly.
\end{docCsvKeys}
+\begin{docCsvKeys}[
+ doc parameter = {=\meta{file name}},
+ doc description = no default,
+ doc new = {2023-10-13}
+ ]
+ {
+ { doc name = autotabularray },
+ { doc name = autotabularray* },
+ { doc name = autolongtabularray },
+ { doc name = autolongtabularray* },
+ }
+ Reads the whole CSV file denoted \meta{file name} with an automated formatting
+ using the required |tabularray| package.
+ \refKey{/csvsim/autotabularray} uses the \docAuxEnvironment*{tblr} environment and
+ \refKey{/csvsim/autolongtabularray} uses the \docAuxEnvironment*{longtblr} environment.
+ The star variants treat the first line as data line and not as header line.
+\end{docCsvKeys}
+
+
\clearpage
\subsection{Special Characters}\label{subsec:specchar}
Be default, the CSV content is treated like normal \LaTeX\ text, see
@@ -2841,29 +2964,23 @@ Display data from line 3 on:\par
\clearpage
-The following example displays a \ctanpkg{tabularray} variant of the
-\refCom{csvautotabular} command. Note the \refKey{/csvsim/no head} option
-to read the first line as data line. Also note that \refCom{csvlinetotablerow}
-is used without preceding modifier.
+The following example uses \refCom{csvautotabularray} to display the whole
+table. Note that the \ctanpkg{tabularray} options are given as last
+optional argument.
\begin{dispExample}
% \usepackage{tabularray}
-\csvreader[
- no head,
- centered tabularray =
- {
- row{odd} = {blue!85!gray!7},
- row{1} = {blue!50!gray!25, font=\bfseries},
- },
- table head = {\hline[0.1em,blue!50!black]},
- table foot = {\hline[0.1em,blue!50!black]},
- late after first line = {\\\hline[blue!50!black]},
-]{data.csv}{}{%
- \csvlinetotablerow%
-}
+\csvautotabularray[table centered]{data.csv}
+ [
+ row{odd} = {blue!85!gray!7},
+ row{1} = {blue!50!gray!25, font=\bfseries},
+ hline{1,Z} = {0.1em, blue!50!black},
+ hline{2} = {blue!50!black}
+ ]
\end{dispExample}
+
\clearpage
\subsection{Imported CSV data}\label{sec:importeddata}%
If data is imported from other applications, there is not always a choice
diff --git a/macros/latex/contrib/csvsimple/csvsimple-legacy.pdf b/macros/latex/contrib/csvsimple/csvsimple-legacy.pdf
index ebf97bfd4e..a2b995531c 100644
--- a/macros/latex/contrib/csvsimple/csvsimple-legacy.pdf
+++ b/macros/latex/contrib/csvsimple/csvsimple-legacy.pdf
Binary files differ
diff --git a/macros/latex/contrib/csvsimple/csvsimple-legacy.sty b/macros/latex/contrib/csvsimple/csvsimple-legacy.sty
index 915d318c27..f47d7540bd 100644
--- a/macros/latex/contrib/csvsimple/csvsimple-legacy.sty
+++ b/macros/latex/contrib/csvsimple/csvsimple-legacy.sty
@@ -1,4 +1,4 @@
-%% The LaTeX package csvsimple - version 2.4.0 (2023/05/09)
+%% The LaTeX package csvsimple - version 2.5.0 (2023/10/16)
%% 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}[2023/05/09 version 2.4.0 LaTeX2e CSV file processing]
+\ProvidesPackage{csvsimple-legacy}[2023/10/16 version 2.5.0 LaTeX2e CSV file processing]
%---- check package
diff --git a/macros/latex/contrib/csvsimple/csvsimple-legacy.tex b/macros/latex/contrib/csvsimple/csvsimple-legacy.tex
index 1fe95b89b8..290d512fb5 100644
--- a/macros/latex/contrib/csvsimple/csvsimple-legacy.tex
+++ b/macros/latex/contrib/csvsimple/csvsimple-legacy.tex
@@ -1,6 +1,6 @@
% \LaTeX-Main\
% !TeX encoding=UTF-8
-%% The LaTeX package csvsimple - version 2.4.0 (2023/05/09)
+%% The LaTeX package csvsimple - version 2.5.0 (2023/10/16)
%% csvsimple.tex: Manual
%%
%% -------------------------------------------------------------------------------------------
diff --git a/macros/latex/contrib/csvsimple/csvsimple.pdf b/macros/latex/contrib/csvsimple/csvsimple.pdf
index 8a9fb039bb..e4b5badc01 100644
--- a/macros/latex/contrib/csvsimple/csvsimple.pdf
+++ b/macros/latex/contrib/csvsimple/csvsimple.pdf
Binary files differ
diff --git a/macros/latex/contrib/csvsimple/csvsimple.sty b/macros/latex/contrib/csvsimple/csvsimple.sty
index ae9306a2a8..1d3840f1eb 100644
--- a/macros/latex/contrib/csvsimple/csvsimple.sty
+++ b/macros/latex/contrib/csvsimple/csvsimple.sty
@@ -1,4 +1,4 @@
-%% The LaTeX package csvsimple - version 2.4.0 (2023/05/09)
+%% The LaTeX package csvsimple - version 2.5.0 (2023/10/16)
%% csvsimple.sty: Simple LaTeX CSV file processing
%%
%% -------------------------------------------------------------------------------------------
@@ -19,7 +19,7 @@
%%
\RequirePackage{l3keys2e}
-\ProvidesExplPackage{csvsimple}{2023/05/09}{2.4.0}
+\ProvidesExplPackage{csvsimple}{2023/10/16}{2.5.0}
{LaTeX CSV file processing}
\cs_if_exist:NT \c__csvsim_package_expl_bool
diff --git a/macros/latex/contrib/csvsimple/csvsimple.tex b/macros/latex/contrib/csvsimple/csvsimple.tex
index 5aa9e34ca7..7e4e93d1ed 100644
--- a/macros/latex/contrib/csvsimple/csvsimple.tex
+++ b/macros/latex/contrib/csvsimple/csvsimple.tex
@@ -1,6 +1,6 @@
% \LaTeX-Main\
% !TeX encoding=UTF-8
-%% The LaTeX package csvsimple - version 2.4.0 (2023/05/09)
+%% The LaTeX package csvsimple - version 2.5.0 (2023/10/16)
%% csvsimple.tex: Manual
%%
%% -------------------------------------------------------------------------------------------