Hi, I have done a little with Context but I am still a beginner. As I can read in the archive of this list, there is no possibility to divide the bibliography into sections by the generated bibliography. If this assumption is true, I would like to enter the bibitems into the normal .tex-file. I was also reading the doc of the context-bib-module but I couldn't find any context-replacement for \bibitem. Headings inside the bibliography are very important for my text and the advantages of bibitem would simplify my data-entering, so I would be happy for any hint/help how to realize this in Context. I don't want to go back to Latex but to declare my problem better: In Latex a simplified example looks like: \begin{document} \section{hamha} asdfklsj fk\cite{key-1} \section{dumdidim} asdfsaff alfs hfdsj\cite{key-2} \begin{thebibliography}{1} \subsection*{hamha} \bibitem{key-1}erstes \subsection*{dumdidim} \bibitem{key-2}zweites \end{thebibliography} \end{document}
On Wed, 29 Aug 2007, Peter Schorsch wrote:
Hi,
I have done a little with Context but I am still a beginner. As I can read in the archive of this list, there is no possibility to divide the bibliography into sections by the generated bibliography. If this assumption is true, I would like to enter the bibitems into the normal .tex-file. I was also reading the doc of the context-bib-module but I couldn't find any context-replacement for \bibitem.
Headings inside the bibliography are very important for my text and the advantages of bibitem would simplify my data-entering, so I would be happy for any hint/help how to realize this in Context.
I don't want to go back to Latex but to declare my problem better: In Latex a simplified example looks like:
\begin{document}
\section{hamha} asdfklsj fk\cite{key-1}
\section{dumdidim} asdfsaff alfs hfdsj\cite{key-2}
\begin{thebibliography}{1} \subsection*{hamha} \bibitem{key-1}erstes \subsection*{dumdidim} \bibitem{key-2}zweites \end{thebibliography}
\end{document}
If you do not mind a little more markup. \definereferenceformat[cite][left={[},right={]}] \defineitemgroup [bibliography] \setupitemgroup [bibliography] [levels=1,itemalign=flushright,left={[},right={]},stopper=,intro=yes] \setupitemgroup[bibliography][1][n,fit,broad] \starttext \section{hamha} asdfklsj fk~\cite[key-1] \section{dumdidim} asdfsaff alfs hfdsj~\cite[key-2] \subject{Bibliography} \subsubject{hamha} \startbibliography \item[key-1] erstes \stopbibliography \subsubject{dumdidim} \startbibliography[continue] \item[key-2] zweites \stopbibliography \stoptext Actually, this will aslo work: \subject{Bibliography} \subsubject{hamha} \startbibliography \item[key-1] erstes \subsubject{dumdidim} \startbibliography[continue] \item[key-2] zweites \stopbibliography Only the first subsubject needs to be outside the bibliography environment. Aditya
Hi,
I think you like also a article from the Maps about thebibliography
in ConTeXt I found some time ago.
http://maps.aanhet.net/maps/pdf/27_14.pdf
Wolfgang
2007/8/29, Aditya Mahajan
On Wed, 29 Aug 2007, Peter Schorsch wrote:
Hi,
I have done a little with Context but I am still a beginner. As I can read in the archive of this list, there is no possibility to divide the bibliography into sections by the generated bibliography. If this assumption is true, I would like to enter the bibitems into the normal .tex-file. I was also reading the doc of the context-bib-module but I couldn't find any context-replacement for \bibitem.
Headings inside the bibliography are very important for my text and the advantages of bibitem would simplify my data-entering, so I would be happy for any hint/help how to realize this in Context.
I don't want to go back to Latex but to declare my problem better: In Latex a simplified example looks like:
\begin{document}
\section{hamha} asdfklsj fk\cite{key-1}
\section{dumdidim} asdfsaff alfs hfdsj\cite{key-2}
\begin{thebibliography}{1} \subsection*{hamha} \bibitem{key-1}erstes \subsection*{dumdidim} \bibitem{key-2}zweites \end{thebibliography}
\end{document}
If you do not mind a little more markup.
\definereferenceformat[cite][left={[},right={]}]
\defineitemgroup [bibliography]
\setupitemgroup [bibliography] [levels=1,itemalign=flushright,left={[},right={]},stopper=,intro=yes]
\setupitemgroup[bibliography][1][n,fit,broad]
\starttext
\section{hamha} asdfklsj fk~\cite[key-1]
\section{dumdidim} asdfsaff alfs hfdsj~\cite[key-2]
\subject{Bibliography}
\subsubject{hamha}
\startbibliography \item[key-1] erstes \stopbibliography
\subsubject{dumdidim} \startbibliography[continue] \item[key-2] zweites \stopbibliography
\stoptext
Actually, this will aslo work:
\subject{Bibliography}
\subsubject{hamha}
\startbibliography \item[key-1] erstes \subsubject{dumdidim} \startbibliography[continue] \item[key-2] zweites \stopbibliography
Only the first subsubject needs to be outside the bibliography environment.
Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Hi, first thanks for your help. I got it working at the basic-level. I put it into a module for the case that other beginner looking for the bibitem-replacement. But two questions are left before I think, that the module could be uploaded to the wiki: - how to make the 12*broad flexible? \currentmoduleparamter{itemspace}*broad is not working :-( - how to make that the \item are right-aligned? itemalign=right is also not working Here is the module-code followed by an appliance-example: -------the module: \startmodule[biblist] \unprotect %\setupmodule[itemspace=12] \defineitemgroup[bibliography] \setupitemgroup[bibliography][levels=1,left={[},right={]},stopper=] \setupitemgroup[bibliography][1][n,12*broad] %\setupitemgroup[bibliography][1][n \currentmoduleparameter{itemspace}*broad] \def\bibitem[#1]#2{\doifemptyelse{#2} {\item[#1]} {\sym{\cap{#2}}\textreference[#1]{\cap{#2}}}} \def\bibref[#1]#2{\doifemptyelse{#2} {[\in[#1]]} {[\in[#1], #2]}} \protect \stopmodule \endinput -------how to use: \usemodule[biblist] \starttext \section{hamha} asdfklsj fk~\bibref[keykeykey]{} \section{dumdidim} asdfsaff alfs hfdsj~\bibref[aha]{Abs. 4.1/1} \subject{Bibliography} \subsubject{hamha} \startbibliography \bibitem[keykeykey]{Der Schlüssel} erstes \stopbibliography \subsubject{dumdidim} \startbibliography[continue] \bibitem[aha]{} zweites \stopbibliography \stoptext
Hi Peter,
2007/8/30, Peter Schorsch
Hi,
first thanks for your help. I got it working at the basic-level. I put it into a module for the case that other beginner looking for the bibitem-replacement. But two questions are left before I think, that the module could be uploaded to the wiki:
- how to make the 12*broad flexible? \currentmoduleparamter{itemspace}*broad is not working :-( - how to make that the \item are right-aligned? itemalign=right is also not working
Here is the module-code followed by an appliance-example: -------the module:
\startmodule[biblist]
\unprotect
%\setupmodule[itemspace=12]
\defineitemgroup[bibliography] \setupitemgroup[bibliography][levels=1,left={[},right={]},stopper=] \setupitemgroup[bibliography][1][n,12*broad] %\setupitemgroup[bibliography][1][n \currentmoduleparameter{itemspace}*broad]
Replace this line with \expanded{\setupitemgroup[bibliography][1][n,\currentmoduleparameter{itemspace}*broad]} to force expansion of \currentmoduleparameter. You can also use \setupbibliography as a abbreviation for \setupitemgroup[bibliography] Wolfgang
\def\bibitem[#1]#2{\doifemptyelse{#2} {\item[#1]} {\sym{\cap{#2}}\textreference[#1]{\cap{#2}}}}
\def\bibref[#1]#2{\doifemptyelse{#2} {[\in[#1]]} {[\in[#1], #2]}}
\protect \stopmodule \endinput
-------how to use:
\usemodule[biblist]
\starttext
\section{hamha} asdfklsj fk~\bibref[keykeykey]{}
\section{dumdidim} asdfsaff alfs hfdsj~\bibref[aha]{Abs. 4.1/1}
\subject{Bibliography}
\subsubject{hamha} \startbibliography \bibitem[keykeykey]{Der Schlüssel} erstes \stopbibliography
\subsubject{dumdidim} \startbibliography[continue] \bibitem[aha]{} zweites \stopbibliography
\stoptext
Hi Wolfgang,
Replace this line with
\expanded{\setupitemgroup[bibliography][1][n, \currentmoduleparameter{itemspace}*broad]}
Unluckily that is not working :-( I also tried: \setupitemgroup[bibliography][1][n \expanded{\currentmoduleparameter{itemspace}}*broad] and \setupitemgroup[bibliography][1][n \expandafter\currentmoduleparameter{itemspace}*broad] In all three tries I didn't got any error-break but the pdf showed directly that the lines were not accepted. I posted the right-this-state module into the wiki: http://wiki.contextgarden.net/Simple_Bibliography The mulilingual-interface I will try later.. but right now I am stocked with this and the other listed points :-( I would be more than happy for any further hint :-)
Hi Peter,
2007/8/30, Peter Schorsch
Hi Wolfgang,
Replace this line with
\expanded{\setupitemgroup[bibliography][1][n, \currentmoduleparameter{itemspace}*broad]}
Unluckily that is not working :-( I also tried:
\setupitemgroup[bibliography][1][n \expanded{\currentmoduleparameter{itemspace}}*broad]
and
\setupitemgroup[bibliography][1][n \expandafter\currentmoduleparameter{itemspace}*broad]
In all three tries I didn't got any error-break but the pdf showed directly that the lines were not accepted.
I attached my local version from yesterday plus my test documents and they work for me.
I posted the right-this-state module into the wiki: http://wiki.contextgarden.net/Simple_Bibliography
The mulilingual-interface I will try later.. but right now I am stocked with this and the other listed points :-(
I would be more than happy for any further hint :-)
You should better you english names for your macros and not german ones or write to different versions. Wolfgang
Thanks Wolfgang, you were totally right. I made a typewriting error - I discovered it with help of your examples. I also updated the module in the wiki - and I will make it multilingual as soon I will find a good doc about multilingual-commands. I tried to add colors over module-parameter - but it didn't work out. I changed in t-bibitem.tex: \setupmodule[itemspace=12,color=red] ... \def\bibref[#1]#2{\doifemptyelse{#2} {\color[\currentmoduleparameter{color}]{[\in[#1]]}} {\color[red]{[\in[#1], #2]}}} and in the biblist-test-files only following line has to be added: \setupcolors[state=start] The direct command \color[red]{...} is working, but the \color[\currentmoduleparamter{color}]{...} not - wether I add an \expanded or not. texexec gives following comments: color : empty is not defined I have the feeling that the module-parameter and the expand-commands are still a mysterious to me. Can you / anyone explain me, what I am doing wrong? Ciao
On Fri, 31 Aug 2007, Peter Schorsch wrote:
Thanks Wolfgang,
you were totally right. I made a typewriting error - I discovered it with help of your examples.
I also updated the module in the wiki - and I will make it multilingual as soon I will find a good doc about multilingual-commands.
Aren't you doing exactly what the bib module does? The only difference is that the bib module uses registers, so that you can also sort the publication list. And you can format different types of references differently. But the basic idea is the same. Aditya
Hi Aditya,
Aren't you doing exactly what the bib module does? The only difference is that the bib module uses registers, so that you can also sort the publication list. And you can format different types of references differently. But the basic idea is the same.
The main issue for me was, that (right now) it seems to be impossible to get with the bib-module a per-chapter bibliography at the end of the document . Ciao
participants (3)
-
Aditya Mahajan
-
Peter Schorsch
-
Wolfgang Schuster