]> git.lyx.org Git - lyx.git/commitdiff
EmbeddedObjects.lyx: rewrite another hyperref feature
authorUwe Stöhr <uwestoehr@web.de>
Sun, 3 Aug 2008 00:59:43 +0000 (00:59 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Sun, 3 Aug 2008 00:59:43 +0000 (00:59 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26035 a592a061-630c-0410-9148-cb99ea01b6c8

lib/doc/EmbeddedObjects.lyx
lib/doc/UserGuide.lyx
lib/doc/clipart/referenceQt4.png
lib/doc/de/EmbeddedObjects.lyx

index fb97516500294075c76a246ba8f6f0a51f5121d7..676fbb662c1aa0e65f22330071473d4546769a8f 100644 (file)
@@ -1,5 +1,5 @@
-#LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
-\lyxformat 339
+#LyX 1.6.0rc1 created this file. For more info see http://www.lyx.org/
+\lyxformat 340
 \begin_document
 \begin_header
 \textclass scrbook
@@ -20175,9 +20175,31 @@ The LaTeX-package
 \series bold
 hyperref
 \series default
- provides a very useful feature that cross-references automatically include
- the name of the referenced floats (or text parts like sections).
- You save to write e.
+
+\begin_inset Index
+status collapsed
+
+\begin_layout Plain Layout
+LaTeX-packages ! hyperref
+\end_layout
+
+\end_inset
+
+, that is enabled in the 
+\family sans
+PDF Properties
+\family default
+ of the 
+\family sans
+Document Settings
+\family default
+ dialog, provides a very useful feature that cross-references automatically
+ include the name of the referenced floats (or text parts like 
+\emph on
+section
+\emph default
+).
+ So you will save to write e.
 \begin_inset space \thinspace{}
 \end_inset
 
@@ -20193,23 +20215,53 @@ Figure
 \begin_inset Quotes erd
 \end_inset
 
- before every reference box.
- To get this automatic reference naming, you have to load the LaTeX-package
+ before every reference to a figure.
+ To use this feature, enable 
 \series bold
 hyperref
 \series default
+ and insert this line to the LaTeX preamble:
+\end_layout
 
-\begin_inset Index
-status collapsed
+\begin_layout Standard
 
-\begin_layout Plain Layout
-LaTeX-packages ! hyperref
+\series bold
+
+\backslash
+AtBeginDocument{
+\backslash
+renewcommand{
+\backslash
+ref}[1]{
+\backslash
+mbox{
+\backslash
+autoref{#1}}}}
 \end_layout
 
+\begin_layout Standard
+When you prefer other reference names than the default ones, for example
+ you want instead of 
+\begin_inset Quotes eld
+\end_inset
+
+section
+\begin_inset Quotes erd
 \end_inset
 
- in the document preamble with
+ the name 
+\begin_inset Quotes eld
+\end_inset
+
+sec.
+\begin_inset space \thinspace{}
+\end_inset
+
+
+\begin_inset Quotes eld
+\end_inset
+
+, you can redefine the name by inserting this to the preamble:
 \end_layout
 
 \begin_layout Standard
@@ -20217,49 +20269,118 @@ LaTeX-packages ! hyperref
 \series bold
 
 \backslash
-usepackage[pdfborder={0 0 0}]{hyperref}
-\begin_inset Newline newline
-\end_inset
-
-
+addto
 \backslash
-AtBeginDocument{
+extrasenglish{
 \backslash
 renewcommand{
 \backslash
-ref}[1]{
+sectionautorefname}
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
 \backslash
-mbox{
+hphantom{ }
+\end_layout
+
+\end_inset
+
+{sec.
 \backslash
-autoref{#1}}}}
+negthinspace}}
 \end_layout
 
 \begin_layout Standard
+When you are using another document language than English, replace
+\begin_inset Newline newline
+\end_inset
+
 
 \series bold
-hyperref
+
+\backslash
+extrasenglish
 \series default
- is used to link cross-references in the DVI- and PDF-output, this means
- that the reader of your document will be able to click on a table of content
- (TOC) entry or on a reference and he will be shown the referenced document
- part.
+ by 
 \series bold
-hyperref
+
+\backslash
+extras***
 \series default
- also creates PDF-bookmarks for every section of your document to make it
- easier for readers to navigate through the document.
- This is also used in this document but when you have a look in the document
- preamble you will find various options in the load command of 
+, where *** is the name of the used language.
+\end_layout
+
+\begin_layout Standard
+To get automatic names, but not for certain reference types, for example
+ not for equations, use this preamble code:
+\end_layout
+
+\begin_layout Standard
+
 \series bold
-hyperref
-\series default
-.
- To learn more about the 
+
+\backslash
+newlength{
+\backslash
+abc}
+\begin_inset Newline newline
+\end_inset
+
+
+\backslash
+settowidth{
+\backslash
+abc}{
+\backslash
+space}
+\begin_inset Newline newline
+\end_inset
+
+
+\backslash
+addto
+\backslash
+extrasenglish{
+\backslash
+renewcommand{
+\backslash
+equationautorefname}
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+hphantom{ }
+\end_layout
+
+\end_inset
+
+{
+\backslash
+hspace{-
+\backslash
+abc}}
+\end_layout
+
+\begin_layout Standard
+More about this topic can be found in 
 \series bold
 hyperref
 \series default
- package, we refer to its documentation 
+'s documentation 
 \begin_inset CommandInset citation
 LatexCommand cite
 key "hyperref"
@@ -20287,7 +20408,7 @@ Formatted
 
 reference
 \family default
- style, described in section
+ style, as described in section
 \begin_inset space ~
 \end_inset
 
@@ -20306,6 +20427,14 @@ reference "sub:Cross-Reference-Formats"
 
 \end_layout
 
+\begin_layout Standard
+The 
+\emph on
+Math
+\emph default
+ manual is an example where automatic reference naming is used.
+\end_layout
+
 \begin_layout Subsection
 Reference Position
 \begin_inset CommandInset label
index e256a18cd088a05e8c8a75443cb3e68860cb6b43..e57d1e7f865291ccd27e50e61ba951140780a0dd 100644 (file)
@@ -27827,7 +27827,7 @@ hyperref
 status collapsed
 
 \begin_layout Plain Layout
-LaTeX-packages ! hyperref
+Latex@LaTeX-packages ! hyperref
 \end_layout
 
 \end_inset
@@ -42202,7 +42202,7 @@ hyperref
 status collapsed
 
 \begin_layout Plain Layout
-LaTeX-packages ! hyperref
+Latex@LaTeX-packages ! hyperref
 \end_layout
 
 \end_inset
index 0e4e1a5463206ace86c8d05a9432400816889c8e..ca4f3863e4e626446e7c7ba44ecf41088e084b1d 100644 (file)
Binary files a/lib/doc/clipart/referenceQt4.png and b/lib/doc/clipart/referenceQt4.png differ
index c89c256a345fd475e5bcfe69abbad844b8bba9c6..60b330010e0dfd70cf673bbae11fb63922e23928 100644 (file)
@@ -1,5 +1,5 @@
-#LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
-\lyxformat 339
+#LyX 1.6.0rc1 created this file. For more info see http://www.lyx.org/
+\lyxformat 340
 \begin_document
 \begin_header
 \textclass scrbook
@@ -20803,7 +20803,7 @@ Format
 \end_layout
 
 \begin_layout Subsection
-Automatische Querverweis-Namen
+Automatische Querverweisnamen
 \begin_inset Index
 status collapsed
 
@@ -20831,30 +20831,46 @@ LaTeX-Pakete ! hyperref
 
 \end_inset
 
- besitzt eine sehr nützliche Funktion, damit Querverweise den Namen des
- Gleitobjekts automatisch enthalten (oder Textteile wie 
+, das in den
+\family sans
+ PDF-Eigenschaften
+\family default
+ im 
+\family sans
+Dokument-Einstellungen
+\family default
+ Dialog aktiviert werden kann, besitzt eine sehr nützliche Funktion, dass
+ Querverweise den Namen des Gleitobjekts automatisch enthalten (oder Textteile
+ wie 
 \emph on
 Abschnitt
 \emph default
 ).
- Sie müssen nicht mehr Abbildung vor das Querverweis-Kästchen schreiben.
- Um diese Funktion benutzen zu können, müssen Sie 
+ Sie müssen damit z.
+\begin_inset space \thinspace{}
+\end_inset
+
+B.
+ nicht mehr den Namen 
+\begin_inset Quotes gld
+\end_inset
+
+Abbildung
+\begin_inset Quotes grd
+\end_inset
+
+ vor jeden Querverweis auf eine Abbildung schreiben.
+ Um diese Funktion benutzen zu können, aktivieren Sie 
 \series bold
 hyperref
 \series default
in den LaTeX-Vorspann wie folgt einfügen:
und fügen diese Zeile in den LaTeX-Vorspann ein:
 \end_layout
 
 \begin_layout Standard
 
 \series bold
 
-\backslash
-usepackage[pdfborder={0 0 0}]{hyperref}
-\begin_inset Newline newline
-\end_inset
-
-
 \backslash
 AtBeginDocument{
 \backslash
@@ -20867,38 +20883,153 @@ mbox{
 autoref{#1}}}}
 \end_layout
 
+\begin_layout Standard
+Wenn Sie andere Querverweisnamen als die voreingestellten bevorzugen, z.
+\begin_inset space \thinspace{}
+\end_inset
+
+B.
+ statt 
+\begin_inset Quotes gld
+\end_inset
+
+Abschnitt
+\begin_inset Quotes grd
+\end_inset
+
+ den Namen 
+\begin_inset Quotes gld
+\end_inset
+
+Kap.
+\begin_inset space \thinspace{}
+\end_inset
+
+
+\begin_inset Quotes grd
+\end_inset
+
+, können Sie den Namen umdefinieren, indem Sie dies zum Vorspann hinzufügen:
+\end_layout
+
 \begin_layout Standard
 
 \series bold
-hyperref
-\series default
- wird benutzt, um Marken und Querverweise in DVI- und PDF
+
+\backslash
+addto
+\backslash
+extrasngerman{
+\backslash
+renewcommand{
+\backslash
+sectionautorefname}
+\begin_inset Newline newline
+\end_inset
+
+
 \begin_inset ERT
-status open
+status collapsed
 
 \begin_layout Plain Layout
 
-"=
+
+\backslash
+hphantom{ }
 \end_layout
 
 \end_inset
 
-Dokumenten zu verlinken, das heißt der Leser der entsprechenden Datei kann
- auf solch einen Link klicken, und die angeklickte Stelle wird gezeigt.
- In DVI-Dateien ist ein Link blau unterstrichen, in der PDF-Datei ändert
- sich der Cursor.
+{Kap.
+\backslash
+negthinspace}}
 \end_layout
 
 \begin_layout Standard
-Diese Funktion wird auch in diesem Dokument benutzt und nach und nach in
- allen Handbüchern.
- Wenn Sie sich den LaTeX-Vorspann ansehen, werden Sie verschiedene Optionen
- für die Benutzung von 
+Wenn Sie eine andere Dokumentsprache als Englisch benutzen, ersetzen Sie
+\begin_inset Newline newline
+\end_inset
+
+
 \series bold
-hyperref
+
+\backslash
+extrasngerman
+\series default
+ durch 
+\series bold
+
+\backslash
+extras***
 \series default
- sehen.
- In der 
+, wobei *** der Name der verwendeten Sprache ist.
+\end_layout
+
+\begin_layout Standard
+Um automatische Namen zu bekommen, jedoch nicht für bestimmte Querverweistypen,
+ z.
+\begin_inset space \thinspace{}
+\end_inset
+
+B.
+ nicht für Gleichungen, benutzen Sie diesen Vorspanncode:
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+newlength{
+\backslash
+abc}
+\begin_inset Newline newline
+\end_inset
+
+
+\backslash
+settowidth{
+\backslash
+abc}{
+\backslash
+space}
+\begin_inset Newline newline
+\end_inset
+
+
+\backslash
+addto
+\backslash
+extrasenglish{
+\backslash
+renewcommand{
+\backslash
+equationautorefname}
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+hphantom{ }
+\end_layout
+
+\end_inset
+
+{
+\backslash
+hspace{-
+\backslash
+abc}}
+\end_layout
+
+\begin_layout Standard
+Mehr über dieses Thema finden Sie in der 
 \series bold
 hyperref
 \series default
@@ -20909,7 +21040,7 @@ key "hyperref"
 
 \end_inset
 
- finden Sie mehr darüber.
+.
 \end_layout
 
 \begin_layout Standard
@@ -20930,7 +21061,18 @@ Formatierter
 
 Querverweis
 \family default
- benutzen.
+ benutzen, wie in Abschnitt
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "uab:Querverweis-Formate"
+
+\end_inset
+
+ beschrieben.
 \end_layout
 
 \end_inset
@@ -20938,6 +21080,14 @@ Querverweis
 
 \end_layout
 
+\begin_layout Standard
+Das 
+\emph on
+Mathe
+\emph default
+ Handbuch ist ein Beispiel wo automatische Querverweisnamen verwendet werden.
+\end_layout
+
 \begin_layout Subsection
 Querverweis-Position
 \begin_inset CommandInset label