msh*_*fer 4 latex colors line pdflatex
我想为hline着色,例如:
\hline[color=red,width=2mm,dashed]
Run Code Online (Sandbox Code Playgroud)
或者其他的东西.
以下是一次失败的微弱尝试.我把textcolor灰色放在{|}试图让它变灰.理想情况下,我希望它是灰色和虚线.还要注意{\hline}标签周围的textcolor灰色.任何帮助将不胜感激使用乳胶语法.
有属性\hline吗?如果是这样,文档在哪里?有一个原因我喜欢php.net以满足我的其他编程需求.
\begin{array}{c\textcolor{gray}{|}cccccccccc}
& \textcolor{gray}{P_1} & \textcolor{gray}{P_2} & \textcolor{gray}{P_3} & \textcolor{gray}{P_4} & \textcolor{gray}{P_5} & \textcolor{gray}{P_6} & \textcolor{gray}{P_7} & \textcolor{gray}{P_8} & \textcolor{gray}{P_9} & \textcolor{gray}{P_{10}}\\
\textcolor{gray}{\hline}
\textcolor{gray}{P_1} &0&0&0&0&0&0&0&0&0&0\\
\textcolor{gray}{P_2} & 0&0&0&0&0&0&0&0&0&0\\
\textcolor{gray}{P_3} &0&0&0&0&0&0&0&0&0&0\\
\textcolor{gray}{P_4} &0&1&1&0&0&0&0&0&0&0\\
\textcolor{gray}{P_5} &1&1&0&0&0&0&0&0&0&0\\
\textcolor{gray}{P_6} &0&0&0&0&0&0&0&0&0&0\\
\textcolor{gray}{P_7} &1&1&0&0&1&1&0&0&0&0\\
\textcolor{gray}{P_8} &1&0&0&1&0&1&0&0&0&0\\
\textcolor{gray}{P_9} &0&0&1&0&0&0&0&0&0&0\\
\textcolor{gray}{P_{10}} &0&0&0&0&0&1&0&1&0&0
\end{array}
Run Code Online (Sandbox Code Playgroud)
首先,导入颜色包,如下所示:
\usepackage{color}
Run Code Online (Sandbox Code Playgroud)
然后使用此 .sty文件,并执行此操作(在表格上下文中):
\textcolor{gray}{\hdashline}
Run Code Online (Sandbox Code Playgroud)