### CSL Style Example Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/bibsection_Include.txt A basic CSL style definition that includes a bibliography layout. This is a minimal example for demonstration purposes. ```xml ``` -------------------------------- ### Bibliography Entry Example Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/bugreports_Places.txt An example of a bibliography entry in HTML format. ```html
Appelbaum, Jacob. “Keynote.” presented at 29th Chaos Communication Congress, PUBLISHER Hamburg, December 27, 2012. http://boingboing.net/2013/02/15/jacob-appelbaums-29c3-keynot.html.
``` -------------------------------- ### Discretionary Example Process Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/discretionary_ExampleProcess.txt This example shows how Citeproc-JS handles discretionary formatting based on the CSL style. ```text ..[0] (Kesey 1964) ..[1] Kesey ..[2] (1964) >>[3] Kesey (1964) ``` -------------------------------- ### Citation Example Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/bugreports_BibCrossTalk.txt Example of citations generated by the system. ```text >>[0] Christopher W. V. Hogue, Andreas D. Baxevanis, and B. F. Francis Ouellette, “Presentation” (speech, Meeting Name2, New York, NY2, 2001), New York, NY2. >>[1] Christopher W. V. Hogue, Andreas D. Baxevanis, and B. F. Francis Ouellette, “Presentation” (speech, Meeting Name, New York, NY, 2001), New York, NY. ``` -------------------------------- ### Input Data Example Source: https://github.com/juris-m/citeproc-js/blob/master/attic/unused_tests/terms_EmptyOverload.txt An example of input data in JSON format, likely used for testing citation generation. ```json [ { "id":"ITEM-1", "type": "book", "author": [{"name":"Appleton, Victor"}], "title": "Tom Swift and His Electric Runabout", "issued": {"year":"1910"} } ] ``` -------------------------------- ### CSL Style Example Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/multilingual_ShortFormTitleVariant.txt An example of a CSL style file demonstrating the use of short-form titles and multilingual settings. ```xml ``` -------------------------------- ### Input Data Example Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/locator_Sections.txt Example input data for CSL processing, including an item with type 'legislation'. ```json [ { "id": "ITEM-1", "title": "Title Thing", "type": "legislation" } ] ``` -------------------------------- ### Access Macro Example Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/bugreports_BibCrossTalk.txt An example of the 'access' macro in CSL, defining how access information like URLs and dates should be formatted. ```xml ``` -------------------------------- ### CSL Stylesheet Example Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/form_ContainerTitleShortWithTitleSubSupportFrench.txt An example CSL stylesheet demonstrating the use of 'container-title' and 'title-short' with French locale settings. ```xml ``` -------------------------------- ### Example Usage Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/magic_WrapDOI.txt This example shows how a bibliography entry with different DOI formats is rendered when the 'wrap_url_and_doi' option is enabled. ```html
Bare DOI, https://doi.org/10.4103/0976-500X.85940
DOI with HTTP prefix, https://doi.org/10.4103/0976-500X.85940
DOI with HTTPS prefix, https://doi.org/10.4103/0976-500X.85940
DOI with weird HTTP prefix, http://weird.doi.org/10.4103/0976-500X.85940
DOI with weird HTTPS prefix, https://weird.doi.org/10.4103/0976-500X.85940
``` -------------------------------- ### Group Delimiter Example Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/itemtypes_CambodiaCases.txt An example of defining a group with a comma-space delimiter for volume and issue numbers. ```xml ``` -------------------------------- ### Input JSON Example Source: https://github.com/juris-m/citeproc-js/blob/master/attic/unused_tests/namespaces_Nada2.txt An example of input JSON data for a citation, representing a book with a title. ```json [ { "id":"simple-western-name-1", "type": "book", "title": "Book A" } ] ``` -------------------------------- ### CSL Style Example Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/language_ConditionSimple.txt An example of a CSL (Citation Style Language) style file demonstrating language-dependent conditions. ```xml ``` -------------------------------- ### Citation Layout Example Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/bugreports_BibCrossTalk.txt An example of the 'layout' within the 'citation' element, defining the structure and delimiters for citations. ```xml ``` -------------------------------- ### Bibliography Layout Example Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/bugreports_BibCrossTalk.txt An example of the 'layout' within the 'bibliography' element, defining the structure and delimiters for bibliography entries. ```xml ``` -------------------------------- ### CSL Style Example Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/bugreports_EmptyInput.txt An example of a CSL (Citation Style Language) file, demonstrating XML structure for citation formatting. ```xml ``` -------------------------------- ### CSL Style Example Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/affix_WithCommasCompactPrefix.txt An example of a CSL (Citation Style Language) file demonstrating Chicago Manual of Style with delimiter fixes. ```xml ``` -------------------------------- ### CSL Style Example Source: https://github.com/juris-m/citeproc-js/blob/master/attic/unused_tests/terms_EmptyOverload.txt An example of a CSL (Citation Style Language) style file demonstrating the use of terms, including an empty overload for 'bogus'. ```xml ``` -------------------------------- ### previewCitationCluster() example Source: https://github.com/juris-m/citeproc-js/blob/master/attic/citeproc-doc.rst Example of previewCitationCluster() usage. ```js var citationsPre = [ ["citation-abc",1], ["citation-def",2] ]; var citationsPost = [ ["citation-ghi",4] ]; citeproc.previewCitationCluster(citation,citationsPre,citationsPost,"html"); ... "(Richard Snoakes 1950)" ``` -------------------------------- ### Input Data Example Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/locale_SelectAbbrevs.txt An example of input data, likely JSON, representing legal cases with identifiers, types, authorities, jurisdictions, and languages. ```json [ { "id": "ITEM-1", "type": "legal_case", "authority": "supreme.court", "jurisdiction": "ca" }, { "id": "ITEM-2", "type": "legal_case", "authority": "supreme.court", "jurisdiction": "ca", "language": "fr" } ] ``` -------------------------------- ### Example: non-dropping-particle Source: https://github.com/juris-m/citeproc-js/blob/master/attic/citeproc-doc.rst Example of a 'non-dropping-particle' in the 'family' field. ```json { "author" : [ { "family" : "van Gogh", "given" : "Vincent" } ] } ``` -------------------------------- ### Example: dropping-particle Source: https://github.com/juris-m/citeproc-js/blob/master/attic/citeproc-doc.rst Example of a 'dropping-particle' in the 'given' name field. ```json { "author" : [ { "family" : "Humboldt", "given" : "Alexander von" } ] } ``` -------------------------------- ### CSL Stylesheet Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/layout_MultipleWithItemLocator.txt An example CSL stylesheet demonstrating different layout configurations for English and German locales, as well as a general layout for number of volumes. ```xml ``` -------------------------------- ### Citation Result Examples Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/affix_WordProcessorAffixNoSpaceCompactSuffix.txt Demonstrates different formatting of prefix, title, and suffix in citations. ```text My Prefix My Title My Suffix My Prefix. My Title, My Suffix My Prefix My Title My Suffix ``` -------------------------------- ### CSL Style Example Source: https://github.com/juris-m/citeproc-js/blob/master/attic/unused_tests/terms_Missing.txt An example of a CSL style that uses a missing term. ```xml ``` -------------------------------- ### appendCitationCluster() example 1 Source: https://github.com/juris-m/citeproc-js/blob/master/attic/citeproc-doc.rst Example of appendCitationCluster() returning a single citation. ```js citeproc.appendCitationCluster(mycitation); [ [ 5, "(J. Doe 2000)" ] ] ``` -------------------------------- ### CSL Style Example Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/multilingual_ShortTitleVariant.txt An example of a CSL style file demonstrating the use of 'title' and 'title-short' variables, with a focus on multilingual and transliteration settings. ```xml ``` -------------------------------- ### Input JSON Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/discretionary_ExampleMake.txt This JSON represents the bibliographic data for a book, used as input for the CSL style. ```json [ { "id": "ITEM-1", "type": "book", "multi": { "main": {}, "_keys": {} }, "title": "Sometimes a great notion", "publisher": "Viking Press", "publisher-place": "New York", "number-of-pages": "628", "source": "catalog.loc.gov Library Catalog", "event-place": "New York", "archive-place": "New York", "call-number": "PZ4.K42 PS3561.E667 So", "author": [ { "family": "Kesey", "given": "Ken", "multi": { "_key": {} } } ], "issued": { "date-parts": [ [ "1964" ] ] } } ] ``` -------------------------------- ### Input JSON Example Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/juris_SimpleJurisdiction.txt This JSON represents a list of legal documents with jurisdiction information. ```json [ { "id": "ITEM-1", "jurisdiction": "us:ak", "title": "Not a warning message, module ok", "type": "legal_case", "author": [ { "family": "Frank", "given": "Bennett" } ], "issued": { "date-parts": [[2011]] } }, { "id": "ITEM-2", "jurisdiction": "us:ak", "title": "Not a warning message, module ok", "type": "legislation", "issued": { "date-parts": [[1990]] } } ] ``` -------------------------------- ### RTF Output Example Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/bugreports_NonBreakingSpaceJoinFail.txt Example of RTF output that failed due to non-breaking space issues. ```rtf >>===== RESULT =====>> >>[0] {\scaps Smith} J., {\i{}Book One}\uc0\u160{}; {\scaps Jackson} J., {\i{}Book Two}. <<===== RESULT =====<< ``` -------------------------------- ### Citation Result Example Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/bugreports_BillLocator2.txt An example of a citation result, showing the title and verse. ```text >>[0] Title One, (number), section 12 verse 99 <<===== RESULT =====<< ``` -------------------------------- ### Description Full-width Macro Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/jasoc_example07.txt CSL macro for formatting descriptive elements like interviewer and medium with full-width spacing. ```xml ``` -------------------------------- ### CSL Example Source: https://github.com/juris-m/citeproc-js/blob/master/attic/unused_tests/namespaces_Nada2.txt An example of CSL (Citation Style Language) defining a citation with a title. ```xml ``` -------------------------------- ### Citation Result Example Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/affix_WithCommasCompactPrefix.txt Shows the output of the citation mode with affixing applied. ```text >>===== RESULT =====>> John Smith, Book C, 2000, and David Jones, Book D, 2000. John Smith, Book C, 2000 is one source, David Jones, Book D, 2000 is another. John Smith, Book C, 2000, 23 is one source, David Jones, Book D, 2000 is another. <<===== RESULT =====<< ``` -------------------------------- ### Install Citeproc Test Runner Source: https://github.com/juris-m/citeproc-js/blob/master/README.rst Installs the Citeproc Test Runner globally using npm. ```bash npm install -g citeproc-test-runner ``` -------------------------------- ### Example: suffix (ordinary) Source: https://github.com/juris-m/citeproc-js/blob/master/attic/citeproc-doc.rst Example of an ordinary name 'suffix' in the 'given' name field. ```json { "author" : [ { "family" : "King", "given" : "Martin Luther, Jr." }, { "family" : "Gates", "given" : "William Henry, III" } ] } ``` -------------------------------- ### Locator Examples Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/condition_Locators.txt Demonstrates the mapping between locator types and their common abbreviations. ```text act locator: act 42 appendix locator: app. 42 article-locator locator: art. 42 book locator: bk. 42 canon locator: c. 42 chapter locator: chap. 42 column locator: col. 42 elocation locator: loc. 42 equation locator: eq. 42 figure locator: fig. 42 folio locator: fol. 42 line locator: l. 42 note locator: n. 42 opus locator: op. 42 paragraph locator: para. 42 rule locator: r. 42 scene locator: sc. 42 sub-verbo locator: s.v. 42 table locator: tbl. 42 timestamp locator: 42 title-locator locator: tit. 42 verse locator: v. 42 issue locator: no. 42 page locator: p. 42 part locator: pt. 42 section locator: sec. 42 supplement locator: supp. 42 version locator: v. 42 volume locator: vol. 42 ``` -------------------------------- ### Names with particles example Source: https://github.com/juris-m/citeproc-js/blob/master/attic/citeproc-doc.rst Example demonstrating 'dropping-particle' and 'non-dropping-particle' elements for names with particles. ```js { "author" : [ { "family" : "Humboldt", "given" : "Alexander", "dropping-particle" : "von" }, { "family" : "Gogh", "given" : "Vincent", "non-dropping-particle" : "van" }, { "family" : "Stephens", "given" : "James", "suffix" : "Jr." }, { "family" : "van der Vlist", "given" : "Eric" } ] } ``` -------------------------------- ### appendCitationCluster() example 2 Source: https://github.com/juris-m/citeproc-js/blob/master/attic/citeproc-doc.rst Example of appendCitationCluster() returning multiple citations due to disambiguation. ```js citeproc.appendCitationCluster(mycitation); [ [ 2, "(Jake Doe 2000)" ], [ 5, "(John Doe 2000)" ] ] ``` -------------------------------- ### Bibliography Output Source: https://github.com/juris-m/citeproc-js/blob/master/fixtures/local/consolidation_LegalItemConsolidation.txt Example of how a bibliography might be rendered. ```html
My Statute
```