Hi,
da ich bereits seit Stunden versuche, mich durch euer Beispiel zu kämpfen, und es dennoch nicht an meine Zwecke anpassen kann, poste ich erst einmal Sofa-Surfers Lösung in einer meiner Meinung nach übersichtlicheren Darstellung (die ich um eine fbox erweitert habe):
Code:
\documentclass{article}
\usepackage[labelformat=empty]{subfig}
\begin{document}
\newsavebox{\tempbox}
\begin{figure}[htb]
% for centering the whole figure horizontal
\centering
% for a nice box around the whole figure
\fbox{
\sbox{\tempbox}{
% the following is the actual content of sub figure 2(!)
\rule{.6\textwidth}{3cm}
}
\subfloat[SUB-CAPTION-01 \label{fig:LABEL-SUB-FIGURE-01}]{%
\parbox[b][\ht\tempbox][c]{.25\textwidth}{
% the following is the actual content of sub figure 1(!)
\rule{.25\textwidth}{1cm}
}
}
\subfloat[SUB-CAPTION-02 \label{fig:LABEL-SUB-FIGURE-02}]{\usebox{\tempbox}}
}
\caption{CAPTION-OF-COMPLETE-FIGURE}
\label{fig:LABEL-OF-COMPLETE-FIGURE}
\end{figure}
\end{document}
So, wie es hier dargestellt wurde, funktioniert es auch 1a!
Wenn ich allerdings versuche, die \rule-Befehle durch tatsächlichen Inhalt zu ersetzen, verrutscht alles ungewollt.
Nachfolgend meine Adaption, welche tikz-Gitter zeichnet:
Code:
\documentclass{article}
\usepackage[labelformat=empty]{subfig}
\usepackage{tikz}
\begin{document}
\newsavebox{\tempbox}
\begin{figure}[htb]
% for centering the whole figure horizontal
\centering
% for a nice box around the whole figure
\fbox{
\sbox{\tempbox}{
% the following is the actual content of sub figure 2(!)
\begin{tikzpicture}
\draw[help lines] (0,0) grid (2,3);
\end{tikzpicture}
}
\subfloat[SUB-CAPTION-01 \label{fig:LABEL-SUB-FIGURE-01}]{%
\parbox[b][\ht\tempbox][c]{.5\textwidth}{
% the following is the actual content if sub figure 1(!)
\begin{tikzpicture}
\draw[help lines] (0,0) grid (2,2);
\end{tikzpicture}
}
}
\subfloat[SUB-CAPTION-02 \label{fig:LABEL-SUB-FIGURE-02}]{\usebox{\tempbox}}
}
\caption{CAPTION-OF-COMPLETE-FIGURE}
\label{fig:LABEL-OF-COMPLETE-FIGURE}
\end{figure}
\end{document}
Mein Problem ist, dass ich nicht weiß, wie ich im Code festhalte, welche Breite die zweite Grafik bekommen soll. Der ersten kann ich sagen, dass die 50% der Textbreite einnehmen soll, aber wie sage ich dies der zweiten Grafik?
Ein weiteres Problem ist, dass die erste Grafik nicht horizontal zentriert über ihrer Caption steht. Wie fixe ich dies?
Lesezeichen