Add some remarks about defining formatted references.

This commit is contained in:
Richard Heck 2017-01-19 15:23:35 -05:00
parent dc7a5ecea1
commit 6693fe5d6d
2 changed files with 44 additions and 4 deletions

View File

@ -26479,8 +26479,12 @@ newref
\series default \series default
(refstyle) in the \SpecialChar LaTeX (refstyle) in the \SpecialChar LaTeX
preamble of the document. preamble of the document.
For example redefining all references to figures (which have the label For example, if you are using
shortcut \series bold
refstyle
\series default
, then redefining all references to figures (which have the label shortcut
\begin_inset Quotes eld \begin_inset Quotes eld
\end_inset \end_inset
@ -26508,8 +26512,41 @@ pageref{#1}}}
\begin_inset Newline newline \begin_inset Newline newline
\end_inset \end_inset
For more information about the format, have a look at the package documentations Please note that neither
, \series bold
prettyref
\series default
nor
\series bold
refstyle
\series default
(nor LyX itself) defines reference formats for all available types.
This is especially true for the wide variety of mathematical `theorem'
environments.
So if you want to make formatted references to, say, Propositions, then
you will need to define the relevant format yourself.
For
\series bold
prettyref
\series default
, you might do so as follows:
\begin_inset Newline newline
\end_inset
\series bold
\backslash
newrefformat{prop}{Proposition
\backslash
ref{#1}}
\series default
\begin_inset Newline newline
\end_inset
For more information about the defining formatted references, have a look
at the package documentations,
\begin_inset CommandInset citation \begin_inset CommandInset citation
LatexCommand cite LatexCommand cite
key "prettyref,refstyle" key "prettyref,refstyle"

View File

@ -192,6 +192,9 @@ What's new
- Fix compilation of the Fexynman diagram example file. - Fix compilation of the Fexynman diagram example file.
- Added some comments to User Guide section 6.1 about defining formatted
references (bug 10545).
* LYXHTML * LYXHTML