PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Schriftgröße in der Tabelle ändern, aber mit genauem Wert



MeisterEde
19-08-2010, 11:27
Hallo Leute,

ich habe die Vorgabe, dass meine Tabellen im Anhang je auf genau eine Seite passen. Das hab ich vorher nicht gewusst und mit logtable gearbeitet. Ich möchte nun die Schriftgröße des Tabelleninhalts ändern und zwar beliebig, so dass ich die Seite möglichst gut ausfülle und es nicht zu klein erscheint.

http://mrunix.de/forums/showthread.php?t=49106&highlight=schriftgr%F6%DFe

hier ist das beschrieben, aber leider ohne konkrete Zahlenwerte für die Schriftgörße

Ich hab jetzt mal \scriptsize verwendet. Das Problem ist, dass dann die Tabellen zwei drei usw. mir etwas zu klein werden.
Ein Problem ist halt, die Chapter Überschrift die auf der selben Seite ist wie die erste Tabelle, natürlich recht viel Platz einnimmt.
Ich möchte jetzt die Schriftgröße in kleinen Schritten so sehr eröhen, dass die erste Tabelle halt "grad" so noch auf eine Seite passt.

Außerdem würde ich die anderen Tabellen dann gerne sowohl horizontal als auch vertikal auf der Seite zentrieren.

Hier mal mein Anhang als Dokument. Ich habe den ganzen Tabelleninhalt mal drin gelassen, weil die Länge ja wichtig ist.


\documentclass[captions=tableheading,a4paper,oneside,12pt]{scrreprt}



\renewcommand*\chapterheadstartvskip{\vspace*{-1cm}}
%% Deutsche Anpassungen %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage[ngerman]{babel}

\usepackage[T1]{fontenc}

\usepackage[ansinew]{inputenc}

\usepackage{a4wide}

\usepackage{lmodern}



\usepackage{float}






\usepackage{setspace}


\onehalfspacing %% 1,5-zeilig




\usepackage{longtable}

\usepackage{booktabs}




\usepackage{fancyhdr}

\pagestyle{fancy}

\fancyhf{}

\fancypagestyle{plain}{%

\fancyfoot[R]{\thepage}

\fancyfoot[C]{}

\fancyhead[R]{\slshape\nouppercase{\leftmark}}

}


\pagestyle{plain}


\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}



\fancyhead[RO,LE]{\bfseries \thepage}

\renewcommand{\headrulewidth}{0.5pt} % Underline headers

\renewcommand{\footrulewidth}{0.5pt}





\begin{document}

\addtokomafont{sectioning}{\rmfamily}



\clearpage
\markboth{Anhang}{Anhang}
\addcontentsline{toc}{chapter}{Anhang}

