Tabellenüberschriften Formatierung

Tabellen und Grafiken erstellen und anordnen


newtex2000
Forum-Newbie
Forum-Newbie
Beiträge: 2
Registriert: Di 15. Mär 2016, 19:54

Tabellenüberschriften Formatierung

Beitrag von newtex2000 »

Hallo zusammen,

um die Vorgaben an meine Arbeit zu erfüllen, müssten die Überschriften der Tabellen linksbündig ausgegeben werden und bei mehrseitigen Tabellen die Überschrift nicht font + caption text, sondern caption text + font steht, auch bei kombiniert sidewaystable und longtable. Weiß jemand wie man das umsetzten kann?
Anbei ein Minimalbeispiel:
\documentclass[a4paper, ngerman, 12pt, oneside, captions=tableheading, appendixprefix, parskip=half, headings=normal, version=first, bibliography=totocnumbered, listof=totoc, headsepline, headinclude=true]{scrreprt} 
\usepackage[automark]{scrpage2}
\pagestyle{scrheadings}
\ihead{bla bla}
\chead{}
\ohead{\headmark}
\setlength{\headheight}{1.1\baselineskip}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\geometry{top=2cm, bottom=2cm, right=2cm, left=3cm, includehead}
\linespread{1.5}
\addtolength{\footskip}{-1cm}
\usepackage{longtable}
\usepackage{tabularx}
\usepackage{lscape}
\usepackage{rotating}
\usepackage{filecontents}
\usepackage{ltxtable}
\usepackage{booktabs}
\usepackage{array}
\usepackage{multirow}
\usepackage{hyperref}
\usepackage{siunitx}
\usepackage[fixlanguage]{babelbib}
\selectbiblanguage{ngerman}
\usepackage[latin1]{inputenc} 
\usepackage[ngerman]{babel} 
\usepackage[short,ngerman]{isodate}
\setbibliographyfont{urldate}{\printdate}
\usepackage{cite} 
\usepackage{tocloft} 
\usepackage{mdwlist} 
\usepackage{paralist} 
\usepackage{graphicx} 
\usepackage{epstopdf} 
\usepackage{pstool}
\usepackage{float} 
\usepackage[style=base]{caption}
\usepackage{subfig} 
\setcounter{secnumdepth}{3} 
\setcounter{tocdepth}{2} 
\newcommand{\settocdepth}[1]{%
\addtocontents{toc}{\protect\setcounter{tocdepth}{#1}}}
\newcommand{\fremdwort}[1]{\textit{#1}} 
\newcommand{\hersteller}[3]{(\textnormal{#1}, \textit{#2}, \textit{#3})} 
\hyphenation{neuer-text}
\makeatletter 
\renewcommand\@biblabel[1]{#1} % from [1] to 1
\makeatother %
%-------------------------------------------------------------
\renewcommand*\chapterheadstartvskip{\vspace*{-0.5cm}}

\begin{document}
\begin{landscape}
\begin{filecontents}{table-verbrauch.auto}
\begin{longtable}{p{5cm}p{6,2cm}p{7cm}X}
	\caption{Verbrauchsmaterial}  \label{tab:Verbrauchsmaterial}\\
	\toprule
	\textbf{text} & \textbf{text} & \textbf{text}	& \textbf{text}\\
	\midrule\endfirsthead
\caption[Fortsetzung]{Fortsetzung}\\
 	\textbf{text} & \textbf{text} & \textbf{text}	& \textbf{text}\\
	\midrule\endhead
	\bottomrule
	\multicolumn{2}{l}{D: Deutschland} & \multicolumn{2}{r}{Fortsetzung nächste Seite}\endfoot
	\bottomrule
	\multicolumn{4}{l}{D: Deutschland}\endlastfoot
	\multicolumn{4}{l}{\itshape{\textbf{text, text, text}}}\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
                text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
                text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
                text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
                text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
                text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
                text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
                text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
                text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
                text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
                text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
                text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
                text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
                text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
                text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
                text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
                text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
                text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
		text & text & text & text\\
                text & text & text & text\\	
\end{longtable}
\end{filecontents}
\LTXtable{\linewidth}{table-verbrauch.auto}
\end{landscape}
\end{document}
Schon mal vielen Dank.

Viele Grüße!
Dateianhänge
Tabelle Seite 2
Tabelle Seite 2
Tabelle1_1_page_002.jpg (27.8 KiB) 974 mal betrachtet
Tabelle Seite 1
Tabelle Seite 1
Tabelle1_1_page_001.jpg (28.58 KiB) 962 mal betrachtet
Tabelle letzte Seite
Tabelle letzte Seite
Tabelle1_1_page_006.jpg (19.46 KiB) 967 mal betrachtet

Besserwisser

Beitrag von Besserwisser »

Was du mit »font + caption text« bzw. »caption text + font« meinst, ist mir nicht klar. Außerdem ist dein Beispiel bei mir nicht lauffähig:
(./table-verbrauch.auto
./table-verbrauch.auto:16: Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.16 ...ticolumn{4}{l}{D: Deutschland}\endlastfoot
Ich habe ehrlich gesagt nicht so wirklich viel Lust in dem Gewulst an (garantiert für das Beispiel teilweise überflüssigem Präambel-) Code nach der Ursache zu suchen. Daher sei lediglich darauf hingewiesen, dass caption eine Option singlelinecheck=off kennt.

newtex2000
Forum-Newbie
Forum-Newbie
Beiträge: 2
Registriert: Di 15. Mär 2016, 19:54

Beitrag von newtex2000 »

Zur Erläuterung Font + Captain Text

aktuell ist die Ausgabe auf der zweiten Seite
Tabelle 0.1: Fortsetzung (zentriert)

daraus soll werden
Fortsetzung Tabelle 0.1 (linksbündig)

Bei mir ist o.g. Beispiel lauffähig, warum dies bei Besserwisser nicht der Fall ist, kann ich leider nicht erklären.

Besserwisser

Beitrag von Besserwisser »

Es ist weder bei mir zuhause mit aktuellen TeX Live noch auf Overleaf mit deutlich veraltetem TeX Live lauffähig. Du kannst das über den Online-Editor-Link selbst testen.

Außerdem sind da eine Menge überflüssiger Pakete in der Präambel und hyperref wird beispielsweise viel zu früh geladen. Mach ein richtiges Minimalbeispiel.

Statt einer echten \capton kannst du im Kopf ab der zweiten Seite auch einfach eine linksbündige \multicolumn mit dem gewünschten Text verwenden. Testen kann ich das wie gesagt wegen des zitierten Fehlers nicht.

Antworten