Convert Figma logo to code with AI

citation-style-language logostyles

Official repository for Citation Style Language (CSL) citation styles.

3,251
3,745
3,251
332

Top Related Projects

Zotero Translators

9,964

Zotero is a free, easy-to-use tool to help you collect, organize, annotate, cite, and share your research sources.

3,530

Graphical Java application for managing BibTeX and biblatex (.bib) databases

Make Zotero effective for us LaTeX holdouts

Quick Overview

The citation-style-language/styles repository is a collection of citation styles written in the Citation Style Language (CSL), which is a popular XML-based language used to describe the formatting of citations and bibliographies. The repository contains over 8,000 citation styles for various academic disciplines, journals, and publishers, making it a comprehensive resource for researchers and writers.

Pros

  • Comprehensive Collection: The repository contains a vast number of citation styles, covering a wide range of academic fields and publications.
  • Standardized Formatting: The use of the CSL ensures consistent and standardized citation formatting across different styles.
  • Community-Driven: The project is maintained by a community of contributors, ensuring the styles are regularly updated and improved.
  • Open-Source: The repository is open-source, allowing users to contribute, modify, and customize the citation styles as needed.

Cons

  • Complexity: The sheer number of citation styles can be overwhelming, especially for users who are new to the project.
  • Maintenance Challenges: Keeping such a large collection of styles up-to-date and consistent can be a significant challenge for the maintainers.
  • Potential Conflicts: With so many styles available, there may be instances where different styles conflict with each other or have subtle differences in formatting.
  • Limited Customization: While the styles can be customized, the extent of customization may be limited for some users who require more specific formatting.

Code Examples

N/A (This is not a code library)

Getting Started

N/A (This is not a code library)

Competitor Comparisons

Zotero Translators

Pros of Zotero Translators

  • Zotero Translators provide a comprehensive set of tools for importing and exporting data from a wide range of sources, including websites, databases, and online catalogs.
  • The translators are actively maintained and regularly updated, ensuring compatibility with the latest web standards and data sources.
  • Zotero Translators offer a user-friendly interface, making it easy for researchers to quickly and efficiently gather and organize their references.

Cons of Zotero Translators

  • The Zotero Translators repository is primarily focused on the Zotero reference management software, which may not be suitable for all users or workflows.
  • The translators are written in JavaScript, which may not be as familiar or accessible to some users compared to the Citation Style Language (CSL) used in the citation-style-language/styles repository.

Code Comparison

Zotero Translators (JavaScript):

function detectWeb(doc, url) {
    if (url.indexOf('/article/') != -1 || url.indexOf('/articles/') != -1) {
        return "journalArticle";
    } else if (url.indexOf('/book/') != -1) {
        return "book";
    } else if (url.indexOf('/thesis/') != -1) {
        return "thesis";
    } else if (url.indexOf('/conference/') != -1) {
        return "conferencePaper";
    }
}

Citation Style Language (CSL):

<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" version="1.0" default-locale="en-US">
  <info>
    <title>American Psychological Association 6th Edition</title>
    <id>http://www.zotero.org/styles/apa</id>
    <link href="http://www.zotero.org/styles/apa" rel="self"/>
    <link href="http://www.apastyle.org/manual/index.aspx" rel="documentation"/>
    <author>
      <name>Simon Kornblith</name>
      <email>simon@simonster.com</email>
    </author>
    <category citation-format="author-date"/>
    <category field="psychology"/>
    <category field="generic-base"/>
    <updated>2017-06-18T03:25:23+00:00</updated>
    <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
  </info>
  <!-- ... -->
</style>
9,964

Zotero is a free, easy-to-use tool to help you collect, organize, annotate, cite, and share your research sources.

Pros of Zotero

  • Zotero is a full-featured reference management tool that goes beyond just citation styles, providing features like PDF annotation, web page saving, and collaboration.
  • Zotero has a large and active community that contributes to its development and provides support.
  • Zotero integrates with a wide range of word processors and other applications, making it a versatile tool for researchers.

Cons of Zotero

  • Zotero's focus on being a comprehensive reference management tool means that it may be more complex and have a steeper learning curve than a dedicated citation style repository.
  • Zotero's codebase is larger and more complex than a citation style repository, which may make it more difficult to contribute to or customize.

Code Comparison

Citation Style Language (CSL) repository:

