Guest User

Untitled

a guest
Apr 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. newcommand{tC}[1]{@{hspace{0.1em}}#1@{}}
  2.  
  3. begin{table}[ht!]
  4. centering
  5. begin{tabular}{|tC{l}|tC{c}|tC{c}|tC{c}|tC{c}|tC{c}|tC{c}|tC{c}|tC{c}|tC{c}|tC{c}|tC{c}|tC{c}|tC{c}|tC{c}|tC{c}|}
  6. {small Tonalidad} & {small 7 $flat$} & {small 6 $flat$} & {small 6 $flat$} & {small 6 $flat$} & {small 6 $flat$} & {small 6 $flat$} & {small 6 $flat$} & {small 6 $flat$} & {small 6 $flat$} & {small 6 $flat$} & {small 6 $flat$} & {small 6 $flat$} & {small 6 $flat$} & {small 6 $flat$} & {small 6 $flat$}
  7. end{tabular}
  8. caption{Caption}
  9. end{table}
  10.  
  11. Package array Error: Illegal pream-token (tC): `c' used.
  12.  
  13. documentclass{article}
  14.  
  15. usepackage{array}
  16.  
  17. begin{document}
  18.  
  19. %newcommand{tC}[1]{@{hspace{0.1em}}#1@{}}
  20.  
  21. newcolumntype{f}[1]{@{hspace{0.1em}}>{small}#1@{}}
  22.  
  23. In turn I have tried to use this new command in the creation of tables as follows:
  24.  
  25.  
  26. begin{table}[ht!]
  27. centering
  28. begin{tabular}{|f{l}|*{15}{f{c}|}}
  29. Tonalidad & 7 $flat$ & 6 $flat$ & 6 $flat$ & 6 $flat$ & 6 $flat$ & 6 $flat$ & 6 $flat$ & 6 $flat$ & 6 $flat$ & 6 $flat$ & 6 $flat$ & 6 $flat$ & 6 $flat$ & 6 $flat$ & 6 $flat$
  30. end{tabular}
  31. caption{Caption}
  32. end{table}
  33. end{document}
Add Comment
Please, Sign In to add comment