From c56fa21bd478f1b8d0de1f2e344b25ee92a7c47b Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 7 Dec 2014 20:28:08 -0500 Subject: Add notes example --- example/bibs/dominik2010org.bib | 7 +++ example/bibs/schulte2011active.bib | 11 +++++ example/bibs/schulte2012multi.bib | 12 ++++++ example/notes/another-topic.org | 4 ++ example/notes/org-mode-pubs.org | 87 ++++++++++++++++++++++++++++++++++++++ example/stage/dowloaded-file.txt | 1 + example/stage/downloaded.bib | 10 +++++ 7 files changed, 132 insertions(+) create mode 100644 example/bibs/dominik2010org.bib create mode 100644 example/bibs/schulte2011active.bib create mode 100644 example/bibs/schulte2012multi.bib create mode 100644 example/notes/another-topic.org create mode 100644 example/notes/org-mode-pubs.org create mode 100644 example/stage/dowloaded-file.txt create mode 100644 example/stage/downloaded.bib (limited to 'example') diff --git a/example/bibs/dominik2010org.bib b/example/bibs/dominik2010org.bib new file mode 100644 index 0000000..b1a3680 --- /dev/null +++ b/example/bibs/dominik2010org.bib @@ -0,0 +1,7 @@ +@book{dominik2010org, + author = {Dominik, Carsten}, + title = {The {O}rg Mode 7 Reference Manual - {O}Rganize Your + Life with {GNU} {E}Macs}, + publisher = {Network Theory Ltd.}, + year = 2010 +} diff --git a/example/bibs/schulte2011active.bib b/example/bibs/schulte2011active.bib new file mode 100644 index 0000000..33c2a32 --- /dev/null +++ b/example/bibs/schulte2011active.bib @@ -0,0 +1,11 @@ +@article{schulte2011active, + author = {Schulte, Eric and Davison, Dan}, + title = {Active Documents with {O}rg-mode}, + journal = {Computing in Science \& Engineering}, + year = 2011, + volume = 13, + number = 3, + pages = {66--73}, + publisher = {Institute of Electrical and Electronics Engineers, + Inc.,| y USA USA} +} diff --git a/example/bibs/schulte2012multi.bib b/example/bibs/schulte2012multi.bib new file mode 100644 index 0000000..b68b1f0 --- /dev/null +++ b/example/bibs/schulte2012multi.bib @@ -0,0 +1,12 @@ +@article{schulte2012multi, + author = {Schulte, Eric and Davison, Dan and Dye, Thomas and + Dominik, Carsten}, + title = {A Multi-language Computing Environment for Literate + Programming and Reproducible Research}, + journal = {Journal of Statistical Software}, + year = 2012, + volume = 46, + number = 3, + pages = {1--24}, + publisher = {American Statistical Association} +} diff --git a/example/notes/another-topic.org b/example/notes/another-topic.org new file mode 100644 index 0000000..5eea1d1 --- /dev/null +++ b/example/notes/another-topic.org @@ -0,0 +1,4 @@ + +* subtopic + +** name1990word diff --git a/example/notes/org-mode-pubs.org b/example/notes/org-mode-pubs.org new file mode 100644 index 0000000..9fb326b --- /dev/null +++ b/example/notes/org-mode-pubs.org @@ -0,0 +1,87 @@ +#+startup: showall + +Before you start, tell Bog where things are. + +#+begin_src emacs-lisp :results silent + (setq bog-notes-directory (expand-file-name "./") + bog-bib-directory (expand-file-name "../bibs") + bog-file-directory (expand-file-name "../citekey-files") + bog-stage-directory) (expand-file-name "../stage") +#+end_src + +Now start Bog with =M-x bog-mode= or + +#+begin_src emacs-lisp :results silent + (bog-mode 1) +#+end_src + +The rest of this file is an example of how notes can be structured. + +------------------------------------------------------------------------ + +* Books + +** dominik2010org + +The Org Mode 7 Reference Manual - Organize your life with GNU Emacs + +http://dl.acm.org/citation.cfm?id=1952135 + +The BibTeX files are stored in =bog-bib-directory=. You can open the +file for the current heading with =bog-find-citekey-bib= (=C-c " b=). + +* Reproducible research + +** hinsen2011data + +A data and code model for reproducible research and executable papers + +doi:10.1016/j.procs.2011.04.061 + +A new BibTeX file for this citekey has been downloaded to +=bog-stage-directory=. To prepare this file (and any other BibTeX +file in that directory), run =bog-clean-and-rename-staged-bibs=. + +The BibTeX mode settings below make the automatically generated +citekey match Bog's citekey format. + +#+begin_src emacs-lisp :results silent + (setq bibtex-autokey-year-length 4 + bibtex-autokey-titleword-length nil + bibtex-autokey-titlewords-stretch 0 + bibtex-autokey-titlewords 1 + bibtex-autokey-year-title-separator "") +#+end_src + +** TODO schulte2011active + +Active documents with Org-mode + +doi:10.1109/MCSE.2011.41 + +A file associated with this citekey has been downloaded to +=bog-stage-directory=. To associate that file with this heading, run +=bog-rename-staged-file-to-citekey= (=C-c " r=). + +That file is now stored in =bog-file-directory= and can be opened with +=bog-find-citekey-file= (=C-c " f=). + +** schulte2012multi + +A multi-language computing environment for literate programming and +reproducible research + +http://www.jstatsoft.org/v46/i03 + +After a title and URL (neither of which are necessary), there will +usually be notes about the paper. To refer to another study, just +insert the citekey name, such as dominik2010org. This is just normal +text, but many Bog commands treat it as special. Put your point on +dominik2010org, and run =bog-open-first-citekey-link= (=C-c " l=). + +Notes do not have to be limited to a single file. name1990word is a +study in another notes file. Place the point on name1990word and run +=bog-goto-citekey-heading-in-notes= (=C-c " H=) to jump to that +heading. + +Look at the other commands by pressing =C-c " C-h=. diff --git a/example/stage/dowloaded-file.txt b/example/stage/dowloaded-file.txt new file mode 100644 index 0000000..ae47923 --- /dev/null +++ b/example/stage/dowloaded-file.txt @@ -0,0 +1 @@ +This file would usually be an associated PDF. diff --git a/example/stage/downloaded.bib b/example/stage/downloaded.bib new file mode 100644 index 0000000..12c8400 --- /dev/null +++ b/example/stage/downloaded.bib @@ -0,0 +1,10 @@ +@article{hinsen2011data, + author = {Hinsen, Konrad}, + title = {A Data and Code Model for Reproducible Research and + Executable Papers}, + journal = {Procedia Computer Science}, + year = 2011, + volume = 4, + pages = {579--588}, + publisher = {Elsevier} +} -- cgit v1.2.3