<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" version="1.0" default-locale="en-US">
  <info>
    <title>American Psychological Association 7th edition</title>
    <id>http://www.zotero.org/styles/apa-7-th-edition</id>
    <link href="http://www.zotero.org/styles/apa-7-th-edition" rel="self"/>
    <link href="http://www.apastyle.org/" rel="documentation"/>
    <author>
      <name>Julian Onions</name>
      <email>julian.onions@gmail.com</email>
    </author>
    <category citation-format="author-date"/>
    <category field="psychology"/>
    <updated>2020-10-10T04:56:38+00:00</updated>
    <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
  </info>
  <!-- ... -->
</style>

Zotero repository:

// src/common/util.js
export function getLocale() {
  const locale = navigator.language || navigator.userLanguage;
  return locale.replace(/-/, '_');
}

export function getVersion() {
  return chrome.runtime.getManifest().version;
}

export function getAppName() {
  return chrome.runtime.getManifest().name;
}

export function getAppURL() {
  return chrome.runtime.getManifest().homepage_url;
}
3,530

Graphical Java application for managing BibTeX and biblatex (.bib) databases

Pros of JabRef/jabref

  • JabRef is a full-featured reference management software, providing a user-friendly interface for managing bibliographic data.
  • It supports a wide range of file formats, including BibTeX, RIS, and EndNote, making it easier to import and export references.
  • JabRef includes built-in support for various citation styles, allowing users to easily format their citations and bibliographies.

Cons of JabRef/jabref

  • The citation-style-language/styles repository is more focused on the development and maintenance of citation styles, which may be more suitable for users who primarily need to work with citation styles.
  • The citation-style-language/styles repository is more actively maintained, with a larger community of contributors, compared to the JabRef/jabref project.

Code Comparison

Citation Style Language (CSL) styles:

<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" version="1.0" default-locale="en-US">
  <info>
    <title>American Psychological Association 6th Edition</title>
    <id>http://www.zotero.org/styles/apa</id>
    <link href="http://www.zotero.org/styles/apa" rel="self"/>
    <link href="http://www.apastyle.org/manual/index.aspx" rel="documentation"/>
    <author>
      <name>Simon Kornblith</name>
      <email>simon@simonster.com</email>
    </author>
    <category citation-format="author-date"/>
    <category field="psychology"/>
    <category field="generic-base"/>
    <updated>2017-06-06T12:00:00+00:00</updated>
    <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
  </info>
  <!-- ... -->
</style>

JabRef:

public class JabRefFrame extends JFrame implements OutputPrinter {
    private static final Logger LOGGER = LoggerFactory.getLogger(JabRefFrame.class);

    private final JTabbedPane tabbedPane = new JTabbedPane();
    private final JMenuBar menuBar = new JMenuBar();
    private final JToolBar toolBar = new JToolBar();
    private final JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    private final JLabel statusLine = new JLabel("", SwingConstants.LEFT);
    private final JProgressBar progressBar = new JProgressBar(0, 100);
    private final JComboBox<String> encodingComboBox = new JComboBox<>();
    // ... additional fields and methods
}

Make Zotero effective for us LaTeX holdouts

Pros of Zotero Better BibTeX

  • Provides advanced features for managing and formatting bibliographic data within the Zotero reference manager.
  • Offers customizable citation styles and export options, allowing for greater flexibility in citation formatting.
  • Integrates seamlessly with Zotero, providing a streamlined workflow for researchers.

Cons of Zotero Better BibTeX

  • Requires the use of Zotero, which may not be preferred by all users.
  • The project is primarily focused on Zotero integration, limiting its applicability to other reference management tools.
  • The codebase may be more complex due to the integration with Zotero's ecosystem.

Code Comparison

citation-style-language/styles

<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" version="1.0" default-locale="en-US">
  <info>
    <title>American Psychological Association 6th Edition</title>
    <id>http://www.zotero.org/styles/apa</id>
    <link href="http://www.zotero.org/styles/apa" rel="self"/>
    <link href="http://www.apastyle.org/manual/index.aspx" rel="documentation"/>
    <author>
      <name>Simon Kornblith</name>
      <email>simon@simonster.com</email>
    </author>
    <category citation-format="author-date"/>
    <category field="psychology"/>
    <category field="generic-base"/>
    <updated>2017-06-18T03:25:23+00:00</updated>
    <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
  </info>
</style>

retorquere/zotero-better-bibtex

const { exec } = require('child_process')
const path = require('path')

const ZOTERO_EXECUTABLE = process.platform === 'darwin'
  ? '/Applications/Zotero.app/Contents/MacOS/zotero'
  : process.env.ZOTERO_EXECUTABLE || 'zotero'

const ZOTERO_DATA_DIR = process.env.ZOTERO_DATA_DIR || path.join(
  process.env.HOME || process.env.USERPROFILE,
  '.zotero'
)

exec(`${ZOTERO_EXECUTABLE} -datadir "${ZOTERO_DATA_DIR}" -headless -run-plugin zotero-better-bibtex`, (error, stdout, stderr) => {
  if (error) {
    console.error(`exec error: ${error}`)
    return
  }
  console.log(`stdout: ${stdout}`)
  console.error(`stderr: ${stderr}`)
})

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

CSL logo

Citation Style Language - Style Repository

License Build Status

Introduction

The independent open source Citation Style Language (CSL) project aims to facilitate scholarly communication by automating the formatting of citations and bibliographies. The primary components of the CSL ecosystem are:

  • The CSL schema and specification, which describe how the XML-based CSL styles and locale files should be written and interpreted
  • Curated repositories of CSL styles and locale files
  • Third party CSL processors, software libraries for rendering formatted citation and bibliographies from CSL styles, CSL locale files, and item metadata

This README describes our official curated repository of CSL styles, hosted at https://github.com/citation-style-language/styles/. CSL locale files, which provide default localization data for CSL styles (such as translations and date formats), can be found at https://github.com/citation-style-language/locales.

For more information about CSL and CSL styles, check out https://citationstyles.org/ and the information files in this repository (Style Requirements, Style Development, Requesting Styles, Contributing Styles, and Quality Control).

Criteria for inclusion

The official CSL style repository is the only repository of its kind, is used by dozens of third-party software products, and is relied upon by hundreds of thousands of users. The popularity of this repository is in large part due to its crowd-sourced nature, and, we believe, also due to our careful curation. While we evaluate style submissions on a case-by-case basis, we generally use the following criteria for inclusion in the CSL style repository:

  • Styles must be of sufficient quality and meet our style requirements. While we may be able to assist with this, its ultimately the submitter's responsibility to provide a style that meets our standards.
  • Styles should be based on an official style guide (and link to the style guide in online or printed form).
  • Styles should be of interest to a wider audience. We are happy to accept styles with a niche audience, but as a rule of thumb, style submitters should not know all individuals who would be interested in their style. If you do, it's generally better to distribute your style to them yourself.

Based on these criteria, we generally accept:

  • styles for journals with open (unsolicited) submissions (and styles for publishers of such journals).
  • styles for published style guides, such as those from professional organizations, universities, and university departments.

However, we typically won't accept:

  • styles for personal use, or for internal use within small organizations.
  • styles solely for use with an (internal) API.

If in doubt whether your style is a good fit for the repository, feel free to open an issue or pull request and ask for our opinion. If we don't accept your submission, we encourage you to distribute your CSL style yourself.

Versioning and style distribution

We currently only actively maintain CSL styles in the "master" branch for the latest released version of CSL.

In addition, in order to provide a stable location for styles of a given CSL version, styles in "master" are automatically copied to a branch named after the latest version of CSL (e.g. "v1.0.2" when CSL 1.0.2 is the latest version). Once a new version of CSL is released (e.g. CSL 1.1.0), "master" will upgrade to that version, after which styles will be copied from "master" to a new version branch ("v1.1.0"). Version branches for old versions of CSL are kept but typically become dormant, as for these branches we generally stop maintenance, won't accept third-party contributions via pull requests, nor backport changes made to styles in "master".

Starting with branch "v1.0.1", the version branches differ from "master" in the following ways:

  • the latest version branch only receives updates from "master" if all tests in "master" pass
  • <updated/> timestamps of styles in the version branch are changed to match the git modification date of each individual style in "master"
  • superfluous files present in "master", e.g. for style testing, are removed.

As such, especially for downstream integrators, you are encouraged to obtain your CSL styles from the appropriate version branch (e.g. "v1.0.2" for CSL 1.0.2 styles). Currently, the styles repository includes the following (protected) branches:

  • "master"
  • "v1.0.2" (for CSL 1.0.2 styles)
  • "v1.0.1" (for CSL 1.0.1 styles)
  • "v1.0" (for CSL 1.0 styles)

The release regimen described here is also used for our CSL locales.

As of November 2020, https://github.com/citation-style-language/styles-distribution, which fulfilled a similar role to the version branches, has been deprecated and no longer receives updates from https://github.com/citation-style-language/styles.

Licensing

All styles in this repository are released under the Creative Commons Attribution-ShareAlike 3.0 Unported license. For attribution, any software using CSL styles from this repository must include a clear mention of the CSL project and a link to https://citationstyles.org/. When redistributing styles, the listings of authors and contributors in the style metadata must be kept as is.