Command/alwayscite

From Wiki
Jump to navigation Jump to search


\alwayscite

Summary

The command \alwayscite is used for ...

Settings

\alwayscite[...=...,...][...]
referencereference
alternativedefault category entry short page num textnum year index tag keywords author authoryears authornum authoryear
beforecommand
aftercommand
leftcommand
rightcommand
...=...,...inherits from \setupbtx
[...]reference

Settings alternative

\alwayscite[...][...]
[...]default category entry short page num textnum year index tag keywords author authoryears authornum authoryear
[...]reference

Settings userdata

\alwayscite[...=...,...][...=...,...]
referencereference
alternativedefault category entry short page num textnum year index tag keywords author authoryears authornum authoryear
beforecommand
aftercommand
leftcommand
rightcommand
...=...,...inherits from \setupbtx
keyvalue

Description

Examples

Example 1

  • \startbuffer[testdata]
       @Book{cicero-tuscu2011,
       author     = {Cicéron, Marcus Tullius},
       editor     = {Fohlen, G.},
       publisher  = {Les Belles Lettres},
       title      = {Tusculanes},
       year       = {2011},
       address    = {Paris},
       edition    = {7e tirage},
       isbn       = {9782251010830},
       series     = {œuvres philosophiques},
       volume     = {1},
       ppn_gvk    = {1823774121},
       translator = {Jules Humbert},
       }
       \stopbuffer
    
    % Setup bibliography...
    
    % Select References.bib and name it the main database...
           \usebtxdataset[main][testdata.buffer]
    
    % Citation style...
           \usebtxdefinitions[apa]
    
    % Use our main dataset for citations...
           \setupbtx[dataset=main]
    
    \definebtxrendering[main][apa][dataset=main]
    
    \setupbtxrendering[main][
               pagestate=start,
               continue=yes,
               numbering=yes]
    
    % Macro to put the citations as footnotes...
           \unexpanded\def\footnotecite{\dodoubleempty\domycite}
           \def\domycite[#1][#2]%
               {\ifsecondargument
                   \footnote{\alwayscite[alternative=entry,#1][main::#2]}%
               \else
                   \footnote{\alwayscite[alternative=entry][main::#1]}%
               \fi}
    
    \starttext
       Some footnote.\footnotecite[cicero-tuscu2011]
    \stoptext
    

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: