Changes

Jump to navigation Jump to search
 
 
=12 Ex­ten­sions=
As TEX and Lua are both open and ac­ces­si­ble in ConTEXt it is pos­si­ble to ex­tend the func­tion­al­ity of the bib­li­og­ra­phy re­lated code. For in­stance, you can add ex­tra load­ers.
<pre detail='typing'>
function publications.loaders.myformat(dataset,filename)
local t = { }
end
</pre>
<br/>
This then per­mits load­ing a data­base (into a dataset) with the com­mand:
<pre detail='typing'>
\usebtxdataset[standard][myfile.myformat]
</pre>
<br/>
The <tt>myformat</tt> suf­fix is rec­og­nized au­to­mat­i­cally. If you want to use an­other suf­fix, you can do this:
<pre detail='typing'>
\usebtxdataset[standard][myformat::myfile.txt]
</pre>

Navigation menu