Changes

Jump to navigation Jump to search
1,135 bytes added ,  22:47, 3 November 2012
no edit summary
= First Approach =Sometimes 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.
(Version 0.04)==Items==
Sometimes the The bibliography needs to can be more flexible. For this case here is a simple module listed in one block or distributed over several block in the document (still in development) to helpe. It is also a good starting-point for your own adaptiong.at the end of every chapter):
Still open points:<texcode>... \startbibliography...\stopbibiography ...* interface should be multilingual (this version has german output, but it can be replaced easily)* \item[startbibliography...\stopbibiography ...] should be rightaligned* modulesparamter refcolor is always empty - so not working</texcode>
Inside the bibliography environment you can specify bibliographic items via <code>\bibitem</code>.
<texcode>
\startmodulebibitem[simplebibreference=,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.
\unprotect==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>\setupmodule[itemspace=12,refcolorcrossref</code> with <code>type=grey]external</code> preset.
\definecolor[grey][s=.35]So in following example both blocks do the same:
<texcode>\defineitemgroupbibref[bibliographyref1]\setupitemgroup[bibliography]bibref[levels=1,leftdetail={[p. 38},right={]},stopper=]\expanded{\setupitemgroup[bibliography][1ref1][n,\currentmoduleparameter{itemspace}*broad]}
\crossref[type=external][ref1]
\crossref[type=external,detail={p. 38}][ref1]
</texcode>
\def\bibitem[#1]#2{\doifemptyelse{#2}% {\item[#1]}% {\sym{\cap{#2}}\textreference[#1]{\cap{#2}}}}%Here a simple usage example:
\def\bibref[#1]#2{\doifemptyelse{#2}<texcode> {\color[grau]{usemodule[\in[#1]]}} {\color[grau]{[\in[#1], #2simplebib]}}}
\def\cbibref[#1][#2]#3{\doifemptyelse{#3} {\color[#1]{[\in[#2]]}} {\color[#1]{[\in[#2], #3]}}}starttext
\bibref[brk]
\bibref[detail={p. 275}][bpf]
\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}{}{: }}{: }}{: }% \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}%starttext \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]}} }startbibliography
\def\bibsource#1[#2] {\getparameters[tmp]bibitem[keyreference=brk,abbrlabel=,#2] \doifelse{Brk\tmpabbr-01},author={Brinker, Klaus} ,year={\item[\tmpkey]2001} ,title={\symLinguistische Textanalyse: Eine Einführung in Grundbegriffe und Methoden},series={\capGrundlagen der Germanistik},volume={\tmpabbr29},revedition={5}\expanded,publisher={\textreference[\tmpkey]Schmidt Verlag},place={\capBerlin},isbn={\tmpabbr}}}3-503-04995-9}% \decodebibsource[#2] }\protect\stopmodule\endinput
\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>
= Another Approach =Settings== To adjust the space for the bibitem labels you can specify the: * <code>labelSpace</code> with a natural number (the default is 12).
Here is another manual approach for simple bibliographies.They are defined as parameters of the module:
<texcode>
\definereferenceformatusemodule[citecrossref][leftlabelSpace={[},right={]}...]\defineitemgroup [bibliography] [levels=1]\setupitemgroup [bibliography] [symbol=n, left={[}, right={]}, width=1.5em, stopper=, itemalign=flushright, inbetween={\blank[4pt]}]..
</texcode>
Now you Depending on label definition or label numbering a text left and right of the label can use be defined via <code>labelLeft</code> and <code>labelRight</code>. If brackets are needed they can be set with:
<texcode>
\sectionsetupsimplebibtext[labelLeft={References[}]\startbibliography \itemsetupsimplebibtext[ref1labelRight={] This is my first reference \item[ref2}] This is the second reference\stopbibliography
</texcode>
and use The language depending texts can be set via: <codetexcode>\citesetupsimplebibtext[ref1en][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}]</codetexcode> etc to refer to bibliography items.
98

edits

Navigation menu