summaryrefslogtreecommitdiff
path: root/dviware/dvisirule/demo.tex
blob: a0e21cd7dd87e1649f197677ef58cae4e14e238b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
\documentclass{article}

\input{fonts}
\usepackage{hhline}
\usepackage[table,gray,dvipdfmx]{xcolor}
\usepackage{dvisirule}

\begin{document}
\pagestyle{empty}

\definecolor{BGeven}{gray}{.8}
\rowcolors*{1}{}{BGeven}

\newcommand{\tblA}[2]{%
  \begin{#1}{|c|}
    \noalign{\global\rownum=0}
    \showrowcolors
    \hline
    #2\\ \hhline{=}
    Can\\ \hline
    you\\ \hline
    see\\ \hline
    all\\ \hline
    lines\,?\\ \hline
    Always\,?\\ \hline
    Try zooming in\slash out in your viewer.\\ \hline
    \hiderowcolors
  \end{#1}
}

\hfill%
\tblA{tabular}{WITHOUT \texttt{dvisirule}}%
\hfill%
\tblA{sitabular}{WITH \texttt{dvisirule}}%
\hfill%
\hskip0pt
\end{document}