Überarbeitungsverlauf[Zurück]
Klicke auf Einblenden/Ausblenden von Überarbeitungen 2

18 Mär '18, 04:34

Henri's gravatar image

Henri
15.7k133943

Statt Leerspalten einzufügen kann man auch einfach händisch Spaltenabstand hinzufügen. \documentclass[12pt,a4paper]{article} \usepackage{tabularx} \newcolumntype{R}{>{\raggedleft\arraybackslash}X} \begin{document} \begin{table} \caption{CAPTION} \begin{tabularx}{\linewidth}{l@{\hspace{5em}}RRR@{\hspace{5em}}RRR} \hline & \multicolumn{3}{c@{\hspace{5em}}}{Vorher} & \multicolumn{3}{c}{Nachher} \\ \hline Kategorie \\ \quad Inhalt & x.yy & x.yy & 7 & x.yy & x.yy & a \\ \quad Inhalt2 & xx.yy & xx.yy & 0 & xx.yy & xx.yy & b \\ \end{tabularx} \end{table} \end{document} [![alt text][1]][1] text][1]][2] Geht natürlich auch in ConTeXt. \starttext \startsetups table:special \setupTABLE[frame=off,align=flushright,option=stretch] \setupTABLE[row][first][align=middle,topframe=on,bottomframe=on] \setupTABLE[column][first][align=flushleft] \setupTABLE[column][2,5][loffset=2em] \stopsetups \startTABLE[setups=table:special] \NC \NC[nx=3] Vorher \NC[nx=3] Nachher \NC\NR \NC Kategorie \NC\NR \NC \quad Inhalt \NC x.yy \NC x.yy \NC 7 \NC x.yy \NC x.yy \NC a \NC\NR \NC \quad Inhalt2 \NC xx.yy \NC xx.yy \NC 0 \NC xx.yy \NC xx.yy \NC b \NC\NR \stopTABLE \stoptext [![alt text][3]][3] [1]: https://texwelt.de/wissen/upfiles/test_411.pnghttps://texwelt.de/wissen/upfiles/test_411.png [2]: https://texwelt.de/wissen/upfiles/test_411.png [3]: https://texwelt.de/wissen/upfiles/test_412.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

18 Mär '18, 04:19

Henri's gravatar image

Henri
15.7k133943

Statt Leerspalten einzufügen kann man auch einfach händisch Spaltenabstand hinzufügen. \documentclass[12pt,a4paper]{article} \usepackage{tabularx} \newcolumntype{R}{>{\raggedleft\arraybackslash}X} \begin{document} \begin{table} \caption{CAPTION} \begin{tabularx}{\linewidth}{l@{\hspace{5em}}RRR@{\hspace{5em}}RRR} \hline & \multicolumn{3}{c@{\hspace{5em}}}{Vorher} & \multicolumn{3}{c}{Nachher} \\ \hline Kategorie \\ \quad Inhalt & x.yy & x.yy & 7 & x.yy & x.yy & a \\ \quad Inhalt2 & xx.yy & xx.yy & 0 & xx.yy & xx.yy & b \\ \end{tabularx} \end{table} \end{document} [![alt text][1]][1] [1]: https://texwelt.de/wissen/upfiles/test_411.png