summaryrefslogtreecommitdiff
path: root/tex/context/base/publ-dat.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2014-10-30 19:15:03 +0100
committerContext Git Mirror Bot <phg42.2a@gmail.com>2014-10-30 19:15:03 +0100
commit78b6848bf85a62cd46390ddecb93a10b2d6a40d3 (patch)
tree8de6981197ec9350d66bcf2032abb7efc055101b /tex/context/base/publ-dat.lua
parent46ad5337af14360d52018b342c1c3fdee7dc7cf6 (diff)
downloadcontext-78b6848bf85a62cd46390ddecb93a10b2d6a40d3.tar.gz
2014-10-30 19:02:00
Diffstat (limited to 'tex/context/base/publ-dat.lua')
-rw-r--r--tex/context/base/publ-dat.lua28
1 files changed, 26 insertions, 2 deletions
diff --git a/tex/context/base/publ-dat.lua b/tex/context/base/publ-dat.lua
index 0d1e10e66..90346111a 100644
--- a/tex/context/base/publ-dat.lua
+++ b/tex/context/base/publ-dat.lua
@@ -57,6 +57,9 @@ publications.datasets = datasets
local writers = publications.writers or { }
publications.writers = writers
+local tables = publications.tables or { }
+publications.tables = tables
+
publications.statistics = publications.statistics or { }
local publicationsstats = publications.statistics
@@ -65,6 +68,23 @@ publicationsstats.nofdefinitions = 0
publicationsstats.nofshortcuts = 0
publicationsstats.nofdatasets = 0
+local privates = {
+ category = true,
+ tag = true,
+ index = true,
+}
+
+local specials = {
+ key = true,
+ crossref = true,
+ keywords = true,
+ language = true,
+ comment = true,
+}
+
+tables.privates = privates
+tables.specials = specials
+
if not publications.usedentries then
function publications.usedentries()
return { }
@@ -826,7 +846,7 @@ local savers = { }
local s_preamble = [[
% this is an export from context mkiv
-@preamble {
+@preamble{
\ifdefined\btxcmd
% we're probably in context
\else
@@ -849,7 +869,11 @@ function savers.bib(dataset,filename,usedonly)
if not usedonly or usedonly[tag] then
r = r + 1 ; result[r] = f_start(data.category or "article",tag)
for key, value in sortedhash(data) do
- r = r + 1 ; result[r] = f_field(key,value)
+ if privates[key] then
+ -- skip
+ else
+ r = r + 1 ; result[r] = f_field(key,value)
+ end
end
r = r + 1 ; result[r] = s_stop
n = n + 1