• Apfeltalk ändert einen Teil seiner Allgemeinen Geschäftsbedingungen (AGB), das Löschen von Useraccounts betreffend.
    Näheres könnt Ihr hier nachlesen: AGB-Änderung
  • Wir haben den Frühjahrsputz beendet, Ihr auch? Welches Foto zu dem Thema hat Euch dann am Besten gefallen? Hier geht es lang zur Abstimmung --> Klick

Latex Captionsetup verrückt Tabelle

LiZard

Granny Smith
Registriert
05.06.07
Beiträge
17
Hallo!
Ich habe eine Longtable mit eingebundenen Bildern. Bei eben dieser will ich nun die caption mit \captionsetuo so ändern, dass sie kein Label und keinen Trenner mehr hat (\captionsetup[labelformat=empty,labelsep=none]).
Ohne captionsetup liegt die Tabelle schön mittig auf der Seite, sobald ich es dabei schreibe, rückt die Tabelle aus dem rechten Seitenrand raus.

Ich weiß, dass man Minimalbeispiele posten soll. Habe aber versucht, die Situation mit einer Longtable nur mit Text nachzustellen, da tritt das Problem aber nicht auf. Für genau diese (Problem)tabelle müsste ich also die 24 eingebundenen Bilder irgendwie hier reinbekommen...o_O

Vielleicht fällt ja jemandem direkt ohne (lauffähiges)Minimalbeispiel was ein...
{
\centering
\begin{longtable}{ccccc}\\

&\textbf{++/LN}&\textbf{+-/LN}&\textbf{++/FME}&\textbf{ +-/FME}\\*[-1cm]

\rotatebox{90}{\parbox{4cm}{\textbf{\footnotesize{C57Bl/6Jx\newline C57Bl/6J d9}}}}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80LNB6d9++}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80LNB6d9+-}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80UtB6d9++}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80UtB6d9+-}\\*[-1cm]

\rotatebox{90}{\parbox{4cm}{\textbf{\footnotesize{C57Bl/6Jx\newline C57Bl/6J ns}}}}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80LNB6ns++}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80LNB6ns+-}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80UtB6ns++}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80UtB6ns+-}\\*[-1cm]

\rotatebox{90}{\parbox{4cm}{\textbf{\footnotesize{C57Bl/6Jx\newline Balb/c d9}}}}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80LNBalbd9++}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80LNBalbd9+-}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80UtBalbd9++}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80UtBalbd9+-}\\*[-1cm]
\rotatebox{90}{\parbox{4cm}{\textbf{\footnotesize{C57Bl/6Jx\newline Balb/c ns}}}}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80LNBalbns++}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80LNBalbns+-}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80UtBalbns++}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80UtBalbns+-}\\*[-1cm]

\rotatebox{90}{\parbox{4cm}{\textbf{\footnotesize{CCR7\textsuperscript{-/-}x\newline CCR7\textsuperscript{-/-}}}}}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80LNCCRd9++}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80LNCCRd9+-}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80UtCCRd9++}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80UtCCRd9+-}\\*[-1cm]

\rotatebox{90}{\parbox{4cm}{\textbf{\footnotesize{CCR7\textsuperscript{-/-}x\newline CCR7\textsuperscript{-/-}}}}}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80LNCCRns++}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80LNCCRns+-}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80UtCCRns++}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80UtCCRns+-}\\*
&\multicolumn{4}{c}{\includegraphics[width=11.5cm,height=1cm]{Bilder/Pfeil}}\\
\captionsetup[labelformat=empty,labelsep=none]
\caption{\textbf{Expression des Oberflächenmarkers CD80}}
\end{longtable}\par
}

Danke,
LiZa
 

Stefan_K

Morgenduft
Registriert
18.05.07
Beiträge
168
Klammerungsfehler

Hallo LiZa,

ersetze die eckigen Klammern durch geschweifte:
Code:
\captionsetup{labelformat=empty,labelsep=none}
Viele Grüße,

Stefan
 

