mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-29 15:26:05 +00:00
4df02801a6
output, due to failure to clean the ids in the new citation stuff. I've solved this by allowing the citation format information to contain keys of the form "clean:key". This signals that we are to apply the html::cleanAttr() function to the key before returning it. I.e., we strip non-alphanumeric stuff, basically.
45 lines
942 B
Plaintext
45 lines
942 B
Plaintext
# \DeclareLyXModule{Default (basic)}
|
|
# DescriptionBegin
|
|
# Use the basic citation capabilities provided by plain LaTeX.
|
|
# DescriptionEnd
|
|
# Excludes: jurabib | natbib
|
|
# Category: Citation engine
|
|
|
|
# Author: Julien Rioux <jrioux@lyx.org>
|
|
|
|
Format 45
|
|
|
|
CiteEngineType numerical
|
|
DefaultBiblio plain
|
|
|
|
CiteEngine default
|
|
cite[]
|
|
nocite
|
|
End
|
|
|
|
CiteFormat default
|
|
# translatable bits
|
|
_notcited not cited
|
|
_addtobib Add to bibliography only.
|
|
|
|
# macros
|
|
!open [
|
|
!sep ,
|
|
!close ]
|
|
|
|
!startlink {!<a href='#LyXCite-%clean:key%'>!}
|
|
!endlink {!</a>!}
|
|
|
|
!cite %!startlink%{%label%[[%label%]][[#%key%]]}%!endlink%%!nextcite%
|
|
|
|
!nextcite {%next%[[%!sep% %!cite%]]}
|
|
!nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]}
|
|
!nextkey {%next%[[%!sep% %key%%!nextkey%]]}
|
|
|
|
!textafter {%textafter%[[, %textafter%]]}
|
|
|
|
# cite styles
|
|
cite %!open%{%dialog%[[#ID]][[%!cite%]]}%!textafter%%!close%
|
|
nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]}
|
|
End
|