Seite 1 von 1

linksbündige Überschrift über zentrierter Tabelle?Hilfe!

Verfasst: Mi 5. Aug 2015, 09:59
von Mia_a_liabe
Ich möchte die linksbündige Überschrift über die zentrierte Tabelle bekommen....wäre sehr wichtig und ich wäre sehr dankbar! Habe wirklich schon viel probiert..
\documentclass
[a4paper,ngerman,
12pt, twoside,openright,        % ersatzweise 11pt
halfparskip,%Absatzabstand
 ngerman]%neue deutsche Rechtschreibung
{scrbook}

\usepackage{ltcaption}
\usepackage{caption}

\renewcommand*{\captionformat}{}%Tabellen werden APA konform
\setcapindent*{1sp}% 1sp ist so winzig, dass man den nicht sehen kann
\setkomafont{caption}{\upshape} 
\setkomafont{captionlabel}{\itshape}

\usepackage{longtable,array}


\usepackage{chngcntr}
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}

%\DeclareCaptionJustification{raggedright}{\raggedright}
\DeclareCaptionLabelSeparator{enspace}{\newline}
\captionsetup[table]{name=Tabelle, labelsep=enspace,labelformat=simple,labelfont=up, textfont=it, justification=justified,singlelinecheck=false} 

\captionsetup[figure]{labelsep=period,labelformat=simple, name=Abbildung} %macht Punkt nach Abbildung
\begin{document}


  \begin{table}[htbp] % 
  \centering
  \normalsize
   \caption{Deskriptive Statistik der Schattenwirtschaft}
    \begin{tabular}{p{4cm}r}
      \textbf{\textit{N}=162} &\textbf{Schattenwirtschaft} \\%
  \textbf{Mittelwert}  & 34.48  \\%
 \textbf{Median} & 35.35 \\
\textbf{Standardabweichung} & 	13.28 \\
\textbf{Minimum} & 	8.70 \\
\textbf{Maximum}	 & 68.80 \\
\end{tabular}
\end{table}

% Ende des Dokumentes
\end{document}

...

Verfasst: Mi 5. Aug 2015, 10:31
von nixversteh
Hallo Gast,



Gruß

Martin
\documentclass
[paper=a4,
fontsize=12pt, 
twoside=true,
open=right,        
parskip=half]
{scrbook}

\usepackage{caption}
\usepackage{longtable,array}
\usepackage{chngcntr}
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}

\begin{document}
\begin{table}[htbp] 
\centering
\captionsetup{justification=centering}
\normalsize
\caption{Deskriptive Statistik der Schattenwirtschaft}
\begin{tabular}{p{4cm}r}
\textbf{\textit{N}=162} &\textbf{Schattenwirtschaft} \\%
\textbf{Mittelwert}  & 34.48  \\%
\textbf{Median} & 35.35 \\
\textbf{Standardabweichung} &    13.28 \\
\textbf{Minimum} &    8.70 \\
\textbf{Maximum}    & 68.80 \\
\end{tabular}
\end{table}
\end{document}


...

Verfasst: Mi 5. Aug 2015, 11:46
von Mia_a_liabe_w
Lieber Martin,

Danke für deine bemühung, aber leider bleibt meine Dormatierung nicht linksbündig und in 2 Zeilen in deinem Beispiel...
soll so aussehen (hoffe es ist irgendwie verständlich):
Tabelle 1 (linksbündig aber nicht am beginn des normalen textes, sondern der Tabelle)
xyxyxyxyxyxyxyxyxyxyxyyxy

(zentrierte Tabelle)

Verfasst: Mi 5. Aug 2015, 16:25
von Besserwisser
threeparttable

Bei schmalen Tabellen sieht das allerdings ziemlich dämlich aus. Da würde ich dann eher captionbeside o. ä. verwenden.

Danke

Verfasst: Fr 7. Aug 2015, 08:31
von Mia_a_liabe
Hey, vielen lieben Dank!! macht jetzt genau was ich will!!
\documentclass
[a4paper,ngerman,
12pt, twoside,openright,        % ersatzweise 11pt
halfparskip,%Absatzabstand
 ngerman]%neue deutsche Rechtschreibung
{scrbook}

\usepackage{ltcaption}
\usepackage{caption}
\usepackage {threeparttable}
\renewcommand*{\captionformat}{}%Tabellen werden APA konform
\setcapindent*{1sp}% 1sp ist so winzig, dass man den nicht sehen kann
\setkomafont{caption}{\upshape} 
\setkomafont{captionlabel}{\itshape}

\usepackage{longtable,array}


\usepackage{chngcntr}
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}

%\DeclareCaptionJustification{raggedright}{\raggedright}
\DeclareCaptionLabelSeparator{enspace}{\newline}
\captionsetup[table]{name=Tabelle, labelsep=enspace,labelformat=simple,labelfont=up, textfont=it, justification=justified,singlelinecheck=false} 

\captionsetup[figure]{labelsep=period,labelformat=simple, name=Abbildung} %macht Punkt nach Abbildung
\begin{document}


  \begin{table}[htbp] % 
  \centering
  \normalsize
  \begin{threeparttable}[t]
   \caption{Deskriptive Statistik der Schattenwirtschaft}
    \begin{tabular}{p{4cm}r}
      \textbf{\textit{N}=162} &\textbf{Schattenwirtschaft} \\%
  \textbf{Mittelwert}  & 34.48  \\%
 \textbf{Median} & 35.35 \\
\textbf{Standardabweichung} & 	13.28 \\
\textbf{Minimum} & 	8.70 \\
\textbf{Maximum}	 & 68.80 \\
\end{tabular}
\end{threeparttable}
\end{table}


\end{document}