mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-13 20:09:59 +00:00
thesis files: Fixed preamble code for automatic reference naming
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40735 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
af8fcc77fb
commit
5ce0c1330b
@ -6,18 +6,14 @@
|
|||||||
\begin_preamble
|
\begin_preamble
|
||||||
% Linkfläche für Querverweise vergrößern und automatisch benenne
|
% Linkfläche für Querverweise vergrößern und automatisch benenne
|
||||||
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
|
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
|
||||||
\newlength{\abc}
|
\addto\extrasenglish{%
|
||||||
\settowidth{\abc}{\space}
|
\renewcommand*{\equationautorefname}[1]{}
|
||||||
\AtBeginDocument{%
|
|
||||||
\addto\extrasngerman{
|
|
||||||
\renewcommand{\equationautorefname}{\hspace{-\abc}}
|
|
||||||
\renewcommand{\sectionautorefname}{Kap.\negthinspace}
|
\renewcommand{\sectionautorefname}{Kap.\negthinspace}
|
||||||
\renewcommand{\subsectionautorefname}{Kap.\negthinspace}
|
\renewcommand{\subsectionautorefname}{Kap.\negthinspace}
|
||||||
\renewcommand{\subsubsectionautorefname}{Kap.\negthinspace}
|
\renewcommand{\subsubsectionautorefname}{Kap.\negthinspace}
|
||||||
\renewcommand{\figureautorefname}{Abb.\negthinspace}
|
\renewcommand{\figureautorefname}{Abb.\negthinspace}
|
||||||
\renewcommand{\tableautorefname}{Tab.\negthinspace}
|
\renewcommand{\tableautorefname}{Tab.\negthinspace}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
% für den Fall, dass jemand die Bezeichnung "Gleichung" haben will
|
% für den Fall, dass jemand die Bezeichnung "Gleichung" haben will
|
||||||
%\renewcommand{\eqref}[1]{Gleichung~(\negthinspace\autoref{#1})}
|
%\renewcommand{\eqref}[1]{Gleichung~(\negthinspace\autoref{#1})}
|
||||||
|
@ -6,18 +6,14 @@
|
|||||||
\begin_preamble
|
\begin_preamble
|
||||||
% increase link area for cross-references and autoname them
|
% increase link area for cross-references and autoname them
|
||||||
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
|
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
|
||||||
\newlength{\abc}
|
\addto\extrasenglish{%
|
||||||
\settowidth{\abc}{\space}
|
\renewcommand*{\equationautorefname}[1]{}
|
||||||
\AtBeginDocument{%
|
|
||||||
\addto\extrasenglish{
|
|
||||||
\renewcommand{\equationautorefname}{\hspace{-\abc}}
|
|
||||||
\renewcommand{\sectionautorefname}{sec.\negthinspace}
|
\renewcommand{\sectionautorefname}{sec.\negthinspace}
|
||||||
\renewcommand{\subsectionautorefname}{sec.\negthinspace}
|
\renewcommand{\subsectionautorefname}{sec.\negthinspace}
|
||||||
\renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
|
\renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
|
||||||
\renewcommand{\figureautorefname}{Fig.\negthinspace}
|
\renewcommand{\figureautorefname}{Fig.\negthinspace}
|
||||||
\renewcommand{\tableautorefname}{Tab.\negthinspace}
|
\renewcommand{\tableautorefname}{Tab.\negthinspace}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
% in case somebody want to have the label "Gleichung"
|
% in case somebody want to have the label "Gleichung"
|
||||||
%\renewcommand{\eqref}[1]{Gleichung~(\negthinspace\autoref{#1})}
|
%\renewcommand{\eqref}[1]{Gleichung~(\negthinspace\autoref{#1})}
|
||||||
@ -286,11 +282,18 @@ Overview
|
|||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
|
bla bla bla bla bla bla bla bla bla bla bla, see
|
||||||
|
\begin_inset CommandInset ref
|
||||||
|
LatexCommand ref
|
||||||
|
reference "sec:The-next-section"
|
||||||
|
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
.
|
||||||
|
Bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
|
||||||
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
|
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
|
||||||
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
|
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
|
||||||
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
|
bla bla bla bla bla bla bla bla bla bla bla DLC-coatings
|
||||||
bla bla bla bla DLC-coatings
|
|
||||||
\begin_inset CommandInset nomenclature
|
\begin_inset CommandInset nomenclature
|
||||||
LatexCommand nomenclature
|
LatexCommand nomenclature
|
||||||
symbol "DLC"
|
symbol "DLC"
|
||||||
@ -308,10 +311,33 @@ key "Fowl1928"
|
|||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
.
|
.
|
||||||
|
|
||||||
|
\begin_inset CommandInset ref
|
||||||
|
LatexCommand eqref
|
||||||
|
reference "eq:Integral-sine"
|
||||||
|
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
is the definition of the integral sine function.
|
||||||
|
\begin_inset Formula
|
||||||
|
\begin{equation}
|
||||||
|
\int\frac{\sin(x)}{x}\,\mathrm{d}x=\mathrm{Si}(x)\label{eq:Integral-sine}
|
||||||
|
\end{equation}
|
||||||
|
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Section
|
\begin_layout Section
|
||||||
The next section
|
The next section
|
||||||
|
\begin_inset CommandInset label
|
||||||
|
LatexCommand label
|
||||||
|
name "sec:The-next-section"
|
||||||
|
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
|
@ -6,18 +6,14 @@
|
|||||||
\begin_preamble
|
\begin_preamble
|
||||||
% increase link area for cross-references and autoname them
|
% increase link area for cross-references and autoname them
|
||||||
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
|
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
|
||||||
\newlength{\abc}
|
\addto\extrasenglish{%
|
||||||
\settowidth{\abc}{\space}
|
\renewcommand*{\equationautorefname}[1]{}
|
||||||
\AtBeginDocument{%
|
|
||||||
\addto\extrasenglish{
|
|
||||||
\renewcommand{\equationautorefname}{\hspace{-\abc}}
|
|
||||||
\renewcommand{\sectionautorefname}{sec.\negthinspace}
|
\renewcommand{\sectionautorefname}{sec.\negthinspace}
|
||||||
\renewcommand{\subsectionautorefname}{sec.\negthinspace}
|
\renewcommand{\subsectionautorefname}{sec.\negthinspace}
|
||||||
\renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
|
\renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
|
||||||
\renewcommand{\figureautorefname}{Fig.\negthinspace}
|
\renewcommand{\figureautorefname}{Fig.\negthinspace}
|
||||||
\renewcommand{\tableautorefname}{Tab.\negthinspace}
|
\renewcommand{\tableautorefname}{Tab.\negthinspace}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
% in case somebody want to have the label "Gleichung"
|
% in case somebody want to have the label "Gleichung"
|
||||||
%\renewcommand{\eqref}[1]{Gleichung~(\negthinspace\autoref{#1})}
|
%\renewcommand{\eqref}[1]{Gleichung~(\negthinspace\autoref{#1})}
|
||||||
|
@ -6,18 +6,14 @@
|
|||||||
\begin_preamble
|
\begin_preamble
|
||||||
% increase link area for cross-references and autoname them
|
% increase link area for cross-references and autoname them
|
||||||
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
|
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
|
||||||
\newlength{\abc}
|
\addto\extrasenglish{%
|
||||||
\settowidth{\abc}{\space}
|
\renewcommand*{\equationautorefname}[1]{}
|
||||||
\AtBeginDocument{%
|
|
||||||
\addto\extrasenglish{
|
|
||||||
\renewcommand{\equationautorefname}{\hspace{-\abc}}
|
|
||||||
\renewcommand{\sectionautorefname}{sec.\negthinspace}
|
\renewcommand{\sectionautorefname}{sec.\negthinspace}
|
||||||
\renewcommand{\subsectionautorefname}{sec.\negthinspace}
|
\renewcommand{\subsectionautorefname}{sec.\negthinspace}
|
||||||
\renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
|
\renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
|
||||||
\renewcommand{\figureautorefname}{Fig.\negthinspace}
|
\renewcommand{\figureautorefname}{Fig.\negthinspace}
|
||||||
\renewcommand{\tableautorefname}{Tab.\negthinspace}
|
\renewcommand{\tableautorefname}{Tab.\negthinspace}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
% in case somebody want to have the label "equation"
|
% in case somebody want to have the label "equation"
|
||||||
%\renewcommand{\eqref}[1]{equation~(\negthinspace\autoref{#1})}
|
%\renewcommand{\eqref}[1]{equation~(\negthinspace\autoref{#1})}
|
||||||
|
@ -234,8 +234,11 @@ What's new
|
|||||||
|
|
||||||
- Fixed description in the example file multicol.lyx (bug 7953).
|
- Fixed description in the example file multicol.lyx (bug 7953).
|
||||||
|
|
||||||
- Fixed description of Automatic Reference Naming in the Embedded Objects
|
- Fixed description of automatic reference naming in sec. 3.4.2 of the
|
||||||
manual.
|
Embedded Objects manual.
|
||||||
|
|
||||||
|
- Fixed preamble code for automatic reference naming in the thesis template
|
||||||
|
files.
|
||||||
|
|
||||||
- Fixed example file modernCV.lyx: corrected subsection example, added a
|
- Fixed example file modernCV.lyx: corrected subsection example, added a
|
||||||
separator, set the page size to A4 (bug 7991).
|
separator, set the page size to A4 (bug 7991).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user