我使用该网站创建了一个表格:https://www.tablesgenerator.com/,但我对一些线条感到困惑。如何删除下表第一列中的白线(红色箭头所指的线条)?
这是我从网站获得的代码:
\begin{table}[H]
\begin{adjustbox}{width=\columnwidth,center}
\begin{tabular}{|c|c|c|}
\hline
\rowcolor[HTML]{FDDCD3}
\cellcolor[HTML]{F54A19}{\color[HTML]{FFFFFF} } &
\textbf{Weight} &
34 g (sun sensor) + 1 g (mounting hardware) \\ \cline{2-3}
\rowcolor[HTML]{FFFFFF}
\cellcolor[HTML]{F54A19}{\color[HTML]{FFFFFF} } &
\textbf{Size} &
34 mm x 32 mm x 21 mm \\ \cline{2-3}
\rowcolor[HTML]{FDDCD3}
\cellcolor[HTML]{F54A19}{\color[HTML]{FFFFFF} } &
\textbf{Power} &
37.5 mW average, 130 mW peak \\ \cline{2-3}
\rowcolor[HTML]{FFFFFF}
\multirow{-4}{*}{\cellcolor[HTML]{F54A19}{\color[HTML]{FFFFFF} \textbf{PHYSICAL CHARACTERISTICS}}} &
\textbf{Outer Surfaces} &
Low emissivity gold, scratch-proof sapphire \\ \hline
\rowcolor[HTML]{FDDCD3}
\cellcolor[HTML]{F54A19}{\color[HTML]{FFFFFF} } &
\textbf{Accuracy} &
±0.1° over ±70° Field-of-View \\ \cline{2-3}
\rowcolor[HTML]{FFFFFF}
\cellcolor[HTML]{F54A19}{\color[HTML]{FFFFFF} } &
\textbf{Bandwidth} &
5 vector solutions / second \\ \cline{2-3}
\rowcolor[HTML]{FDDCD3}
\multirow{-3}{*}{\cellcolor[HTML]{F54A19}{\color[HTML]{FFFFFF} \textbf{PERFORMANCES}}} &
\textbf{Earth Albedo Error} &
Rejected by internal digital processor \\ \hline
\rowcolor[HTML]{FFFFFF}
\cellcolor[HTML]{F54A19}{\color[HTML]{FFFFFF} \textbf{COMMAND/TELEMETRY}} &
\multicolumn{2}{c|}{\cellcolor[HTML]{FFFFFF}RS-485} \\ \hline
\rowcolor[HTML]{FDDCD3}
\cellcolor[HTML]{F54A19}{\color[HTML]{FFFFFF} } &
\textbf{Supply Voltage} &
5.0 V to 50.0 V \\ \cline{2-3}
\rowcolor[HTML]{FFFFFF}
\cellcolor[HTML]{F54A19}{\color[HTML]{FFFFFF} } &
\textbf{Supply Current} &
7.5 mA average, 27 mA peak \\ \cline{2-3}
\rowcolor[HTML]{FDDCD3}
\cellcolor[HTML]{F54A19}{\color[HTML]{FFFFFF} } &
\cellcolor[HTML]{FDDCD3} &
\cellcolor[HTML]{FDDCD3} \\
\rowcolor[HTML]{FDDCD3}
\cellcolor[HTML]{F54A19}{\color[HTML]{FFFFFF} } &
\multirow{-2}{*}{\cellcolor[HTML]{FDDCD3}\textbf{Idle Current Consumption}} &
\multirow{-2}{*}{\cellcolor[HTML]{FDDCD3}\begin{tabular}[c]{@{}c@{}}3 mA, bootloader mode\\ 8 mA, application mode\end{tabular}} \\ \cline{2-3}
\rowcolor[HTML]{FFFFFF}
\multirow{-5}{*}{\cellcolor[HTML]{F54A19}{\color[HTML]{FFFFFF} \textbf{POWER IN}}} &
\textbf{Active Current Consumption} &
\textless{}30 mA \\ \hline
\rowcolor[HTML]{FDDCD3}
\cellcolor[HTML]{F54A19}{\color[HTML]{FFFFFF} } &
\textbf{Operating Temperature Range} &
-25 °C to +75 °C \\ \cline{2-3}
\rowcolor[HTML]{FFFFFF}
\cellcolor[HTML]{F54A19}{\color[HTML]{FFFFFF} } &
\textbf{Survival Temperature Range} &
-40 °C to +85 °C \\ \cline{2-3}
\rowcolor[HTML]{FDDCD3}
\cellcolor[HTML]{F54A19}{\color[HTML]{FFFFFF} } &
\textbf{Shock} &
5000 g \\ \cline{2-3}
\rowcolor[HTML]{FFFFFF}
\cellcolor[HTML]{F54A19}{\color[HTML]{FFFFFF} } &
\textbf{Random Vibration} &
16 g rms \\ \cline{2-3}
\rowcolor[HTML]{FDDCD3}
\multirow{-5}{*}{\cellcolor[HTML]{F54A19}{\color[HTML]{FFFFFF} \textbf{ENVIRONMENT}}} &
\textbf{Radiation Tolerant} &
20 krad total dose at components \\ \hline
\end{tabular}
\end{adjustbox}
\caption{SS-411 Two-Axis Digital Sun Sensors technical data [1], [2]. }
\label{tabella}
\end{table}
答案1
环境{NiceTabular}
如下nicematrix
:
\documentclass[landscape]{article}
\usepackage{xcolor}
\usepackage{nicematrix}
\usepackage{adjustbox}
\usepackage{makecell}
\begin{document}
\begin{adjustbox}{width=\columnwidth,center}
\begin{NiceTabular}{c>{\bfseries}cc}%
[
cell-space-top-limit=3pt ,
cell-space-bottom-limit=3pt ,
hvlines ,
code-before = \rowcolors[HTML]{1}{FDDCD3}{} \columncolor[HTML]{F54A19}{1}
]
\Block{4-1}{\color{white}\makecell{PHYSICAL\\ CHARACTERISTICS}}
& Weight & 34 g (sun sensor) + 1 g (mounting hardware) \\
& Size & 34 mm x 32 mm x 21 mm \\
& Power & 37.5 mW average, 130 mW peak \\
& Outer Surfaces & Low emissivity gold, scratch-proof sapphire \\
\Block{3-1}{\color{white}PERFORMANCES}
& Accuracy & ±0.1° over ±70° Field-of-View \\
& Bandwidth & 5 vector solutions / second \\
& Earth Albedo Error & Rejected by internal digital processor \\
\color{white}COMMAND/TELEMETRY
& \Block{1-2}{RS-485} \\
\Block{4-1}{\color{white}POWER IN}
& Supply Voltage & 5.0 V to 50.0 V \\
& Supply Current & 7.5 mA average, 27 mA peak \\
& Idle Current Consumption &
\begin{tabular}[c]{@{}c@{}}3 mA, bootloader mode\\ 8 mA, application mode\end{tabular} \\
& Active Current Consumption & \textless{}30 mA \\
\Block{5-1}{\color{white}ENVIRONMENT}
& Operating Temperature Range & $-25$ °C to $+75$ °C \\
& Survival Temperature Range & $-40$ °C to $+85$ °C \\
& Shock & 5000 g \\
& Random Vibration & 16 g rms \\
& Radiation Tolerant & 20 krad total dose at components \\
\end{NiceTabular}
\end{adjustbox}
\end{document}
在 中
{NiceTabular}
,您可以使用命令\Block
垂直和水平合并单元格。该密钥
hvlines
绘制了除块之外的所有规则。该命令
\rowcolors
(在键中code-before
)将交替为行着色,而该命令\columncolor
(之后使用)将为第一列着色。