Changes

Jump to navigation Jump to search
no edit summary
<pre style="color:rgb(102,0,102);font-size:100%">\definebtxdataset[example]
</pre> <pre style="color:rgb(102,0,102);font-size:100%">\usebtxdataset[example][mkiv-publications.bib]
</pre>
<p></p>
\setupbtxcitevariant[authoryear] [sorttype=author,color=darkyellow]
\setupbtxcitevariant[authoryears][sorttype=author,color=darkyellow]
</pre> <pre style="color:rgb(102,0,102);font-size:100%">\cite[author][example::demo-004,demo-003]
\cite[authoryear][example::demo-004,demo-003]
\cite[authoryears][example::demo-004,demo-003]
<pre style="color:rgb(102,0,102);font-size:100%">local dataset = publications.datasets.example
</pre> <pre style="color:rgb(102,0,102);font-size:100%">context.starttabulate { "|l|l|l|" }
for tag, entry in table.sortedhash(dataset.luadata) do
local detail = dataset.details[tag] or { }
\xmlmain{#1}
\stopxmlsetups
</pre> <pre style="color:rgb(102,0,102);font-size:100%">\startxmlsetups btx:field
\xmlflushcontext{#1}
\stopxmlsetups
</pre> <pre style="color:rgb(102,0,102);font-size:100%">\xmlsetup{btx:tugboat}{btx:initialize}
</pre>
<p></p>
{/bibtex/entry[string.find(@tag,'Hagen')][1]}{btx:table}
\stopxmlsetups
</pre> <pre style="color:rgb(102,0,102);font-size:100%">\startxmlsetups btx:table
\starttabulate[|||]
\NC \type {tag} \NC \xmlatt{#1}{tag} \NC \NR
\stoptabulate
\stopxmlsetups
</pre> <pre style="color:rgb(102,0,102);font-size:100%">\xmlsetup{btx:tugboat}{btx:demo}
</pre>
\NC \NR
\stopxmlsetups
</pre> <pre style="color:rgb(102,0,102);font-size:100%">\startxmlsetups btx:demo
\xmlfilter {#1} {
/bibtex
}
\stopxmlsetups
</pre> <pre style="color:rgb(102,0,102);font-size:100%">\starttabulate[|||]
\xmlsetup{btx:tugboat}{btx:demo}
\stoptabulate
\xmladdsortentry{btx}{#1}{\xmlatt{#1}{tag}}
\stopxmlsetups
</pre> <pre style="color:rgb(102,0,102);font-size:100%">\startxmlsetups btx:sorter
\xmlresetsorter{btx}
% \xmlfilter{#1}{entry/command(btx:getkeys)}
\stoptabulate
\stopxmlsetups
</pre> <pre style="color:rgb(102,0,102);font-size:100%">\startxmlsetups btx:entry:flush
\NC \xmlfilter{#1}{/field[@name='year' ]/context()}
\NC \xmlatt{#1}{tag}
\NC \NR
\stopxmlsetups
</pre> <pre style="color:rgb(102,0,102);font-size:100%">\xmlsetup{btx:tugboat}{btx:sorter}
</pre>

Navigation menu