From aca7f6512139c4b3f72245597b6c4383efb5b4ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Sun, 12 Feb 2012 02:17:32 +0000 Subject: [PATCH] - EmbeddedObjects.lyx: correct the description of Automatic Reference Naming - Math.lyx: correct the preamble accordingly git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40731 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/doc/EmbeddedObjects.lyx | 45 ++--------------------------- lib/doc/Math.lyx | 6 ++-- lib/doc/de/EmbeddedObjects.lyx | 49 +++---------------------------- lib/doc/de/Math.lyx | 6 ++-- lib/doc/es/EmbeddedObjects.lyx | 53 ++++------------------------------ lib/doc/es/Math.lyx | 6 ++-- lib/doc/fr/EmbeddedObjects.lyx | 53 ++++------------------------------ lib/doc/fr/Math.lyx | 6 ++-- lib/doc/ja/EmbeddedObjects.lyx | 53 +++++----------------------------- lib/doc/ja/Math.lyx | 11 ------- 10 files changed, 33 insertions(+), 255 deletions(-) diff --git a/lib/doc/EmbeddedObjects.lyx b/lib/doc/EmbeddedObjects.lyx index 6753c92098..e863d339b8 100644 --- a/lib/doc/EmbeddedObjects.lyx +++ b/lib/doc/EmbeddedObjects.lyx @@ -24160,55 +24160,14 @@ To get automatic names, but not for certain reference types, for example \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{ +renewcommand*{ \backslash -equationautorefname} -\begin_inset Newline newline -\end_inset - - -\begin_inset Phantom HPhantom -status open - -\begin_layout Plain Layout - -\series bold -\begin_inset space ~ -\end_inset - - -\end_layout - -\end_inset - -{ -\backslash -hspace{- -\backslash -abc}} +equationautorefname}[1]{}} \end_layout \begin_layout Standard diff --git a/lib/doc/Math.lyx b/lib/doc/Math.lyx index 55a03d1c39..3bc3e8df28 100644 --- a/lib/doc/Math.lyx +++ b/lib/doc/Math.lyx @@ -39,10 +39,8 @@ % increase link area for cross-references and autoname them, \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}} -\newlength{\abc} -\settowidth{\abc}{\space} -\AtBeginDocument{% - \renewcommand{\equationautorefname}{\hspace{-\abc}} +\addto\extrasenglish{% + \renewcommand*{\equationautorefname}[1]{} \renewcommand{\sectionautorefname}{sec.\negthinspace} \renewcommand{\subsectionautorefname}{sec.\negthinspace} \renewcommand{\subsubsectionautorefname}{sec.\negthinspace} diff --git a/lib/doc/de/EmbeddedObjects.lyx b/lib/doc/de/EmbeddedObjects.lyx index d28e0f48fc..42bbf51e6c 100644 --- a/lib/doc/de/EmbeddedObjects.lyx +++ b/lib/doc/de/EmbeddedObjects.lyx @@ -24395,7 +24395,7 @@ negthinspace}} \end_layout \begin_layout Standard -Wenn Sie eine andere Dokumentsprache als Englisch benutzen, ersetzen Sie +Wenn Sie eine andere Dokumentsprache als Deutsch benutzen, ersetzen Sie \begin_inset Newline newline \end_inset @@ -24428,55 +24428,14 @@ B. \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{ +extrasngerman{ \backslash -renewcommand{ +renewcommand*{ \backslash -equationautorefname} -\begin_inset Newline newline -\end_inset - - -\begin_inset Phantom HPhantom -status open - -\begin_layout Plain Layout - -\series bold -\begin_inset space ~ -\end_inset - - -\end_layout - -\end_inset - -{ -\backslash -hspace{- -\backslash -abc}} +equationautorefname}[1]{}} \end_layout \begin_layout Standard diff --git a/lib/doc/de/Math.lyx b/lib/doc/de/Math.lyx index 44b5c10ab6..0182f539fb 100644 --- a/lib/doc/de/Math.lyx +++ b/lib/doc/de/Math.lyx @@ -39,10 +39,8 @@ % Linkfläche für Querverweise vergrößern und automatisch benennen, \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}} -\newlength{\abc} -\settowidth{\abc}{\space} -\AtBeginDocument{% - \renewcommand{\equationautorefname}{\hspace{-\abc}} +\addto\extrasngerman{% + \renewcommand*{\equationautorefname}[1]{} \renewcommand{\sectionautorefname}{Kap.\negthinspace} \renewcommand{\subsectionautorefname}{Kap.\negthinspace} \renewcommand{\subsubsectionautorefname}{Kap.\negthinspace} diff --git a/lib/doc/es/EmbeddedObjects.lyx b/lib/doc/es/EmbeddedObjects.lyx index 3cf3694870..38c50a1f59 100644 --- a/lib/doc/es/EmbeddedObjects.lyx +++ b/lib/doc/es/EmbeddedObjects.lyx @@ -24162,7 +24162,7 @@ Si prefieres otros nombres para las referencias distintos de los predeterminados \backslash addto \backslash -extrasenglish{ +extrasspanish{ \backslash renewcommand{ \backslash @@ -24191,7 +24191,7 @@ negthinspace}} \end_layout \begin_layout Standard -Si estás usando un idioma de documento distinto del inglés, reemplaza +Si estás usando un idioma de documento distinto del español, reemplaza \begin_inset Newline newline \end_inset @@ -24199,7 +24199,7 @@ Si estás usando un idioma de documento distinto del inglés, reemplaza \series bold \backslash -extrasenglish +extrasspanish \series default por \series bold @@ -24219,55 +24219,14 @@ Para obtener nombres automáticos pero no para determinados tipos de referencias \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{ +extrasspanish{ \backslash -renewcommand{ +renewcommand*{ \backslash -equationautorefname} -\begin_inset Newline newline -\end_inset - - -\begin_inset Phantom HPhantom -status open - -\begin_layout Plain Layout - -\series bold -\begin_inset space ~ -\end_inset - - -\end_layout - -\end_inset - -{ -\backslash -hspace{- -\backslash -abc}} +equationautorefname}[1]{}} \end_layout \begin_layout Standard diff --git a/lib/doc/es/Math.lyx b/lib/doc/es/Math.lyx index 4d3424ac8e..62c229768e 100644 --- a/lib/doc/es/Math.lyx +++ b/lib/doc/es/Math.lyx @@ -39,10 +39,8 @@ % increase link area for cross-references and autoname them, \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}} -\newlength{\abc} -\settowidth{\abc}{\space} -\AtBeginDocument{% - \renewcommand{\equationautorefname}{\hspace{-\abc}} +\addto\extrasspanish{% + \renewcommand*{\equationautorefname}[1]{} \renewcommand{\sectionautorefname}{sec.\negthinspace} \renewcommand{\subsectionautorefname}{sec.\negthinspace} \renewcommand{\subsubsectionautorefname}{sec.\negthinspace} diff --git a/lib/doc/fr/EmbeddedObjects.lyx b/lib/doc/fr/EmbeddedObjects.lyx index 104b8c96d7..a3eb3eb426 100644 --- a/lib/doc/fr/EmbeddedObjects.lyx +++ b/lib/doc/fr/EmbeddedObjects.lyx @@ -24781,7 +24781,7 @@ section \backslash addto \backslash -extrasenglish{ +extrasfrench{ \backslash renewcommand{ \backslash @@ -24810,11 +24810,11 @@ negthinspace}} \end_layout \begin_layout Standard -Si vous utilisez une autre langue que l'anglais, remplacez +Si vous utilisez une autre langue que le français, remplacez \series bold \backslash -extrasenglish +extrasfrench \series default par \series bold @@ -24837,55 +24837,14 @@ Pour avoir des noms automatiques, mais pas pour certains types de références, \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{ +extrasfrench{ \backslash -renewcommand{ +renewcommand*{ \backslash -equationautorefname} -\begin_inset Newline newline -\end_inset - - -\begin_inset Phantom HPhantom -status open - -\begin_layout Plain Layout - -\series bold -\begin_inset space ~ -\end_inset - - -\end_layout - -\end_inset - -{ -\backslash -hspace{- -\backslash -abc}} +equationautorefname}[1]{}} \end_layout \begin_layout Standard diff --git a/lib/doc/fr/Math.lyx b/lib/doc/fr/Math.lyx index d756f67b55..65979e4d94 100644 --- a/lib/doc/fr/Math.lyx +++ b/lib/doc/fr/Math.lyx @@ -39,10 +39,8 @@ % increase link area for cross-references and autoname them, \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}} -\newlength{\abc} -\settowidth{\abc}{\space} -\AtBeginDocument{% - \renewcommand{\equationautorefname}{\hspace{-\abc}} +\addto\extrasfrench{% + \renewcommand*{\equationautorefname}[1]{} \renewcommand{\sectionautorefname}{sec.\negthinspace} \renewcommand{\subsectionautorefname}{sec.\negthinspace} \renewcommand{\subsubsectionautorefname}{sec.\negthinspace} diff --git a/lib/doc/ja/EmbeddedObjects.lyx b/lib/doc/ja/EmbeddedObjects.lyx index dfc0dea088..231a4ced8a 100644 --- a/lib/doc/ja/EmbeddedObjects.lyx +++ b/lib/doc/ja/EmbeddedObjects.lyx @@ -23093,55 +23093,14 @@ extras*** \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{ +renewcommand*{ \backslash -equationautorefname} -\begin_inset Newline newline -\end_inset - - -\begin_inset Phantom HPhantom -status open - -\begin_layout Plain Layout - -\series bold -\begin_inset space ~ -\end_inset - - -\end_layout - -\end_inset - -{ -\backslash -hspace{- -\backslash -abc}} +equationautorefname}[1]{}} \end_layout \begin_layout Standard @@ -23184,11 +23143,13 @@ reference "sub:相互参照の書式" \end_layout \begin_layout Standard -取扱説明書 + +\lang english +LyX's english \emph on -数式篇 +Math \emph default -は、参照の自動命名が使用されている一例です。 + manual is an example where automatic reference naming is used. \end_layout \begin_layout Subsection diff --git a/lib/doc/ja/Math.lyx b/lib/doc/ja/Math.lyx index efcbee921e..da0be532bc 100644 --- a/lib/doc/ja/Math.lyx +++ b/lib/doc/ja/Math.lyx @@ -40,17 +40,6 @@ %\DeclareInputText{176}{\ifmmode^\circ\else\textdegree\fi} %\DeclareInputText{183}{\ifmmode\cdot\else\textperiodcentered\fi} -% increase link area for cross-references and autoname them, -%\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}} -\newlength{\abc} -\settowidth{\abc}{\space} -\AtBeginDocument{% - \renewcommand{\equationautorefname}{\hspace{-\abc}} - \renewcommand{\sectionautorefname}{sec.\negthinspace} - \renewcommand{\subsectionautorefname}{sec.\negthinspace} - \renewcommand{\subsubsectionautorefname}{sec.\negthinspace} -} - % don't load packages twice % see first footnote in sec. 9.3 \@ifundefined{textcolor}{\usepackage{color}}{}