Changes

Jump to navigation Jump to search
1,831 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.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 working* rewrite code into module-format 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>
\bibitem[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>
 
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 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 both blocks do the same:
<texcode>
\startmodulebibref[simplebibref1]\bibref[detail={p. 38}][ref1] \crossref[type=external][ref1]\crossref[type=external,detail={p. 38}][ref1]</texcode>
\unprotectHere a simple usage example:
<texcode>\setupmoduleusemodule[itemspace=12,refcolor=grausimplebib]
\definecolor[grau][s=.35]starttext
\defineitemgroupbibref[bibliographybrk]\setupitemgroupbibref[bibliography][levels=1,leftdetail={[p. 275},right={]},stopper=]\expanded{\setupitemgroup[bibliography][1][n,\currentmoduleparameter{itemspace}*broadbpf]}
\starttext
\startbibliography
\def\bibitem[#1]#2reference=brk,label={Brk\doifemptyelse-01},author={#2Brinker, Klaus}% ,year={\item[#1]2001}% ,title={\symLinguistische Textanalyse: Eine Einführung in Grundbegriffe und Methoden},series={\capGrundlagen der Germanistik},volume={#229},revedition={5}\textreference[#1],publisher={\capSchmidt Verlag},place={#2Berlin},isbn={3-503-04995-9}}}%]
\def\bibrefbibitem[#1]#2reference=bpf,label={BüPrFr\doifemptyelse-98},author={#2Büchel, Christian; Price, Cathy J und Friston, Karl} ,year={\color[grau]1998},title={[\A multimodal language region in[#1]]the ventral visual pathway}} ,in={\color[grau]{[\in[#1]title=Nature}, #2]volume={394},pages={274-277}}]
\def\cbibref[#1][#2]#3{\doifemptyelse{#3}stopbibliography {\color[#1]{[\in[#2]]}}stoptext {\color[#1]{[\in[#2], #3]}}}</texcode>
==Settings==
\def\decodebibsource#1[#2] {\getparameters[tmp][author=,editor=,year=,title=,in=,series=,volume=,magazine=,edition=,revedition=, datedition=,publisher=,place=,isbn=,url=,pages=,#2]% \doifnot{\tmpauthor}{} {\tmpauthor\doifnot{\tmpyear}{}{ }}% \doifnot{\tmpeditor}{}{\doifnot{\tmpauthor}{}{ - }\tmpeditor~(Hrsg.)\doifnot{\tmpyear}{}{ }}% \doifnot{\tmpyear}{} {(\tmpyear)}% \doifelse{\tmpauthor}{} {\doifelse{\tmpeditor}{}% {\doifnot{\tmpyear}{}{To adjust the space for the bibitem labels you can specify the: }}{: }}{: }% \doifnot{\tmptitle}{} {{\it \tmptitle}}% \doifnot{\tmpseries}{} { aus der Reihe {\it \tmpseries}}% \doifnot{\tmpvolume}{} { (Band~\tmpvolume)}% \doifnot{\tmpmagazine}{} { (Heft~\tmpmagazine)}% \doifnot{\tmpedition}{}{, \tmpedition.~Auflage}% \doifnot{\tmprevedition}{}{, \tmprevedition.~überarbeitete Auflage}% \doifnot{\tmpdatedition}{}{, Auflage vom \tmpdatedition}% \doifelse{\tmppublisher}{}{\doifnot{\tmpplace}{}{,}}{,}% \doifnot{\tmppublisher}{} { \tmppublisher}% \doifnot{\tmpplace}{} { \tmpplace}% \doifnot{\tmpisbn}{} {, ISBN~\tmpisbn}% \doifnot{\tmppages}{} {, S.~\tmppages}% \doifnot{\tmpurl}{} {, \tmpurl}% \doifnot{\tmpin}{} { in \expanded{\decodebibsource[\tmpin]}} }
* <code>labelSpace</code> with a natural number (the default is 12). They are defined as parameters of the module: <texcode>\defusemodule[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>\bibsource#1setupsimplebibtext[#2labelLeft={[}] \setupsimplebibtext[labelRight={]}]</texcode> The language depending texts can be set via: <texcode>\getparameterssetupsimplebibtext[tmpen][keyeditor=,abbr=,#2{ed.}] \doifelsesetupsimplebibtext[en][number={number}]\tmpabbr}setupsimplebibtext[en][fromSeries={from series}] {\itemsetupsimplebibtext[\tmpkeyen][volume={volume}] {\symsetupsimplebibtext[en][magazine={magazine}]\capsetupsimplebibtext[en][edition={\tmpabbr}edition}]\expandedsetupsimplebibtext[en][revedition={reviewed edition}]\textreferencesetupsimplebibtext[\tmpkeyen][datedition={edition from}]\capsetupsimplebibtext[en][isbn={\tmpabbrISBN}}}}%] \decodebibsourcesetupsimplebibtext[#2en] [pages={p.}]\protectsetupsimplebibtext[en][access={last access}]\stopmodule\endinputsetupsimplebibtext[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>
98

edits

Navigation menu