Skip to content

Commit

Permalink
Updated citation info.
Browse files Browse the repository at this point in the history
  • Loading branch information
WillemSleegers committed Sep 4, 2020
1 parent 287ff87 commit e7d8dc7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![DOI](https://zenodo.org/badge/264169562.svg)](https://zenodo.org/badge/latestdoi/264169562)

# The statcheck Word add-in
# statcheck: a spellchecker for statistics in Microsoft Word
The statcheck Word add-in is a "spellchecker" for statistics. It allows you to
check your manuscript for statistical reporting inconsistencies as you write!

Expand Down
8 changes: 4 additions & 4 deletions www/cite.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
</p>

<blockquote>
Sleegers, W. W. A., & Nuijten, M. B. (2020). statcheck: a live spellchecker
for statistics in MS Word.
Sleegers, W. W. A., & Nuijten, M. B. (2020). statcheck: A spellchecker for statistics in Microsoft Word (0.1) [Computer software]. <a href="https://doi.org/10.5281/zenodo.4015187">https://doi.org/10.5281/zenodo.4015187</a>
</blockquote>

<p>
Expand All @@ -24,8 +23,9 @@
type="button">Cite full reference</button>

<p>
Click the button below to copy the BibTeX information to your
clipboard so you can add it to your preferred reference manager.
Click the button below to copy the
<a href="https://retorque.re/zotero-better-bibtex/">Better BibLaTeX</a>
information to your clipboard.
</p>

<button class="btn btn-default action-button cite_button" id="cite_bib"
Expand Down
19 changes: 7 additions & 12 deletions www/taskpane.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function cite_reference() {

var doc = context.document;
var originalRange = doc.getSelection();
originalRange.insertText("Sleegers, W.W.A. & Nuijten, M.B. (2020) statcheck for Word. Version 0.1. https://doi.org/blabla", "End");
originalRange.insertText("Sleegers, W. W. A., & Nuijten, M. B. (2020). statcheck: A spellchecker for statistics in Microsoft Word (0.1) [Computer software]. https://doi.org/10.5281/zenodo.4015187", "End");

return context.sync();
})
Expand All @@ -76,10 +76,12 @@ function cite_reference() {

function copy_bib() {
/* Get the text field */
var text = `@misc{sleegers2020,
title = {Statcheck for {{Word}}},
author = {Sleegers, Willem W. A. and Nuijten, Mich{\`e}le B.},
year = {2020}
var text = `@software{sleegers2020,
title = {Statcheck: {{A}} Spellchecker for Statistics in {{Microsoft Word}}},
author = {Sleegers, Willem W. A. and Nuijten, Michèle B.},
date = {2020},
url = {https://doi.org/10.5281/zenodo.4015187},
version = {0.1}
}`;
var textArea = document.createElement("textarea");

Expand Down Expand Up @@ -151,10 +153,3 @@ async function go_to_test(button) {
range.select();
});
}

function showSettings() {
console.log("Showing settings");
var settings = document.getElementById("settings-controls");

settings.classList.toggle("settings-active");
}

0 comments on commit e7d8dc7

Please sign in to comment.