Changes

Jump to navigation Jump to search
1,890 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.04)
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 listed in one block or distributed over several block in the document (this version has german output, but it can be replaced easily)* \item[e.g..] should be rightaligned* modulesparamter refcolor is always empty - so not workingat the end of every chapter):
<texcode>
...
 
\startbibliography
...
\stopbibiography
 
...
 
\startbibliography
...
\stopbibiography
 
...
</texcode>
 
Inside the bibliography environment you can specify bibliographic items via <code>\bibitem</code>.
 
<texcode>
\bibitem[reference=,label=,author=,editor=,year=,title=,in=,number=,series=,volume=,magazine=,edition=,revedition=,datedition=,publisher=,place=,isbn=,url=,pages=,access=]
</texcode>
 
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, 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>
\startmodulebibitem[simplebibreference=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>
If the label should be numbered automaticly just remove the <code>label</code> attribute of the <code>\unprotectbibitem</code> entity.
\setupmodule[itemspace=12,refcolor=grey]Referencing==
\definecolorFor referencing simplebib is using the [[greyCross Referencing|crossref]][smodule. For the lazy ones it provides <code>\bibtex</code> what is nothing else than a <code>\crossref</code> with <code>type=external</code> preset.35]
\defineitemgroup[bibliography]\setupitemgroup[bibliography][levels=1,left={[},right={]},stopper=]\expanded{\setupitemgroup[bibliography][1][n,\currentmoduleparameter{itemspace}*broad]}So in following example both blocks do the same:
<texcode>
\bibref[ref1]
\bibref[detail={p. 38}][ref1]
\def\bibitemcrossref[#1type=external]#2{\doifemptyelse{#2}% {\item[#1ref1]}% {\sym{\capcrossref[type=external,detail={#2p. 38}}\textreference][#1ref1]{\cap{#2}}}}%</texcode>
\def\bibref[#1]#2{\doifemptyelse{#2} {\color[grau]{[\in[#1]]}} {\color[grau]{[\in[#1], #2]}}}Here a simple usage example:
\def\cbibref[#1][#2]#3{\doifemptyelse{#3}<texcode> {\colorusemodule[#1]{[\in[#2]]}} {\color[#1]{[\in[#2], #3simplebib]}}}
\starttext
\def\decodebibsource#1bibref[#2brk] \bibref[detail={\getparametersp. 275}][tmpbpf\starttext\startbibliography \bibitem[reference=brk,label={Brk\-01},author={Brinker,editor=Klaus},year={2001},title=,{Linguistische Textanalyse: Eine Einführung in=Grundbegriffe und Methoden},series={Grundlagen der Germanistik},volume=,magazine=,edition={29},revedition=, datedition={5},publisher={Schmidt Verlag},place={Berlin},isbn=,url{3-503-04995-9}] \bibitem[reference=bpf,pageslabel=,#2]% \doifnot{BüPrFr\tmpauthor-98},author={Büchel, Christian; Price, Cathy J und Friston, Karl} ,year={\tmpauthor\doifnot{\tmpyear1998},title={A multimodal language region in the ventral visual pathway},in={ }}% \doifnot{\tmpeditor}{}{\doifnot{\tmpauthortitle=Nature},volume={394},pages={ 274- 277}\tmpeditor~(Hrsg.)\doifnot{\tmpyear}{}{ }}%]  \doifnot{stopbibliography\tmpyear}{} {stoptext</texcode> ==Settings== To adjust the space for the bibitem labels you can specify the: * <code>labelSpace</code> with a natural number (\tmpyearthe default is 12)}%. They are defined as parameters of the module: <texcode> \doifelse{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>\tmpauthor}setupsimplebibtext[labelLeft={[}] {\doifelsesetupsimplebibtext[labelRight={\tmpeditor]}{}%]</texcode>  {\doifnot{\tmpyear}{}{: }}{: }}{The language depending texts can be set via: }% \doifnot{\tmptitle}{} {{\it \tmptitle}}% \doifnot{\tmpseries}{} { aus der Reihe {\it \tmpseries}}%<texcode> \doifnotsetupsimplebibtext[en][editor={\tmpvolumeed.}{} { (Band~\tmpvolume)}%] \doifnot{\tmpmagazine}setupsimplebibtext[en][number={number} { (Heft~\tmpmagazine)}%] \doifnotsetupsimplebibtext[en][fromSeries={\tmpeditionfrom series}{}{, \tmpedition.~Auflage}%] \doifnotsetupsimplebibtext[en][volume={\tmpreveditionvolume}{}{, \tmprevedition.~überarbeitete Auflage}%] \doifnotsetupsimplebibtext[en][magazine={\tmpdateditionmagazine}{}{, Auflage vom \tmpdatedition}%] \doifelsesetupsimplebibtext[en][edition={\tmppublisheredition}{}{\doifnot{\tmpplace}{}{,}}{,}%] \doifnotsetupsimplebibtext[en][revedition={\tmppublisherreviewed edition}{} { \tmppublisher}%] \doifnotsetupsimplebibtext[en][datedition={\tmpplaceedition from}{} { \tmpplace}%] \doifnot{\tmpisbn}{} setupsimplebibtext[en][isbn={, ISBN~\tmpisbn}%] \doifnot{\tmppages}{} setupsimplebibtext[en][pages={, Sp.~\tmppages}%] \doifnotsetupsimplebibtext[en][access={\tmpurllast access}{} {, \tmpurl}%] \doifnotsetupsimplebibtext[en][in={\tmpinin}{} { in \expanded{\decodebibsource[\tmpin]}} }
\def\bibsource#1setupsimplebibtext[de][#2editor={Hrsg.}] {\getparameterssetupsimplebibtext[tmpde][keynumber=,abbr=,#2{Nummer}] \doifelsesetupsimplebibtext[de][fromSeries={aus der Reihe}]\tmpabbr}setupsimplebibtext[de][volume={Band}] {\itemsetupsimplebibtext[\tmpkeyde][magazine={Heft}] {\symsetupsimplebibtext[de][edition={Auflage}]\capsetupsimplebibtext[de][revedition={\tmpabbr}überarbeitete Auflage}]\expandedsetupsimplebibtext[de][datedition={Auflage vom}]\textreferencesetupsimplebibtext[\tmpkeyde][isbn={ISBN}]\capsetupsimplebibtext[de][pages={\tmpabbrS.}}}}%] \decodebibsourcesetupsimplebibtext[#2de] [access={letzter Zugriff}]\protectsetupsimplebibtext[de][in={in}]\stopmodule\endinput</texcode>
<\texcode>[[Category:Bibliography]]

Navigation menu