Linien in Tabellen teilweise unterbrechen

Antwort erstellen


Diese Frage dient dazu, das automatisierte Versenden von Formularen durch Spam-Bots zu verhindern.
Smilies
:D :) :( :o :shock: :? 8) :lol: :-x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:

BBCode ist eingeschaltet
[img] ist eingeschaltet
[flash] ist ausgeschaltet
[url] ist eingeschaltet
Smilies sind eingeschaltet

Die letzten Beiträge des Themas

Ich habe die Datenschutzerklärung gelesen und bin damit einverstanden.

   

Wenn du eine Datei oder mehrere Dateien anhängen möchtest, gib die Details unten ein.

Ansicht erweitern Die letzten Beiträge des Themas: Linien in Tabellen teilweise unterbrechen

von kla4dj » Di 23. Jun 2015, 08:29

okay, cool. Danke!

von Noch so einer » Mo 22. Jun 2015, 10:38

Wie immer mit \multicolumn:
\documentclass[landscape]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{diagbox}

\usepackage[table]{xcolor}
\colorlet{rowbg}{blue!20}
\colorlet{tabtextcolor}{blue}

\usepackage{varwidth}
\newcommand\tabrotate[1]{\rotatebox{90}{\verschiebung#1}}
\newcommand\colortabrotate[2][3cm]{\tabrotate{%
\bfseries\color{tabtextcolor}%
\begin{varwidth}{#1}
\raggedright#2
\end{varwidth}%
}}
\newcommand\verschiebung[1][-.5\normalbaselineskip]{\hspace{#1}}

\begin{document}
\begin{table}[htbp]
\centering
\small
\caption{Übersicht über die in der Literatur angegeben Anforderungskriterien}
\label{tab:UebersichtKrit}
\begin{tabular}{>{\raggedright}m{3,6cm}|ccccccccccccccc}
\toprule
\multicolumn{1}{m{3.6cm}}{\diagbox{Quelle}{Kriterien}}
& \colortabrotate{atomar} & \colortabrotate{eindeutig}
& \colortabrotate{einmalig} & \colortabrotate{konsistent}
& \colortabrotate{modifizierbar} & \colortabrotate{notwendig}
& \colortabrotate{prioritär} & \colortabrotate{prüfbar}
& \colortabrotate{realisierbar} & \colortabrotate{sortierbar}
& \colortabrotate{konsensfähig mit Stakeholdern}
& \colortabrotate{technisch lösungsneutral}
& \colortabrotate{verfolgbar} & \colortabrotate{verständlich}
& \colortabrotate{vollständig}\\
\midrule
Nummer 1 & & x & & x & x & x' & x' & x & x & & & & x'& x & x \\
\rowcolor{rowbg}
Nummer 1 & x' & x' & & x' & & & & x' & x' & & & & x'& & x' \\
Nummer 1 & & x' & x'& x' & & & & x' & & x' & & & x'& x'& x' \\
\rowcolor{rowbg}
Nummer 1 mit Zeileumbruch
& x & x & & x & (x) & x & (x) & x & x & (x) & & x & x & & x \\
Nummer 1 auch mit Zeilenumbruch weil so lang
& & x' & & x & & & x' & x' & x & & & x'& x & x & x \\
\rowcolor{rowbg}
Nummer 1 & & x' & & x' & x' & x' & & & x' & & x'& x'& x'& & x' \\
\midrule
Auswahl & x & x & & x & & & & x & & & & x & x & & \\
\bottomrule
\end{tabular}
\end{table}
\end{document}

Linien in Tabellen teilweise unterbrechen

von kla4dj » Mo 22. Jun 2015, 09:51

Wie bekomme ich es denn am elegantesten hin, dass ich in der Tabelle unten in jeder Spalte eine Linie ziehe, außer in der obersten Zeile? Das der Kopf mit den "Kriterien" oben also ohne Linien bleibt.
\documentclass[landscape]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{diagbox}

\usepackage[table]{xcolor}
\colorlet{rowbg}{blue!20}
\colorlet{tabtextcolor}{blue}

\usepackage{varwidth}
\newcommand\tabrotate[1]{\rotatebox{90}{\verschiebung#1}}
\newcommand\colortabrotate[2][3cm]{\tabrotate{%
\bfseries\color{tabtextcolor}%
\begin{varwidth}{#1}
\raggedright#2
\end{varwidth}%
}}
\newcommand\verschiebung[1][-.5\normalbaselineskip]{\hspace{#1}}

\begin{document}
\begin{table}[htbp]
\centering
\small
\caption{Übersicht über die in der Literatur angegeben Anforderungskriterien}
\label{tab:UebersichtKrit}
\begin{tabular}{>{\raggedright}m{3,6cm}|ccccccccccccccc}
\toprule
\diagbox{Quelle}{Kriterien}
& \colortabrotate{atomar} & \colortabrotate{eindeutig}
& \colortabrotate{einmalig} & \colortabrotate{konsistent}
& \colortabrotate{modifizierbar} & \colortabrotate{notwendig}
& \colortabrotate{prioritär} & \colortabrotate{prüfbar}
& \colortabrotate{realisierbar} & \colortabrotate{sortierbar}
& \colortabrotate{konsensfähig mit Stakeholdern}
& \colortabrotate{technisch lösungsneutral}
& \colortabrotate{verfolgbar} & \colortabrotate{verständlich}
& \colortabrotate{vollständig}\\
\midrule
Nummer 1 & & x & & x & x & x' & x' & x & x & & & & x'& x & x \\
\rowcolor{rowbg}
Nummer 1 & x' & x' & & x' & & & & x' & x' & & & & x'& & x' \\
Nummer 1 & & x' & x'& x' & & & & x' & & x' & & & x'& x'& x' \\
\rowcolor{rowbg}
Nummer 1 mit Zeileumbruch
& x & x & & x & (x) & x & (x) & x & x & (x) & & x & x & & x \\
Nummer 1 auch mit Zeilenumbruch weil so lang
& & x' & & x & & & x' & x' & x & & & x'& x & x & x \\
\rowcolor{rowbg}
Nummer 1 & & x' & & x' & x' & x' & & & x' & & x'& x'& x'& & x' \\
\midrule
Auswahl & x & x & & x & & & & x & & & & x & x & & \\
\bottomrule
\end{tabular}
\end{table}
\end{document}

Ursprungsproblem: http://golatex.de/zeilenumbruch-bei-ein ... 15238.html

Nach oben