LoginSignup
1
0

More than 5 years have passed since last update.

Amazon x node.jsで引用文献を管理する方法

Last updated at Posted at 2019-03-17

はじめに

citation-jsを使うと比較的かんたんにBibTex形式の引用文献が管理できる。

AmazonからBibTex生成できるウェブサービスと組み合わせると便利。
http://lead.to/amazon/jp/

インストール方法

install
$ sudo npm install --global citation-js

使い方

help
$ citation-js --help
Usage: citation-js [options]

Options:
  -V, --version                   output the version number
  -i, --input <path>              Input file. If all input options are omitted, it uses stdin
  -t, --text <string>             Input text. If all input options are omitted, it uses stdin
  -u, --url <string>              Deprecated in favor of -t, --text. If all input options are omitted, it uses stdin
  -o, --output <path>             Output file (omit file extension). If this option is omitted, the output is written to stdout
  --pipe                          Pipe and transform from stdin to stdout
  -R, --output-non-real           Output as a text file
  -f, --output-type <option>      Output structure type: string, html, json (default: "json")
  -s, --output-style <option>     Output scheme. A combination of --output-format json and --output-style citation-* is considered invalid. Options: csl (Citation Style Lanugage JSON), bibtex, citation-* (where * is any formatting style) (default: "csl")
  -l, --output-language <option>  Output language. [RFC 5646](https://tools.ietf.org/html/rfc5646) codes (default: "en-US")
  --log-level <level>             Log level: silent, error, warn, info, debug, http (default: "warn")
  -h, --help                      output usage information

使ってみる

bibtex入手

ためしに英語語義語源辞典のBibTexをGoogle Booksで入手。 -> 英語語義語源辞典

こんなんダウンロードできた。

英語語義語源辞典.bibtex
@book{2004英語語義語源辞典,
  title={英語語義語源辞典: },
  isbn={9784385106250},
  url={https://books.google.co.jp/books?id=JcaiPQAACAAJ},
  year={2004},
  publisher={三省堂}
}

bibtexを文字列変換

こんなんでてきた。

$ citation-js -i 英語語義語源辞典.bibtex -f string -s citation-vancouver
1. 英語語義語源辞典:  [Internet]. 三省堂; 2004. Available from: https://books.google.co.jp/books?id=JcaiPQAACAAJ

オプションの意味は以下の通り。

  • -i 英語語義語源辞典.bibtex 文献ファイル
  • -f string 出力形式
  • -s citation-vancouver 引用方式

引用方式

引用方式は以下の3つから選択できる。

バンクーバー方式

$ citation-js -i 英語語義語源辞典.bibtex -f string -s citation-vancouver
1. 英語語義語源辞典:  [Internet]. 三省堂; 2004. Available from: https://books.google.co.jp/books?id=JcaiPQAACAAJ

APA方式

$ citation-js -i 英語語義語源辞典.bibtex -f string -s citation-apa
英語語義語源辞典: . (2004). 三省堂. Retrieved from https://books.google.co.jp/books?id=JcaiPQAACAAJ

ハーバード方式

$ citation-js -i 英語語義語源辞典.bibtex -f string -s citation-harvard1
Anon, 2004. 英語語義語源辞典: , 三省堂. Available at: https://books.google.co.jp/books?id=JcaiPQAACAAJ.
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0