Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. documentclass[11pt,a4paper]{article}
  2. usepackage[utf8]{inputenc}
  3. usepackage[ngerman]{babel}
  4. IfFileExists{MyriadPro.sty}{usepackage[lf]{MyriadPro}renewcommand{familydefault}{sfdefault}}{relax}
  5. usepackage{array}
  6.  
  7. begin{document}
  8.  
  9. newcolumntype{L}[1]{>{raggedrightletnewline\arraybackslashhspace{0pt}}m{#1}}
  10. newcolumntype{C}[1]{>{centeringletnewline\arraybackslashhspace{0pt}}m{#1}}
  11. newcolumntype{R}[1]{>{raggedleftletnewline\arraybackslashhspace{0pt}}m{#1}}
  12.  
  13. begin{tabular}{m{1cm}C{1.3cm}C{1.3cm}R{1cm}}
  14. textbf{W}& textbf{X} & textbf{Y} & textbf{Z} \
  15. hline
  16. textbf{A n.c.} & 23,2 & 23,2 & 33,4 \
  17. textbf{B} & 4 & 5 & 6 \
  18. textbf{C} & 7 & 8 & 9 \
  19. textbf{D} & 10 & 11 & 12 \
  20. textbf{E} & 13 & 14 & 15 \
  21. end{tabular}
  22.  
  23. end{document}
  24.  
  25. documentclass{article}
  26. usepackage{booktabs}% http://ctan.org/pkg/booktabs
  27.  
  28. begin{document}
  29.  
  30. begin{tabular}{l@{hspace{1cm}}c@{hspace{1cm}}c@{hspace{1cm}}c}
  31. toprule
  32. textbf{W} & textbf{X} & textbf{Y} & textbf{Z} \
  33. midrule
  34. rlap{textbf{A n.c.}}hphantom{23,2} & 23,2 & 23,2 & 33,4 \
  35. textbf{B} & 4 & 5 & 6 \
  36. textbf{C} & 7 & 8 & 9 \
  37. textbf{D} & 10 & 11 & 12 \
  38. textbf{E} & 13 & 14 & 15 \
  39. bottomrule
  40. end{tabular}
  41.  
  42. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement