pandoc/test/command/chinese-gb7714-2005-numeric.csl
John MacFarlane e0984a43a9 Add built-in citation support using new citeproc library.
This deprecates the use of the external pandoc-citeproc
filter; citation processing is now built in to pandoc.

* Add dependency on citeproc library.
* Add Text.Pandoc.Citeproc module (and some associated unexported
  modules under Text.Pandoc.Citeproc).  Exports `processCitations`.
  [API change]
* Add data files needed for Text.Pandoc.Citeproc:  default.csl
  in the data directory, and a citeproc directory that is just
  used at compile-time.  Note that we've added file-embed as a mandatory
  rather than a conditional depedency, because of the biblatex
  localization files. We might eventually want to use readDataFile
  for this, but it would take some code reorganization.
* Text.Pandoc.Loging: Add `CiteprocWarning` to `LogMessage` and use it
  in `processCitations`. [API change]
* Add tests from the pandoc-citeproc package as command tests (including
  some tests pandoc-citeproc did not pass).
* Remove instructions for building pandoc-citeproc from CI and
  release binary build instructions.  We will no longer distribute
  pandoc-citeproc.
* Markdown reader: tweak abbreviation support.  Don't insert a
  nonbreaking space after a potential abbreviation if it comes right before
  a note or citation.  This messes up several things, including citeproc's
  moving of note citations.
* Add `csljson` as and input and output format. This allows pandoc
  to convert between `csljson` and other bibliography formats,
  and to generate formatted versions of CSL JSON bibliographies.
* Add module Text.Pandoc.Writers.CslJson, exporting `writeCslJson`. [API
  change]
* Add module Text.Pandoc.Readers.CslJson, exporting `readCslJson`. [API
  change]
* Added `bibtex`, `biblatex` as input formats.  This allows pandoc
  to convert between BibLaTeX and BibTeX and other bibliography formats,
  and to generated formatted versions of BibTeX/BibLaTeX bibliographies.
* Add module Text.Pandoc.Readers.BibTeX, exporting `readBibTeX` and
  `readBibLaTeX`. [API change]
* Make "standalone" implicit if output format is a bibliography format.
  This is needed because pandoc readers for bibliography formats put
  the bibliographic information in the `references` field of metadata;
  and unless standalone is specified, metadata gets ignored.
  (TODO: This needs improvement. We should trigger standalone for the
  reader when the input format is bibliographic, and for the writer
  when the output format is markdown.)
* Carry over `citationNoteNum` to `citationNoteNumber`.  This was just
  ignored in pandoc-citeproc.
* Text.Pandoc.Filter: Add `CiteprocFilter` constructor to Filter.
  [API change] This runs the processCitations transformation.
  We need to treat it like a filter so it can be placed
  in the sequence of filter runs (after some, before others).
  In FromYAML, this is parsed from `citeproc` or `{type: citeproc}`,
  so this special filter may be specified either way in a defaults file
  (or by `citeproc: true`, though this gives no control of positioning
  relative to other filters).  TODO: we need to add something to the
  manual section on defaults files for this.
* Add deprecation warning if `upandoc-citeproc` filter is used.
* Add `--citeproc/-C` option to trigger citation processing.
  This behaves like a filter and will be positioned
  relative to filters as they appear on the command line.
* Rewrote the manual on citatations, adding a dedicated Citations
  section which also includes some information formerly found in
  the pandoc-citeproc man page.
* Look for CSL styles in the `csl` subdirectory of the pandoc user data
  directory.  This changes the old pandoc-citeproc behavior, which looked
  in `~/.csl`.  Users can simply symlink `~/.csl` to the `csl`
  subdirectory of their pandoc user data directory if they want
  the old behavior.
* Add support for CSL bibliography entry formatting to LaTeX, HTML,
  Ms writers.  Added CSL-related CSS to styles.html.
2020-09-21 10:15:50 -07:00

213 lines
7.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="zh-CN">
<info>
<title>Chinese Std GB/T 7714-2005 (numeric, Chinese)</title>
<id>http://www.zotero.org/styles/chinese-gb7714-2005-numeric</id>
<link href="http://www.zotero.org/styles/chinese-gb7714-2005-numeric" rel="self"/>
<link href="http://gradschool.ustc.edu.cn/ylb/material/xw/wdxz/19.pdf" rel="documentation"/>
<author>
<name>heromyth</name>
<email>zxpmyth@yahoo.com.cn</email>
</author>
<category citation-format="numeric"/>
<category field="engineering"/>
<category field="generic-base"/>
<category field="science"/>
<summary>This style just partly implemented what the Chinese GB/T 7714-2005 requires.</summary>
<updated>2012-10-11T09:38:41+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>
<macro name="author">
<names variable="author">
<name initialize-with=" " name-as-sort-order="all" sort-separator=" " delimiter=", " delimiter-precedes-last="always">
<name-part name="family" text-case="uppercase"/>
</name>
</names>
</macro>
<macro name="recipient">
<names variable="recipient">
<name name-as-sort-order="all" sort-separator=" " delimiter=", " delimiter-precedes-last="always"/>
<label form="short" prefix=", " text-case="lowercase"/>
</names>
</macro>
<macro name="interviewer">
<names variable="interviewer">
<name name-as-sort-order="all" sort-separator=" " delimiter=", " delimiter-precedes-last="always"/>
<label form="short" prefix=", " text-case="lowercase"/>
</names>
</macro>
<macro name="composer">
<names variable="composer">
<name name-as-sort-order="all" sort-separator=" " delimiter=", " delimiter-precedes-last="always"/>
<label form="short" prefix=", " text-case="lowercase"/>
</names>
</macro>
<macro name="original-author">
<names variable="original-author">
<name name-as-sort-order="all" sort-separator=" " delimiter=", " delimiter-precedes-last="always"/>
<label form="short" prefix=", " text-case="lowercase"/>
</names>
</macro>
<macro name="title">
<text variable="title"/>
</macro>
<macro name="titleField">
<choose>
<if type="report">
<text macro="title" suffix="[R]. "/>
</if>
<else-if type="thesis">
<text macro="title" suffix="[D]. "/>
</else-if>
<else-if type="bill legislation" match="any">
<text variable="number" suffix=", "/>
<text macro="title" suffix="[S]"/>
</else-if>
<else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="title" suffix="[M]. "/>
</else-if>
<else-if type="paper-conference">
<text macro="title" suffix="[C]//"/>
</else-if>
<else-if type="chapter paper-conference" match="any">
<text macro="title" suffix="[G]//"/>
</else-if>
<else-if type="webpage">
<text macro="title" suffix="[EB/OL]. "/>
</else-if>
<else-if type="patent">
<text macro="title"/>
<text variable="number" prefix=": 中国, " suffix="[P]. "/>
</else-if>
<else>
<text macro="title" suffix="[J]. "/>
</else>
</choose>
</macro>
<macro name="secondaryAuthor">
<names variable="editor">
<name initialize-with=" " name-as-sort-order="all" sort-separator=" " delimiter=", " delimiter-precedes-last="always">
<name-part name="family" text-case="uppercase"/>
</name>
</names>
<names variable="translator">
<name name-as-sort-order="all" sort-separator=" " delimiter=", " delimiter-precedes-last="always" suffix=", 译"/>
</names>
</macro>
<macro name="publisher">
<choose>
<if type="chapter paper-conference" match="any">
<text variable="container-title" suffix=". "/>
</if>
<else-if type="report">
<text variable="collection-title" suffix=", "/>
<text variable="number" suffix=", "/>
</else-if>
<else-if type="bill legislation" match="any">
<text variable="container-title" prefix=". "/>
</else-if>
<else>
<text variable="container-title" suffix=", "/>
</else>
</choose>
<!--
<text variable="event" suffix="event "/>
<text variable="event-place" suffix="event-place "/>
<text variable="original-title" suffix="original-title"/>
-->
<text variable="publisher-place" suffix=": "/>
<group delimiter=", ">
<text variable="publisher"/>
<choose>
<if type="webpage" variable="container-title" match="all">
<date variable="issued" suffix=". ">
<date-part name="year"/>
<date-part name="month" form="numeric-leading-zeros" prefix="-"/>
<date-part name="day" form="numeric-leading-zeros" prefix="-"/>
</date>
</if>
<else-if type="webpage"/>
<else-if type="patent">
<date variable="issued">
<date-part name="year"/>
<date-part name="month" form="numeric-leading-zeros" prefix="-"/>
<date-part name="day" form="numeric-leading-zeros" prefix="-"/>
</date>
</else-if>
<else-if variable="publisher">
<date variable="issued">
<date-part name="year"/>
</date>
</else-if>
<else-if type="bill legislation" match="any"/>
<else>
<date variable="issued">
<date-part name="year"/>
</date>
</else>
</choose>
</group>
<text variable="volume" prefix=", "/>
<text variable="issue" prefix="(" suffix=")"/>
</macro>
<macro name="pageField">
<text variable="page"/>
</macro>
<macro name="referenceDate">
<choose>
<if type="webpage">
<date variable="issued" prefix="(" suffix=")">
<date-part name="year"/>
<date-part name="month" form="numeric-leading-zeros" prefix="-"/>
<date-part name="day" form="numeric-leading-zeros" prefix="-"/>
</date>
<date variable="accessed" prefix="[" suffix="]">
<date-part name="year"/>
<date-part name="month" form="numeric-leading-zeros" prefix="-"/>
<date-part name="day" form="numeric-leading-zeros" prefix="-"/>
</date>
</if>
</choose>
</macro>
<macro name="access">
<choose>
<if variable="DOI">
<text variable="DOI" prefix="doi:"/>
</if>
<else-if variable="URL">
<text variable="URL"/>
</else-if>
</choose>
</macro>
<citation collapse="citation-number">
<sort>
<key variable="citation-number" sort="ascending"/>
</sort>
<layout vertical-align="sup" prefix="[" suffix="]" delimiter=",">
<text variable="citation-number"/>
</layout>
</citation>
<bibliography et-al-min="4" et-al-use-first="3" second-field-align="flush" entry-spacing="0">
<layout suffix=".">
<text variable="citation-number" prefix="[" suffix="]"/>
<text macro="author" suffix=". "/>
<text macro="titleField"/>
<text macro="secondaryAuthor" suffix=". "/>
<text variable="edition" prefix="第" suffix="版. "/>
<text macro="publisher"/>
<text macro="pageField" prefix=": "/>
<text macro="referenceDate"/>
<choose>
<if type="webpage" match="any">
<text macro="access" prefix=". "/>
</if>
</choose>
<text macro="recipient"/>
<text macro="interviewer"/>
<text macro="composer"/>
<text macro="original-author"/>
</layout>
</bibliography>
</style>