Hi All, I'm trying to get a simple bibliography to work with ConTeXt. Here's what I have so far: *test.tex* \usebtxdataset[bibliography.bib] \starttext \startbodymatter See \cite[proofwiki] \stopbodymatter \startbackmatter \startsection[title=Bibliography] \stopsection \stopbackmatter \stoptext *bibliography.bib* @misc{ proofwiki, title={{Definition:Collation - ProofWiki}}, author={{ProofWiki}}, howpublished={ \href{https://proofwiki.org/wiki/Definition:Collation}{link} }, journal={{ProofWiki}}, year={2021} } When I compile test.tex it generates a pdf, but the citation is not included in the body matter. Also the actual reference is not present in Bibliography. What am I doing wrong? Regards, Amine
In my previous email I forgot to include the \placelistofpublications
command. I tried that and now I'm getting a citation, but the bibliography
entry is not correctly typeset...
On Sat, 26 Mar 2022 at 13:25, A A
Hi All,
I'm trying to get a simple bibliography to work with ConTeXt. Here's what I have so far:
*test.tex*
\usebtxdataset[bibliography.bib]
\starttext
\startbodymatter See \cite[proofwiki] \stopbodymatter
\startbackmatter \startsection[title=Bibliography] \stopsection \stopbackmatter \stoptext
*bibliography.bib*
@misc{ proofwiki, title={{Definition:Collation - ProofWiki}}, author={{ProofWiki}}, howpublished={ \href{https://proofwiki.org/wiki/Definition:Collation}{link} }, journal={{ProofWiki}}, year={2021} }
When I compile test.tex it generates a pdf, but the citation is not included in the body matter. Also the actual reference is not present in Bibliography.
What am I doing wrong?
Regards,
Amine
I found the problem. I was not including the following in my preamble:
\usebtxdefinitions[aps]
The next question I guess is whether ConTeXt support other specs like MLA
or Chicago style. I tried MLA but without sucess. Is MLA possible in
ConTeXt?
On Sat, 26 Mar 2022 at 13:48, A A
In my previous email I forgot to include the \placelistofpublications command. I tried that and now I'm getting a citation, but the bibliography entry is not correctly typeset...
On Sat, 26 Mar 2022 at 13:25, A A
wrote: Hi All,
I'm trying to get a simple bibliography to work with ConTeXt. Here's what I have so far:
*test.tex*
\usebtxdataset[bibliography.bib]
\starttext
\startbodymatter See \cite[proofwiki] \stopbodymatter
\startbackmatter \startsection[title=Bibliography] \stopsection \stopbackmatter \stoptext
*bibliography.bib*
@misc{ proofwiki, title={{Definition:Collation - ProofWiki}}, author={{ProofWiki}}, howpublished={ \href{https://proofwiki.org/wiki/Definition:Collation}{link} }, journal={{ProofWiki}}, year={2021} }
When I compile test.tex it generates a pdf, but the citation is not included in the body matter. Also the actual reference is not present in Bibliography.
What am I doing wrong?
Regards,
Amine
On 26. Mar 2022, at 14:04, A A via ntg-context
wrote: The next question I guess is whether ConTeXt support other specs like MLA or Chicago style. I tried MLA but without sucess. Is MLA possible in ConTeXt?
One (admittedly far-fetched) possibility would be to read the documentation. mkiv-publications, p. 29: context supports apa and aps styles for the moment; contributions are always welcome. Thomas
Hi Thomas, Yes, I was able to find the appropriate section in the manual, thanks. Please see my answer at SE https://tex.stackexchange.com/questions/638481/getting-a-simple-bibliography... . I don't think reading the docs is far-fetched by the way. But I think asking on here is also fine. I'll consider making a contribution once I get a better grip of how the ConTeXt system is put together. Again thanks for your response. Regards, Amine On Sat, 26 Mar 2022 at 14:52, Thomas A. Schmitz via ntg-context < ntg-context@ntg.nl> wrote:
On 26. Mar 2022, at 14:04, A A via ntg-context
wrote: The next question I guess is whether ConTeXt support other specs like MLA or Chicago style. I tried MLA but without sucess. Is MLA possible in ConTeXt?
One (admittedly far-fetched) possibility would be to read the documentation. mkiv-publications, p. 29: context supports apa and aps styles for the moment; contributions are always welcome.
Thomas
___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net
___________________________________________________________________________________
Hi Amine, The bibliography subsystem is rather complex, and Alan, who has worked with Hans on support for APS and APA, wants to do things the right way, which means he wants to code for all corner cases. From my own experience: it is difficult to just copy and modify the existing publ-imp-XXX files; they define a number of clever macros that allow code reuse and consistency, but are not the most straightforward way for a non-programmer (like myself) to proceed. I have found it easier to start from scratch by writing my own publ-imp-custom.{mkiv,lua} files and then add whatever I need, one entry type at a time. That also allows you to understand the ways in which the system works. But of course, it’s less convenient than just changing APA to MLA, as you can in biblatex. ConTeXt has a much smaller user base, so we take somewhat longer. Maybe I should add a wiki article on a basic way to start one’s own custom definitions... Best Thomas
On 26. Mar 2022, at 15:34, A A via ntg-context
wrote: Hi Thomas,
Yes, I was able to find the appropriate section in the manual, thanks. Please see my answer at SE.
I don't think reading the docs is far-fetched by the way. But I think asking on here is also fine.
I'll consider making a contribution once I get a better grip of how the ConTeXt system is put together.
Again thanks for your response.
Regards,
Amine
I think you've done that already ...
________________________________________
Von: ntg-context
On 26. Mar 2022, at 15:34, A A via ntg-context
wrote: Hi Thomas,
Yes, I was able to find the appropriate section in the manual, thanks. Please see my answer at SE.
I don't think reading the docs is far-fetched by the way. But I think asking on here is also fine.
I'll consider making a contribution once I get a better grip of how the ConTeXt system is put together.
Again thanks for your response.
Regards,
Amine
___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
On 26. Mar 2022, at 16:42, Denis Maier via ntg-context
wrote: I think you've done that already ...
Oh my goodness, I’m getting too old for this… Thanks for pointing that out! [Historical context: the Greek scholar Didymus had several nicknames. One was Chalcenterus “Bronze-Guts” because he could remain seated at his desk for hours without moving. The other was “bibliolathas” “Book-forgetter” because he wrote so many books he couldn’t remember them himself. End of historical context] Thomas
Am 26.03.22 um 14:51 schrieb Thomas A. Schmitz via ntg-context:
On 26. Mar 2022, at 14:04, A A via ntg-context
wrote: The next question I guess is whether ConTeXt support other specs like MLA or Chicago style. I tried MLA but without sucess. Is MLA possible in ConTeXt?
One (admittedly far-fetched) possibility would be to read the documentation. mkiv-publications, p. 29: context supports apa and aps styles for the moment; contributions are always welcome.
There’s also Joey McCollum’s SBL style: github.com/jjmccollum/context-sb Hraban
-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von Henning Hraban Ramm via ntg-context Gesendet: Samstag, 26. März 2022 18:04 An: Thomas A. Schmitz via ntg-context Cc: Henning Hraban Ramm Betreff: Re: [NTG-context] Trying to get a simple bibliography Am 26.03.22 um 14:51 schrieb Thomas A. Schmitz via ntg-context:
On 26. Mar 2022, at 14:04, A A via ntg-context
wrote:
The next question I guess is whether ConTeXt support other specs like
MLA or Chicago style. I tried MLA but without sucess. Is MLA possible in ConTeXt?
One (admittedly far-fetched) possibility would be to read the documentation. mkiv-publications, p. 29: context supports apa and aps styles for the moment; contributions are always welcome.
There’s also Joey McCollum’s SBL style: github.com/jjmccollum/context-sb
Which leads to the question: Could Joey's style be added to distribution? Also, Joey has posted a wishlish regarding context's bibliographic features: https://www.mail-archive.com/ntg-context@ntg.nl/msg100712.html Maybe we should resume that thread again... Best, Denis
Hi Amine, There are several ways to achieve a bibliography. The first one is your way, with a buffer, which you have to name it (see below : the buffer is named 'biblio') : you put your references to books and articles between the 2 commands \startbuffer and \stopbuffer as the model shows hereafter (with the APA style). If you want to print a general and simple bibliography, you need a double command :\usebtxdataset[/any title you choose/][biblio.buffer] and \definebtxrendering[/any title/][apa][dataset=/any title/] after \stopbuffer. At the end of the text, you need to define the place where you want to print the bibliography. For that purpose : \starttext \startbackmatter \startchapter[title={Bibliography}] \placelistofpublications[/any title/] [method=local] \stopchapter \stopbackmatter \stoptext /But, as far as I know, this method is boring/, because you need to write all you bibliographical sources in the buffer. The better is to build a separate bibtex file with such a software as JabRef (which is a kind of bibtex tool). This bibtex file is in your ConTeXt repository and you need only to call the name of your bibtex item. For instance, the book /Natural Right and History/ of Leo Strauss becomes 'Strauss,1952' (with JabRef) and if you cite this book in your text (like this : \cite[alternative=entry][/any title/::Strauss1952]}, you can find the item at the 'S' letter. Indeed, there is some work to do (feed your bitex file with items...), but when it is done once, it is forever (I guess ...). I give you a MWE as an attached file ... Hope it helps ! JP [/here is the beginning of a buffer sample /] \startbuffer[biblio] @book{Cicéron1, author = {Cicéron}, title = {Tusculanes, V, 8}, } @INCOLLECTION{Leibniz1885, author = {Leibniz, G. W.}, title = {Principes de la nature et de la grâce fondés en raison, 1714}, title:en = {Principles of Nature and Grace Founded in Reason}, booktitle = {\de Die Philosophischen Schriften von Gottfried Wilhelm Leibniz}, booktitle:en = {The Philosophical Writings of Gottfried Wilhelm Leibniz}, editor = {Gerhardt, C. G.}, publisher = {Weidmann}, year = {1885}, volume = {6}, chapter = {8}, pages = {598–606}, address = {Berlin}, language = {french}, } @book{Rousseau1755, author ={Rousseau, Jean-Jacques} title = {Discours sur l’Origine et les Fondements de l’Inégalité parmi les Hommes.}, year = {1755}, } @book{Rousseau1750, author ={Rousseau, Jean-Jacques} title = {Discours sur les Sciences et les Arts}, year = {1750}, } @book{Rousseau1762, author = {Rousseau, Jean-Jacques}, title = {Émile}, year = {1762}, } \stopbuffer Le 26/03/2022 à 13:25, A A via ntg-context a écrit :
Hi All,
I'm trying to get a simple bibliography to work with ConTeXt. Here's what I have so far:
*test.tex* * * \usebtxdataset[bibliography.bib]
\starttext
\startbodymatter See \cite[proofwiki] \stopbodymatter
\startbackmatter \startsection[title=Bibliography] \stopsection \stopbackmatter \stoptext * * *bibliography.bib* * * @misc{ proofwiki, title={{Definition:Collation - ProofWiki}}, author={{ProofWiki}}, howpublished={ \href{https://proofwiki.org/wiki/Definition:Collation}{link https://proofwiki.org/wiki/Definition:Collation}{link} }, journal={{ProofWiki}}, year={2021} }
When I compile test.tex it generates a pdf, but the citation is not included in the body matter. Also the actual reference is not present in Bibliography.
What am I doing wrong?
Regards,
Amine * *
___________________________________________________________________________________ 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://context.aanhet.net archive :https://bitbucket.org/phg/context-mirror/commits/ wiki :http://contextgarden.net ___________________________________________________________________________________
-- Jean-Pierre Delange Ancients&Moderns Professeur Agrégé de Philosophie (HC)
participants (5)
-
A A
-
denis.maier@unibe.ch
-
Henning Hraban Ramm
-
Jean-Pierre Delange
-
Thomas A. Schmitz