This is a follow-up on this question: Creating bullet-list from string with delimiters
I have a CSV file where I genereate some tables from. Some of those table cells will have items that should be itemized.
MWE:
\documentclass{scrreprt}
\usepackage{csvsimple}
\usepackage{etoolbox}
\DeclareListParser{\ListParser}{|}
\newcommand{\listItems}[1]{
\parbox{10cm}{
\begin{itemize}
\newcommand*{\do}[1]{\item[] ##1}
\expandafter\ListParser\expandafter{#1}
\ListParser{#1}
\end{itemize}
}
}
\begin{document}
\csvreader[head to column names]{content/usecases.csv}{}{%
\begin{table}
\begin{tabular}{|l|l|}
\hline
Name & \ucname \\ \hline
Trigger & \listItems{\trigger} \\ \hline
\end{tabular}
\end{table}
}
\end{document}
CSV Example:
ucname,trigger
test,This is|A test
test2,Barely
test3,No List
test4,List|Again|Here
However, this current code gives me the output of the whole string of \trigger twice, and not delimited.

\item[]which nullifies the bullet. – Werner Aug 13 '14 at 00:11Something's wrong--perhaps a missing \item. }.. Adding back in\ListParser{#1}makes it compile and spit it out both right and wrong at the same time.. (Both the separated string and the complete string as separate bulletpoints) – Frederik Aug 13 '14 at 17:00\ListParsercommand. You probably have two. Make sure that this is the case. I see two in your code snippet in the post. – Werner Aug 13 '14 at 17:05filecontentsfor portability. If that doesn't compile for you, then clear all your auxiliary files and try again. If that doesn't work, include\listfilesin your preamble and report back on the file list displayed in your.log- you may have outdated versions of packages. – Werner Aug 13 '14 at 17:39Missing character: There is no ø in font cmr10!andMissing character: There is no å in font cmr10!– Frederik Aug 13 '14 at 20:26test,This is|A testandtest22,where it is the last one that will make this thing fail. – Frederik Aug 13 '14 at 20:52itemizewithout an\item, which is the problem. One would need to test whether the list is empty and condition on typesetting anitemizebased on that. I'll write something up (later). – Werner Aug 13 '14 at 20:59