\chapter*{Anhang}
%\section*{Angaben zur Strukturbestimmung}
{\scriptsize
\begin{longtable}{lll}

\caption{Angaben zur Strukturbestimmung von dppr und \textbf{4}} \\


\toprule
& dpppr & \textbf{4} \\
\midrule
Summenformel & C$_{27}$H$_{27}$NP$_2$ & C$_{39}$H$_{46}$NO$_4$P$_3$Ru$_2$ \\
M$_r$/g mol$-1$ & 427.44 & 887.82 \\
Raumgruppe & P$_2$1/c & P$_2$1/c \\
a/$\mathring{A}$ & 13.8136(11) & 9.6511(18) \\
b/$\mathring{A}$ & 8.3944(4) & 34.279(4) \\
c/$\mathring{A}$ & 20.3473(16) & 12.3799(8) \\
$\alpha$/° & 90 & 90.000(7) \\
$\beta$/° & 90.145(6) & 103.882(10) \\
$\gamma$/° & 90 & 90.000(12) \\
V/$\mathring{A}^3$ & 2359.4(3) & 3976.0(9) \\
Z & 4 & 4 \\
$\rho$/g cm$^3$ & 1.203 & 1.483 \\
$µ$/mm$^{-1}$ & 0.198 & 0.919 \\
Kristallgröße/mm & 0.34 $\times$ 0.29 $\times$ 0.26 & 0.18 $\times$ 0.15 $\times$ 0.08 \\
Temperatur/K & 173(2) & 173(2) \\
Diffraktometer & Oxford XCalibur & Oxford XCalibur \\
Strahlung & MoK$_\alpha$ & MoK$_\alpha$ \\
Anode & fine-focus sealed tube & fine-focus sealed tube \\
Aufnahmeleistung/kW & 2.48 & 2.48 \\
$\vartheta$-Bereich/° & 4.26–26.29 & 4.17–26.25 \\
Reflexe für Metrik & 5574 & 8246 \\
Absorptionskorrektur & multi-scan & multi-scan \\
Transmissionsfaktoren & 0.97422–1.00000 & 0.97793–1.00000 \\
Reflexe gemessen & 10695 & 17170 \\
unabh. Reflexe & 4779 & 7995 \\
R$_{int}$ & 0.0223 & 0.0293 \\
Mittelwert $\sigma$(I)/I & 0.0398 & 0.0586 \\
Reflexe mit I $\geq$ 2$\sigma$(I) & 3523 & 5841 \\
x, y (Wichtung) & 0.0487, 0 & 0.0269, 0 \\
Verfeinerung & - & C-H constr., hydride found free \\
Extinktionsparameter & - & - \\
Flack-Parameter & - & - \\
Parameter & 272 & 453 \\
\textit{restraints} & 0 & 0 \\
R(F$_{obs}$) & 0.0342 & 0.0296 \\
R$_w$(F$^2)$ & 0.0903 & 0.0607 \\
S & 1.034 & 0.902 \\
\textit{shift}/\textit{error}$_{max}$ & 0.001 & 0.002 \\
max. Restdichte/e $\mathring{A}^{-3}$ & 0.316 & 0.759 \\
min. Restdichte/e $\mathring{A}^{-3}$ & -0.239 & -0.470 \\
\bottomrule
\end{longtable}
}
\newpage

{\scriptsize
\begin{longtable}{lll}

\caption{Angaben zur Strukturbestimmung von \textbf{6} und \textbf{2}} \\


\toprule
& \textbf{5} & \textbf{7} \\
\midrule
Summenformel & C$_{40}$H$_{49}$N$_3$O$_{6.50}$P$_3$Ru$_2$ & C$_{39}$H$_{45}$N$_2$O$_5$P$_3$Ru$_2$ \\
M$_r$/g mol$-1$ & 970.87 & 916.82 \\
Kristallsystem & monoclinic & orthorhombic \\
Raumgruppe & C2/c & Pca21 \\
a/$\mathring{A}$ & 39.9466(12) & 18.3257(4) \\
b/$\mathring{A}$ & 10.2167(3) & 22.0294(5) \\
c/$\mathring{A}$ & 23.3147(7) & 21.0224(5) \\
$\alpha$/° & 90 & 90 \\
$\beta$/° & 115.911(2) & 90 \\
$\gamma$/° & 90 & 90 \\
V/$\mathring{A}^3$ & 8558.7(4) & 8486.8(3) \\
Z & 8 & 8 \\
$\rho$/g cm$^3$ & 1.507 & 1.435 \\
$µ$/mm$^{-1}$ & 0.867 & 0.866 \\
Kristallgröße/mm & 0.13 $\times$ 0.01 $\times$ 0.01 & 0.14 $\times$ 0.11 $\times$ 0.06 \\
Temperatur/K & 173(2) & 173(2) \\
Diffraktometer & KappaCCD & KappaCCD \\
Strahlung & MoK$_\alpha$ & MoK$_\alpha$ \\
Anode & rotating anode & rotating anode \\
Aufnahmeleistung/kW & 3.025 & 3.025 \\
$\vartheta$-Bereich/° & 3.25–23.10 & 3.14–25.23 \\
Reflexe für Metrik & 18256 & 26210 \\
Absorptionskorrektur & none & none \\
Transmissionsfaktoren & - & - \\
Reflexe gemessen & 22594 & 48103 \\
unabh. Reflexe & 6013 & 14884 \\
R$_{int}$ & 0.2343 & 0.0865 \\
Mittelwert $\sigma$(I)/I & 0.1672 & 0.0687 \\
Reflexe mit I $\geq$ 2$\sigma$(I) & 3003 & 11545 \\
x, y (Wichtung) & 0.0542, 0 & 0.1372, 34.5189 \\
Verfeinerung & C-H constr., hydride found free & - \\
Extinktionsparameter & - & - \\
Flack-Parameter & - & 0.28(6) \\
Parameter & 502 & 920 \\
\textit{restraints} & 0 & 1 \\
R(F$_{obs}$) & 0.0604 & 0.0829 \\
R$_w$(F$^2)$ & 0.1366 & 0.2357 \\
S & 0.909 & 1.043 \\
\textit{shift}/\textit{error}$_{max}$ & 0.001 & 0.001 \\
max. Restdichte/e $\mathring{A}^{-3}$ & 0.998 & 4.180 \\
min. Restdichte/e $\mathring{A}^{-3}$ & -0.629 & -0.945 \\
\bottomrule
\end{longtable}
\newpage

}
{\scriptsize
\begin{longtable}{lll}

\caption{Angaben zur Strukturbestimmung von \textbf{8} und \textbf{9}} \\

\toprule


& \textbf{8} & \textbf{9} \\
\midrule
Summenformel & C$_{42}$H$_{44}$NO$_4$P$_3$Ru$_2$ & C$_{42}$H$_{44}$N$_3$O$_6$P$_3$Ru$_2$ \\
M$_r$/g mol$-1$ & 921.83 & 1004.89 \\
Kristallsystem & monoclinic & orthorhombic \\
Raumgruppe & P2$_1$/c & C2/c\\
a/$\mathring{A}$ & 9.8265(2) & 23.1863(4) \\
b/$\mathring{A}$ & 18.7030(4) & 10.3367(2) \\
c/$\mathring{A}$ & 22.8079(4) & 36.1329(6) \\
$\alpha$/° & 90 & 90 \\
$\beta$/° & 103.3440(10) & 93.4150(10) \\
$\gamma$/° & 90 & 90 \\
V/$\mathring{A}^3$ & 4078.58(14) & 8644.6(3) \\
Z & 4 & 8 \\
$\rho$/g cm$^3$ & 1.501 & 1.544 \\
$µ$/mm$^{-1}$ & 0.899 & 0.861\\
Kristallgröße/mm & 0.13 $\times$ 0.08 $\times$ 0.03 & 0.20 $\times$ 0.08 $\times$ 0.04 \\
Temperatur/K & 173(2) & 173(2) \\
Diffraktometer & KappaCCD & KappaCCD \\
Strahlung & MoK$_\alpha$ & MoK$_\alpha$ \\
Anode & rotating anode & rotating anode \\
Aufnahmeleistung/kW & 3.025 & 3.025 \\
$\vartheta$-Bereich/° & 3.26–27.51 & 3.16–26.40 \\
Reflexe für Metrik & 17482 & 14759 \\
Absorptionskorrektur & none & none \\
Transmissionsfaktoren & - & - \\
Reflexe gemessen & 32955 & 28887 \\
unabh. Reflexe & 9361 & 8692 \\
R$_{int}$ & 0.0797 & 0.0595 \\
Mittelwert $\sigma$(I)/I & 0.0592 & 0.0542 \\
Reflexe mit I $\geq$ 2$\sigma$(I) & 6870 & 6055 \\
x, y (Wichtung) & 0.0453, 3.0741 & 0.0455, 13.4091 \\
Verfeinerung & C-H constr., hydride found free & C-H constr., hydride found free \\
Extinktionsparameter & - & - \\
Flack-Parameter & - & - \\
Parameter & 480 & 535 \\
\textit{restraints} & 2 & 0 \\
R(F$_{obs}$) & 0.0430 & 0.0422 \\
R$_w$(F$^2)$ & 0.1076 & 0.1014 \\
S & 1.075 & 1.032 \\
\textit{shift}/\textit{error}$_{max}$ & 0.001 & 0.001 \\
max. Restdichte/e $\mathring{A}^{-3}$ & 1.280 & 0.871 \\
min. Restdichte/e $\mathring{A}^{-3}$ & -0.890 & -0.855 \\
\bottomrule
\end{longtable}
}
\newpage

{\scriptsize
\begin{longtable}{ll}

\caption{Angaben zur Strukturbestimmung von \textbf{11}} \\
\toprule


& \textbf{11} \\
\midrule
Summenformel & C$_{46}$H$_{55}$F$_6$NO$_5$P$_4$Ru$_2$ \\
M$_r$/g mol$-1$ & 1141.93 \\
Kristallsystem & monoclinic \\
Raumgruppe & P2$_1$/m \\
a/$\mathring{A}$ & 12.9590(11) \\
b/$\mathring{A}$ & 15.959(3) \\
c/$\mathring{A}$ & 13.309(2) \\
$\alpha$/° & 90 \\
$\beta$/° & 112.378(12) \\
$\gamma$/° & 90 \\
V/$\mathring{A}^3$ & 2545.2(6) \\
Z & 2 \\
$\rho$/g cm$^3$ & 1.490 \\
$µ$/mm$^{-1}$ & 0.784 \\
Kristallgröße/mm & 0.14 $\times$ 0.05 $\times$ 0.02 \\
Temperatur/K & 173(2) \\
Diffraktometer & Oxford XCalibur \\
Strahlung & MMoK$_\alpha$ \\
Anode & fine-focus sealed tube \\
Aufnahmeleistung/kW & 2.48 \\
$\vartheta$-Bereich/° & 4.17–20.01 \\
Reflexe für Metrik & - \\
Absorptionskorrektur & none \\
Transmissionsfaktoren & - \\
Reflexe gemessen & 6120 \\
unabh. Reflexe & 2473 \\
R$_{int}$ & 0.0371 \\
Mittelwert $\sigma$(I)/I & 0.0500 \\
Reflexe mit I $\geq$ 2$\sigma$(I) & 1911 \\
x, y (Wichtung) & 0.0735, 0 \\
Verfeinerung & C-H constr., hydride found free \\
Extinktionsparameter & - \\
Flack-Parameter & - \\
Parameter & 322 \\
\textit{restraints} & 0 \\
R(F$_{obs}$) & 0.0404 \\
R$_w$(F$^2)$ & 0.1066 \\
S & 0.996 \\
\textit{shift}/\textit{error}$_{max}$ & 1.461 \\
max. Restdichte/e $\mathring{A}^{-3}$ & 1.418 \\
min. Restdichte/e $\mathring{A}^{-3}$ & -1.181 \\
\bottomrule
\end{longtable}
}







\end{document}





Danke schonmal :-)

Ede

Xenara
19-08-2010, 12:34
Die Schriftgrösse inkonsistent zu ändern halte ich für keine gute Idee.
Wenns nur um wenig Platz geht, kann man auch mit negativen \hspace*{} arbeiten und die Tabelle näher unter die Überschrift rücken und/oder die Seite mit \enlargethispage etwas vergrössern.
Wieso teilst du deine longtable nicht auf mehrere normale table/tabular auf?
Ausserdem könntest du die Überschrift für den Anhang auf einer Seite lassen und die Tabelle erst auf der nächsten beginnen. Also quasi als Deckblatt, denn es ist ja nicht die Überschrift für genau diese Tabelle.

MeisterEde
19-08-2010, 17:18
Hmm, das mit der Überschrift nur auf einer Seite würd mein Betreuer glaub ich ned mögen, aber ich schlags mal vor.

Habs jetzt einigermaßen ansehnlich hingekriegt. Danke für den Tipp mit \enlargethispage, das hat an ner anderen Stelle geholfen ;-)

MeisterEde
21-08-2010, 13:19
Also das mit dem Deckblatt wird nicht gehen. \scriptsize ist etwas zu klein, mit \footnotesize siehts so aus:


\documentclass[captions=tableheading,a4paper,oneside,12pt]{scrreprt}



\renewcommand*\chapterheadstartvskip{\vspace*{-1cm}}
%% Deutsche Anpassungen %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage[ngerman]{babel}

\usepackage[T1]{fontenc}

\usepackage[ansinew]{inputenc}

\usepackage{a4wide}

\usepackage{lmodern}



\usepackage{float}






\usepackage{setspace}


\onehalfspacing %% 1,5-zeilig




\usepackage{longtable}

\usepackage{booktabs}




\usepackage{fancyhdr}

\pagestyle{fancy}

\fancyhf{}

\fancypagestyle{plain}{%

\fancyfoot[R]{\thepage}

\fancyfoot[C]{}

\fancyhead[R]{\slshape\nouppercase{\leftmark}}

}


\pagestyle{plain}


\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}



\fancyhead[RO,LE]{\bfseries \thepage}

\renewcommand{\headrulewidth}{0.5pt} % Underline headers

\renewcommand{\footrulewidth}{0.5pt}





\begin{document}

\addtokomafont{sectioning}{\rmfamily}



\clearpage
\markboth{Anhang}{Anhang}
\addcontentsline{toc}{chapter}{Anhang}

\chapter*{Anhang}
\enlargethispage{1cm}
%\section*{Angaben zur Strukturbestimmung}
\enlargethispage{1cm}
{\footnotesize
\vspace{-1cm}
\begin{longtable}{lll}

\caption{Angaben zur Strukturbestimmung von dppr und \textbf{4}} \\


\toprule
& dpppr & \textbf{4} \\
\midrule
Summenformel & C$_{27}$H$_{27}$NP$_2$ & C$_{39}$H$_{46}$NO$_4$P$_3$Ru$_2$ \\
M$_r$/g mol$-1$ & 427.44 & 887.82 \\
Raumgruppe & P$_2$1/c & P$_2$1/c \\
a/$\mathring{A}$ & 13.8136(11) & 9.6511(18) \\
b/$\mathring{A}$ & 8.3944(4) & 34.279(4) \\
c/$\mathring{A}$ & 20.3473(16) & 12.3799(8) \\
$\alpha$/° & 90 & 90.000(7) \\
$\beta$/° & 90.145(6) & 103.882(10) \\
$\gamma$/° & 90 & 90.000(12) \\
V/$\mathring{A}^3$ & 2359.4(3) & 3976.0(9) \\
Z & 4 & 4 \\
$\rho$/g cm$^3$ & 1.203 & 1.483 \\
$µ$/mm$^{-1}$ & 0.198 & 0.919 \\
Kristallgröße/mm & 0.34 $\times$ 0.29 $\times$ 0.26 & 0.18 $\times$ 0.15 $\times$ 0.08 \\
Temperatur/K & 173(2) & 173(2) \\
Diffraktometer & Oxford XCalibur & Oxford XCalibur \\
Strahlung & MoK$_\alpha$ & MoK$_\alpha$ \\
Anode & fine-focus sealed tube & fine-focus sealed tube \\
Aufnahmeleistung/kW & 2.48 & 2.48 \\
$\vartheta$-Bereich/° & 4.26–26.29 & 4.17–26.25 \\
Reflexe für Metrik & 5574 & 8246 \\
Absorptionskorrektur & multi-scan & multi-scan \\
Transmissionsfaktoren & 0.97422–1.00000 & 0.97793–1.00000 \\
Reflexe gemessen & 10695 & 17170 \\
unabh. Reflexe & 4779 & 7995 \\
R$_{int}$ & 0.0223 & 0.0293 \\
Mittelwert $\sigma$(I)/I & 0.0398 & 0.0586 \\
Reflexe mit I $\geq$ 2$\sigma$(I) & 3523 & 5841 \\
x, y (Wichtung) & 0.0487, 0 & 0.0269, 0 \\
Verfeinerung & - & C-H constr., hydride found free \\
Extinktionsparameter & - & - \\
Flack-Parameter & - & - \\
Parameter & 272 & 453 \\
\textit{restraints} & 0 & 0 \\
R(F$_{obs}$) & 0.0342 & 0.0296 \\
R$_w$(F$^2)$ & 0.0903 & 0.0607 \\
S & 1.034 & 0.902 \\
\textit{shift}/\textit{error}$_{max}$ & 0.001 & 0.002 \\
max. Restdichte/e $\mathring{A}^{-3}$ & 0.316 & 0.759 \\
min. Restdichte/e $\mathring{A}^{-3}$ & -0.239 & -0.470 \\
\bottomrule
\end{longtable}
}







\end{document}




Ich bräuchte also etwas, genau zwischen diesen beiden Größen am besten halt ne Möglichkeit die Schriftgröße selbst definieren zu können...


Ich hoffe ihr könnt mir da helfen :-)


Vielen Dnak

Ede

edico
21-08-2010, 18:26
Du kannst die fontsize direkt angeben:



...
%\enlargethispage{1cm}
%{\footnotesize
%\vspace{-1cm}
{\fontsize{9.0pt}{10.5pt}\selectfont % Groesse ungeprueft, evtl. anpassen
\begin{longtable}{lll}
... stuff...
\end{longtable}
}


Ansonsten wäre auch ein Lösung mit reszing (incl. tabular, kein caption unmittelbar) denkbar:



\resizebox*{!}{.925\textheight}{%
\begin{tabular}{...}
...
\end{tabular}
}


edico