Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. documentclass{article}
  2.  
  3. 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}
  4.  
  5. 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*}
  6.  
  7. pgfplotstableread[col sep=comma]{topatributtes.csv}datatableA
  8.  
  9. 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}}{}
  10. }
  11.  
  12. begin{document}
  13.  
  14. 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}
  15.  
  16. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement