home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / fj / comp / texhax / 1190 < prev    next >
Encoding:
Text File  |  1992-11-16  |  5.1 KB  |  167 lines

  1. Path: sparky!uunet!ccut!s.u-tokyo!kuis!wnoc-kyo!kyu-cs!lab!culle!hike1!mila!hirata
  2. From: hirata@nssun.te.chiba-u.ac.jp (Mitsuo Hirata)
  3. Newsgroups: fj.comp.texhax,cu.comp
  4. Subject: Re: hline
  5. Message-ID: <HIRATA.92Nov16203311@nssun.te.chiba-u.ac.jp>
  6. Date: 16 Nov 92 11:33:11 GMT
  7. References: <HIRATA.92Nov11115456@mila.te.chiba-u.ac.jp>
  8. Sender: news@mila.te.chiba-u.ac.jp
  9. Followup-To: fj.comp.texhax
  10. Distribution: fj
  11. Organization: Mita laboratory, Faculty of Engineering, Chiba University
  12. Lines: 151
  13. Nntp-Posting-Host: nssun
  14. In-reply-to: hirata@mila.te.chiba-u.ac.jp's message of 11 Nov 92 02:54:56 GMT
  15.  
  16. $@J?ED!w@iMUBg$H?=$7$^$9!#(J
  17.  
  18. $@@hF|!"(JLaTeX$@$G(J
  19. LaTeX $@$G9TNs$r<B@~$@$1$G$O$J$/!"E@(J$@@~$GMWAG$rJ,3d$9$k$K$O$I$N$h$&$K$9$l(J
  20. $@$PNI$$$+$H<ALd$7$?$H$3$m(J
  21.  
  22. $@5~Bg$N(J $@CfEgMM(J
  23. $@ElBg$N(J $@>._7MM(J
  24. $@>>2<%=%U%H(J$@%j%5!<%A$N?9C+MM(J
  25.  
  26. $@$+$i%a!<%k$G(J
  27.  
  28. ASTEC$@$N:d2<MM(J
  29.  
  30. $@$+$i%K%e!<%9$G%U%)%m!<$,$"$j$^$7$?!#(J
  31.  
  32. $@5~Bg$NCfEgMM(J(nakasima@kuis.kyoto-u.ac.jp)
  33. $@$+$i$O2?EY$+%a!<%k$G$d$j<h$j$r$5$;$FD:$-!"(J
  34. $@2#$@$1$G$O$J$/=D$NE@@~$b0z$1$k%^(J$@%/%m$r:n$C$FD:$-$^$7$?!#(J
  35.  
  36. $@=D$NE@@~$r0z$/%^%/%m$O0k:j$5$s$N(JLaTeX$@<+M3<+:_$K$b:\$C$F$*$i$:!"(J
  37. $@$I$NMM$K$7$?(J$@$iNI$$$+$o$+$i$::$$C$F$$$?$?$aBgJQ=u$+$j$^$7$?!#(J
  38.  
  39. $@3'MM!"$"$j$,$H$&$4$6$$$^$9!#(J
  40.  
  41. $@$^$?!"$3$NFbMF$N5-;v$r(J$@#1EYEj9F$7$?$N$G$9$,!"(J
  42. $@%U%)!<%m$7$FD:$$$?J}$NL>A0$r4V0c$($k$H$$$&!"Hs>o$KCQ$:$+$7$$%_%9$r(J
  43. $@$*$+$7$F$7$^(J$@$C$?$?$a!":FEYEj9F$5$;$FD:$-$^$7$?!#(J
  44. $@?=$7Lu$"$j$^$;$s$G$7$?!#(J
  45. $@$=$N$?$a!"$=$N5-;v$O%-%c%s%;%k$5$;$FD:$-(J$@$^$7$?!#(J
  46.  
  47. $@;29M$^$G$K!"CfEgMM$K$D$/$C$FD:$$$?%^%/%m$r$N$;$F$*$-$^$9!#(J
  48. $@$3$N%^%/%m$r(J hvdashln.sty $@$H$$$&(J$@%9%?%$%k%U%!%$%k$H$7$^$7$?!#(J
  49. $@$3$N%9%?%$%k%U%!%$%k$O%Q%V%j%C%/%I%a%$%s$H$7!":FG[I[!"2~B$$=$NB>$O<+M3(J
  50. $@$K(J$@9T$J$C$F9=$$$^$;$s!#(J
  51.  
  52. -----$@$3$3$+$i(J-----
  53. % hvdashln.sty : h(orizontal and )v(ertical )dash(ed )l(i)n(e).sty
  54. %
  55. %                    By nakasima@kuis.kyoto-u.ac.jp
  56. %
  57. % \hdashline $@$G2#$NE@@~(J
  58. % \vdashline $@$G=D$N<B@~(J
  59. %
  60. % $@$r(J$@0z$/$3$H$,$G$-$^$9!#(J
  61. %
  62. % $@$3$N$H$-%Q%i%a!<%?$H$7$F(J
  63. %
  64. % \hdashlinewidth  $@GK@~MWAG$NI}(J (w)
  65. % \hdashlinegap    $@GK@~MWAG$N4V3V(J (g)
  66. %
  67. % $@$r@_Dj$G$-$^$9!#$^$?%G%U%)%k%H$G$O$=$l$>$l(J 4pt $@$H$J$C$F$*$j(J
  68. %
  69. %     4pt
  70. %    |---   ---   ---   ---|
  71. %        4pt
  72. %
  73. % $@$NMM$K$J$j$^$9(J
  74. %
  75. % $@Cm0U!K=D$NE@@~$r0z$/>l9g(J array $@$N9T$KJ,?t$N$h(J$@$&$KGX$N9b$$$b$N$,$/$k(J
  76. %       $@$HGK@~$,$D$J$,$i$J$/$J$k$3$H$,$"$j$^$9!#(J
  77. %
  78. %
  79. \newcount\hdl@columns
  80. \let\hdl@mkpream\@mkpream
  81. \def\@mkpream{\hdl@columns\@ne \hdl@mkpream}
  82. \def\@addamp{\if@firstamp\@firstampfalse
  83.    \else\edef\@preamble{\@preamble &}\advance\hdl@columns\@ne\fi}
  84. \def\hdashline{\multispan{\hdl@columns}\unskip
  85.    \vrule\@height\arrayrulewidth\@width\hdashlinewidth
  86.    \hskip.5\hdashlinegap
  87.    \xleaders\hbox{\hskip.5\hdashlinegap
  88.    \vrule\@height\arrayrulewidth\@width\hdashlinewidth
  89.    \hskip.5\hdashlinegap}\hfill
  90.    \hskip.5\hdashlinegap
  91.    \vrule\@height\arrayrulewidth\@width\hdashlinewidth\cr
  92.    \noalign{\vskip-\arrayrulewidth}}
  93. \newdimen\hdashlinewidth \hdashlinewidth4pt %
  94. \newdimen\hdashlinegap \hdashlinegap4pt %
  95. \def\vdashline{\hskip\arraycolsep
  96.    \@tempdima\ht\@arstrutbox \advance\@tempdima\dp\@arstrutbox
  97.    \lower\dp\@arstrutbox\vbox to\@tempdima{
  98.    \hrule\@height.5\hdashlinewidth\@width\arrayrulewidth
  99.    \vskip.5\hdashlinegap
  100.    \xleaders\vbox{\vskip.5\hdashlinegap
  101.    \hrule\@height\hdashlinewidth\@width\arrayrulewidth
  102.      \vskip.5\hdashlinegap}\vfil
  103.    \vskip.5\hdashlinegap
  104.      \hrule\@height.5\hdashlinewidth\@width\arrayrulewidth}%
  105.    \hskip\arraycolsep}
  106. -----$@$3$3$^$G(J-----
  107.  
  108. $@$^$?!"0J2<$K;H$$J}$NNc$r:\$;$F$*$-$^$9!#(J
  109.  
  110. -----$@$3$3$+$i(J-----
  111. \documentstyle[hvdashln]{article}
  112. \title{Usage of {\tt hvdashln.sty}}
  113. \author{Nakashima}
  114. \date{Nov. 16, 1992}
  115. \hdashlinewidth=2pt \hdashlinegap=2pt
  116. \begin{document}
  117. \maketitle\thispagestyle{empty}
  118. Definitions of horizontal and vertical dashed lines for
  119. {\tt array} and {\tt tabular} environment.
  120. Instead of partial horizontal dashed line by
  121.  the \verb+\cline{2-3}+ by Isozaki,
  122. \verb+\hdashline+ fills the full width.
  123. The proportion of the dashed line is defined by the two
  124. parameters: \verb+\hdashlinewidth=2pt+ and
  125.  \verb+\hdashlinegap=2pt+, where the former defines the
  126. width of the dash and the latter sets their gap.
  127. The default values of these are {\tt 4pt} while
  128. {\tt 2pt} is employed in the examples below.
  129. \medskip
  130. \[
  131. \left[
  132. \begin{array}{c @{\vdashline} cc}
  133.   A & B & C \\
  134.    \hdashline
  135.   D & E & F \\
  136.   G & H & I
  137. \end{array}
  138. \right]
  139. \]
  140. \bigskip
  141. \begin{minipage}[t]{.48\textwidth}
  142. \begin{center}
  143. \begin{tabular}{|c|c|c|} \hline
  144. a & b & c \\ \hline
  145. a & b & c \\ \hline
  146. a & b & c \\ \hline
  147. \end{tabular}
  148. \end{center}
  149. \end{minipage}
  150. \begin{minipage}[t]{.48\textwidth}
  151. \begin{center}
  152. \begin{tabular}{|c @{\vdashline} c|c|} \hdashline
  153. a & b & c \\ \hdashline
  154. a & b & c \\ \hline
  155. a & b & c \\ \hdashline
  156. \end{tabular}
  157. \end{center}
  158. \end{minipage}
  159. \end{document}
  160. -----$@$3$3$^$G(J-----
  161.  
  162. --
  163.     
  164.          $@@iMUBg3X(J $@9)3XIt(J $@EE5$EE;R9)3X2J(J $@H~B?8&5f<<Fb(J M2
  165.                      $@J?ED(J $@8wCK(J (Mitsuo Hirata)
  166.             (hirata@nssun.te.chiba-u.ac.jp)
  167.