[texhax] borders in tabularx

Zbigniew Nitecki zbigniew.nitecki at tufts.edu
Mon Aug 9 19:20:51 CEST 2010


Why does the following code not give me a vertical double bar at the left of the regular lines,
and single instead of double vertical lines separating certain columns?

> % !TEX TS-program = latex
> \documentclass[12pt]{article}
> 
> \usepackage{amssymb}
> \usepackage{amsmath}
> \usepackage{amsthm}
> \usepackage{pst-plot, pst-math}
> \usepackage{pst-solides3d}
> \usepackage{pst-3dplot, pst-func}
> \usepackage{pst-grad}
> \usepackage{pstricks-add}
> \usepackage{pst-node}
> \usepackage{pst-text}
> 
> \usepackage{tabularx}
> 
> \begin{document}
> 
> \newcolumntype{Y}{>{\small\centering\arraybackslash}X}
> 
> \newcommand{\Fs}[1]{\ensuremath{F_{#1}}}
> \newcommand{\Rs}[1]{\ensuremath{R_{#1}}}
> \newcommand{\fire}{\textcolor{red}{\ensuremath{1\to0}}}
> \newcommand{\reset}[1]{\textcolor{green}{\ensuremath{\rs{#1}\to\rs{#1}+\gamma}}}
> \newcommand{\pass}[1]{\ensuremath{#1}}
> 
> \newcommand{\phis}[1]{\ensuremath{\phi_{#1}}}
> \newcommand{\rs}[1]{\ensuremath{r_{#1}}}
> \newcommand{\ps}[1]{\ensuremath{p_{#1}}}
> 
> \noindent
> \begin{tabularx}%
> 	{\linewidth}{l|Y||Y||Y||Y||Y||Y||Y||Y||}
> 
> \hline\hline
> 	\multicolumn{8}{||c||}{\textbf{Scenario I:  \Fs{1}\Rs{1}\Fs{2}\Rs{2}}}\\
> \hline\hline
> 	State&%
> 	\Fs{2}&%
> 	\Rs{2}&%
> 	\Fs{1}&%
> 	\Rs{1}&%
> 	\Fs{2}&%
> 	\Rs{2}&%
> 	\Fs{1}\\	
> \hline
> 	t&%
> 	\pass{}&%
> 	\pass{}&%
> 	\pass{0}&%
> 	\pass{\rs{1}}&%
> 	\pass{\rs{1}+\ps{1}}&%
> 	\pass{\rs{1}+\ps{1}+\rs{2}}&%
> 	\pass{T=\rs{1}+\ps{1}+\rs{2}+\ps{2}}\\ 
> \hline
> 	\phis{1}&%
> 	\pass{\rs{1}+\ps{1}+\gamma}&%
> 	\pass{\rs{1}+\ps{1}+\rs{2}+\gamma}&%
> 	\fire&%
> 	\reset{1}&%
> 	\pass{\rs{1}+\ps{1}+\gamma}&%
> 	\pass{\rs{1}+\ps{1}+\rs{2}+\gamma}&%
> 	\fire\\
> \hline
> 	\phis{2}&%
> 	\fire&%
> 	\reset{2}&%
> 	\pass{\rs{2}+\ps{2}+\gamma}&%
> 	\pass{\rs{1}+\rs{2}+\ps{2}+\gamma}&%
> 	\fire&%
> 	\reset{2}&%
> 	\pass{\rs{2}+\ps{2}+\gamma}\\
> \hline\hline
> %
> %
> \end{tabularx}
> 
> \end{document}  



Zbigniew Nitecki
Department of Mathematics
Tufts University
Medford, MA 02155

telephones:
Office    (617)627-3843
Dept.    (617)627-3234
Dept. fax    (617)627-3966
http://www.tufts.edu/~znitecki/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20100809/2d165fe4/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Tabularx Test.pdf
Type: application/pdf
Size: 12690 bytes
Desc: not available
URL: <http://tug.org/pipermail/texhax/attachments/20100809/2d165fe4/attachment-0001.pdf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20100809/2d165fe4/attachment-0003.html>


More information about the texhax mailing list