2

I am having some difficulties in managing the bibliography in ConTeXt. I would like to print a bibliography along the lines of the one provided by the package achemso in LaTeX.

To the best of my knowledge, ConTeXt is unable to handle bst files.

Could someone be kind and explain me some workarounds?

thank you in advance.

1

1 Answer 1

3

To the best of my knowledge, ConTeXt is unable to handle bst files.

Correct.

I would like to print a bibliography along the lines of the one provided by the package achemso in LaTeX.

Could someone be kind and explain me some workarounds?

It's relatively simple to define your own bibliography styles in ConTeXt. The following document:

%%%%%%%%%%%%%%%%%%%%%% %%% Implementation %%% %%%%%%%%%%%%%%%%%%%%%% \unprotect \loadbtxdefinitionfile[aps] \setupbtx[aps:list][ authorconversion=invertedshort, stopper:initials={.\btxspace}, separator:names:2={\removeunwantedspaces\btxsemicolon}, separator:names:3={\removeunwantedspaces\btxsemicolon}, separator:names:4={\removeunwantedspaces\btxsemicolon}, ] \setupbtx[aps:list:numbering][ left={(}, right={)}, ] \setupbtxlist[ distance=0pt, width=2.5em, align=flushleft, ] \setupbtx[aps:list:volume][style=italic] \setupbtx[aps:list:title:electronic][style=,] \starttexdefinition mutable protected btx:aps:author \btxdoif {author} { \btxflush{author} } \stoptexdefinition \starttexdefinition mutable protected btx:aps:title \btxdoifelse {title} { \texdefinition{btx:aps:composed-title}{title} \btxperiod } { \removepunctuation } \stoptexdefinition \starttexdefinition mutable protected btx:aps:journal-volume-year \btxdoif {journal} { \btxspace \btxstartstyleandcolor[aps:list:journal] \btxflush{expandedjournal -> journal} \btxstopstyleandcolor \btxdoif {year} { \btxspace \bold{\texdefinition{btx:aps:year}} \btxcomma } \btxdoif {volume} { \btxspace \btxstartstyleandcolor [aps:list:volume] \btxflush{volume} \btxstopstyleandcolor \btxcomma } \btxdoif {pages} { \btxspace \btxflush{pages} } } \stoptexdefinition \starttexdefinition mutable protected btx:aps:editionset \removeunwantedspaces \removepunctuation \btxdoif {edition} { \btxcomma \begingroup\pushoverloadmode \def\highordinalstr##1{##1} \ordinalnumber{\btxflush{edition}} \popoverloadmode\endgroup \btxspace \btxlabeltext{aps:edition} \btxsemicolon } \doif {\currentbtxcategory} {techreport} { \btxsemicolon \btxdoifelse {type} { \btxusecommand [\currentbtx:type] { \btxflush{type} } } { \btxlabeltext{technicalreport} } } \btxdoif {volume} { \btxcomma \btxoneorrange {volume} { \btxlabeltext{aps:Volume} } { \btxlabeltext{aps:Volumes} } \btxspace \btxflush{volume} \btxcomma } \btxdoif {number} { \removeunwantedspaces \removepunctuation \btxspace \btxflush{number} \btxcomma } \btxdoif {pages} { \btxoneorrange {pages} { \btxlabeltext{p} } { \btxlabeltext{pp} } \btxnbsp \btxflush{pages} \btxcomma } \stoptexdefinition \starttexdefinition mutable protected btx:aps:publisher-wherefrom-year \removeunwantedspaces \removepunctuation \btxsemicolon \btxdoifelse {institution} { \btxdoif {address} { \btxflush{address} \btxcolon } \btxflush{institution} \btxcomma } { \btxflush{publisher} \btxdoifelse {address} { \btxdoif {publisher} { \btxcolon } \btxflush{address} \btxcomma } { \btxdoif {publisher} { \btxcomma } } } \texdefinition{btx:aps:year} \stoptexdefinition \protect %%%%%%%%%%%%%%%%%%%%% %%% Demonstration %%% %%%%%%%%%%%%%%%%%%%%% \usebtxdefinitions[aps] \startbuffer[biblatex-chem] % From $TEXMFDIST/doc/latex/biblatex-chem/biblatex-chem.bib @Techreport{Allen1961, hyphenation = {british}, author = {Allen, R. A. and Smith, D. B. and Hiscott, J. E.}, title = {Radioisotope Data}, institution = {H.M.S.O.}, address = {London}, type = {UKAEA Research Group Report}, number = {AERE-R 2938}, year = {1961} } @Article{Arduengo1991, hyphenation = {american}, author = {Arduengo, III, Anthony J. and Harlow, Richard L. and Kline, Michael}, title = {A stable crystalline carbene}, journal = {J.~Am. Chem. Soc.}, year = {1991}, volume = {113}, pages = {361--363}, number = {1}, doi = {10.1021/ja00001a054}, annotation = {An article with ``III'' in the author section} } @Book{Armarego2003, hyphenation = {british}, title = {Purification of Laboratory Chemicals}, publisher = {Butterworth--Heine\-mann}, year = {2003}, author = {Armarego, W. L. F. and Chai, Christina Lin Li}, address = {London}, edition = {5}, annotation = {A simple \texttt{book} entry} } @Book{Augustine1995, hyphenation = {american}, author = {Augustine, Robert L.}, title = {Heterogeneous Catalysis for the Synthetic Chemist}, shorttitle = {Heterogeneous catalysis}, publisher = {Marcel Dekker}, address = {New York}, year = {1995}, annotation = {A plain \texttt{book} entry, taken from the \textsf{biblatex} examples} } @Article{Booth1962, hyphenation = {british}, author = {Booth, G. and Chatt, J.}, title = {The reactions of carbon monoxide and nitric oxide with tertiary phosphine complexes of iron(II), cobalt(II), and nickel(II)}, journal = {J.~Chem. Soc.}, year = {1962}, pages = {2099--2106}, doi = {10.1039/JR9620002099}, annotation = {An article which does not have a volume number} } @Electronic{Corina2006, title = {CORINA: Generation of 3D coordinates}, url = {http://www.molecular-networks.com/software/corina/index.html} } \stopbuffer \usebtxdataset[biblatex-chem.buffer] \startTEXpage[offset=1ex] \placelistofpublications[method=dataset] \stopTEXpage 

output

produces a bibliography that's almost the same as the BibLaTeX chem-acs style (which I used as a reference):

screenshot of document

1
  • Splendid. Thank you. Commented Oct 28 at 6:17

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.