Add some notes to User Guide about defining your own reference

formats.
This commit is contained in:
Richard Heck 2017-01-19 11:34:36 -05:00
parent d712c67be9
commit 400d13b960

View File

@ -27526,7 +27526,11 @@ fig
) can be done ) can be done
\change_inserted 424524441 1483414614 \change_inserted 424524441 1483414614
, for refstyle, , for
\series bold
refstyle
\series default
,
\change_unchanged \change_unchanged
with this command with this command
\change_inserted 424524441 1483414616 \change_inserted 424524441 1483414616
@ -27543,13 +27547,60 @@ fig
newref{fig}{refcmd={Image on page newref{fig}{refcmd={Image on page
\backslash \backslash
pageref{#1}}} pageref{#1}}}
\change_inserted 424524441 1484843594
\series default \series default
\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 \SpecialChar LyX
itself) predefines 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 could do so as follows:
\begin_inset Newline newline
\end_inset
\series bold
\backslash
newrefformat{prop}{Proposition
\backslash
ref{#1}}
\change_unchanged
\series default
\begin_inset Newline newline
\end_inset
For more information about
\change_inserted 424524441 1484843645
defining formatted references
\change_deleted 424524441 1484843647
the format
\change_unchanged
, have a look at the package documentation
\change_deleted 424524441 1484843659
s,
\change_unchanged
\begin_inset CommandInset citation \begin_inset CommandInset citation
LatexCommand cite LatexCommand cite
key "prettyref,refstyle" key "prettyref,refstyle"
@ -27557,7 +27608,7 @@ key "prettyref,refstyle"
\end_inset \end_inset
. .
\change_inserted 424524441 1483414624 \change_inserted 424524441 1484843594
\begin_inset Newline newline \begin_inset Newline newline
\end_inset \end_inset