Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{article}
- usepackage{calc} usepackage{afterpage} usepackage{tikz} usetikzlibrary{spy} usetikzlibrary{fit,calc,positioning} usetikzlibrary{shapes.geometric} usetikzlibrary{arrows} usepackage{filecontents} usepackage{pgfplotstable} usepackage{ifthen} usepackage{etoolbox} usepackage{tabulary} usepackage{arrayjobx,datatool,multirow,forloop}
- begin{filecontents*}{topatributtes.csv} Name, Abbreviation, Percentage Atribute1, R, 0 Atribute2, I, 0 Atribute3, A, 70 Atribute4, S, 35 Atribute5, E, 0 Atribute6, C, 0 end{filecontents*}
- pgfplotstableread[col sep=comma]{topatributtes.csv}datatableA
- newarrayAttributes newarrayValues newcounter{nr} stepcounter{nr} pgfplotstablegetrowsof{datatableA} pgfmathsetmacro{RowsInTable}{pgfplotsretval-1} foreach k in {0,...,RowsInTable} { pgfplotstablegetelem{k}{Percentage}of{datatableA}globalletLabelValue=pgfplotsretval ifthenelse{LabelValue > 0}{ pgfplotstablegetelem{k}{Abbreviation}of{datatableA}globalletAbbrName=pgfplotsretvalValues(arabic{nr})=LabelValue pgfplotstablegetelem{k}{Name}of{datatableA}globalletLabelName=pgfplotsretvalAttributes(arabic{nr})=LabelName stepcounter{nr}}{}
- }
- begin{document}
- begin{minipage}{236.3px} vspace*{10px} centering{fontsize{16px}{30px}selectfonttextsl{Top Compatibility Attributes}} newcounter{st}% addtocounter{nr}{-1} begin{itemize} forloop{st}{1}{not{value{st} > value{nr}}}{% item Attributes(arabic{st}) Values(arabic{st}) } end{itemize} end{minipage}
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement