PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Hyperref: Links von der Fussnote zum Text und von der Überschrift zum Inhaltsverz?



ElEsido
06-08-2009, 12:32
Hallo!

Kennt jemand einen Weg, um mit Hyperref:

- für Fussnoten nicht nur einen Link vom FN-Zeichen im Text runter zur Fussnote zu setzten, sondern auch umgekehrt von der Fussnotennummer hoch zum FN-Zeichen im Text

und

- für Überschriften nicht nur einen Link vom Inhaltsverzeichnis zur Überschrift, sondern auch von der Überschrift zurück ins Inhaltsverzeichnis

zu setzen? (Wenn möglich in das mit \tableofcontents erzeugte Verzeichnis, nicht in eine mit \shorttoc erzeugte Inhaltsübersicht)

Hier (http://email.esm.psu.edu/pipermail/macosx-tex/2006-April/021988.html) hat jemand etwas für Endnoten gebastelt, kann man das (mit mehr Programmierkenntnissen als ich) für Fussnoten anpassen?

Grüsse
ElEsido

u_fischer
06-08-2009, 12:38
Für Fußnoten siehe Doku:

"hyperfootnotes Makes the footnote marks into hyperlinks
to the footnote text. Easily broken"

Nachtrag: Das ist falsch, ich hatte dich falsch verstanden.

Federstrich
07-09-2009, 16:14
Hallo ElEsido,

ich benötige für ein größeres Projekt genau die gleichen Funktionen: also Links von der Überschrift zurück ins Inhaltsverzeichnis.

Hast du da inzwischen eine Lösung gefunden?

Viele Grüße,
Federstrich

ElEsido
07-09-2009, 17:45
Hallo Federstrich

Leider habe ich keine Lösung gefunden. Heiko Oberdiek, ein Autor von hyperref, hat netterweise auf eine Mail-Anfrage von mir geantwortet. Leider war seine Aussage nicht sehr ermutigend:



> It is handy to have a link from the footnote mark in the text to the
> footnote below. One thing I suggest is to add the following function: It
> would be nice to have the same thing backwards: a link from the footnote
> number at the bottom of the page up to the footnote sign in the text.

No, the footnote stuff is already ugly hack enough. LaTeX's footnote
interface misses unique identifying tags. This already causes much
trouble.

Also it's possible to have several marks that points to the same
footnote. Thus a back link interface would have to include a list
of back references. Then the footnote mark in the footnote isn't
enough as link.

But you can use \AcrobatMenu with the Back function.

> The same thing goes for the table of contents. It is nice to hace links to
> the respective headings and i believe that another helpful thing might be
> to have links from the headings back to the table of contents.

Again no. Typographically it changes too much the appearance of
chapter/section titles. With option colorlinks they would now be
colored or have colored rectangles.


Beim letzten Punkt bin ich mit Heiko nich einig, man könnte entweder alle Links schwarz ohne Rahmen gestalten, oder den Überschriftenlinks eine eigene Farbe (schwarz) zuordnen.

Leider fehlen mir die Kenntnisse zum Experimentieren. Aber falls Dir was einfällt, so lass es das Forum doch wissen!

Federstrich
07-09-2009, 18:12
Hallo ElEsidio,

leider kann ich nicht gut genug programmieren und so auch keine Lösung des eigentlichen Problems anbieten.

Was mir einfällt:
\hypertarget{toc}{}
\pdfbookmark[1]{\contentsname}{toc}
\tableofcontents Immerhin bringt das ein Bookmark in das Dokument. Beim Acrobat Reader (vorausgesetzt die hyperref-Einstellung "bookmarksopen=true" ist gesetzt) kann ich so wenigstens das Inhaltsverzeichnis anspringen.

Man soll ja nicht von sich auf andere schließen, ich hoffe aber doch, dass es da draußen noch ein paar ebenso Dumme wie mich gibt. Deshalb eine kurze Anleitung:


\usepackage[bookmarksopen=true]{hyperref} in die Präambel schreiben.
obigen Code (in meinem Fall nach \begin{document}) dort einfügen, wo das Inhaltsverzeichnis erscheinen soll.
Fertig!

Mehr kann ich leider nicht anbieten. Vielleicht ist ja möglich, auf eine bestimmte Seite zu springen und dann für jede Überschrift das Inhaltsverzeichnis als Sprungziel anzugeben. Bei kleinen Dokumenten mag das ja gehen, bei großen aber führt das die Vorzüge von LaTeX ad absurdum.

Viele Grüße,
Federstrich