Skip to content

Instantly share code, notes, and snippets.

@inukshuk
Created July 15, 2012 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inukshuk/3116886 to your computer and use it in GitHub Desktop.
Save inukshuk/3116886 to your computer and use it in GitHub Desktop.
CiteProc APA Style Example
<div class="csl-bib-body">
  <div class="csl-entry">Silva, G. M. H. da, Rademaker, A., Vasconcelos, D. R. de, Amaral, F. N. do, Martins, C. B., Costa, V., &#38; Haeusler, E. H. (2007). Dealing with the Formal Analysis of Information Security Policies through Ontologies: A Case Study. In <i>Third Australasian Ontology Workshop (AOW 2007)</i>. Sydney: Australian Computer Society.</div>
</div>
require 'rubygems'
require 'bibtex'
require 'citeproc'
citeproc = CiteProc::Processor.new do |p|
p.style = :apa
p.locale = 'pt-BR'
p.format = :html
end
citeproc.import BibTeX.open(DATA, :filter => :latex).to_citeproc
puts citeproc.bibliography.to_s
__END__
@InProceedings{publication-19a,
author = {Silva, Geiza Maria Hamazaki da
and Rademaker, Alexandre
and Vasconcelos, Davi Romero de
and Amaral, Fernando N{\'a}ufel do
and Martins, Carlos Baz{\'i}lio
and Costa, Vaston
and Haeusler, Edward Hermann},
title = {Dealing with the Formal Analysis of Information Security Policies through Ontologies: A Case Study},
booktitle = {Third Australasian Ontology Workshop (AOW 2007)},
year = {2007},
publisher = {Australian Computer Society},
address = {Sydney},
isbn = {9781920682668},
file = {:http://crpit.com/abstracts/CRPITV85daSilva.html:HTML}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment