Open main menu

Changes

1,382 bytes added ,  15:28, 8 June 2020
m
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.03)
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* \item[listed in one block or distributed over several block in the document (e.g..] should be rightaligned* modulesparamter referenzfarbe is always emptyat the end of every chapter):
<texcode>
\startmodule[quellenverzeichnis]\unprotect...
\setupmodule[itemspace=12,referenzfarbe=red]startbibliography...\stopbibiography
\defineitemgroup[quellenverzeichnis]\setupitemgroup[quellenverzeichnis][levels=1,left={[},right={]},stopper=]\expanded{\setupitemgroup[quellenverzeichnis][1][n,\currentmoduleparameter{itemspace}*broad]} ...
\def\referenz[#1]#2{\doifemptyelse{#2}startbibliography {[\color[\currentmoduleparameter{referenzfarbe}]{\in[#1]]}} {[\color[\currentmoduleparameter{referenzfarbe}]{\in[#1], #2]}}}... % problem: \currentmoduleparamter{referenzfarbe} is always empty :-(stopbibiography
...</texcode> Inside the bibliography environment you can specify bibliographic items via <code>\def\dekodiereQuelle#1[#2]bibitem</code>. <texcode> {\getparametersbibitem[tmp][autorreference=,herausgeberlabel=,jahrauthor=,titeleditor=,inyear=,serietitle=,bandin=,heftnumber=,auflageseries=,bauflagevolume=,verlagmagazine=,ortedition=,isbnrevedition=,urldatedition=,seitenpublisher=,#2]% \doifnot{\tmpautor}{} {\tmpautor\doifnot{\tmpjahr}{}{ }}% \doifnot{\tmpherausgeber}{}{\doifnot{\tmpautor}{}{ - }\tmpherausgeber~(Hrsg.)\doifnot{\tmpjahr}{}{ }}% \doifnot{\tmpjahr}{} {(\tmpjahr)}% \doifelse{\tmpautor}{} {\doifelse{\tmpherausgeber}{}% {\doifnot{\tmpjahr}{}{: }}{: }}{: }% \doifnot{\tmptitel}{} {{\it \tmptitel}}% \doifnot{\tmpserie}{} { aus der Reihe {\it \tmpserie}}% \doifnot{\tmpband}{} { (Band~\tmpband)}% \doifnot{\tmpheft}{} { (Heft~\tmpheft)}% \doifnot{\tmpauflage}{}{place=, \tmpauflage.~Auflage}% \doifnot{\tmpbauflage}{}{isbn=, \tmpbauflage.~überarbeitete Auflage}% \doifnot{\tmpverlag}{} {url=, \tmpverlag}% \doifnot{\tmport}{} { \tmport}% \doifnot{\tmpisbn}{} {pages=, ISBN~\tmpisbn}% \doifnot{\tmpseiten}{} {, S.~\tmpseiten}% \doifnot{\tmpurl}{} {, \tmpurl}% \doifnot{\tmpin}{} { in \expanded{\dekodiereQuelle[\tmpinaccess=]}} }</texcode>
\def\quelle#1[#2] {\getparameters[tmp][schluessel=Most 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,abkuerzung=,#2] \doifelse{\tmpabkuerzung}{} {\item[\tmpschluessel]} {\sym{\cap{\tmpabkuerzung}}\expanded{\textreference[\tmpschluessel]{\cap{\tmpabkuerzung}}}}% \dekodiereQuelle[#2] }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:
\protect\stopmodule<texcode>\endinputbibitem[reference=bpf,label={BüPrFr},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}}]
</texcode>
And here If the label should be numbered automaticly just remove the <code>label</code> attribute of the <code>\bibitem</code> entity. ==Referencing== For referencing simplebib is an using the [[Cross Referencing|crossref]] module. For the lazy ones it provides <code>\bibtex</code> what is nothing else than a <code>\crossref</code> with <code>type=external</code> preset. So in following example how to use itboth 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[quellenverzeichnissimplebib]
\starttext
blabla blabla blabla blabla blabla\referenzbibref[rvbrk]\bibref[detail={Sp. 4275}][bpf]
\chapter{Quellen}starttext\subject{Textrepräsentation}\startquellenverzeichnisstartbibliography
\quellebibitem[schluesselreference=cha8brk,autorlabel={PaulBrk\-01},author={Brinker, HugoKlaus},jahryear=2008{2001},titeltitle={Das Nirgendwo...Linguistische Textanalyse: Eine Einführung in Grundbegriffe und Methoden},inseries={titelGrundlagen der Germanistik},volume={Die große Sammlung29},herausgeberrevedition={Markoven5}, Heinerpublisher={Schmidt Verlag},verlagplace={FrühschussBerlin},isbn={3-503-04995-9}]
\stopquellenverzeichnisbibitem[reference=bpf,label={BüPrFr\subsubject-98},author={InternationalitätBü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}}\startquellenverzeichnis[continue]
\quelle[schluessel=rv,abkuerzung=Etd05,autor={Etemad, Elika J.},jahr=2005,stopbibliographytitel={Robuts vertical text layout},serie={Technical Note},band=22,\stoptextverlag={Unicode Inc.},url={http:<//www.unicode.org/notes/tn22/}]texcode>
\stopquellenverzeichnis==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>\stoptextusemodule[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}]\setupsimplebibtext[de][in={in}]
</texcode>
 
[[Category:Bibliography]]