Hi Thomas, Many thanks for your insight. Indeed as Alan and you explain, it is straightforward to define one's own specification. I have not done that yet, but already I could change some of the renderings by modifying a few of the definitions in the file publ-imp-default.mkvi in my test file. I guess when my file say named, as you put it, publ-imp-otared.mkvi, is finished, I have to put it in my personal directory texmf/tex/context where ConTeXt would find it.
Regarding my question about extracting a file with the used references, Alan explained it to me: it is enough to say \savebtxdataset[usedreferences.bib] and then ConTeXt creates the file usedreferences.bib. Including the content of that file in the source of the main document into a buffer, then allows me to have a single file with the references in it. So this also has been solved by Alan and Hans and is waiting there! Regarding the setups for cite, I did not see where I should put the modified block \startsetups btx:cite:XXX \stopsetups As of now it doesn't seem necessary to modify anything for \cite: maybe this can be done later on if necessary. Best regards: OK > On 20 Feb 2018, at 10:52, Thomas A. Schmitz <thomas.schm...@uni-bonn.de> > wrote: > > Hi Otared, > > >> >> So my first question is: how can one define one's own « specification », >> when modifying built-in specifications is not satisfactory for one's needs, >> or does not give the expected result? > > I work with lots of bibliographies and want my very own styles, and I have > indeed found that it is easier to define my own styles rather than modify the > existing ones. So what you want to do: > > 1. you define your own style, let’s call it otared. So in your main tex file, > you would have this line: > > \usebtxdefinitions [otared] > > This means you have to create two files, one for the lua definitions, one for > tex. > > 2. For the lua file, just take publ-imp-apa.lua and cpy it as > publ-imp-otared.lua. Chances are you won’t have to make any changes right > away. The content is pretty straightforward lua code. > > 3. The tex file publ-imp-otared.mkvi will then contain your definitions in a > block > > \startbtxrenderingdefinitions[otared] > > ... > > \stopbtxrenderingdefinitions > > You define two different sets of definitions: one for the citations in the > text (in the form \startsetups btx:cite:XXX), one for the list of references > (in the form \startsetups btx:list:XXX). Here you can make all the formatting > you want: article name in red, author name for articles in small caps, > journal name in 3D, whatever. Again, just look at publ-imp-apa.mkvi and try > to understand how it works; it’s not that difficult. > >> The second question is: how can one write a file containing only the >> references which are used in a document, so that that file can be in some >> way included into the main document (this is somewhat analogous to the .bbl >> file created by BibTeX, which allows to include a series of \bibitem into an >> article written with LaTeX: this is necessary to do when one submits a paper >> to a mathematical journal). >> >> Thanks again for your help: OK > > The list of references is included in the .tuc file that a context run > produces. If you need to massage it into any other form, 5 minutes of lua > coding can extract the salient information for you. > > HTH > > 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________