Changes

Jump to navigation Jump to search
1,817 bytes added ,  22:47, 3 November 2012
no edit summary
(Version 0Sometimes the bibliography needs to be more flexible in the bibliographic item description. Often the aviable data does not fit into the Bibtex schema; or text needs to be written inside the bibliography list. For this case exists the module simplebib.01)
Sometimes the bibliography needs to be more flexible. For this case here is a simple module (still in development) to help. It is also a good starting-point for your own adaption.==Items==
Still open points:* interface should The bibliography can be multilingual* n*broad / itemspace is not working* \item[listed in one block or distributed over several block in the document (e.g..] should be rightaligned* \textreference[...]{\tmpabkuerzung} is not working (value-copy problemat the end of every chapter):
<pretexcode> \startmodule[quellenverzeichnis] \unprotect...
%\setupmodule[itemspace=12]startbibliography...\stopbibiography
\defineitemgroup[quellenverzeichnis] \setupitemgroup[quellenverzeichnis][levels=1,left={[},right={]},stopper=] \setupitemgroup[quellenverzeichnis][1][n,12*broad] %\expanded{\setupitemgroup[bibliography][1][n,\currentmoduleparameter{itemspace}*broad]} ...
\def\referenz[#1]#2{\doifemptyelse{#2}startbibliography {[\in[#1]]}... {[\in[#1], #2]}}stopbibiography
\def\quelle#1[#2] {\getparameters[tmp][schluessel=,abkuerzung=,autor=,jahr=,titel=,serie=,band=,verlag=,ort=,url=,seiten=,#2] %\expandafter\processaction\expandafter[\tmpabkuerzung] % [\s!default =>{\item[\tmpschluessel]}, % \s!unknown =>{\textreference[\tmpschluessel]{\cap{\expandafter[\tmpabkuerzung]}}}] \item[\tmpschluessel] \expandafter\processaction\expandafter[\tmpautor] [\s!unknown =>{\tmpautor}] \expandafter\processaction\expandafter[\tmpjahr] [\s!unknown =>{~(\tmpjahr):}] \expandafter\processaction\expandafter[\tmpautor] [\s!unknown =>{~{\it \tmptitel}}] \expandafter\processaction\expandafter[\tmpserie] [\s!unknown =>{~aus der Reihe {\it \tmpserie}}] \expandafter\processaction\expandafter[\tmpband] [\s!unknown =>{~(Band \tmpband),}] \expandafter\processaction\expandafter[\tmpverlag] [\s!unknown =>{~\tmpverlag}] \expandafter\processaction\expandafter[\tmport] [\s!default =>{,}, \s!unknown =>{~\tmport,}] \expandafter\processaction\expandafter[\tmpurl] [\s!unknown =>{~\tmpurl}] } \protect \stopmodule \endinput...</pretexcode>
And here is an example how to use it:Inside the bibliography environment you can specify bibliographic items via <code>\bibitem</code>.
<pretexcode>\bibitem[reference=,label=,author=,editor=,year=,title=,in=,number=,series=,volume=,magazine=,edition=,revedition=,datedition=,publisher=,place=,isbn=,url=,pages=,access=]</texcode>
\chapter{Quellen}\subject{Textrepräsentation}\startquellenverzeichnisMost attributes should be self explaining. A speciality is the <code>in</code> attribute. Often you have to cite an article that is published in a journal, compendium etc. So you use the "normal" attributes to specify the article and via the <code>in</code> attribute you specify the book with the same attributes inside:
<texcode>\quellebibitem[schluesselreference=cha8bpf,autorlabel={PaulBüPrFr},author={Büchel, Christian; Price, Cathy J und Friston, Karl}, Hugoyear={1998},jahrtitle=2008{A multimodal language region in the ventral visual pathway},titelin={Das Nirgendwo...{title=Nature},volume={394},pages={274-277}}]</texcode>
If the label should be numbered automaticly just remove the <code>label</code> attribute of the <code>\stopquellenverzeichnis\subsubject{Internationalität}\startquellenverzeichnis[continue]bibitem</code> entity.
\quelle[schluessel=rv,abkuerzung=Etd05,autorReferencing={Etemad, Elika J.},jahr=2005,titel={Robuts vertical text layout},serie={Technical Note},band=22,verlag={Unicode Inc.},url={http://www.unicode.org/notes/tn22/}]
For referencing simplebib is using the [[Cross Referencing|crossref]] module. For the lazy ones it provides <code>\stopquellenverzeichnisbibtex</code> what is nothing else than a <code>\crossref</code> with <code>type=external</code> preset.
So in following example both blocks do the same: <texcode>\bibref[ref1]\bibref[detail={p. 38}][ref1] \crossref[type=external][ref1]\crossref[type=external,detail={p. 38}][ref1]</texcode> Here a simple usage example:  <texcode>\usemodule[simplebib] \starttext \bibref[brk]\bibref[detail={p. 275}][bpf] \starttext\startbibliography \bibitem[reference=brk,label={Brk\-01},author={Brinker, Klaus},year={2001},title={Linguistische Textanalyse: Eine Einführung in Grundbegriffe und Methoden},series={Grundlagen der Germanistik},volume={29},revedition={5},publisher={Schmidt Verlag},place={Berlin},isbn={3-503-04995-9}] \bibitem[reference=bpf,label={BüPrFr\-98},author={Büchel, Christian; Price, Cathy J und Friston, Karl},year={1998},title={A multimodal language region in the ventral visual pathway},in={{title=Nature},volume={394},pages={274-277}}] \stopbibliography\stoptext</texcode> ==Settings== To adjust the space for the bibitem labels you can specify the: * <code>labelSpace</code> with a natural number (the default is 12). They are defined as parameters of the module: <texcode>\usemodule[crossref][labelSpace=...]...</texcode> Depending on label definition or label numbering a text left and right of the label can be defined via <code>labelLeft</code> and <code>labelRight</code>. If brackets are needed they can be set with: <texcode>\setupsimplebibtext[labelLeft={[}]\setupsimplebibtext[labelRight={]}]</texcode> The language depending texts can be set via: <texcode>\setupsimplebibtext[en][editor={ed.}]\setupsimplebibtext[en][number={number}]\setupsimplebibtext[en][fromSeries={from series}]\setupsimplebibtext[en][volume={volume}]\setupsimplebibtext[en][magazine={magazine}]\setupsimplebibtext[en][edition={edition}]\setupsimplebibtext[en][revedition={reviewed edition}]\setupsimplebibtext[en][datedition={edition from}]\setupsimplebibtext[en][isbn={ISBN}]\setupsimplebibtext[en][pages={p.}]\setupsimplebibtext[en][access={last access}]\setupsimplebibtext[en][in={in}] \setupsimplebibtext[de][editor={Hrsg.}]\setupsimplebibtext[de][number={Nummer}]\setupsimplebibtext[de][fromSeries={aus der Reihe}]\setupsimplebibtext[de][volume={Band}]\setupsimplebibtext[de][magazine={Heft}]\setupsimplebibtext[de][edition={Auflage}]\setupsimplebibtext[de][revedition={überarbeitete Auflage}]\setupsimplebibtext[de][datedition={Auflage vom}]\setupsimplebibtext[de][isbn={ISBN}]\setupsimplebibtext[de][pages={S.}]\setupsimplebibtext[de][access={letzter Zugriff}]\stopproductsetupsimplebibtext[de][in={in}]</pretexcode>
98

edits

Navigation menu