This file is indexed.

/usr/share/lyx/layouts/natbib.module is in lyx-common 2.2.2-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
# \DeclareLyXModule[natbib.sty]{Natbib}
# DescriptionBegin
#   Loads the LaTeX package natbib, a citation engine. Natbib supports
#   both author-year and numerical styles for citations, automatic sorting
#   and merging of numerical citations, annotations, capitalization of the
#   `van' part of author names, shortened and full author lists, and more.
# DescriptionEnd
# Excludes: basic | jurabib
# Category: Citation engine

# Author: Julien Rioux <jrioux@lyx.org>

Format 60

Requires natbib

CiteEngineType authoryear|numerical
DefaultBiblio  plainnat

CiteEngine authoryear
	Citet*[][]
	Citep*[][]
	Citealt*[][]
	Citealp*[][]
	Citeauthor*[]
	citeyear[]
	citeyearpar[][]
	nocite
End

CiteEngine numerical
	Citep*[][]
	Citealp*[][]
	Citet*[][]
	Citealt*[][]
	Citeauthor*
	citeyearpar[][]
	citeyear
	nocite
End

CiteFormat default
	# translatable bits
	_notcited not cited
	_addtobib Add to bibliography only.

	# macros
	!startlink {!<a href='#LyXCite-%clean:key%'>!}
	!endlink {!</a>!}

	!nextauthor {%next%[[%!sep% %!startlink%%!abbrvauthor%%!endlink%%!nextauthor%]]}
	!nextkey {%next%[[%!sep% %key%%!nextkey%]]}
	!nextyear {%next%[[%!sep% %!startlink%%!year%%!endlink%%!nextyear%]]}

	!abbrvauthor {%abbrvauthor%[[%abbrvauthor%]][[??]]}
	!textbefore {%textbefore%[[%textbefore% ]]}
	!textafter {%textafter%[[, %textafter%]]}
	!year {%year%[[%year%]][[??]]}{%modifier%[[%modifier%]]}

	# cite styles
	citet %!citet%%!textafter%%!close%
	citealt %!citealt%%!textafter%
	citeyearpar %!open%%!textbefore%%!startlink%%!year%%!endlink%%!nextyear%%!textafter%%!close%
	nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]}
End

CiteFormat authoryear
	!open (
	!sep ;
	!close )

	!citet %!startlink%%!abbrvauthor%%!endlink% %!open%%!textbefore%%!year%%!nextcitet%
	!citealt %!startlink%%!abbrvauthor% %!textbefore%%!year%%!endlink%%!nextcitealt%
	!citealp %!startlink%%!abbrvauthor%, %!year%%!endlink%%!nextcitealp%

	!nextcitet {%next%[[%!close%%!sep% %!citet%]]}
	!nextcitealt {%next%[[%!sep% %!citealt%]]}
	!nextcitealp {%next%[[%!sep% %!citealp%]]}

	cite %!citet%%!textafter%%!close%
	citep %!open%%!textbefore%%!citealp%%!textafter%%!close%
	citealp %!textbefore%%!citealp%%!textafter%
	citeauthor %!startlink%%!abbrvauthor%%!endlink%%!nextauthor%%!textafter%
	citeyear %!startlink%%!year%%!endlink%%!nextyear%%!textafter%
End

CiteFormat numerical
	!open [
	!sep ,
	!close ]

	!citet %!abbrvauthor% %!open%%!textbefore%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitet%
	!citealt %!abbrvauthor% %!textbefore%{%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%]]}%!nextcitealt%

	!hashkey {%dialog%[[#ID]][[%!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%%!nexthashkey%]]}

	!nextcitet {%next%[[%!close%%!sep% %!citet%]]}
	!nextcitealt {%next%[[%!sep% %!citealt%]]}
	!nexthashid {%next%[[%!sep% #ID%!nexthashid%]]}
	!nexthashkey {%next%[[%!sep% %!startlink%{%numericallabel%[[%numericallabel%]][[#%key%]]}%!endlink%%!nexthashkey%]]}

	cite %!open%%!textbefore%%!hashkey%%!textafter%%!close%
	citep %!open%%!textbefore%%!hashkey%%!textafter%%!close%
	citealp %!textbefore%%!hashkey%%!textafter%
	citeauthor %!startlink%%!abbrvauthor%%!endlink%%!nextauthor%
	citeyear %!startlink%%!year%%!endlink%%!nextyear%
End