Multirow table with big column entries

documentclass[12pt,notitlepage,oneside]{report}

usepackage{makecell,multirow}
usepackage{adjustbox}

begin{document}

begin{table}
defarraystretch{3}
centering
begin{tabular}{|p{3cm}|c|}
hline
Superclass & Topic Words  \ hline
%0
multirow{1}{*}{ruby} & makecell[l]{block gems/redis lib/redis/client.rb         call gems/sidekiq lib/ruby/gems lib/redis.rb app/vendor/bundle/ruby tmp/build     c/vendor/bundle/ruby \gems/railties vendor/bundle/ruby gems/activesupport         dda lib/ruby levels error actionpack lib/redis/connection/ruby.rb lt;top}\
hline

%1
multirow{5}{*}{data-type} & makecell[l]{key keys redis hash values set     data list store field string command hashes fields stored delete match array     pattern type}\
cline{2-2}
   &  makecell[l]{list item items rpush lpush element lists default type     client lrange llen \pop collection elements empty push true doctrine     mylist}\
cline{2-2}

& makecell[l]{set sorted score sets list zadd member members elements         zset sadd element result timestamp sort scores order items time number}\
cline{2-2}

& makecell[l]{string data json redis object bytes type int array length     byte strings store bit key convert size python result serialized}\
cline{2-2}

& makecell[l]{val anonfun case def scala string play actor plugin future     sbt apply jar:na anon extends akka://application/user implicit\ application-    akka.actor.default-dispatcher akka map}\
hline

%2
multirow{2}{*}{commands} & makecell[l]{info jan bytes total keys memory     time apr connected clients slaves hgets timer.caching volatile slots     usr/local/bin/php\ usec_per_call usec used_memory_human stat}\
cline{2-2}
& makecell[l]{key set keys time expire redis ttl counter exists count     command incr expiration expired expiry increment remove delete check     deleted}\
hline

end{tabular}
caption{A test caption}
label{table2}
end{table}

end{document}

Output: table

So i made this table but it doesn’t fit the page.I tried adjustbox but that seem to reduce the text size of the entries.I want the text size to be unchanged.Any solutions?
Thanks in advance.

Leave a Reply

Your email address will not be published. Required fields are marked *