Advertisement
Guest User

Untitled

a guest
Jan 4th, 2018
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 1.12 KB | None | 0 0
  1. \documentclass{article}
  2.  
  3. \makeatletter
  4. \def\thickhline{%
  5.   \noalign{\ifnum0=`}\fi\hrule \@height \thickarrayrulewidth \futurelet
  6.   \reserved@a\@xthickhline}
  7. \def\@xthickhline{\ifx\reserved@a\thickhline
  8.               \vskip\doublerulesep
  9.               \vskip-\thickarrayrulewidth
  10.             \fi
  11.      \ifnum0=`{\fi}}
  12. \makeatother
  13.  
  14. \newlength{\thickarrayrulewidth}
  15. \setlength{\thickarrayrulewidth}{2\arrayrulewidth}
  16.  
  17. \begin{document}
  18.  
  19. \begin{tabular}{ l | c | r }
  20.  \hline
  21.  1 & 2 & 3 \\
  22.  \hline
  23.  4 & 5 & 6 \\
  24.  \hline
  25.  7 & 8 & 9 \\
  26.  \hline
  27. \end{tabular}
  28. \qquad
  29. \begin{tabular}{ l | c | r }
  30.  \thickhline
  31.  1 & 2 & 3 \\
  32.  \hline
  33.  4 & 5 & 6 \\
  34.  \hline
  35.  7 & 8 & 9 \\
  36.  \thickhline
  37. \end{tabular}
  38.  
  39. \bigskip
  40.  
  41. \setlength{\thickarrayrulewidth}{\arrayrulewidth}
  42. \setlength{\arrayrulewidth}{0.1pt}
  43.  
  44. \begin{tabular}{ l | c | r }
  45.  \hline
  46.  1 & 2 & 3 \\
  47.  \hline
  48.  4 & 5 & 6 \\
  49.  \hline
  50.  7 & 8 & 9 \\
  51.  \hline
  52. \end{tabular}
  53. \qquad
  54. \begin{tabular}{ l | c | r }
  55.  \thickhline
  56.  1 & 2 & 3 \\
  57.  \hline
  58.  4 & 5 & 6 \\
  59.  \hline
  60.  7 & 8 & 9 \\
  61.  \thickhline
  62. \end{tabular}
  63.  
  64. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement