On Wed, 2024-05-29 at 06:49 -0600, Alan Braslau wrote:
> 1) You appear to be using the long-frozen mkii bibliography code.

I think you are right! I just realized that. I'm using in my
Environment file...

   % \BIBTEX macro...
   \usemodule[abr-02]
   
   % Setup bibliography...
   
       % References database and other general settings...
       \setupbibtex[database={./References}, sort=author]
   
       % Global settings...
       \setuppublications[
           alternative=apa,
           numbering=yes,
           monthconversion=month,
           autohang=yes,
           sorttype=cite]
   
       % Without this, no hyperlinks at all in the output...
       \setupinteraction[state=start]
   
       % This two-part helper creates a hyperlink for url fields...
       \unprotect
           \def\bibgotoURL#1#2%
            {\useURL[#1][#2][][#1]\from[#1]}
           \def\bibinsertbiburl#1#2#3%
            {\bibdoifelse{\@@pb@biburl}
              {#1\expanded{\bibgotoURL{\@@pb@title}{\@@pb@biburl}}#2}{#3}}
       \protect
   
       % Book reference layout...
       \setuppublicationlayout[book]{%
            \insertauthors{}{. }{\insertthekey{}{. }{}}%
            \inserttitle{\bgroup\it }{.\egroup\space }{}%
            \insertpubname{}{. }{}%
            \insertday{}{ }{}%
            \insertmonth{\Word }{. }{}%
            \insertpubyear{}{. }{}%
            \insertnote{}{.}{}%
           }
   
       % Adjusted version of 'misc' typesetting, using \insertbiburl
       % instead of \inserttitle (and \insertbiburl runs the
       % \bibinsertbiburl macro defined above)
       \setuppublicationlayout[misc]{%
        \insertauthors{}{. }{\insertthekey{}{. }{}}%
        \insertbiburl{\bgroup\it }{.\egroup\space }{}%
        \insertpubname{}{. }{}%
        \insertday{}{ }{}%
        \insertmonth{\Word }{. }{}%
        \insertpubyear{}{. }{}%
        \insertnote{}{.}{}%
       }
   
       % finally, this is a horrible hack needed due to bibtex inserting
       % line breaks in the middle of urls in the output bbl (!)
       % If you find this hack too ugly, consider editing the .bbl by
       % hand and forgetting about the .bib file altogether...
       \let\mydodostartpublication\dodostartpublication
       \def\dodostartpublication{\catcode`\%=14 \mydodostartpublication}
   
       % Macro to put the citations as footnotes...
       \unexpanded\def\footnotecite{\dodoubleempty\domycite}
       \def\domycite[#1][#2]%
           {\ifsecondargument
               \footnote{\cite[alternative=data,#1][#2]}%
           \else
               \footnote{\cite[data][#1]}%
           \fi}
   
       % Individial citation settings...
   
           % Enable clickable links...
           \setupcite[alternative=interaction=start, compress=no]
   
       % Publication list setups for end of the book list...
   
           % Settings for triggering et al...
           \setuppublicationlist[authoretallimit=3]
           \setuppublicationlist[authoretaltext={\it\ et al.}]
           \setuppublicationlist[authoretaldisplay=2]
   
           % List the author, editor, or article author's full name, inverted...
           \setuppublicationlist[%
               author=\invertedauthor,%
               artauthor=\invertedauthor,%
               editor=\invertedauthor,%
               title=References]
   
   % Setup footnotes...
   
       \setupnotation[footnote]
           [color=colour_footnote_text,
            backgroundcolor=colour_footnote_background,
            width=0.3cm, % Space between footnote number and footnote itself
            numbercommand=] % Remove elevated footnote notation at bottom of 
page
   
       \setupnote[footnote]
           [textseparator={\textcomma}, % Comma delineated
            before={\crlf\crlf}] %
   
       \setupfootnotes
         [rule=on, % Disable horizontal rule
          textstyle={\hskip.03em}] % Vertical space between footnotes and the 
text
   
   % To move footnotes inside of text boxes to the bottom of the page with
   %  the rest of the footnotes. Disabled temporarily to fix issue of text
   %  background frame borders vanishing...
   \kindofpagetextareas\plusone

Whenever I wanted to use a citation I'd just write
\footnotecite[something]. But I see now there is this page that
describes a different process for using BibTeX:

   https://wiki.contextgarden.net/Bibliography

I will take a look today and try to incorporate the new best practice
for using the database and its citations. If you have any suggestions I
will try and incorporate them.

-- 
Kip Warner
OpenPGP signed/encrypted mail preferred
https://www.thevertigo.com

Attachment: signature.asc
Description: This is a digitally signed message part

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to