* Re: Context replacement for bibitem [not found] ` <alpine.WNT.0.999.0708282127200.3072@nqvgln> @ 2007-08-29 7:23 ` Wolfgang Schuster 2007-08-29 22:22 ` Peter Schorsch 0 siblings, 1 reply; 8+ messages in thread From: Wolfgang Schuster @ 2007-08-29 7:23 UTC (permalink / raw) To: mailing list for ConTeXt users 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 <adityam@umich.edu>: > 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 > ___________________________________________________________________________________ > ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Context replacement for bibitem 2007-08-29 7:23 ` Context replacement for bibitem Wolfgang Schuster @ 2007-08-29 22:22 ` Peter Schorsch 2007-08-30 6:22 ` Wolfgang Schuster 0 siblings, 1 reply; 8+ messages in thread From: Peter Schorsch @ 2007-08-29 22:22 UTC (permalink / raw) To: ntg-context 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Context replacement for bibitem 2007-08-29 22:22 ` Peter Schorsch @ 2007-08-30 6:22 ` Wolfgang Schuster 2007-08-30 17:03 ` Peter Schorsch 0 siblings, 1 reply; 8+ messages in thread From: Wolfgang Schuster @ 2007-08-30 6:22 UTC (permalink / raw) To: mailing list for ConTeXt users Hi Peter, 2007/8/30, Peter Schorsch <tralalas@freenet.de>: > 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Context replacement for bibitem 2007-08-30 6:22 ` Wolfgang Schuster @ 2007-08-30 17:03 ` Peter Schorsch 2007-08-31 6:43 ` Wolfgang Schuster 0 siblings, 1 reply; 8+ messages in thread From: Peter Schorsch @ 2007-08-30 17:03 UTC (permalink / raw) To: ntg-context 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 :-) ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Context replacement for bibitem 2007-08-30 17:03 ` Peter Schorsch @ 2007-08-31 6:43 ` Wolfgang Schuster 2007-08-31 15:18 ` module-parameters Was: " Peter Schorsch 0 siblings, 1 reply; 8+ messages in thread From: Wolfgang Schuster @ 2007-08-31 6:43 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1: Type: text/plain, Size: 1055 bytes --] Hi Peter, 2007/8/30, Peter Schorsch <tralalas@freenet.de>: > 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 [-- Attachment #2: t-biblist.tex --] [-- Type: application/x-tex, Size: 497 bytes --] [-- Attachment #3: biblist-test-1.tex --] [-- Type: application/x-tex, Size: 399 bytes --] [-- Attachment #4: biblist-test-2.tex --] [-- Type: application/x-tex, Size: 413 bytes --] [-- Attachment #5: Type: text/plain, Size: 487 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* module-parameters Was: Context replacement for bibitem 2007-08-31 6:43 ` Wolfgang Schuster @ 2007-08-31 15:18 ` Peter Schorsch 2007-08-31 18:02 ` Aditya Mahajan 0 siblings, 1 reply; 8+ messages in thread From: Peter Schorsch @ 2007-08-31 15:18 UTC (permalink / raw) To: ntg-context 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: module-parameters Was: Context replacement for bibitem 2007-08-31 15:18 ` module-parameters Was: " Peter Schorsch @ 2007-08-31 18:02 ` Aditya Mahajan 2007-08-31 18:16 ` Peter Schorsch 0 siblings, 1 reply; 8+ messages in thread From: Aditya Mahajan @ 2007-08-31 18:02 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: module-parameters Was: Context replacement for bibitem 2007-08-31 18:02 ` Aditya Mahajan @ 2007-08-31 18:16 ` Peter Schorsch 0 siblings, 0 replies; 8+ messages in thread From: Peter Schorsch @ 2007-08-31 18:16 UTC (permalink / raw) To: ntg-context 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-08-31 18:16 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <fb2aud$umi$1@sea.gmane.org> [not found] ` <alpine.WNT.0.999.0708282127200.3072@nqvgln> 2007-08-29 7:23 ` Context replacement for bibitem Wolfgang Schuster 2007-08-29 22:22 ` Peter Schorsch 2007-08-30 6:22 ` Wolfgang Schuster 2007-08-30 17:03 ` Peter Schorsch 2007-08-31 6:43 ` Wolfgang Schuster 2007-08-31 15:18 ` module-parameters Was: " Peter Schorsch 2007-08-31 18:02 ` Aditya Mahajan 2007-08-31 18:16 ` Peter Schorsch
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).