Welcome to the TeXnik website (under construction) References |
||||||||||||
|
Cross-Reference |
Prettyref |
Cross Reference for multiple documents Suppose that your files are master.lyx, chap1.lyx, chap2.lyx, and you want to insert a label from chap2.lyx to chap1.lyx. There are three methods:
PrettyRef prettyref needs a label definition like \label{tab:MyTable} than "the \prettyref{tab:Mytable} looks ..." gives in dvi-output "the Table in lyx you have to create the labels in prettyref-style, e.g. tab:figure1
possible types of labels for prettyref \newrefformat{eq}{\textup{(\ref{#1})}} \newrefformat{lem}{Lemma \ref{#1}} \newrefformat{thm}{Theorem \ref{#1}} \newrefformat{cha}{Chapter \ref{#1}} \newrefformat{sec}{Section \ref{#1}} \newrefformat{tab}{Table \ref{#1} on page \pageref{#1}} \newrefformat{fig}{Figure \ref{#1} on page \pageref{#1}}with LaTeX-Preamble other definitions are possible! Attention: The language for the prettyref-package is always english. To change the labels to german, write in LaTeX Preamble (behind(!) \usepackage{prettyref}):
\newrefformat{cha}{Kapitel \ref{#1}} \newrefformat{sec}{Abschnitt \ref{#1}} \newrefformat{tab}{Tabelle \ref{#1} on page \pageref{#1}} \newrefformat{fig}{Abbildung \ref{#1} on page \pageref{#1}} |