« first day (642 days earlier)      last day (4289 days later) » 
00:00 - 22:0022:00 - 00:00

10:00 PM
@JosephWright Wondering: how many lines should the file a<newline>b<newline> have? I'd say 3, just like {a&b&} has three cells.
but currently, for \ior_map_inline:Nn it has two lines only.
In oter words, \ior_map_inline:Nn ignores any trailing newline in a file.
 
@BrunoLeFloch Indeed, not clear to me. I guess I'd say three, as if I opened such a file in my editor it would let me go down to the third (empty) line
Weak argument, I realise
 
@JosephWright Same argument on my side :)
Plus the fact that {a&b&} has three cells.
 
@BrunoLeFloch Yes, that does make sense
 
The other example of list we have, clists, is not very good since it removes any empty item.
@JosephWright We definitely don't want to ignore empty lines :)
 
@BrunoLeFloch No, certainly not
 
10:04 PM
I think I know how to fix it, but I firstneed to add more tests.
Is it a big enough change to warrant wider discussion? I think not. Probably just a note in l3syntax-changes.
 
@BrunoLeFloch The inline mapping is not 'stable', so it's really up to you
@BrunoLeFloch On the mode business from earlier, your proposal makes sense to me
@BrunoLeFloch Another 'small' challenge, if you are after one, is to think again about the peek business to sort out the issue that for example I have in siunitx
(See the code there)
 
@JosephWright Which one? \mode_leave_vertical:, or also \mode_ensure_vertical: in some form? I'd also like to put \mode_ensure_math:n for \ensuremath
 
The hmode and vmode ones. I'd also agree about \ensuremath, although @egreg will not like it too much ;-)
I've mentioned these things before
 
@JosephWright And last time I looked, we were searching for a name for all the engine/platform/output tests. What about \system_if_pdftex:TF, \system_if_windows:TF, \system_if_dvi:TF, etc?
Is there the risk of a name clash?
@JosephWright Not sure which things you are referring to.
@JosephWright I've tried several times to understand what a good approach could be for the peek/table interaction, and I still don't know :(.
@JosephWright We should really log issues for all those things you mentionned. I'd say even for "do xor".
as a feature-request, perhaps, or add a tag "big-project", dunno.
 
10:43 PM
@JosephWright Ah, it seems TeX does not see newlines at the end of files :(. I've asked a question on this, let's see what Wizards can say about it.
0
Q: Can TeX detect a newline at the end of the file?

Bruno Le FlochIs TeX able to distinguish beween a file containing, say, the single character a/ byte 97; and a file containing this same character followed by a newline marker (which is system-dependent)? I had a bit of trouble creating a file with no trailing newline, so in case you need it, here is one way:...

Good night Andrew, Harish
 
@HarishKumar I've done the list of row numbers that has N/A in it. Now it's time to read that array and send it to row predicate.
 
11:07 PM
@BrunoLeFloch: Good night and see you.
@percusse: Hi And wow, great. Can't wait to see the solution.
 
11:20 PM
@HarishKumar Can you please try to break this code down? It seems like it is working but probably slowed down a lot due to the tricks that I've pulled off. If so, we can look for some alternatives.
\documentclass{article}
\usepackage{pgfplotstable,xstring}
\usepackage{filecontents,etoolbox}
%
\begin{filecontents}{namespgf.csv}
Reg.No.,Name
5501,Kathirvelu A
5502,Gugan K
5503,Kalaitchelvi S
5504,Suresh S
5505,Mahesh K
5506,Balini N
5507,Kumar H
5508,Khalate A
\end{filecontents}
%
\begin{filecontents}{markspgf.csv}
number,marks
5501,67
5502,25
5503,62
5505,95
5507,100
\end{filecontents}
\def\marksuccess{}
\def\mypopulatedlist{}
\newcounter{myrowcount}
\setcounter{myrowcount}{0}


\begin{document}
It is better to test it before I update the answer.
 
@percusse: Sure. I am on it. Shall I add more data and test so that we get some clear idea of speed. I am on it right away. Gimme some 10-15 minutes.
 
@HarishKumar Yes please add more data to get an idea.
 
11:45 PM
@percusse: Great, It works but for only 10 entries. Try to add
\begin{filecontents}{namespgf.csv}
Reg.No.,Name,place
5501,Kathirvelu A,re
5502,Gugan K,rt
5503,Kalaitchelvi S,uy
5504,Suresh S,itr
5505,Mahesh K,utyehd
5506,Balini N,utyehd
5507,Kumar H,utyehd
5508,Khalate A,utyehd
5509,me,hgte
5510,you,there
5511,them,here
5512,who,where
\end{filecontents}
 
@HarishKumar Ah, of course it looks only for one character in the list.
Let me try again :)
 
Then we still get N/A. How to increase that number to say 500. I want atleast up to 500 entries.
@percusse: Thank you. I will be online.
 
@HarishKumar I have to say that it should look until the next comma in the list.
 
@percusse: The third column is not a problem (I think so) But the number of rows. If greater than 10, then we are having trouble.
 
@HarishKumar Change the last part of the code as follows and it works with your new list.
\pgfplotstabletypeset[
column type=l,
columns={Reg.No.,Name,Marks},
row predicate/.code={%
\StrBefore{\mypopulatedlist}{,}[\mynextrow] %Look at the first number before the comma on the list
\IfStrEq{#1}{\mynextrow}{%If the current row is equal to that number
\StrLen{\mynextrow}[\numberlength]
\StrGobbleLeft{\mypopulatedlist}{\number\numexpr\numberlength+1\relax}[\mytemplist]%Delete this number and the comma from the list
\edef\mypopulatedlist{\mytemplist}%Overwrite the old list with the new
\pgfplotstableuserowfalse% Tell pgfplots omit this row
 
00:00 - 22:0022:00 - 00:00

« first day (642 days earlier)      last day (4289 days later) »