mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 13:20:58 +00:00
Add some remarks about defining formatted references.
This commit is contained in:
parent
dc7a5ecea1
commit
6693fe5d6d
@ -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"
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user