From bf21947af25156d74c4d10d665384cbb6c93b305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Sun, 3 Aug 2008 00:59:43 +0000 Subject: [PATCH] EmbeddedObjects.lyx: rewrite another hyperref feature git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26035 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/doc/EmbeddedObjects.lyx | 219 ++++++++++++++++++++++++------- lib/doc/UserGuide.lyx | 4 +- lib/doc/clipart/referenceQt4.png | Bin 306 -> 288 bytes lib/doc/de/EmbeddedObjects.lyx | 214 +++++++++++++++++++++++++----- 4 files changed, 358 insertions(+), 79 deletions(-) diff --git a/lib/doc/EmbeddedObjects.lyx b/lib/doc/EmbeddedObjects.lyx index fb97516500..676fbb662c 100644 --- a/lib/doc/EmbeddedObjects.lyx +++ b/lib/doc/EmbeddedObjects.lyx @@ -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,35 +20215,18 @@ 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 - -\begin_inset Index -status collapsed - -\begin_layout Plain Layout -LaTeX-packages ! hyperref -\end_layout - -\end_inset - - in the document preamble with + and insert this line to the LaTeX preamble: \end_layout \begin_layout Standard \series bold -\backslash -usepackage[pdfborder={0 0 0}]{hyperref} -\begin_inset Newline newline -\end_inset - - \backslash AtBeginDocument{ \backslash @@ -20234,32 +20239,148 @@ mbox{ 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 + + 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 \series bold -hyperref + +\backslash +addto +\backslash +extrasenglish{ +\backslash +renewcommand{ +\backslash +sectionautorefname} +\begin_inset Newline newline +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +hphantom{ } +\end_layout + +\end_inset + +{sec. +\backslash +negthinspace}} +\end_layout + +\begin_layout Standard +When you are using another document language than English, replace +\begin_inset Newline newline +\end_inset + + +\series bold + +\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 + +\backslash +extras*** +\series default +, 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 + +\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 - 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 -\series bold -hyperref -\series default -. - To learn more about the -\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 diff --git a/lib/doc/UserGuide.lyx b/lib/doc/UserGuide.lyx index e256a18cd0..e57d1e7f86 100644 --- a/lib/doc/UserGuide.lyx +++ b/lib/doc/UserGuide.lyx @@ -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 diff --git a/lib/doc/clipart/referenceQt4.png b/lib/doc/clipart/referenceQt4.png index 0e4e1a5463206ace86c8d05a9432400816889c8e..ca4f3863e4e626446e7c7ba44ecf41088e084b1d 100644 GIT binary patch delta 242 zcmVNkliGVWwGU<7e{7H4dlpD z+curF|7CF&hdDTfHDO!GVKKHrW2MCddsJovM=jrlUA*KxV+u3W>w