Produces a list of citations that to be included in a reStructuredText document. (In very simple documents, can also provide citation reference formatting by substituting in the document text for the citation references.)
A style includes:
note: | you will often want to override these |
---|---|
note: | shared.py holds defintions common to most styles |
note: | see the examples (e.g., example_numbered.py) of different styles |
copyright: | 2006 Alan G Isaac, see AUTHORS |
license: | MIT (see LICENSE) |
Every style must have a CITATION_TEMPLATE, a CitationManager, and a ref_list_sort_key. Crucial formatting decisions are made int the CITATION_TEMPLATE. The CITATION_TEMPLATE provides default reference formatting (may also be used by BibStyle)
TODO: |
|
---|
Return string, formatted in-text citation (allows multiple citations).
Note: | need the entry formatter bc its determines the field of the names for the cite |
---|---|
Note: | much of the following functionality was in the old Bibstyle’s formatCitation() method |
TODO: | rewrite |
TODO: | ? entries shd be more featureful ? (conflicts with core goal of BibEntry class) |
Provides default templates for style writers. Used by the default style (default.py).
book = ‘%(year)s. %(title)s.’, article = ‘%(year)s. %(title)s. %(journal)s %(volume)s, %(pages)s.’, misc = ‘%(year)s. %(title)s.’,
copyright: | 2006 by Alan G Isaac |
---|---|
license: | MIT |
since: | 2006-08-19 |
Provides an examle of how to easily modify an existing style: Just import everything from that style, and then override what you wish to change. In this case, we import from default.py, the default style.
This style changes to numbered citation references and citations. Citation references are numbered like this: (1,2). Citations are numbered like this:
- First Citation Definition
- Second Citation Definition
The numbers reflect the order cited (the ‘citation_rank’).
copyright: | 2006 Alan G Isaac, see AUTHORS |
---|---|
license: | MIT (see LICENSE) |
Bases: bibstuff.bibstyles.shared.CitationManager
Style for the Journal of Artificial Societies and Social Simulation The JASSS page for authors claims they use the Oxford style, but these are clearly different.
Examples (from the journal website) inconsistent in use of commas, quotes, ...
HASTIE, R (1986) “Experimental evidence on group accuracy”. In Jablin F M, Putnam L L, Roberts K H and Porter L W (Eds.) Handbook of Organizational Communication: An Interdisciplinary Perspective, Beverly Hills, CA: Sage.
KALAKOTA R and Whinston A B (1996) Frontiers of Electronic Commerce. Reading, MA: Addison-Wesley Publishing Company, Inc..
KARPINSKI R (1997) Extranets emerge as next challenge for marketers. Netmarketing, April 1997. pp. 1-4.
LEE H L and Billington C (1992) Managing Supply Chain Inventory: Pitfalls and Opportunities. Sloan Management Review, Spring 1992. pp. 65-73.
RICHIARDI, M, Leombruni, R, Sonnessa, M and Saam, N (2006). ‘A Common Protocol for Agent-Based Social Simulation’. Journal of Artificial Societies and Social Simulation 9(1) http://jasss.soc.surrey.ac.uk/9/1/15.html.
copyright: | 2006 Alan G Isaac, see AUTHORS |
---|---|
license: | MIT (see LICENSE) |
Bases: bibstuff.bibstyles.shared.CitationManager