PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : longtable und Fußnoten



etilli33
15-10-2005, 13:43
Hallo allerseits,

ich musste gerade feststellen, dass longtable Fußnote nur in normalen Felder unterstützt, nicht aber im Kopf. Logisch müsste das ja gehen, longtable ist keine Gleitumgebung und wenn ich eine Fußnote nur in firsthead setzte, kommt sie ja auch nur einmal vor. Dennoch: genau das Problem wie mit Gleitumgebungen. Ich würde aber gerne auch eine Fußnote im Kopf ansetzen lassen, genauso wie auch eine in den normalen Zellen, die dann beide unten auf der Seite erscheinen sollen. Die minipage-Lösung geht hier nicht, weil die Tabelle eben länger als eine Seite ist.
Kann mich erinnern, dass in der FAQ mal eine Möglichkeit war, Fußnoten zu schreiben, indem man nur eine Marke vergab und dann irgendwo einen Text anbrachte, die Zähler wurden von den Fußnoten übernommen und integriert. Ich weiß nur nicht mehr, wie das ging, in der FAQ steht ja jetzt davon nichts mehr. Vielleicht weiß das ja jemand noch.

Oder kann man die Köpfe von longtable umdefinieren, dass sie nichtmehr als float angesehen werden?

Gruß
Till

Ein Mini zur Verdeutlichung:


\documentclass[12pt]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[german,ngerman]{babel}
\usepackage{longtable}
\begin{document}
\begin{longtable}{l l l}
\captionabove{Eine Überschrift}\\
Spalte & Spalte & Spalte\footnote{mit Fußnote}\\
\endfirsthead
Spalte & Spalte & Spalte\\
\endhead
Zeile & Zeile &Zeile\\
Zeile & Zeile &Zeile\\
Zeile & Zeile &Zeile\footnote{mit Fußnote}\\
\end{longtable}

\end{document}

rais
15-10-2005, 15:11
Moin Till,
mit \footnotemark & -text sollte es funzen:


\documentclass[12pt]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[german,ngerman]{babel}
\usepackage{longtable}
\begin{document}
\begin{longtable}{l l l}
\captionabove{Eine Überschrift}\\
Spalte & Spalte & Spalte\footnotemark\\
\endfirsthead
Spalte & Spalte & Spalte\\
\endhead
Zeile & Zeile &Zeile\\
Zeile & Zeile &Zeile\\
Zeile & Zeile &Zeile\footnotemark\\
\end{longtable}
\addtocounter{footnote}{-1}
\footnotetext{obere Fußnote}
\stepcounter{footnote}
\footnotetext{untere Fußnote}
\end{document}

Da \footnotemark den footnote Zähler bereits erhöht, ohne den dazu passenden Text auszugeben, muß hinterher der Zähler entsprechend angepaßt werden (Anzahl_footnotemark - 1) vom Zähler abziehen, ersten Fußnotentext ausgeben, Zähler inkrementieren, nächsten Fußnotentext ausgeben...etc. Wenn ich mich recht erinnere, sollten dazwischen keine normalen Fußnoten ausgegeben werden (um mit dem Zähler nicht durcheinander zu geraten).

Kann sein, daß es mit z.B. footmisc auch einfacher funzt...
MfG,

etilli33
15-10-2005, 18:19
Hab mich jetzt mit footmisc nicht rumgeschlagen, vielen Dank für diese schnelle und gut funktionierende Lösung. habe die footnotetexte gleich in die nächste Zeile nach dem header gestellt, dann kann ich danach in den Feldern auch weiterhin Fußnoten benutzen und alles funktioniert.

Danke!

Till

tiffy
22-08-2006, 23:27
\documentclass[a4paper,12pt,twoside]{report}
\usepackage[T1]{fontenc}% % T1-encoded fonts: auch Wörter mit Umlauten trennen
\usepackage[latin1]{inputenc}
\usepackage[para,hang]{footmisc} %
\setlength{\footnotemargin}{-0.8em}
\usepackage{longtable}
\newcommand{\sub}[1]{$_{\textrm\footnotesize{#1}}$} % Im Text subscript
\newcommand{\super}[1]{$^{\textrm\footnotesize{#1}}$}

\begin{document}

\chapter{Stoffwerte}\label{anhanga}

\section{Spezifische Wärmekapazitäten bei p=1 atm in $\frac{kJ}{kmol*K}$}\label{spezifische}

\renewcommand{\footnoterule}{}
\renewcommand{\thefootnote}{\alph{footnote}}
\begin{longtable}{lccccccc}

\hline
& N\sub{2}\footnotemark[1] & O\sub{2}\footnotemark[1] & H\sub{2}O\footnotemark[1] & CO\sub{2}\footnotemark[1] & CO\footnotemark[2] & Luft\footnotemark[1] & CH\sub{4}\footnotemark[1]\\
\hline
$T/°C$ & $\bar{c}_p$ & $\bar{c}_p$ & $\bar{c}_p$ &$\bar{c}_p$ & $\bar{c}_p$ & $\bar{c}_p$ & $\bar{c}_p$\\
\hline
\endfirsthead
\hline
& N\sub{2} & O\sub{2} & H\sub{2}O & CO\sub{2} & CO & Luft &CH\sub{4}\\
\hline
$T/°C$ & $\bar{c}_p$ & $\bar{c}_p$ & $\bar{c}_p$ &$\bar{c}_p$ & $\bar{c}_p$ & $\bar{c}_p$ & $\bar{c}_p$\\
\hline
\endhead
\hline
\endfoot
\hline
\endlastfoot
0 & 29,1 & 29,3 & 33,5 & 36,1 & 29,1 & 29,1 & 34,6\\
100 & 29,2 & 29,5 & 33,7 & 38,4 & 29,2 & 29,2 & 37,0\\
200 & 29,3 & 30,0 & 34,1 & 40,2 & 29,3 & 29,3 & 39,5\\
300 & 29,4 & 30,4 & 34,6 & 41,9 & 29,5 & 29,5 & 42,4\\
400 & 29,6 & 30,9 & 35,1 & 43,4 & 29,8 & 29,8 & 45,2\\
500 & 29,9 & 31,3 & 35,6 & 44,7 & 30,1 & 30,1 & 48,0\\
600 & 30,1 & 31,8 & 36,2 & 46,0 & 30,4 & 30,4 & 50,7\\
700 & 30,5 & 32,1 & 36,8 & 47,0 & 30,7 & 30,7 & 53,4\\
800 & 30,8 & 32,5 & 37,4 & 48,0 & 31,1 & 31,1 & 55,8\\
900 & 31,1 & 32,9 & 38,0 & 48,8 & 31,4 & 31,3 & 58,0\\
1000 & 31,3 & 33,1 & 38,6 & 49,6 & 31,6 & 31,6 & 60,3\\
1100 & 31,6 & 33,4 & 39,2 & 50,3 & 31,9 & 31,9 & 62,3\\
1200 & 31,8 & 33,6 & 39,8 & 51,0 & 32,2 & 32,1 & 64,2\\
1300 & 32,1 & 33,9 & 40,3 & 51,6 & 32,4 & 32,3 & -\\
1400 & 32,3 & 34,1 & 40,9 & 52,1 & 32,6 & 32,6 & -\\
1500 & 32,5 & 34,3 & 41,5 & 52,6 & 32,8 & 32,8 & -\\
1600 & 32,8 & 34,5 & 42,0 & 53,1 & 33,0 & 33,1 & -\\
1700& 32,9 & 34,7 & 42,5 & 53,5 & 33,2 & 33,2 & -\\
1800& 33,1 & 34,9 & 43,0 & 53,9 & 33,4 & 33,4 & -\\
1900 & 33,2 & 35,0 & 43,5 & 54,3 & 33,5 & 33,5 & -\\
2000 & 33,4 & 35,2 & 43,9 & 54,7 & 33,7 & 33,6 & -\\
2100 & 33,5 & 35,3 & 44,4 & 54,9 & - & 33,8 & -\\
2200 & 33,6 & 35,5 & 44,7 & 55,1 & 33,9\footnotemark[3] & 33,9 & -\\
2300 & 33,8 & 35,6 & 45,1 & 55,3 & - & 34,1 & -\\
2400 & 33,9 & 35,7 & 45,5 & 55,5 & - & 34,2 & -\\
2500 & 34,1 & 35,9 & 45,9 & 55,7 & 34,3\footnotemark[3] & 34,3 & -\\
2600 & 34,2 & 36,1 & 46,3 & 56,0 & - & 34,4 & -\\
2700 & 34,3 & 36,2 & 46,6 & 56,4 & - & 34,6 & -\\
2800 & 34,4 & 36,3 & 47,0 & 56,7 & - & 34,7 & -\\
2900 & 34,5 & 36,5 & 47,3 & 57,0 & - & 34,8 & -\\
3000 & 34,6 & 36,6 & 47,6 & 57,3 & 34,8\footnotemark[3] & 34,8 & -\\
\end{longtable}
\footnotetext[1]{Sattelmayer und Kathan \cite{88}}
\footnotetext[2]{Dittman \cite{87}}
\footnotetext[3]{Mardorf \cite{89}}

\end{document}

Ich habe mir rais Beispiel ein bisschen als Vorbild genommen. Das Problem ist, dass die Fußnoten nebeneinander unten auf die Seite gesetzt werden. Ich will sie aber lieber direkt unter der Tabelle und untereinander stehen haben. Das [hang, para] ist wegen anderer Fußnoten drin.

Ich hoffe, jemand kann mir helfen.

Danke
Peter

tiffy
23-08-2006, 14:55
\documentclass[a4paper,12pt,twoside]{report}
\usepackage[T1]{fontenc}%
\usepackage[latin1]{inputenc}
\usepackage[para,hang]{footmisc} \setlength{\footnotemargin}{-0.8em}
\usepackage{longtable}
\newcommand{\sub}[1]{$_{\textrm\footnotesize{#1}}$}
\newcommand{\super}[1]{$^{\textrm\footnotesize{#1}}$}
\newcommand\myFootnote[1]{%
\textsuperscript{\scriptsize\refstepcounter{footno te}\thefootnote}%
\footnotesize #1\normalsize%
}

\begin{document}

\chapter{Stoffwerte}\label{anhanga}

\section{Spezifische Wärmekapazitäten bei p=1 atm in $\frac{kJ}{kmol*K}$}\label{spezifische}

\renewcommand{\footnoterule}{}
\renewcommand{\thefootnote}{\alph{footnote}}
\begin{longtable}{lccccccc}

\hline
& N\sub{2}\footnotemark[1] & O\sub{2}\footnotemark[1] & H\sub{2}O\footnotemark[1] & CO\sub{2}\footnotemark[1] & CO\footnotemark[2] & Luft\footnotemark[1] & CH\sub{4}\footnotemark[1]\\
\hline
$T/°C$ & $\bar{c}_p$ & $\bar{c}_p$ & $\bar{c}_p$ &$\bar{c}_p$ & $\bar{c}_p$ & $\bar{c}_p$ & $\bar{c}_p$\\
\hline
\endfirsthead
\hline
& N\sub{2}\footnotemark[1] & O\sub{2}\footnotemark[1] & H\sub{2}O\footnotemark[1] & CO\sub{2}\footnotemark[1] & CO\footnotemark[2] & Luft\footnotemark[1] &CH\sub{4\footnotemark[1]}\\
\hline
$T/°C$ & $\bar{c}_p$ & $\bar{c}_p$ & $\bar{c}_p$ &$\bar{c}_p$ & $\bar{c}_p$ & $\bar{c}_p$ & $\bar{c}_p$\\
\hline
\endhead
\hline
\endfoot
\hline
\endlastfoot
0 & 29,1 & 29,3 & 33,5 & 36,1 & 29,1 & 29,1 & 34,6\\
100 & 29,2 & 29,5 & 33,7 & 38,4 & 29,2 & 29,2 & 37,0\\
200 & 29,3 & 30,0 & 34,1 & 40,2 & 29,3 & 29,3 & 39,5\\
300 & 29,4 & 30,4 & 34,6 & 41,9 & 29,5 & 29,5 & 42,4\\
400 & 29,6 & 30,9 & 35,1 & 43,4 & 29,8 & 29,8 & 45,2\\
500 & 29,9 & 31,3 & 35,6 & 44,7 & 30,1 & 30,1 & 48,0\\
600 & 30,1 & 31,8 & 36,2 & 46,0 & 30,4 & 30,4 & 50,7\\
700 & 30,5 & 32,1 & 36,8 & 47,0 & 30,7 & 30,7 & 53,4\\
800 & 30,8 & 32,5 & 37,4 & 48,0 & 31,1 & 31,1 & 55,8\\
900 & 31,1 & 32,9 & 38,0 & 48,8 & 31,4 & 31,3 & 58,0\\
1000 & 31,3 & 33,1 & 38,6 & 49,6 & 31,6 & 31,6 & 60,3\\
1100 & 31,6 & 33,4 & 39,2 & 50,3 & 31,9 & 31,9 & 62,3\\
1200 & 31,8 & 33,6 & 39,8 & 51,0 & 32,2 & 32,1 & 64,2\\
1300 & 32,1 & 33,9 & 40,3 & 51,6 & 32,4 & 32,3 & -\\
1400 & 32,3 & 34,1 & 40,9 & 52,1 & 32,6 & 32,6 & -\\
1500 & 32,5 & 34,3 & 41,5 & 52,6 & 32,8 & 32,8 & -\\
1600 & 32,8 & 34,5 & 42,0 & 53,1 & 33,0 & 33,1 & -\\
1700& 32,9 & 34,7 & 42,5 & 53,5 & 33,2 & 33,2 & -\\
1800& 33,1 & 34,9 & 43,0 & 53,9 & 33,4 & 33,4 & -\\
1900 & 33,2 & 35,0 & 43,5 & 54,3 & 33,5 & 33,5 & -\\
2000 & 33,4 & 35,2 & 43,9 & 54,7 & 33,7 & 33,6 & -\\
2100 & 33,5 & 35,3 & 44,4 & 54,9 & - & 33,8 & -\\
2200 & 33,6 & 35,5 & 44,7 & 55,1 & 33,9\footnotemark[3] & 33,9 & -\\
2300 & 33,8 & 35,6 & 45,1 & 55,3 & - & 34,1 & -\\
2400 & 33,9 & 35,7 & 45,5 & 55,5 & - & 34,2 & -\\
2500 & 34,1 & 35,9 & 45,9 & 55,7 & 34,3\footnotemark[3] & 34,3 & -\\
2600 & 34,2 & 36,1 & 46,3 & 56,0 & - & 34,4 & -\\
2700 & 34,3 & 36,2 & 46,6 & 56,4 & - & 34,6 & -\\
2800 & 34,4 & 36,3 & 47,0 & 56,7 & - & 34,7 & -\\
2900 & 34,5 & 36,5 & 47,3 & 57,0 & - & 34,8 & -\\
3000 & 34,6 & 36,6 & 47,6 & 57,3 & 34,8\footnotemark[3] & 34,8 & -\\
\end{longtable}
\begin{center}
\begin{minipage}{0.7\textwidth}
\renewcommand{\baselinestretch}{1}\normalsize
\myFootnote{Sattelmayer und Kathan \cite{88}} \newline
\myFootnote{Dittman \cite{87}} \newline
\myFootnote{Mardorf \cite{89}} \newline
\end{minipage}
\end{center}

\end{document}

Es funktioniert jetzt. Die Fußnoten stehen unter der Tabelle und fangen bündig mit dem Anfang der Tabelle an (deswegen die minipage). Es geht bestimmt wesentlich eleganter. Wer was eleganteres hat, kann das hier drin ja mal posten.