From 732efaaccd26ce1ce2dff31358af3539c8e9c95d Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 9 Apr 2018 21:13:49 +0000 Subject: context-handlecsv (9apr18) git-svn-id: svn://tug.org/texlive/trunk@47403 c570f23f-e606-0410-a88d-b1316a301751 --- .../context/third/handlecsv/t-handlecsv-extra.lua | 2 +- .../tex/context/third/handlecsv/t-handlecsv.tex | 29 ++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 Master/texmf-dist/tex/context/third/handlecsv/t-handlecsv.tex (limited to 'Master/texmf-dist/tex/context/third/handlecsv') diff --git a/Master/texmf-dist/tex/context/third/handlecsv/t-handlecsv-extra.lua b/Master/texmf-dist/tex/context/third/handlecsv/t-handlecsv-extra.lua index 6afcf07b068..f6860e60e8f 100644 --- a/Master/texmf-dist/tex/context/third/handlecsv/t-handlecsv-extra.lua +++ b/Master/texmf-dist/tex/context/third/handlecsv/t-handlecsv-extra.lua @@ -68,7 +68,7 @@ local string2print=[[% \def\addleading#1#2#3{\ctxlua{context(thirddata.handlecsv.addleadingcharacters('#1','#2','#3'))}} \def\addzeros#1#2{\ctxlua{context(thirddata.handlecsv.addleadingzeros('#1','#2'))}} \def\zeroed#1{\ctxlua{context(thirddata.handlecsv.addzeros('#1'))}} -\def\zeroedlineno{\ctxlua{context(string.rep( "0",(tostring(thirddata.handlecsv.numrows())):len() - (tostring(thirddata.handlecsv.linepointer())):len()) .. thirddata.handlecsv.linepointer())}}% from Pablo +\def\zeroedlineno{\zeroed{\lineno}}% from Pablo (and simplified by him) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/Master/texmf-dist/tex/context/third/handlecsv/t-handlecsv.tex b/Master/texmf-dist/tex/context/third/handlecsv/t-handlecsv.tex new file mode 100644 index 00000000000..b7f2a97db38 --- /dev/null +++ b/Master/texmf-dist/tex/context/third/handlecsv/t-handlecsv.tex @@ -0,0 +1,29 @@ +%D \module +%D [ file=t-handlecsv.tex, +%D version=2018.04.07, +%D title=HandleCSV module, +%D subtitle=CSV file handling, +%D author=Jaroslav Hajtmar, +%D date=\currentdate, +%D copyright=Jaroslav Hajtmar, +%D email=hajtmar@gyza.cz, +%D license=GNU General Public License] +% +%C Copyright (C) 2018 Jaroslav Hajtmar +%C +%C This program is free software: you can redistribute it and/or modify +%C it under the terms of the GNU General Public License as published by +%C the Free Software Foundation, either version 3 of the License, or +%C (at your option) any later version. +%C +%C This program is distributed in the hope that it will be useful, +%C but WITHOUT ANY WARRANTY; without even the implied warranty of +%C MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +%C GNU General Public License for more details. +%C +%C You should have received a copy of the GNU General Public License +%C along with this program. If not, see . + +\usemodule[handlecsv.lua] +\usemodule[handlecsv-extra.lua] +\usemodule[handlecsv-tools.lua] -- cgit v1.2.3