diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/unicode-alphabets/csvsimple.tmp.patch.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/unicode-alphabets/csvsimple.tmp.patch.tex | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/unicode-alphabets/csvsimple.tmp.patch.tex b/Master/texmf-dist/tex/latex/unicode-alphabets/csvsimple.tmp.patch.tex new file mode 100644 index 00000000000..ea229dad78a --- /dev/null +++ b/Master/texmf-dist/tex/latex/unicode-alphabets/csvsimple.tmp.patch.tex @@ -0,0 +1,20 @@ +% https://github.com/T-F-S/csvsimple/issues/7 + +\makeatletter + +\def\set@csv@autohead{% + \toks0=\expandafter{\csname\csv@headnameprefix\csv@current@col\endcsname}% + \toks1=\expandafter{\csname csvcol\romannumeral\c@csvcol\endcsname}% + \begingroup\edef\csv@temp{\endgroup\noexpand\gdef\the\toks0{\the\toks1}\noexpand\csv@AtEndLoop{\noexpand\gdef\the\toks0{}}}% + \csv@temp% +} + +\csvset{% + head to column names prefix/.store in=\csv@headnameprefix,% + head to column names prefix=,% + xltabular/.style 2 args={ + @table={\csv@pretable\begin{xltabular}{#1}{#2}\csv@tablehead}{\csv@tablefoot\end{xltabular}\csv@posttable}, + late after line=\\}, +} + +\makeatother |