LiZard

Granny Smith
Registriert
05.06.07
Beiträge
17
DANKE schonmal:)...aber...

Das hat soweit funktioniert, die Caption ist wieder mittig im ordentlichen Blocksatz unter der Abbildung.
Leider funktioniert aber die Änderung nicht, weswegen ich die captionsetup brauche, also schreibt Latex mir weiterhin ein Label und einen Trenner hin, die ich ja weg haben wollte (daher ja das ganze rumgebastel;) )
Gruß,
LiZa
 

Stefan_K

Morgenduft
Registriert
18.05.07
Beiträge
168
longtable und \captionsetup

Hi LiZa,

bei mir funktioniert es auf diese Weise zusammen mit Deinem Code-Ausschnitt. Teste einmal dieses Minimalbeispiel:
Code:
\documentclass[a4paper,10pt]{article}
\usepackage[demo]{graphicx}
\usepackage{longtable}
\usepackage{caption}
\usepackage[utf8]{inputenc}
\begin{document}

{
\centering
\begin{longtable}{ccccc}\\

&\textbf{++/LN}&\textbf{+-/LN}&\textbf{++/FME}&\textbf{ +-/FME}\\*[-1cm]

\rotatebox{90}{\parbox{4cm}{\textbf{\footnotesize{ C57Bl/6Jx\newline C57Bl/6J d9}}}}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80LNB6d9++}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80LNB6d9+-}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80UtB6d9++}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80UtB6d9+-}\\*[-1cm]

\rotatebox{90}{\parbox{4cm}{\textbf{\footnotesize{ CCR7\textsuperscript{-/-}x\newline CCR7\textsuperscript{-/-}}}}}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80LNCCRns++}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80LNCCRns+-}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80UtCCRns++}&\includegraphics[width=2.5cm,height=3.0cm]{Bilder/FACS/CD80UtCCRns+-}\\*
&\multicolumn{4}{c}{\includegraphics[width=11.5cm,height=1cm]{Bilder/Pfeil}}\\
\captionsetup{labelformat=empty,labelsep=none}
\caption{\textbf{Expression des Oberflächenmarkers CD80}}
\end{longtable}\par
}
\end{document}
Stefan
 

[email protected]

Transparent von Croncels
Registriert
08.01.07
Beiträge
315
servus stefan,

kannst du mir bitte mal sage wo ich die captiosetup nummer einbauen muss, damit ich die schriftgröße bearbeiten kann???
musste das setup erstmal auskommentieren, da sonst nix mehr ging
hier mal meine tabelle:

\begin{table}[h]
\setcaptionwidth{10cm}
\begin{center}
\begin{tabular}{c|ccc|cc}
\hline
\multicolumn{4}{c}{Ergebnissgrößen} & \multicolumn{2}{c}{Cashflowgrößen}\\
\hline
\hline
\textsc{} & {\bf{\small{\textsc{BEvaE}}}} & {\bf{\small{\textsc{EBIT}}}} & {\bf{\small{\textsc{JU}}}} & {\bf{\small{\textsc{oCF}}}} & {\bf{\small{\textsc{fCF}}}}\\
\hline
$\alpha_{1}$ & 0.817 & 0.752 & 0.697 & 0.934 & 0.111\\
\hline
$\theta_{1}$ & 1.047 & 1.011 & 0.978 & 1.065 & 0.767\\
\hline
\end{tabular}
% \captionsetup
{font=small}
\caption{Persistenz verschiedener Ergebnis- und Cashflow-Variablen \newline Quelle: eigene Darstellung in Anlehnung an Kaserer/Adamek (2003), S. 507}
\end{center}
\end{table}
 

Stefan_K

Morgenduft
Registriert
18.05.07
Beiträge
168
\captionsetup

Hallo,

innerhalb der table-Umgebung würde
Code:
\captionsetup{font=small}
funkionieren, oder verwende
Code:
\captionsetup[table]{font=small}
vor \begin{table}[h].

Stefan