mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Add some documentation to the rather esoteric style files
This commit is contained in:
parent
c88259453c
commit
bd1b5d580b
@ -19,27 +19,36 @@ CiteEngine default
|
|||||||
End
|
End
|
||||||
|
|
||||||
CiteFormat default
|
CiteFormat default
|
||||||
# translatable bits
|
# Translatable bits
|
||||||
_notcited not cited
|
_notcited not cited
|
||||||
_addtobib Add to bibliography only.
|
_addtobib Add to bibliography only.
|
||||||
|
|
||||||
# macros
|
# Macros
|
||||||
!open [
|
!open [
|
||||||
!sep ,
|
!sep ,
|
||||||
!close ]
|
!close ]
|
||||||
|
|
||||||
|
# A link that lets us jump to the bibliography entry in LyXHTML
|
||||||
|
# %clean:key% will be substituted by the cite key to give a unique id
|
||||||
!startlink {!<a href='#LyXCite-%clean:key%'>!}
|
!startlink {!<a href='#LyXCite-%clean:key%'>!}
|
||||||
!endlink {!</a>!}
|
!endlink {!</a>!}
|
||||||
|
|
||||||
!cite %!startlink%{%label%[[%label%]][[{%numericallabel%[[%numericallabel%]][[#%key%]]}]]}%!endlink%%!nextcite%
|
# Start citation: ID...
|
||||||
|
!makecite %!startlink%{%label%[[%label%]][[{%numericallabel%[[%numericallabel%]][[#%key%]]}]]}%!endlink%%!nextcite%
|
||||||
|
|
||||||
!nextcite {%next%[[%!sep% %!cite%]]}
|
# Follow-up citations: ..., NextID...
|
||||||
|
!nextcite {%next%[[%!sep% %!makecite%]]}
|
||||||
|
# FIXME: what is this?
|
||||||
!nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]}
|
!nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]}
|
||||||
|
# Simply the cite key(s): Key, NextKey, ...
|
||||||
!nextkey {%next%[[%!sep% %key%%!nextkey%]]}
|
!nextkey {%next%[[%!sep% %key%%!nextkey%]]}
|
||||||
|
|
||||||
|
# Postnote: ", p. xx"
|
||||||
!textafter {%textafter%[[, %textafter%]]}
|
!textafter {%textafter%[[, %textafter%]]}
|
||||||
|
|
||||||
# cite styles
|
## The actual cite styles ##
|
||||||
cite %!open%{%dialog%[[#ID]][[%!cite%]]}%!textafter%%!close%
|
# \cite: [ID, NextID, ..., p. xx]
|
||||||
|
cite %!open%{%dialog%[[#ID]][[%!makecite%]]}%!textafter%%!close%
|
||||||
|
# \nocite: "Add to bibliography only." (dialog) / "Key, Nextkey (not cited)" (inset)
|
||||||
nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]}
|
nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]}
|
||||||
End
|
End
|
||||||
|
@ -40,68 +40,112 @@ CiteEngine numerical
|
|||||||
End
|
End
|
||||||
|
|
||||||
CiteFormat default
|
CiteFormat default
|
||||||
# translatable bits
|
# Translatable bits
|
||||||
_notcited not cited
|
_notcited not cited
|
||||||
_addtobib Add to bibliography only.
|
_addtobib Add to bibliography only.
|
||||||
|
|
||||||
# macros
|
# A link that lets us jump to the bibliography entry in LyXHTML
|
||||||
|
# %clean:key% will be substituted by the cite key to give a unique id
|
||||||
!startlink {!<a href='#LyXCite-%clean:key%'>!}
|
!startlink {!<a href='#LyXCite-%clean:key%'>!}
|
||||||
!endlink {!</a>!}
|
!endlink {!</a>!}
|
||||||
|
|
||||||
!nextauthor {%next%[[%!sep% %!startlink%%!abbrvauthor%%!endlink%%!nextauthor%]]}
|
# Abbreviated author (with et al.) or "??" if there is no author
|
||||||
!nextkey {%next%[[%!sep% %key%%!nextkey%]]}
|
|
||||||
!nextyear {%next%[[%!sep% %!startlink%%!year%%!endlink%%!nextyear%]]}
|
|
||||||
|
|
||||||
!abbrvauthor {%abbrvauthor%[[%abbrvauthor%]][[??]]}
|
!abbrvauthor {%abbrvauthor%[[%abbrvauthor%]][[??]]}
|
||||||
|
# Prenote: "cf. "
|
||||||
!textbefore {%textbefore%[[%textbefore% ]]}
|
!textbefore {%textbefore%[[%textbefore% ]]}
|
||||||
|
# Postnote: ", p. xx"
|
||||||
!textafter {%textafter%[[, %textafter%]]}
|
!textafter {%textafter%[[, %textafter%]]}
|
||||||
|
# Add a year if it exists (else "??") and possibly a modifier (as in 2017a)
|
||||||
!year {%year%[[%year%]][[??]]}{%modifier%[[%modifier%]]}
|
!year {%year%[[%year%]][[??]]}{%modifier%[[%modifier%]]}
|
||||||
|
|
||||||
# cite styles
|
# ...; Author...
|
||||||
citet %!citet%%!textafter%%!close%
|
!nextauthor {%next%[[%!sep% %!startlink%%!abbrvauthor%%!endlink%%!nextauthor%]]}
|
||||||
citealt %!citealt%%!textafter%
|
# ..., CiteKey...
|
||||||
|
!nextkey {%next%[[%!sep% %key%%!nextkey%]]}
|
||||||
|
# ..., Year...
|
||||||
|
!nextyear {%next%[[%!sep% %!startlink%%!year%%!endlink%%!nextyear%]]}
|
||||||
|
|
||||||
|
## The actual cite styles (identical in authoryear and numerical except for the separator) ##
|
||||||
|
# (cf. Year; NextYear, p. xx) [Authoryear] / (cf. Year, NextYear, p. xx) [Numerical]
|
||||||
citeyearpar %!open%%!textbefore%%!startlink%%!year%%!endlink%%!nextyear%%!textafter%%!close%
|
citeyearpar %!open%%!textbefore%%!startlink%%!year%%!endlink%%!nextyear%%!textafter%%!close%
|
||||||
|
# Add to bibliography only. / [ID] (not cited)
|
||||||
nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]}
|
nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]}
|
||||||
End
|
End
|
||||||
|
|
||||||
CiteFormat authoryear
|
CiteFormat authoryear
|
||||||
|
# Macros
|
||||||
!open (
|
!open (
|
||||||
!sep ;
|
!sep ;
|
||||||
!close )
|
!close )
|
||||||
|
|
||||||
!citet %!startlink%%!abbrvauthor%%!endlink% %!open%%!textbefore%%!year%%!nextcitet%
|
# Author et al. (cf. Year...
|
||||||
!citealt %!startlink%%!abbrvauthor% %!textbefore%%!year%%!endlink%%!nextcitealt%
|
!makecitet %!startlink%%!abbrvauthor%%!endlink% %!open%%!textbefore%%!year%%!nextcitet%
|
||||||
!citealp %!startlink%%!abbrvauthor%, %!year%%!endlink%%!nextcitealp%
|
# Author et al. cf. Year... [sic!]
|
||||||
|
!makecitealt %!startlink%%!abbrvauthor% %!textbefore%%!year%%!endlink%%!nextcitealt%
|
||||||
|
# Author et al., Year...
|
||||||
|
!makecitealp %!startlink%%!abbrvauthor%, %!year%%!endlink%%!nextcitealp%
|
||||||
|
|
||||||
!nextcitet {%next%[[%!close%%!sep% %!citet%]]}
|
# ...); Nextauthor (Year...
|
||||||
!nextcitealt {%next%[[%!sep% %!citealt%]]}
|
!nextcitet {%next%[[%!close%%!sep% %!startlink%%!abbrvauthor%%!endlink% %!open%%!year%%!nextcitet%]]}
|
||||||
!nextcitealp {%next%[[%!sep% %!citealp%]]}
|
# ...; NextAuthor et al. Year...
|
||||||
|
!nextcitealt {%next%[[%!sep% %!makecitealt%]]}
|
||||||
|
# ...; NextAuthor et al., Year...
|
||||||
|
!nextcitealp {%next%[[%!sep% %!makecitealp%]]}
|
||||||
|
|
||||||
cite %!citet%%!textafter%%!close%
|
## The actual cite styles (additions and modifications to default) ##
|
||||||
citep %!open%%!textbefore%%!citealp%%!textafter%%!close%
|
# Author (cf. Year); NextAuthor (Year, p. xx)
|
||||||
citealp %!textbefore%%!citealp%%!textafter%
|
citet %!makecitet%%!textafter%%!close%
|
||||||
|
# (cf. Author et al., Year; NextAuthor et al., Year, p. xx)
|
||||||
|
citep %!open%%!textbefore%%!makecitealp%%!textafter%%!close%
|
||||||
|
# cf. Author et al., Year; NextAuthor et al., Year, p. xx
|
||||||
|
citealp %!textbefore%%!makecitealp%%!textafter%
|
||||||
|
# Author cf. Year; NextAuthor Year, p. xx [sic!]
|
||||||
|
citealt %!makecitealt%%!textafter%
|
||||||
|
# Author; NextAuthor, p. xx
|
||||||
citeauthor %!startlink%%!abbrvauthor%%!endlink%%!nextauthor%%!textafter%
|
citeauthor %!startlink%%!abbrvauthor%%!endlink%%!nextauthor%%!textafter%
|
||||||
|
# Year; NextYear, p. xx
|
||||||
citeyear %!startlink%%!year%%!endlink%%!nextyear%%!textafter%
|
citeyear %!startlink%%!year%%!endlink%%!nextyear%%!textafter%
|
||||||
|
|
||||||
|
# Fallback style: Author (cf. Year); NextAuthor (Year, p. xx)
|
||||||
|
cite %!makecitet%%!textafter%%!close%
|
||||||
End
|
End
|
||||||
|
|
||||||
CiteFormat numerical
|
CiteFormat numerical
|
||||||
|
# Macros
|
||||||
!open [
|
!open [
|
||||||
!sep ,
|
!sep ,
|
||||||
!close ]
|
!close ]
|
||||||
|
|
||||||
!citet %!abbrvauthor% %!open%%!textbefore%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitet%
|
# Author [cf. ID...
|
||||||
!citealt %!abbrvauthor% %!textbefore%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitealt%
|
!makecitet %!abbrvauthor% %!open%%!textbefore%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitet%
|
||||||
|
# Author cf. ID...
|
||||||
|
!makecitealt %!abbrvauthor% %!textbefore%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitealt%
|
||||||
|
# ID...
|
||||||
!hashkey {%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%%!nexthashkey%]]}
|
!hashkey {%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%%!nexthashkey%]]}
|
||||||
|
|
||||||
!nextcitet {%next%[[%!close%%!sep% %!citet%]]}
|
# ...], NextAuthor [ID...
|
||||||
!nextcitealt {%next%[[%!sep% %!citealt%]]}
|
!nextcitet {%next%[[%!close%%!sep% %!abbrvauthor% %!open%%!textbefore%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitet%]]}
|
||||||
|
# ..., NextAuthor ID...
|
||||||
|
!nextcitealt {%next%[[%!sep% %!abbrvauthor% {%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitealt%]]}
|
||||||
|
# FIXME: What is this?
|
||||||
!nexthashid {%next%[[%!sep% #ID%!nexthashid%]]}
|
!nexthashid {%next%[[%!sep% #ID%!nexthashid%]]}
|
||||||
|
# ..., NextID...
|
||||||
!nexthashkey {%next%[[%!sep% %!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%%!nexthashkey%]]}
|
!nexthashkey {%next%[[%!sep% %!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%%!nexthashkey%]]}
|
||||||
|
|
||||||
cite %!open%%!textbefore%%!hashkey%%!textafter%%!close%
|
## The actual cite styles (additions and modifications to default) ##
|
||||||
|
# [cf. ID, NextID, p. xx]
|
||||||
citep %!open%%!textbefore%%!hashkey%%!textafter%%!close%
|
citep %!open%%!textbefore%%!hashkey%%!textafter%%!close%
|
||||||
|
# Author [cf. ID], Nextauthor [NextID, p. xx]
|
||||||
|
citet %!makecitet%%!textafter%%!close%
|
||||||
|
# cf. ID, NextID, p. xx
|
||||||
citealp %!textbefore%%!hashkey%%!textafter%
|
citealp %!textbefore%%!hashkey%%!textafter%
|
||||||
|
# Author cf. ID, NextAuthor ID, p. xx
|
||||||
|
citealt %!makecitealt%%!textafter%
|
||||||
|
# Author, NextAuthor
|
||||||
citeauthor %!startlink%%!abbrvauthor%%!endlink%%!nextauthor%
|
citeauthor %!startlink%%!abbrvauthor%%!endlink%%!nextauthor%
|
||||||
|
# Year, NextYear
|
||||||
citeyear %!startlink%%!year%%!endlink%%!nextyear%
|
citeyear %!startlink%%!year%%!endlink%%!nextyear%
|
||||||
|
|
||||||
|
# Fallback style: [cf. ID, NextID, p. xx]
|
||||||
|
cite %!open%%!textbefore%%!hashkey%%!textafter%%!close%
|
||||||
End
|
End
|
||||||
|
Loading…
Reference in New Issue
Block a user