Hallo liebes Forum,
wie schaffe ich es die äußerste vertikale Linie zu entfernen, um die Tabelle linksbündig zu setzen? Selbst nach langer suche habe ich es nicht geschafrt
Hat jemand einen Vorschlag?
Code:
\documentclass[10pt,tablecaptionabove]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage{tabularx,colortbl}
\renewcommand\tabularxcolumn[1]{b{#1}} % Zelleninhalt bei Tabularx vertikal zentrieren
\usepackage{xcolor}
\usepackage
[justification=justified,singlelinecheck=false,
labelfont={bf,footnotesize,sf},font={footnotesize,sf},aboveskip=0.2em]{caption}
\begin{document}
\begin{table}
\caption{Wenn das nur gut geht}
\label{tab:Shortcuts}
\setlength\arrayrulewidth{5pt}\arrayrulecolor{black} %%%% 5pt zur besseren Darstellung
\begin{tabularx}{\textwidth}{@{}!{\color{black}\vline}l!{\color{black}\vline}Xc!{\color{black}\vline}}
\rowcolor[gray]{.6} {\textbf{\color{white}Kopf 1}} & {\textbf{\color{white}Kopf 2}}\\
\hline
\rowcolor[gray]{.9}1 & 2 \\
\hline
\rowcolor[gray]{.9} 3 & 4 \\
\end{tabularx}
\end{table}
\end{document}
Lesezeichen