how to omit section numbers from theindex.html when publishing a project

2023-02-22 Thread Christopher W. Ryan
Well, my IT department did some major damage to my computer system, and
now the output of publishing a project (my only one) to html is
different. Specifically, the numbers next to each alphabetical letter in
theindex.html are shown, whereas before they were not. I can't recall if
this is some sort of setting that I changed once and now need to change
back. How can I prevent thos numbers from appearing in theindex.html,
but still have them appear in the main document for which theindex.html
is the index?

Emacs 26.2 on Windows 10 professional.

Relevant portion of .emacs:

;; Projects and publishing
;;
(setq org-publish-project-alist
  '(("CaseInvestigationTrainingAndReferenceManual"
 :base-directory
"E:/DATA/BCHD/CD/ChinaCoronavirus2019/CommCare/TrainRef/"
 :publishing-directory
"E:/DATA/BCHD/CD/ChinaCoronavirus2019/CommCare/TrainRef/StagingArea"
 :publishing-function org-html-publish-to-html
 :base-extension org
 :makeindex t)))

Thanks.

--Chris Ryan



how to get verbatim text with line breaks

2021-11-03 Thread Christopher W. Ryan
I have this in an org file

0,Mon [start_plus_0] at 03:00 PM
30,Mon [start_plus_0] at 03:30 PM
60,Mon [start_plus_0] at 04:00 PM
90,Mon [start_plus_0] at 04:30 PM
120,Mon [start_plus_0] at 05:00 PM

I want to export to ASCII text and have it look exactly like that, 5 lines.

Doing nothing, I get 3 lines

0,Mon [start_plus_0] at 03:00 PM 30,Mon [start_plus_0] at 03:30 PM
60,Mon [start_plus_0] at 04:00 PM 90,Mon [start_plus_0] at 04:30 PM
120,Mon [start_plus_0] at 05:00 PM


Trying various source and example blocks gets me partway there:


#+BEGIN_EXAMPLE
0,Mon [start_plus_0] at 03:00 PM
30,Mon [start_plus_0] at 03:30 PM
60,Mon [start_plus_0] at 04:00 PM
90,Mon [start_plus_0] at 04:30 PM
120,Mon [start_plus_0] at 05:00 PM
#+END_EXAMPLE

produces

,
| 0,Mon [start_plus_0] at 03:00 PM
| 30,Mon [start_plus_0] at 03:30 PM
| 60,Mon [start_plus_0] at 04:00 PM
| 90,Mon [start_plus_0] at 04:30 PM
| 120,Mon [start_plus_0] at 05:00 PM

5 lines, but I don't want the leading pipe characters, the comma, or the
4 hyphens


#+BEGIN_VERSE
0,Mon [start_plus_0] at 03:00 PM
30,Mon [start_plus_0] at 03:30 PM
60,Mon [start_plus_0] at 04:00 PM
90,Mon [start_plus_0] at 04:30 PM
120,Mon [start_plus_0] at 05:00 PM
#+END_VERSE

yields

  0,Mon [start_plus_0] at 03:00 PM
  30,Mon [start_plus_0] at 03:30 PM
  60,Mon [start_plus_0] at 04:00 PM
  90,Mon [start_plus_0] at 04:30 PM
  120,Mon [start_plus_0] at 05:00 PM

5 lines, but with undesired indentation


Nor does #+BEGIN_VERBATIM  or #+BEGIN_SRC text   give me what I am
looking for.

Grateful for suggestions.

Thanks

--Chris Ryan




Re: publishing: no default publishing function, or symbol is not defined

2021-06-22 Thread Christopher W. Ryan
Juan Manuel--

Thanks. I understand no pages in a web document; I thought (hoped?) that
section/subsection numbers, perhaps multiple, would appear next to the
entries in the index.  I will try to be more specific with the ! syntax

Any advice for how to get *both* theindex.html and my main document in
html? So far I can only get one or the other, depending on whether I
include a non-nil value for a :makeindex option.

Thanks.

--Chris

Juan Manuel Macías wrote:
> Hi Christopher,
> 
> Christopher W. Ryan" via "General discussions about Org-mode. writes:
> 
>> I would expect each named entry in an index to appear once, with, if
>> necessary, multiple links next to it for all the places that index tag
>> occurs in the main document. At least, that's how the indices in books
>> work.  Can the same be done in org mode?
> 
> I'm afraid that in HTML that is not possible. Page numbers are used in
> books to refer to an index entry, but on a web site we don't have page
> numbers: Where would we apply the links? What I usually do with my web
> index is: use first-level entries for the general concept and second or
> third level entries for concepts more concrete.
> 
> P.ej:
> 
> In document A:
> 
> #+INDEX: GNU Emacs!external packages!projectile
> 
> In document B:
> 
> #+INDEX: GNU Emacs!external packages!helm
> 
> Links to document A and B go to projectile and Helm
> 
> Anyway, I think in this scenario it's better to use tags, but
> org-publish doesn't provide tags out of the box. You need to do some
> elisp hacking to get something like blog tags in your web site.
> 
> Best regards,
> 
> Juan Manuel 
> 



Re: [External Email] Re: publishing: no default publishing function, or symbol is not defined

2021-06-19 Thread Christopher W. Ryan
Oops, spoke to soon about the structure of the index.  Here is a section
of theindex.html

I
Incarceration
Incarceration
Interview
Interview
Interview
Interview
Interview
Isolation
Isolation
Isolation

I would expect each named entry in an index to appear once, with, if
necessary, multiple links next to it for all the places that index tag
occurs in the main document. At least, that's how the indices in books
work.  Can the same be done in org mode?

Thanks.

--Chris


Juan Manuel Macías wrote:
> Hi Christopher,
> 
> Christopher W. Ryan" via "General discussions about Org-mode. writes:
> 
>> I'm making my first foray into publishing a project. I'm running GNU
>> Emacs 26.2 (build 1, x86_64-w64-mingw32) of 2019-04-13, on Windows 10.
>>
>> I've defined a single project, just to try it out and learn.
> 
> As Christian Moe said, the function you need is
> `org-html-publish-to-html'.
> 
> In case it helps, I keep this blog about typography and TeX (in spanish),
> made with org-publish: https://lunotipia.juanmanuelmacias.com/index.html
> 
> The blog's public repository is at:
> https://gitlab.com/maciaschain/lunotipia
> 
> And this is the org-publish configuration for the blog:
> 
> ;; lunotipia
> ("lunotipia-notes"
>  ;; Org files
>  :base-directory "~/Git/lunotipia/org/"
>  :base-extension "org"
>  ;; HTML files
>  :publishing-directory "~/Git/lunotipia/public/"
>  :publishing-function org-html-publish-to-html
>  :recursive t
>  :auto-sitemap t
>  :sitemap-title "Textos publicados"
>  :sitemap-function my-sitemap-function-lunotipia
>  :sitemap-filename "entradas.org"
>  :sitemap-style list
>  :sitemap-sort-files anti-chronologically
>  :exclude "org-rss\\|theindex\\|acerca-de\.org"
>  :makeindex t
>  :html-postamble mi-postamble)
> 
> ;; static files
> ("lunotipia-static"
>  :base-directory "~/Git/lunotipia/org/images/"
>  :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
>  :publishing-directory "~/Git/lunotipia/public/images/"
>  :recursive t
>  :publishing-function org-publish-attachment)
> 
> And my custom sitemap function:
> 
> (defun my-sitemap-function-lunotipia (title list)
>   "Return sitemap using TITLE and LIST returned by 
> `org-blog-sitemap-format-entry'."
>   (concat "#+TITLE: " title "\n\n"
> "#+SETUPFILE:" "~/Git/lunotipia/html-lunotipia.setup"
> "\n#+SETUPFILE:" "~/Git/gnutas/macros-gnutas.setup"
> "\n#+AUTHOR:" "Juan Manuel Macías"
> "\n#+LANGUAGE:" "es"
> "\n#+begin_archive\n"
> (mapconcat (lambda (li)
>  (format "@@html:@@ %s @@html:@@" (car li)))
>(seq-filter #'car (cdr list))
>"\n")
> "\n#+end_archive\n"
> "\n#+begin_export html"
> "\n"
> "\n"
> "\n"
> "\nAcerca de..."
> "\n"
> "\n"
> "\n href=\"https://maciaschain.gitlab.io/lunotipia/rss.xml\;>RSS"
> "\n"
> "\n#+end_export\n"))
> 
> Best regards,
> 
> Juan Manuel 
> 



Re: publishing: no default publishing function, or symbol is not defined

2021-06-19 Thread Christopher W. Ryan
Ah, I see I wrote the :publishing-function statement incorrectly. Thanks
to both of you.

But is there not a default publishing action, that requires no explicit
:publishing-function statement? This part of the documentation says
there is:

https://orgmode.org/manual/Publishing-action.html#Publishing-action


But I gave this a try:

(setq org-publish-project-alist
  '(("CaseInvestigationTrainingAndReferenceManual"
 :base-directory
"E:/DATA/BCHD/CD/ChinaCoronavirus2019/CommCare/Sandbox/"
 :publishing-directory
"E:/DATA/BCHD/CD/ChinaCoronavirus2019/CommCare/Sandbox/StagingArea"
 :publishing-function org-html-publish-to-html)))

and I got the expected output in the expected place: a file called
"E:/DATA/BCHD/CD/ChinaCoronavirus2019/CommCare/Sandbox/StagingArea/WorkAreaForIndexingTrainingAndReferenceManual-7-June.html


However, when I add this line:
 :makeindex 1

so with a non-null value of :makeindex

The output consists *only* of the index: a file called theindex.html.
It looks like the expected index to the document, but the document
itself is not generated. How do I get both?

Thanks.

--Chris



Juan Manuel Macías wrote:
> Hi Christopher,
> 
> Christopher W. Ryan" via "General discussions about Org-mode. writes:
> 
>> I'm making my first foray into publishing a project. I'm running GNU
>> Emacs 26.2 (build 1, x86_64-w64-mingw32) of 2019-04-13, on Windows 10.
>>
>> I've defined a single project, just to try it out and learn.
> 
> As Christian Moe said, the function you need is
> `org-html-publish-to-html'.
> 
> In case it helps, I keep this blog about typography and TeX (in spanish),
> made with org-publish: https://lunotipia.juanmanuelmacias.com/index.html
> 
> The blog's public repository is at:
> https://gitlab.com/maciaschain/lunotipia
> 
> And this is the org-publish configuration for the blog:
> 
> ;; lunotipia
> ("lunotipia-notes"
>  ;; Org files
>  :base-directory "~/Git/lunotipia/org/"
>  :base-extension "org"
>  ;; HTML files
>  :publishing-directory "~/Git/lunotipia/public/"
>  :publishing-function org-html-publish-to-html
>  :recursive t
>  :auto-sitemap t
>  :sitemap-title "Textos publicados"
>  :sitemap-function my-sitemap-function-lunotipia
>  :sitemap-filename "entradas.org"
>  :sitemap-style list
>  :sitemap-sort-files anti-chronologically
>  :exclude "org-rss\\|theindex\\|acerca-de\.org"
>  :makeindex t
>  :html-postamble mi-postamble)
> 
> ;; static files
> ("lunotipia-static"
>  :base-directory "~/Git/lunotipia/org/images/"
>  :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
>  :publishing-directory "~/Git/lunotipia/public/images/"
>  :recursive t
>  :publishing-function org-publish-attachment)
> 
> And my custom sitemap function:
> 
> (defun my-sitemap-function-lunotipia (title list)
>   "Return sitemap using TITLE and LIST returned by 
> `org-blog-sitemap-format-entry'."
>   (concat "#+TITLE: " title "\n\n"
> "#+SETUPFILE:" "~/Git/lunotipia/html-lunotipia.setup"
> "\n#+SETUPFILE:" "~/Git/gnutas/macros-gnutas.setup"
> "\n#+AUTHOR:" "Juan Manuel Macías"
> "\n#+LANGUAGE:" "es"
> "\n#+begin_archive\n"
> (mapconcat (lambda (li)
>  (format "@@html:@@ %s @@html:@@" (car li)))
>(seq-filter #'car (cdr list))
>"\n")
> "\n#+end_archive\n"
> "\n#+begin_export html"
> "\n"
> "\n"
> "\n"
> "\nAcerca de..."
> "\n"
> "\n"
> "\n href=\"https://maciaschain.gitlab.io/lunotipia/rss.xml\;>RSS"
> "\n"
> "\n#+end_export\n"))
> 
> Best regards,
> 
> Juan Manuel 
> 



publishing: no default publishing function, or symbol is not defined

2021-06-18 Thread Christopher W. Ryan
I'm making my first foray into publishing a project. I'm running GNU
Emacs 26.2 (build 1, x86_64-w64-mingw32) of 2019-04-13, on Windows 10.

I've defined a single project, just to try it out and learn.  Here is
the relevant portion of my .emacs file


;; Projects and publishing
;;
(setq org-publish-project-alist
  '(("CaseInvestigationTrainingAndReferenceManual"
 :base-directory
"E:/DATA/BCHD/CD/ChinaCoronavirus2019/CommCare/Sandbox/"
 :publishing-directory
"E:/DATA/BCHD/CD/ChinaCoronavirus2019/CommCare/Sandbox/StagingArea")))


There is one org file in /Sandbox,  called
WorkAreaForIndexingTrainingAndReferenceManual-7-June.org

(as the filename suggests, I'm mostly interested in learning how to make
an index).

If I execute C-c C-e P a  whilie in the org file I am trying to publish,
I get an error message that there is "No publishing function chosen".  I
thought org-publish-org-to-html was the default, as described here:

https://www.gnu.org/software/emacs/manual/html_node/org/Publishing-action.html

But if I modify the relevant section of my .emacs file like this,
specifying a publishing action:

;; Projects and publishing
;;
(setq org-publish-project-alist
  '(("CaseInvestigationTrainingAndReferenceManual"
 :base-directory
"E:/DATA/BCHD/CD/ChinaCoronavirus2019/CommCare/Sandbox/"
 :publishing-directory
"E:/DATA/BCHD/CD/ChinaCoronavirus2019/CommCare/Sandbox/StagingArea"
 :publishing-function org-publish-org-to-html)))

and try again, I get an error message that I can't figure out: "Symbol’s
function definition is void: org-publish-org-to-html"

Grateful for any guidance.

Thanks.

--Chris Ryan



how to create next, previous, and up navigation links when exporting to html

2020-08-30 Thread Christopher W. Ryan
how do I create next, previous, and up navigation links when exporting
to html, like in the org mode manual:

https://orgmode.org/manual/HTML-specific-export-settings.html

Thanks.

--Chris Ryan



Re: [O] how do I search state change dates?

2019-01-12 Thread Christopher W. Ryan
This looks promising. However, the example at the link you referenced
seems to have its state changes inside a LOGBOOK property drawer. My
state changes are not inside a drawer. See excerpt below.  To change the
state, say from TODO to READING, I use C-c C-t and then can choose one
of my pre-specified states.  Should I put my state changes in a LOGBOOK
drawer? If so, how does that work?

** DONE Responsible Men  :fiction:BUlibrary:
   - State "DONE"   from "READING"[2018-11-18 Sun 23:17]
   - State "READING"from "TODO"   [2018-11-04 Sun 23:17]
   :PROPERTIES:
   :AUTHORLNAME: Schwarzschild
   :AUTHORFNAME: Edward
   :ISBN: 156512409X
   :END:

Thanks.

--Chris Ryan

Michael Welle wrote:
> Hello,
> 
> "Christopher W. Ryan"  writes:
> 
>> I try to keep track of books I want to read, and when I eventually read
>> them.  I use TODO keyword for books I intend to read, and I change the
>> state to READING and then DONE, as appropriate. Each state change gets a
>> date/time stamp.
> at [0] you will find a bit of code (org-task-dump-logs.el) that
> retrieves all the log data for a given task. Maybe that is helpful if
> you extend it with a loop that iterates over all tasks of a file.
> 
> Regards
> hmw
> 
> [0] https://www.c0t0d0s0.de/otdl/otdl.html
> 



[O] how do I search state change dates?

2019-01-01 Thread Christopher W. Ryan
I try to keep track of books I want to read, and when I eventually read
them.  I use TODO keyword for books I intend to read, and I change the
state to READING and then DONE, as appropriate. Each state change gets a
date/time stamp.

My preamble is:

#+TODO: TODO(t!) READING(r!) POSTPONED(p!) RESTARTED(s!) | DONE(d!)
NA(n!) ABANDONED(a!)


An entry for a book not yet read might look like this:

** TODO America: the Farewell Tour
   :PROPERTIES:
   :AUTHORLNAME: Hedges
   :AUTHORFNAME: Chris
   :ISBN: 9781501152672
   :DATEADDED: <2018-10-10 Wed>
   :END:

An entry for a book I've read might look like this:

** DONE Northland
   - State "DONE"   from "READING"[2018-10-21 Sun 22:45]
   - State "READING"from "TODO"   [2018-10-08 Mon 22:09]
   :PROPERTIES:
   :AUTHORLNAME: Fox
   :AUTHORFNAME: Porter
   :ISBN: 9780393248852
   :DATEADDED: <2018-10-07 Sun>
   :END:


How can I retrieve all the entries for the books I've read in 2018? In
other words, all those that changed state to DONE in 2018?

Thanks.

--Chris Ryan



[O] do you need a separate LaTeX installation to export org mode files to pdf?

2018-01-22 Thread Christopher W Ryan
I'm a longtime LaTeX user and a more recent org mode user. So I've always
had LaTeX installed on any computer on which I was using org mode. I'd like
to introduce org mode to a co-worker unfamiliar with the whole concept of
plain text files, markup, and literate programming, etc.  Would they need
to install LaTeX too, or is org mode self-contained and able to export to
pdf without LaTeX an friends installed?

Thanks.

--Chris Ryan


Re: [O] can I export all PROPERTIES to my ascii output?

2017-03-29 Thread Christopher W. Ryan
Thank Nicolas, but what exactly do you mean by "see"
org-export-properties?  I use org-mode a little, but I have to admit I
have never really looked under the hood and played around with variables
much.

--Chris

Nicolas Goaziou wrote:
> Hello,
> 
> Christopher W Ryan <cr...@binghamton.edu> writes:
> 
>> I'd like to make all the PROPERTIES show up in ascii output when I export.
>> How can I do that?
>>
>> #+OPTIONS: properties:t
>>
>>  does not export properties. Neither does:
>>
>> #+OPTIONS: with-properties:t
> 
> See `org-export-with-properties'. Also, you could try M-x org-lint on
> your document.
> 
> Regards,
> 



[O] can I export all PROPERTIES to my ascii output?

2017-03-28 Thread Christopher W Ryan
I'd like to make all the PROPERTIES show up in ascii output when I export.
How can I do that?

#+OPTIONS: properties:t

 does not export properties.  Neither does:

#+OPTIONS: with-properties:t

Thanks.

--Chris Ryan


[O] is there a way to make line numbers appear in ASCII output?

2016-10-05 Thread Christopher W. Ryan
I'm exporting part of my org-mode document as plain text.  Is there a 
way to produce sequential line numbers in the output?


Thanks.

--Chris Ryan



[O] problems with beamer under the new exporter: no theme; unable to specify heading level; slides fill from bottom up

2015-07-26 Thread Christopher W. Ryan
Using org-mode 8.2.4-1 on Linux Mint.

Below is a minimal working example of my problem. The trouble is that
the Berlin theme is not applied--it remains the default theme.

Also, the first slide (after the title slide) seems to fill from the
bottom up rather than from the top down. That is, there is a big gap
between the word Chemistry and the phrase Malodorous reduced sulfur
compounds.

Lastly, the H:n option seems to have no effect, regardless of whether
n=1, 2, or 3.

Appreciate any advice.  Thanks.

--Chris Ryan

* Effects of n-butyl mercaptan on human health
  :PROPERTIES:
  :EXPORT_LaTeX_CLASS: beamer
  :EXPORT_LaTeX_CLASS_OPTIONS: [presentation]
  :EXPORT_FILE_NAME: HumanHealthEffectsButylMercaptan.pdf
  :COLUMNS:  %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act)
%4BEAMER_col(Col) %8BEAMER_opt(Opt)
  :BEAMER_col_ALL: 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 :ETC
  :EXPORT_AUTHOR: Christopher W. Ryan, MD, MS
  :EXPORT_BEAMER_OPTIONS: H:2
  :EXPORT_BEAMER_THEME: Berlin
  :END:

** Chemistry

- Malodorous reduced sulfur compounds

- Mercaptans

- methyl mercaptan
- n-butyl mercaptan
- ter-butyl mercaptan

- Hydrogen sulfide



Re: [O] Efficiency of Org v. LaTeX v. Word

2014-12-26 Thread Christopher W. Ryan
This seems like more of a typing contest than anything else. Reproducing
a single page of an already-typeset document is not what LaTeX is
designed for, nor is it what scientists do for a living. The test
selections were absurdly short relative to the typical scientic
manuscript. Long and complex documents are where LaTeX excels. And this
did not call upon some of the most important (IMHO) capabilities of
LaTeX: managing citations with BibTex; changing the style to suit
different journals; storing, revisiting, and reusing your document years
later.

--Chris Ryan

Ken Mankoff wrote:
 
 People here might be interested in a publication from [2014-12-19 Fri]
 available at http://dx.doi.org/10.1371/journal.pone.0115069
 
 Title: An Efficiency Comparison of Document Preparation Systems Used
 in Academic Research and Development
 
 Summary: Word users are more efficient and have less errors than even
 experienced LaTeX users.
 
 Someone here should repeat experiment and add Org into the mix, perhaps
 Org - ODT and/or Org - LaTeX and see if it helps or hurts. I assume
 Org would trump LaTeX, but would Org - ODT or Org - X - DOCX (via
 pandoc) beat straight Word?
 
   -k.
 
 



[O] latex packages savetrees is persisting in my org-mode exporter

2013-12-20 Thread Christopher W. Ryan
I had been running Org mode version 7.9.3f, but I needed a feature only
available in version 8, so I upgraded, by downloading from the Org
website, and using comment characters in my .emacs file, like this:

;; Load org-mode
; (add-to-list 'load-path c:/Org/org-7.9.3f/lisp)
; (add-to-list 'load-path c:/Org/org-7.9.3f/contrib/lisp)
(add-to-list 'load-path c:/Org/org-8.2.4/lisp)
(add-to-list 'load-path c:/Org/org-8.2.4/contrib/lisp)
(require 'org)

Then I used it a few times to export a subtree from an org file,
exporting to pdf, using a latex package called savetrees.  I put this in
the subtree I was exporting:

** Review of assessment system, including instructions for bubble sheet
:PROPERTIES:
:EXPORT_FILE_NAME: ReviewAssessmentSystemWithPreceptors-12-02-2013
:EXPORT_TITLE: Review of our system for assessing student's clinical
performance
:EXPORT_LATEX_OPTIONS: \usepackage{enumitem}
:END:
#+latex_header: \usepackage{savetrees}

Now some features I need don't work--specifically, features from here:

http://orgmode.org/worg/org-tutorials/org-meeting-tasks.html

So I went back to Og 7.9.3f, or at least I thought I did, by changing my
.emacs to this:

;; Load org-mode
(add-to-list 'load-path c:/Org/org-7.9.3f/lisp)
(add-to-list 'load-path c:/Org/org-7.9.3f/contrib/lisp)
; (add-to-list 'load-path c:/Org/org-8.2.4/lisp)
; (add-to-list 'load-path c:/Org/org-8.2.4/contrib/lisp)
(require 'org)

But now every time I export a different subtree of that same org file, a
subtree that does not contain any mention of savetrees, to pdf, the
savetrees package is still loaded and used.  How do I stop it?

Thanks.

--Chris
-- 
Christopher W. Ryan, MD, MS
SUNY Upstate Medical University Clinical Campus at Binghamton
425 Robinson Street, Binghamton, NY  13904
cryanatbinghamtondotedu

Once we recognize that we do not err out of laziness, stupidity, or
evil intent, we can liberate ourselves from the impossible burden of
trying to be permanently right. We can take seriously the proposition
that we could be in error, without deeming ourselves idiotic or
unworthy. [Karen Schulz, in Being Wrong: Adventures in the Margin of Error]




Re: [O] latex packages savetrees is persisting in my org-mode exporter

2013-12-20 Thread Christopher W. Ryan
Thanks!
Very interesting. I would not have thought of that. Especially since the
offending line of code appears in the org file after the subtree I am
trying to export.

Is there a better way to say
#+latex_header: \usepackage{savetrees}

in either org 7.9.3f or org 8.2.4?

Like using EXPORT_LATEX_OPTIONS  under PROPERTIES, or something like that?

--Chris

Christopher W. Ryan, MD, MS
SUNY Upstate Medical University Clinical Campus at Binghamton
425 Robinson Street, Binghamton, NY  13904
cryanatbinghamtondotedu

Once we recognize that we do not err out of laziness, stupidity, or
evil intent, we can liberate ourselves from the impossible burden of
trying to be permanently right. We can take seriously the proposition
that we could be in error, without deeming ourselves idiotic or
unworthy. [Karen Schulz, in Being Wrong: Adventures in the Margin of Error]


Nick Dokos wrote:
 Christopher W. Ryan cr...@binghamton.edu writes:
 
 ...
 #+latex_header: \usepackage{savetrees}

 ...

 But now every time I export a different subtree of that same org file, a
 subtree that does not contain any mention of savetrees, to pdf, the
 savetrees package is still loaded and used.  How do I stop it?

 
 Delete the #+latex_header line from the file: just because you placed it
 in a subtree does not make it subtree-local in scope.
 
 Nick
 
 



Re: [O] how to adjust vertical spacing between lines in a simple list, pdflatex export

2013-12-09 Thread Christopher W. Ryan
Thanks, but I'm still having trouble.

If the beginning of my org subtree looks like this:

** Review of assessment system for preceptors
:PROPERTIES:
:EXPORT_FILE_NAME: ReviewOfAssessmentSystemForPreceptors-12-02-2013
:EXPORT_TITLE: Review of our system for assessing students' clinical
performance
:EXPORT_AUTHOR: Christopher w. Ryan, MD MS
:EXPORT_EMAIL: cr...@binghamton.edu
:EXPORT_LATEX_HEADER: \usepackage{enumitem}
:END:

*** Introduction

Then I get a Latex preamble looks like this:

% Created 2013-12-09 Mon 15:02
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\usepackage[margin=0.75in]{geometry}
\usepackage{charter}
\usepackage{pdfpages}
\usepackage{charter}
\usepackage{pdfpages}
\providecommand{\alert}[1]{\textbf{#1}}

\title{Review of our system for assessing students' clinical performance}
\author{Christopher w. Ryan, MD MS}
\date{\today}
\hypersetup{
  pdfkeywords={},
  pdfsubject={},
  pdfcreator={Emacs Org-mode version 7.9.3f}}

The enumitem package is not loaded. Also, I'm puzzled by the appearance
of \usepackage{charter} twice, when I did not even call it once in the
org subtree.


If, on the other hand, my org subtree looks like this:

** Review of assessment system for preceptors
:PROPERTIES:
:EXPORT_FILE_NAME: ReviewOfAssessmentSystemForPreceptors-12-02-2013
:EXPORT_TITLE: Review of our system for assessing students' clinical
performance
:EXPORT_AUTHOR: Christopher w. Ryan, MD MS
:EXPORT_EMAIL: cr...@binghamton.edu
:END:
#+LATEX_HEADER: \usepackage{enumitem}

Then my Latex preamble looks like this:

% Created 2013-12-09 Mon 15:07
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\usepackage[margin=0.75in]{geometry}
\usepackage{enumitem}
\usepackage{charter}
\usepackage{pdfpages}
\usepackage{charter}
\usepackage{pdfpages}
\providecommand{\alert}[1]{\textbf{#1}}

\title{Review of our system for assessing students' clinical performance}
\author{Christopher w. Ryan, MD MS}
\date{\today}
\hypersetup{
  pdfkeywords={},
  pdfsubject={},
  pdfcreator={Emacs Org-mode version 7.9.3f}}


Note that enumitem is indeed loaded. But including

#+ATTR_LATEX: :options itemsep=1pt

before a simple list in my org-mode subtree does not change the vertical
spacing between list items at all.

And a relevant exerpt from my .tex exported file is

\begin{itemize}
\item Don't fill out a form that the student has signed, blank, ahead of
time
\item Don't fill out a second form after you have already submitted one
\item Don't mention any suggested grade for the clerkship. Performance
in your office counts for half the final grade; the other half is based
on other activities
\end{itemize}

Note no [itemsep= ] option.

--Chris


Christopher W. Ryan, MD, MS
SUNY Upstate Medical University Clinical Campus at Binghamton
425 Robinson Street, Binghamton, NY  13904
cryanatbinghamtondotedu

Once we recognize that we do not err out of laziness, stupidity, or
evil intent, we can liberate ourselves from the impossible burden of
trying to be permanently right. We can take seriously the proposition
that we could be in error, without deeming ourselves idiotic or
unworthy. [Karen Schulz, in Being Wrong: Adventures in the Margin of Error]


Thomas S. Dye wrote:
 #+ATTR_LATEX: :options itemsep=1pt



[O] how to adjust vertical spacing between lines in a simple list, pdflatex export

2013-12-05 Thread Christopher W. Ryan
In LaTeX, I would typically use the enumitem package, and then start an
itemized list with

\begin{itemize}[itemsep=  ]

where itemsep could equal whatever spacing I wanted.

How do I change the inter-item vertical spacing (specifically, decrease
it) in org-mode with pdflatex export?

Thanks.

--Chris Ryan



[O] useing :PROPERTIES: to set export options for pdflatex

2013-11-27 Thread Christopher W. Ryan
Below is what I have in a subtree that I export to pdf.  It does what I
want. But isn't there a way to do it entirely with setting tree
PROPERTIES? (without use of #+LATEX_HEADER or #+OPTIONS)  I seem to
recall there is, but for the life of me I can't find the link to the
documentation I thought I had saved.

Thanks.


** Changes adopted at CSE committee meeting [2013-11-25 Mon]
:PROPERTIES:
:EXPORT_FILE_NAME: ThomasWileyCloseOf-11-25-2013
:EXPORT_TITLE: Thomas Wiley as Adopted by CSE Committee 25 November 2013
:END:
#+LATEX_HEADER: \usepackage[margin=1in]{geometry}
#+OPTIONS: toc:nil



--Chris
-- 
Christopher W. Ryan, MD, MS
SUNY Upstate Medical University Clinical Campus at Binghamton
425 Robinson Street, Binghamton, NY  13904
cryanatbinghamtondotedu




[O] managing articles in my personal library, and their citational material, using org mode instead of bibtex

2013-11-18 Thread Christopher W. Ryan
Not sure citational is even a word, but hopefully it conveys my meaning!

I've been using LaTeX for academic writing and reading for quite some
time, with emacs as my editor. I'm pretty familiar with managing a .bib
file containing all the references I've collected, and using it in LaTeX
\cite commands.

I've come to org-mode more recently. I'm trying to imagine how I might
use it to manage my personal library. I have a directory full of pdf
files, each a downloaded article. Some articles I reference in papers I
write; others I just read and want to keep.  I also have a .bib file
where I put the citational material for all those articles. Whenever I
download an article, I add its entry to my .bib file. I tend to manage
this with JabRef because it searches Medline so easily, but I also will
edit the .bib file directly when necessary.

I like the idea of an org file containing the citational information
(authors, title, journal, etc)  *plus* links to the pdfs on my hard
drive, or on the internet. I could also include my notes about the
articles. But what would that org file look like? How do I insert a
reference to an article into the org file which contains the article I
am writing?

I'd be grateful for any explanations, or links to tutorials.

Thanks.

--Chris Ryan
SUNY Upstate Medical University
Binghamton, NY



Re: [O] trouble exporting just one subtree while using babel and R code blocks--spoke too soon

2013-03-11 Thread Christopher W. Ryan
)
)

;; show all todos in the current buffer with one key press
(global-set-key (kbd f9) (lambda ()
   (interactive)
   (org-agenda nil t 'file)))

;; activate inline tasks
(require 'org-inlinetask)

;; override out-of-the-box ESS setting that makes
;; texi2pdf the default latex command
(setq ess-swv-pdflatex-commands '(pdflatex make))
(put 'narrow-to-region 'disabled nil)

;;
;; vv  custom code to make workflow for meeting minutes, agendas,
and action items 
;; as in
;; http://orgmode.org/worg/org-tutorials/org-meeting-tasks.html
;;

(defcustom org-mactions-numbered-action-format TODO Action #%d 
  Default structure of the headling of a new action.
%d will become the number of the action.
  :group 'org-edit-structure
  :type 'string)

(defcustom org-mactions-change-id-on-copy t
  Non-nil means make new IDs in copied actions.
If an action copied with the command `org-mactions-collect-todos-in-subtree'
contains an ID, that ID will be replaced with a new one.
  :group 'org-edit-structure
  :type 'string)

(defun org-mactions-new-numbered-action (optional inline)
  Insert a new numbered action, using
`org-mactions-numbered-action-format'.
With prefix argument, insert an inline task.
  (interactive P)
  (let* ((num (let ((re \\`#\\([0-9]+\\)\\'))
(1+ (apply 'max 0
   (mapcar
(lambda (e)
  (if (string-match re (car e))
  (string-to-number (match-string 1 (car
e)))
0))
(org-get-buffer-tags))
 (tag (concat # (number-to-string num
(if inline
(org-inlinetask-insert-task)
  (org-insert-heading 'force))
(unless (eql (char-before) ?\ ) (insert  ))
(insert (format org-mactions-numbered-action-format num))
(org-toggle-tag tag 'on)
(if (= (point-max) (point-at-bol))
(save-excursion (goto-char (point-at-eol)) (insert \n)))
(unless (eql (char-before) ?\ ) (insert  

(defun org-mactions-collect-todos-in-subtree ()
  Collect all TODO items in the current subtree into a flat list.
  (interactive)
  (let ((buf (get-buffer-create Org TODO Collect))
(cnt 0) beg end string s)
(with-current-buffer buf (erase-buffer) (org-mode))
(org-map-entries
 (lambda ()
   (setq beg (point) end (org-end-of-subtree t t) cnt (1+ cnt)
 string (buffer-substring beg end)
 s 0)
   (when org-mactions-change-id-on-copy
 (while (string-match ^\\([ \t]*:ID:\\)[ \t\n]+\\([^ \t\n]+\\)[
\t]*$
  string s)
   (setq s (match-end 1)
 string (replace-match (concat \\1 
   (save-match-data
(org-id-new)))
   t nil string
   (with-current-buffer buf (org-paste-subtree 1 string)
(goto-char (point-max
 (format TODO={%s} (regexp-opt org-not-done-keywords))
 'tree)
(if (= cnt 0)
(message No TODO items in subtree)
  (message %d TODO entries copied to kill ring cnt)
  (prog1 (with-current-buffer buf
   (kill-new (buffer-string)))
(kill-buffer buf)
;;
;;
;;
;;
;; ^^^ end of custom code for workflow for meeting minutes, etc 



Christopher W. Ryan, MD, MS
SUNY Upstate Medical University Clinical Campus at Binghamton
425 Robinson Street, Binghamton, NY  13904
cryanatbinghamtondotedu

Once we recognize that we do not err out of laziness, stupidity, or
evil intent, we can liberate ourselves from the impossible burden of
trying to be permanently right. We can take seriously the proposition
that we could be in error, without deeming ourselves idiotic or
unworthy. [Karen Schulz, in Being Wrong: Adventures in the Margin of Error]


Eric S Fraga wrote:
 Christopher W Ryan cr...@binghamton.edu writes:
 
 I have to admit I'm not yet experienced enough with org mode to know
 about the new exporter versus the old. I've been trying to ignore the
 conversations on the list about the new exporter, since, at least
 until now, whatever org mode was doing was what I needed it to do.

 I have org mode 7.9.3f. Does that mean I am using any particular
 exporter?  How do I tell which exporter I am using with C-c C-e d ?
 
 I believe that, if you are using 7.9.3f, you should be using the new
 exporter.  However, the key bindings you mentioned in the previous
 posting indicated that you were accessing the old exporter.  This may
 mean that you have a confused configuration (easy to do at the moment
 due to the transition taking place between old and new exporters).
 
 One way to find out what you are using is to check what C-c C-e is bound
 to: C-h c C-c C-e.  If this says org-export

Re: [O] trouble exporting just one subtree while using babel and R code blocks--spoke too soon

2013-03-07 Thread Christopher W Ryan
I have to admit I'm not yet experienced enough with org mode to know
about the new exporter versus the old. I've been trying to ignore the
conversations on the list about the new exporter, since, at least
until now, whatever org mode was doing was what I needed it to do.

I have org mode 7.9.3f. Does that mean I am using any particular
exporter?  How do I tell which exporter I am using with C-c C-e d ?

I will try  C-c C-e C-s l o with my little test file next time I am on
the Windows system where I am having the problem.

Thanks.

--Chris

On Thu, Mar 7, 2013 at 3:42 AM, Eric S Fraga e.fr...@ucl.ac.uk wrote:
 Christopher W. Ryan cr...@binghamton.edu writes:

 Well, with the little test file I initially posted, things worked OK
 with org version 7.9.3f.  But things are bit more complicated:

 [...]

 Put cursor on
 * Hello
 above and then C-c C-e 1 d

 Are you sure you are using the new exporter?  This binding doesn't work
 for me but did work for the old exporter.  The equivalent in the new
 exporter would be C-c C-e C-s l o, I believe.  Your configuration must
 be mixing up old and new exporters and, believe me, you're not the only
 one in this situation.


 --
 : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
 : in Emacs 24.3.50.1 and Org release_7.9.3f-1199-g3a0e55




Re: [O] trouble exporting just one subtree while using babel and R code blocks--spoke too soon

2013-03-07 Thread Christopher W Ryan
Thanks John.  I will post the babel-related part of my .emacs when I
am back at the office, on the computer in question.

Could you try exporting just the * Hello subtree with C-c C-e 1 p ?
That's where I am experiencing the trouble, rather than with exporting
the whole document with C-c C-e p.

--Chris

On Thu, Mar 7, 2013 at 10:00 AM, John Hendy jw.he...@gmail.com wrote:
 On Thu, Mar 7, 2013 at 7:13 AM, Christopher W Ryan cr...@binghamton.edu 
 wrote:
 I have to admit I'm not yet experienced enough with org mode to know
 about the new exporter versus the old. I've been trying to ignore the
 conversations on the list about the new exporter, since, at least
 until now, whatever org mode was doing was what I needed it to do.

 I have org mode 7.9.3f. Does that mean I am using any particular
 exporter?  How do I tell which exporter I am using with C-c C-e d ?

 I will try  C-c C-e C-s l o with my little test file next time I am on
 the Windows system where I am having the problem.


 Cursor on * Hello, C-c C-e p and I get the attached (seems to work).
 Have not removed ** Big foo. I'm using the old exporter.

 Can you post your babel-related .emacs section?

 John

 Thanks.

 --Chris

 On Thu, Mar 7, 2013 at 3:42 AM, Eric S Fraga e.fr...@ucl.ac.uk wrote:
 Christopher W. Ryan cr...@binghamton.edu writes:

 Well, with the little test file I initially posted, things worked OK
 with org version 7.9.3f.  But things are bit more complicated:

 [...]

 Put cursor on
 * Hello
 above and then C-c C-e 1 d

 Are you sure you are using the new exporter?  This binding doesn't work
 for me but did work for the old exporter.  The equivalent in the new
 exporter would be C-c C-e C-s l o, I believe.  Your configuration must
 be mixing up old and new exporters and, believe me, you're not the only
 one in this situation.


 --
 : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
 : in Emacs 24.3.50.1 and Org release_7.9.3f-1199-g3a0e55





Re: [O] trouble exporting just one subtree while using babel and R code blocks

2013-03-06 Thread Christopher W. Ryan
Thanks John. I was a little nervous about upgrading org version. I use
Vince Goulet's version of emacs with ESS built-in, and he removed
org-mode from his latest release (24.2.1)

http://vgoulet.act.ulaval.ca/pub/emacs/NEWS-windows

But I downloaded and installed the newer emacs anyway, and got org-mode
version 7.9.3f from the org website, and that solved my problem. So far,
so good . . . .

--Chris

Christopher W. Ryan, MD, MS
SUNY Upstate Medical University Clinical Campus at Binghamton
425 Robinson Street, Binghamton, NY  13904
cryanatbinghamtondotedu

Once we recognize that we do not err out of laziness, stupidity, or
evil intent, we can liberate ourselves from the impossible burden of
trying to be permanently right. We can take seriously the proposition
that we could be in error, without deeming ourselves idiotic or
unworthy. [Karen Schulz, in Being Wrong: Adventures in the Margin of Error]


John Hendy wrote:
 On Mon, Feb 18, 2013 at 3:10 PM, Christopher W. Ryan
 cr...@binghamton.edu wrote:
 I have a long cumulative org file that contains work related to a series
 of studies. Each first-level subtree (*) is a new study. I need to be
 able to export any given first-level tree on its own, with an output pdf
 file name different from the main org filename, and with a title perhaps
 different from the * headline. And I need to execute R code as it
 exports. I am running org-mode 7.7 on Windows XP

 A sample org file to illustrate the problem looks like this:

 --

 * goodbye

 foo foo

 * Hello
 :PROPERTIES:
 :EXPORT_FILE_NAME: TestMyBabelSetup
 :EXPORT_TITLE: foobar
 :EXPORT_AUTHOR: Christopher W. Ryan, MD MS
 :RESULTS: output
 :EXPORTS: both
 :END:

 foo

 #+begin_src R
 rnorm(3)
 #+end_src


 

 When I export the whole file to pdf, everything works fine.

 But if I try to export just the * Hello tree, then I get an error:

  Args out of range: , -1, 0
 
 I can't reproduce. =M-x org-version= is Org-mode version 7.9.3e
 (7.9.3e-910-g33c4f6)
 
 Can you try updating your orgmode version?
 
 I attached the results of =C-c C-e 1 p= (export subtree) with the
 cursor within the * Hello headline contents.
 
 
 Best regards,
 John
 

 If I remove anything relating to R and babel from the * Hello tree,
 leaving just this:

 ---
 * goodbye

 foo foo

 * Hello
 :PROPERTIES:
 :EXPORT_FILE_NAME: TestMyBabelSetup
 :EXPORT_TITLE: foobar
 :EXPORT_AUTHOR: Christopher W. Ryan, MD MS
 :END:

 foo

 -

 then exporting just the * Hello treee works as expected.

 I'm stumped. What am I doing wrong?

 Thanks.

 --Chris
 --
 Christopher W. Ryan, MD, MS
 SUNY Upstate Medical University Clinical Campus at Binghamton
 425 Robinson Street, Binghamton, NY  13904
 cryanatbinghamtondotedu




Re: [O] trouble exporting just one subtree while using babel and R code blocks--spoke too soon

2013-03-06 Thread Christopher W. Ryan
Well, with the little test file I initially posted, things worked OK
with org version 7.9.3f.  But things are bit more complicated:

---

* goodbye

foo foo

* Hello
:PROPERTIES:
:EXPORT_FILE_NAME: TestMyBabelSetup
:EXPORT_TITLE: foobar
:EXPORT_AUTHOR: Christopher W. Ryan, MD MS
:RESULTS: output
:EXPORTS: both
:END:

** Big foo

foo

#+begin_src R
rnorm(3)
#+end_src

---

Put cursor on
* Hello
above and then C-c C-e 1 d
The resulting pdf file does not show the results of the R code, only the
verbatim code itself.

Remove the line
** Big foo

Then put cursor on * Hello above and then C-c C-e 1 d
org/babel then asks if I want to execute the R code. Answer yes.
A pdf file will open showing the R code and the results.

I don't understand.

--Chris

Christopher W. Ryan, MD, MS
SUNY Upstate Medical University Clinical Campus at Binghamton
425 Robinson Street, Binghamton, NY  13904
cryanatbinghamtondotedu

Once we recognize that we do not err out of laziness, stupidity, or
evil intent, we can liberate ourselves from the impossible burden of
trying to be permanently right. We can take seriously the proposition
that we could be in error, without deeming ourselves idiotic or
unworthy. [Karen Schulz, in Being Wrong: Adventures in the Margin of Error]


John Hendy wrote:
 On Mon, Feb 18, 2013 at 3:10 PM, Christopher W. Ryan
 cr...@binghamton.edu wrote:
 I have a long cumulative org file that contains work related to a series
 of studies. Each first-level subtree (*) is a new study. I need to be
 able to export any given first-level tree on its own, with an output pdf
 file name different from the main org filename, and with a title perhaps
 different from the * headline. And I need to execute R code as it
 exports. I am running org-mode 7.7 on Windows XP

 A sample org file to illustrate the problem looks like this:

 --

 * goodbye

 foo foo

 * Hello
 :PROPERTIES:
 :EXPORT_FILE_NAME: TestMyBabelSetup
 :EXPORT_TITLE: foobar
 :EXPORT_AUTHOR: Christopher W. Ryan, MD MS
 :RESULTS: output
 :EXPORTS: both
 :END:

 foo

 #+begin_src R
 rnorm(3)
 #+end_src


 

 When I export the whole file to pdf, everything works fine.

 But if I try to export just the * Hello tree, then I get an error:

  Args out of range: , -1, 0
 
 I can't reproduce. =M-x org-version= is Org-mode version 7.9.3e
 (7.9.3e-910-g33c4f6)
 
 Can you try updating your orgmode version?
 
 I attached the results of =C-c C-e 1 p= (export subtree) with the
 cursor within the * Hello headline contents.
 
 
 Best regards,
 John
 

 If I remove anything relating to R and babel from the * Hello tree,
 leaving just this:

 ---
 * goodbye

 foo foo

 * Hello
 :PROPERTIES:
 :EXPORT_FILE_NAME: TestMyBabelSetup
 :EXPORT_TITLE: foobar
 :EXPORT_AUTHOR: Christopher W. Ryan, MD MS
 :END:

 foo

 -

 then exporting just the * Hello treee works as expected.

 I'm stumped. What am I doing wrong?

 Thanks.

 --Chris
 --
 Christopher W. Ryan, MD, MS
 SUNY Upstate Medical University Clinical Campus at Binghamton
 425 Robinson Street, Binghamton, NY  13904
 cryanatbinghamtondotedu

 Once we recognize that we do not err out of laziness, stupidity, or
 evil intent, we can liberate ourselves from the impossible burden of
 trying to be permanently right. We can take seriously the proposition
 that we could be in error, without deeming ourselves idiotic or
 unworthy. [Karen Schulz, in Being Wrong: Adventures in the Margin of Error]





[O] trouble exporting just one subtree while using babel and R code blocks

2013-02-18 Thread Christopher W. Ryan
I have a long cumulative org file that contains work related to a series
of studies. Each first-level subtree (*) is a new study. I need to be
able to export any given first-level tree on its own, with an output pdf
file name different from the main org filename, and with a title perhaps
different from the * headline. And I need to execute R code as it
exports. I am running org-mode 7.7 on Windows XP

A sample org file to illustrate the problem looks like this:

--

* goodbye

foo foo

* Hello
:PROPERTIES:
:EXPORT_FILE_NAME: TestMyBabelSetup
:EXPORT_TITLE: foobar
:EXPORT_AUTHOR: Christopher W. Ryan, MD MS
:RESULTS: output
:EXPORTS: both
:END:

foo

#+begin_src R
rnorm(3)
#+end_src




When I export the whole file to pdf, everything works fine.

But if I try to export just the * Hello tree, then I get an error:

 Args out of range: , -1, 0

If I remove anything relating to R and babel from the * Hello tree,
leaving just this:

---
* goodbye

foo foo

* Hello
:PROPERTIES:
:EXPORT_FILE_NAME: TestMyBabelSetup
:EXPORT_TITLE: foobar
:EXPORT_AUTHOR: Christopher W. Ryan, MD MS
:END:

foo

-

then exporting just the * Hello treee works as expected.

I'm stumped. What am I doing wrong?

Thanks.

--Chris
-- 
Christopher W. Ryan, MD, MS
SUNY Upstate Medical University Clinical Campus at Binghamton
425 Robinson Street, Binghamton, NY  13904
cryanatbinghamtondotedu

Once we recognize that we do not err out of laziness, stupidity, or
evil intent, we can liberate ourselves from the impossible burden of
trying to be permanently right. We can take seriously the proposition
that we could be in error, without deeming ourselves idiotic or
unworthy. [Karen Schulz, in Being Wrong: Adventures in the Margin of Error]




[O] how to narrow buffer to two consecutive nodes

2013-01-17 Thread Christopher W. Ryan
Ooops, make that C-x n s
-- 
Christopher W. Ryan, MD, MS
SUNY Upstate Medical University Clinical Campus at Binghamton
425 Robinson Street, Binghamton, NY  13904
cryanatbinghamtondotedu

Once we recognize that we do not err out of laziness, stupidity, or
evil intent, we can liberate ourselves from the impossible burden of
trying to be permanently right. We can take seriously the proposition
that we could be in error, without deeming ourselves idiotic or
unworthy. [Karen Schulz, in Being Wrong: Adventures in the Margin of Error]




[O] searching properties, not tags

2012-12-27 Thread Christopher W. Ryan
From what I have seen, most of the org-mode manual documentation about
searching or matching tags and properties is about the former, rather
than the latter. How would I search out all the headlines that have a
property of a certain value?  For example:

** Tigger
   :PROPERTIES:
   :species:  tiger
   :color:striped
   :clothing: none
   :END:
** Eeyore
   :PROPERTIES:
   :species:  donkey
   :color:grey
   :clothing: none
   :END:
** Winnie The Pooh
   :PROPERTIES:
   :species:  bear
   :color:yellow
   :clothing: red shirt
   :END:

How would I search for all the tigers?

Thanks.

--Chris Ryan



Re: [O] searching properties, not tags

2012-12-27 Thread Christopher W. Ryan
Well, that put me on the right track. I wasn't looking for a persistent
custom search command, just one I could execute ad hoc, since sometimes
I'd be looking for tigers and sometimes for bears, etc.

But with this to go on, I found that

C-c a m species=tiger

does what I want.

Previously, my problem was I was not using the quotes.

Thanks.

--Chris

Bastien wrote:
 Hi Christopher,
 
 Christopher W. Ryan cr...@binghamton.edu writes:
 
 How would I search for all the tigers?
 
 (setq org-agenda-custom-commands
   '((o List of tigers
((tags +species=\tiger\)
 
 HTH,
 



[O] still struggling with workflow

2012-09-06 Thread Christopher W. Ryan
I've been using org-mode for, oh about a year now, and it seems like a
very useful tool. But I'm still struggling to understand and implement
effective workflows for projects, re-using bits and pieces of text.

For example, I have a general project related to heat wave morbidity and
mortality, and indoor heat index. Hopefully I can parlay it into a
number of distinct studies, each with IRB applications, grant
applications, and papers (all pdf output), and presentations (beamer pdf
output.)  For example, all my stuff for the first study is in a single
org file, HeatWaves1.org. The second project's documents will need to
re-use much of that material, but not all of it; and there will be some
new material.

Is it viable to keep everything related to my heat wave work, for all
substudies, in the one org file, and customize the output to my needs at
different times, via judicious use of headlines and :export tags?  Or is
it best to start a new org file for each substudy and copy/paste what is
needed from the old?

Thanks.

--Chris
-- 
Christopher W. Ryan, MD, MS
SUNY Upstate Medical University Clinical Campus at Binghamton
425 Robinson Street, Binghamton, NY  13904
cryanatbinghamtondotedu

Once we recognize that we do not err out of laziness, stupidity, or
evil intent, we can liberate ourselves from the impossible burden of
trying to be permanently right. We can take seriously the proposition
that we could be in error, without deeming ourselves idiotic or
unworthy. [Karen Schulz, in Being Wrong: Adventures in the Margin of Error]




Re: [O] can I force all-caps in part of a headline in a capture template?

2012-05-07 Thread Christopher W. Ryan

Richard, this is great!  Thank you.

--Chris

Richard Lawrence wrote:

Richard Lawrencerichard.lawre...@berkeley.edu  writes:


Try this: in your .emacs, add the following code:

(defun prompt-for-lastname-and-upcase ()
   (upcase (read-string Last name: )))

This defines a function that will prompt the user to type a last name
into the minibuffer, converts the result into uppercase, and returns it
as a string.

Then, in your capture template, change %^{LASTNAME} to
%(prompt-for-lastname-and-upcase).



By the way, if you need to do the same thing for other fields, you can
do something like this instead:

(defun prompt-and-upcase (prompt-str)
   (upcase (read-string prompt-str)))

This generalizes the original function I gave you; you can pass in a
prompt string.

Then, in your capture template, wherever you need an uppercase field:

%(prompt-and-upcase Whatever prompt you need: )

e.g.,

%(prompt-and-upcase Last name: )

Best,
Richard






[O] can I force all-caps in part of a headline in a capture template?

2012-05-06 Thread Christopher W. Ryan
I work for a public health department. Twice in the past 5 years we have 
had to open evacuation shelters during a flood, for anywhere from 80 to 
120 medically-frail evacuees. Our documentation system (paper) has 
improved, but it is still not ideal. I am experimenting with whether 
org-mode could meet our needs. It's basis in plain text may strike the 
proper balance between structure and flexibility.


Part of my .emacs includes the following:

(setq org-capture-templates
  '((a Admit entry
(file ~/Shelter/ShelterAdmissions.org)
 * admit  %^{LASTNAME},  %^{firstname} %U
  :PROPERTIES:
  %^{IDnumber}p
  %^{Birthdate}p
  %^{Age}p
  %^{Sex}p
  %^{Address1}p
  %^{Address2}p
  %^{City}p
  %^{State}p
  %^{Zipcode}p
  %^{Doctor1}p
  %^{Doctor2}p
  %^{Pharmacy1}p
  %^{Pharmacy2}p
  :empty-lines: 1)
  )
)

The first line in my ShelterAdmissions.org file is:

#+TODO: admit(a) in(i!) out(o@) |  discharged(d@)

and things are working pretty well so far.

I'd like to know if there is a way to force LASTNAME to show up in 
all-caps in ShelterAdmissions.org, regardless of how it is typed into 
the capture template.


Thanks.

--Chris Ryan




Re: [O] how to include graphics in pdf output

2012-03-21 Thread Christopher W. Ryan

John Hendy wrote:
 On Wed, Mar 21, 2012 at 4:54 AM, Sebastien Vauban
 wxhgmqzgw...@spammotel.com wrote:
 Hi Christopher,

 Christopher W. Ryan wrote:
 However, in both cases, the inline tasks themselves also appear in the
 final pdf. I was trying to avoid that, and I though todo:nil in
 #+OPTIONS would accomplish that objective, but it did not.  Is there a
 way to not export inline tasks?

.
.


 An inline task is almost a normal headline, hence you can put a tag such as
 noexport on it, and have the inline task not exported.
 
 Also,
 
 ,- M-x help RET v RET org-inlinetask-export -
 | org-inlinetask-export is a variable defined in `org-inlinetask.el'.
 | Its value is t
 |
 | Documentation:
 | Non-nil means export inline tasks.
 | When nil, they will not be exported.
 |
 | You can customize this variable.
 `-
 
 Best regards,
 John
 
 

 Best regards,
  Seb

 --
 Sebastien Vauban


 

Excellent! Thanks everyone.

--Chris

Christopher W. Ryan, MD
SUNY Upstate Medical University Clinical Campus at Binghamton
425 Robinson Street, Binghamton, NY  13904
cryanatbinghamtondotedu

Observation is a more powerful force than you could possibly reckon.
The invisible, the overlooked, and the unobserved are the most in danger
of reaching the end of the spectrum. They lose the last of their light.
From there, anything can happen . . .  [God, in Joan of Arcadia,
episode entitled, The Uncertainty Principle.]




Re: [O] how to include graphics in pdf output

2012-03-20 Thread Christopher W. Ryan



Nick Dokos wrote:

Christopher W. Ryancr...@binghamton.edu  wrote:


I've attached a small org file that reproduces my problem with getting
images to export to pdf. I've also attached the resulting .tex file.

I think my issue may have something to do with my misunderstanding of
inline tasks, since if I put my org code for inclusion of the image
elsewhere in the org file, under its own 2nd level heading (2 stars)
then it exports fine. The narrative text in the attached org file
explains my observations in more detail.




#+OPTIONS:   todo:nil toc:nil tags:nil
#+LATEX_HEADER: \usepackage[margin=1in]{geometry}
#+LATEX_HEADER: \usepackage{graphicx}


* I guess I don't understand enough about Org's hierarchical trees yet

** Study design

Here's what we'll do.

As patients of home care agencies, the subjects will all be considered 
homebound by definition. Subjects with cognitive impairment or psychiatric 
illness sufficiently severe to make them unable to consent to the study will 
not be eligible.
** TODO notice how end on next line is expandable
** END
Somehow this text is under, hierarchically-speaking, the END statement of this 
inline task.

So it does not show up in the final pdf

** TODO there is textand the image file  inside end
** END

Neither does this paragraph.

Neither does this image, which must also be under the END statement of the 
inline task

#+CAPTION: Temperature and humidity data logger
#+LABEL:   datalogger
[[./DataLoggerImage.jpg]]

** But if I start a new 2-star heading

and put the image here, it works fine.

#+CAPTION: Temperature and humidity data logger
#+LABEL:   datalogger
[[./DataLoggerImage.jpg]]



What is the value of org-inlinetask-min-level? If it's the default 15,
then you just haven't formatted the inline tasks correctly (not enough
stars)- did you use C-c C-x t to insert them?  I used that to
insert the inline tasks and I got the following org file which exports
correctly afaict:

--8---cut here---start-8---
#+OPTIONS:   todo:nil toc:nil tags:nil
#+LATEX_HEADER: \usepackage[margin=1in]{geometry}
#+LATEX_HEADER: \usepackage{graphicx}


* I guess I don't understand enough about Org's hierarchical trees yet

** Study design

Here's what we'll do.

As patients of home care agencies, the subjects will all be considered 
homebound by definition. Subjects with cognitive impairment or psychiatric 
illness sufficiently severe to make them unable to consent to the study will 
not be eligible.
*** TODO notice how end on next line is expandable
*** END
Somehow this text is under, hierarchically-speaking, the END statement of this 
inline task.

So it does not show up in the final pdf

*** TODO there is textand the image file  inside end
*** END
Neither does this paragraph.

Neither does this image, which must also be under the END statement of the 
inline task

#+CAPTION: foo
#+LABEL:   foo
[[./DataLoggerImage.jpg]]

** But if I start a new 2-star heading

and put the image here, it works fine.

#+CAPTION: bar
#+LABEL:   bar
[[./DataLoggerImage.jpg]]
--8---cut here---end---8---

Nick



Well, I'm making some progress.

org-inlinetask-min-level = 15

I had previousl simply typed in an arbitrary number of stars by hand, 
for my inline tasks. If I use C-c C-x t to insert one, then figures and 
text subsequent to it do appear in the final pdf as desired.  If I type 
in 15 stars by hand, emacs recognizes this also as an inline task 
(judging by the syntax highlighting) and figures following it are again 
exported correctly.


However, in both cases, the inline tasks themselves also appear in the 
final pdf. I was trying to avoid that, and I though todo:nil in 
#+OPTIONS would accomplish that objective, but it did not.  Is there a 
way to not export inline tasks?


Here are the modifications to the small reproducible file I started with:

#+OPTIONS:   todo:nil toc:nil tags:nil
#+LATEX_HEADER: \usepackage[margin=1in]{geometry}
#+LATEX_HEADER: \usepackage{graphicx}


* I guess I don't understand enough about Org's hierarchical trees yet

** Study design

Here's what we'll do.

Blah blah blah

*** TODO I'd like this not to appear in pdf
*** END
So now this text here appears in the pdf, as desired. But I'd like the 
inline task above not to appear in the pdf. I though todo:nil would 
prevent it from appearing, but it did not.



*** TODO figure will follow this todo
*** END
This line appears in the pdf too. Unfortunately, so does the inline task 
above it.


And the image shows up; its first appearance.


#+CAPTION: foo
#+LABEL:   foo
[[./DataLoggerImage.jpg]]

** But if I start a new 2-star heading

and put the image here, it works fine.  Second appearance of the image.

#+CAPTION: bar
#+LABEL:   bar
[[./DataLoggerImage.jpg]]


*** TODO entered via C-c C-x t
*** END


[O] how to include graphics in pdf output

2012-03-19 Thread Christopher W. Ryan
I am running org mode 7.7 on Win XP. I hope to export a document to pdf,
and I'd like to include an image in it. The image is a file called
DataLoggerImage.jpg; it resides in the same directory as my org file.

These are the first three lines of my org file:

#+OPTIONS:   todo:nil toc:nil tags:nil
#+LATEX_HEADER: \usepackage[margin=1in]{geometry}
#+LATEX_HEADER: \usepackage{graphicx}


I have tried the following code to include a figure (tried both
approaches simultaneously, and the second one alone, neither with success):

\begin{figure}\centering
\includegraphics{DataLoggerImage}
\caption{Temperature and humidity data logger}\label{datalogger}
\end{figure}

#+CAPTION: Temperature and humidity data logger
#+LABEL:   datalogger
[[./DataLoggerImage.jpg]]

The figure does not appear in the resulting pdf.  Any advice as to what
I am doing wrong?

Thanks.

--Chris
-- 
Christopher W. Ryan, MD
SUNY Upstate Medical University Clinical Campus at Binghamton
425 Robinson Street, Binghamton, NY  13904
cryanatbinghamtondotedu

Observation is a more powerful force than you could possibly reckon.
The invisible, the overlooked, and the unobserved are the most in danger
of reaching the end of the spectrum. They lose the last of their light.
From there, anything can happen . . .  [God, in Joan of Arcadia,
episode entitled, The Uncertainty Principle.]



Re: [O] how to include graphics in pdf output

2012-03-19 Thread Christopher W. Ryan
I've attached a small org file that reproduces my problem with getting 
images to export to pdf. I've also attached the resulting .tex file.


I think my issue may have something to do with my misunderstanding of 
inline tasks, since if I put my org code for inclusion of the image 
elsewhere in the org file, under its own 2nd level heading (2 stars) 
then it exports fine. The narrative text in the attached org file 
explains my observations in more detail.


Thanks.

--Chris Ryan

Nick Dokos wrote:

suvayu alifatkasuvayu+li...@gmail.com  wrote:


On Mon, Mar 19, 2012 at 20:53, Nick Dokosnicholas.do...@hp.com  wrote:

[[./DataLoggerImage.jpg]]

The figure does not appear in the resulting pdf.  Any advice as to what
I am doing wrong?



Can you post your org file and the tex file that's produced on export?



Is the above correct syntax? Shouldn't it be as shown below?

[[file:./DataLoggerImage.jpg]]



I had the same reaction at first, but I tried it and the pdf export went
through without a hitch in either case. I'm not sure whether that's intended
behavior or an accident though.

Nick


#+OPTIONS:   todo:nil toc:nil tags:nil
#+LATEX_HEADER: \usepackage[margin=1in]{geometry}
#+LATEX_HEADER: \usepackage{graphicx}


* I guess I don't understand enough about Org's hierarchical trees yet

** Study design

Here's what we'll do.

As patients of home care agencies, the subjects will all be considered 
homebound by definition. Subjects with cognitive impairment or psychiatric 
illness sufficiently severe to make them unable to consent to the study will 
not be eligible.
** TODO notice how end on next line is expandable
** END
Somehow this text is under, hierarchically-speaking, the END statement of this 
inline task.

So it does not show up in the final pdf

** TODO there is text and the image file inside end
** END

Neither does this paragraph.

Neither does this image, which must also be under the END statement of the 
inline task

#+CAPTION: Temperature and humidity data logger
#+LABEL:   datalogger
[[./DataLoggerImage.jpg]]

** But if I start a new 2-star heading

and put the image here, it works fine.

#+CAPTION: Temperature and humidity data logger
#+LABEL:   datalogger
[[./DataLoggerImage.jpg]]

% Created 2012-03-20 Tue 00:04
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\providecommand{\alert}[1]{\textbf{#1}}

\title{WhereIsImage}
\author{Chris Ryan}
\date{\today}

\begin{document}

\maketitle



\section{I guess I don't understand enough about Org's hierarchical trees yet}
\label{sec-1}
\subsection{Study design}
\label{sec-1-1}


Here's what we'll do.

As patients of home care agencies, the subjects will all be considered homebound by definition. Subjects with cognitive impairment or psychiatric illness sufficiently severe to make them unable to consent to the study will not be eligible.
\subsection{But if I start a new 2-star heading}
\label{sec-1-2}


and put the image here, it works fine.

\begin{figure}[htb]
\centering
\includegraphics[width=10em]{./DataLoggerImage.jpg}
\caption{\label{datalogger}Temperature and humidity data logger}
\end{figure}

\end{document}

[O] ways to insert note to self in an org-mode file for academic paper

2012-03-12 Thread Christopher W. Ryan
I'm very early in trying a transition from LaTeX to org-mode for
academic writing, trying to learn the Org way of doing things. Running
Org-mode 7.7 in Emacs 23.4.1 on Win XP.

Suppose I'm writing a draft of a research proposal and come to some part
that I may want to consider changing, after I think about it some more,
check with others, or reassess my resources. In LaTex, I'd write
something like this:

% need to look into this further, check with so-and-so

and keep writing on the next line.

How does one do this well in Org-mode? With a # comment character? Or
does this become a TODO item?

Of course, I wouldn't want that little note to self to appear in any
final document. But I might want it to remain in the source file, to
document my line of reasoning.

Thanks.

--Chris
-- 
Christopher W. Ryan, MD
SUNY Upstate Medical University Clinical Campus at Binghamton
425 Robinson Street, Binghamton, NY  13904
cryanatbinghamtondotedu

Observation is a more powerful force than you could possibly reckon.
The invisible, the overlooked, and the unobserved are the most in danger
of reaching the end of the spectrum. They lose the last of their light.
From there, anything can happen . . .  [God, in Joan of Arcadia,
episode entitled, The Uncertainty Principle.]



[O] C-c a t doesn't give yield list of all TODO items

2012-03-03 Thread Christopher W. Ryan

I'm running GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2011-03-04 on palmer, modified by Debian, on Ubuntu 10.04 LTS. 
Org-mode version 7.6.


The online Org-mode manual reads:

10.3.2 The global TODO list

The global TODO list contains all unfinished TODO items formatted and 
collected into a single place.


C-c a t (org-todo-list)
Show the global TODO list. 

But when I try to type C-c a

I only get that far, and emacs tells me, C-c a is undefined

There is a drop-down menu item under the Org item, called Agenda 
Command... which offers me lettered choices, and t will list all TODO 
entries. But what is the keyboard shortcut, if not C-a a t ?


Thanks.

--Chris Ryan

PS: in case it is relevant, my .emacs file, rather a short one, looks 
like this:


;;(load-file ~/.emacs.d/color-theme/themes/color-theme-subdued.el)
;;(color-theme-subdued)

(require 'color-theme)
(color-theme-parus)
(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(org-agenda-files (quote (~/DATA/BookIdeas.org ~/orgjunk.org
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 )

;; don't make back-up files
(setq make-backup-files nil)

;; single space between sentences
(setq sentence-end-double-space nil)

;; active Babel languages
(org-babel-do-load-languages
 'org-babel-load-languages
 '((R . t)
   ))




Re: [O] how do scientists use org mode?

2012-02-02 Thread Christopher W. Ryan
Just tried a similar thing on my computer at work: WinXP, emacs-22.3.1,
org-mode 7.7.  I tried both R and python.  With this in my .emacs file:

;; active Babel languages
(org-babel-do-load-languages
 'org-babel-load-languages
 '((R . t)
   (python . t)
   ))

Here are the contents of the org file I am playing with:

#+begin_src R
rnorm(10)
#+end_src

#+begin_src python
print Hello, World!
#+end_src


C-c C-c the first block results in a message like this:

Evaluate this R code block on your system? (yes or no)

Answering yes yields:

No org-babel-execute function for R!

Trying the same in the python block yields the same results, except with
python substituted for R in all the messages.

Any suggestions where I am going wrong?

Thanks.

--Chris Ryan



Re: [O] Babel problem (was how do scientists use org mode?)

2012-02-02 Thread Christopher W. Ryan
John and Nick--

The question about whether I have python on my machine is not silly--I
am. Got so carried away I forgot I was on my work computer, which indeed
does not have python. But I do have R and perl, and similar code blocks
in either language yield the same problem, so I'll just focus on them as
examples (he said, sheepishly.)

I usually interface with R via emacs ESS. Currently ESS is using R
version 2.11.1.

R executable is in C:\Program Files\R\R-2.11.1\bin

I usually interface with perl via another text editor, Programmer's
Notepad, set up with drop-down menu item to execute the file in perl.

Perl executable is in C:\strawberry\perl\bin

C:\Org\org-7.7\lisp contains, among others, files called ob-R.el and
ob-perl.el

Currently my path variable looks like this:

Files\QuickTime\QTSystem\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Xpdf;C:\strawberry\perl\bin;C:\strawberry\c\bin;C:\strawberry\perl\site\bin


My .emacs now contains:

;; active Babel languages
(org-babel-do-load-languages
 'org-babel-load-languages
 '((R . t)
   (python . t)
   (perl . t)
   ))


As to Nick's questions,

M-x locate-library RET ob-R RET

tells me ob-R is located in C:\Org\org-7.7\lisp\ob-R.el

M-: to evaluate (require 'ob-R.el)

yields ob-R in the minibuffer

Then C-c C-c in the R code block yields

Code block produced not output.

in the minibuffer,

and a new buffer that says,

'R' is not recognized as an internal or external command,
operable program or batch file.


I tried evaluating (require 'ob-perl) and this yielded

ob-perl

in the minibuffer, and thereafter the perl code block executed properly.

I wonder if I need to put the path to R in my PATH variable? (come to
think of it, don't know why it's not already there); its absence has so
far not prevented me from using R via ESS.

Thanks.

--Chris


Christopher W. Ryan, MD
SUNY Upstate Medical University Clinical Campus at Binghamton
425 Robinson Street, Binghamton, NY  13904
cryanatbinghamtondotedu


John Hendy wrote:
 Hi Chris; this digressed enough into a babel problem that I started a
 new subject for the list.
 
 On Thu, Feb 2, 2012 at 11:19 AM, Christopher W. Ryan
 cr...@binghamton.edu wrote:
 Just tried a similar thing on my computer at work: WinXP, emacs-22.3.1,
 org-mode 7.7.  I tried both R and python.  With this in my .emacs file:

 ;; active Babel languages
 (org-babel-do-load-languages
  'org-babel-load-languages
  '((R . t)
   (python . t)
   ))

 Here are the contents of the org file I am playing with:

 #+begin_src R
 rnorm(10)
 #+end_src

 #+begin_src python
 print Hello, World!
 #+end_src


 C-c C-c the first block results in a message like this:

 Evaluate this R code block on your system? (yes or no)

 Answering yes yields:

 No org-babel-execute function for R!

 Trying the same in the python block yields the same results, except with
 python substituted for R in all the messages.

 Any suggestions where I am going wrong?
 
 Silly question... do you have both R and python installed on your
 computer? Perhaps provide the paths of your R and python executable
 files. Win settings can be tricky sometimes. Another question would
 be, how do you typically use R and python directly?
 
 John
 

 Thanks.

 --Chris Ryan




Re: [O] how do scientists use org mode?

2012-02-01 Thread Christopher W. Ryan
Thanks everyone for the advice and ideas. I see lots of potential, and 
also lots to learn.


I made my first attempt at an R code block in an Org file. I'm running 
Ubuntu 10.04 LTS. Synaptic tells me that I have emacs 23.1+1-4ubuntu7.2, 
and Org 6.34c-1.


I added this to my .emacs:

;; active Babel languages
(org-babel-do-load-languages
 'org-babel-load-languages
 '((R . t)
   ))

Here is the source block:

#+begin_src R
getwd()
dd - read.csv(cars.csv, sep=,, header=TRUE)
head(dd)
str(dd)
dd$date - as.Date(as.character(dd$Date), format=%d-%b-%y)
names(dd)[4] - city
table(is.na(dd$date))
min(dd$date, na.rm=TRUE); max(dd$date, na.rm=TRUE)
#+end_src

emacs seems to do the syntax highlighting properly, so I guess it is 
recognizing this as a code block.


When I put point inside the block and type C-c C-c, emacs gives me this 
message:


C-c C-c can do nothing useful at this location.

I wonder if I have Babel? Is it built in to the emacs or Org versions 
that I have?


Thanks.

--Chris Ryan

Simon Thum wrote:

Hi Christopher,

to add my 2c: I'm using org-mode to track our participation in a
mid-sized project (9 Partners, ~30 People, 3 Years). I'm not
coordinating, in which case I'd probably look for more project
management centric tools, and thus found org-mode to be very useful.

I use it to track the project state, not hard data (which is typically
massive), our commitments and other's compliance with their commitments,
and all the rest that comes up and needs project context: Ideas, tasks,
deadlines, project reports  what not. The outline of this file reflects
the project structure. I have tags for partners and people in that file,
so e.g. when I speak someone I can easily check for further things to
discuss.

Big projects get their own file, for smaller projects and commitments I
have a few more files. I'm not using the attachments as it's
unfortunately a very microsoft-wordey project where git won't help much,
but plan to use them privately. Ah yes, I use org-mode for private stuff
too. It's the first tool that I use for more than a month.

I use export (tags) to inform my supervisor and other people on the
project about certain aspects, which usually works OK. I also found the
custom links to be helpful, as we have multiple web frontends for
project-specific matters whose contents I can link in easily this way.

The whole thing synced to a server using git, which saved my shiny a few
times. This is something I wouldn't recommend anyone to put off, even if
your backup schedule is in minutes.

HTH,

Simon


On 01/30/2012 06:37 PM, Christopher W. Ryan wrote:

I'm fairly experienced with emacs, ESS, Sweave, and R, but I've only
started to dabble in Org mode in the past couple of weeks. Just as
Christoph is, I'm trying to decide whether/how Org-mode might be useful
in organizing and carrying out research projects, presentations, etc. So
this thread has been very useful and timely.

I'm trying to envision what a small research project, managed via a
single Org file, might look like. There would be notes from meetings,
thoughts from brainstorming sessions, scheduled appointments, data, R
code, R output, and manuscript/presentation prose. Some of this might be
destined for a manuscript, some for a beamer presentation, and some only
for internal consumption. How are all these pieces differentiated in
the Org file, so that Org knows what to put in the
presentation/manuscript, and what not to? Could anyone share or point to
a short, perhaps fictional, example?

Thanks very much.

--Chris
Christopher W. Ryan, MD
SUNY Upstate Medical University Clinical Campus at Binghamton
425 Robinson Street, Binghamton, NY 13904
cryanatbinghamtondotedu

Observation is a more powerful force than you could possibly reckon.
The invisible, the overlooked, and the unobserved are the most in danger
of reaching the end of the spectrum. They lose the last of their light.

From there, anything can happen . . . [God, in Joan of Arcadia,

episode entitled, The Uncertainty Principle.]

Tomas Grigera wrote:

Hi Cristoph

On Fri, Jan 27, 2012 at 15:27, John Hendyjw.he...@gmail.com wrote:

On Thu, Jan 26, 2012 at 3:21 PM, GMX Christoph
13christoph...@gmx.net wrote:

Hi
this is my first post here and although I am evaluating org mode
with great interest, I am also asking myself in which way other
scientists are making use of org mode. It will take a while to get
my head around how to accomplish certain things in org mode but for
the moment I am intrigued by *why* one would want to approach the
problem of organizing one's research with org mode and in which way.


[...]


Thomas, Eric and John gave very useful answers, I just want to add my
$0.02 as a physicist who recently (about a year ago) started using Org
mode. I started mainly looking for a workflow organization system,
but slowly discovered it has many other possibilities. For research, I
find org-babel is a great tool. It allows you to have a document
collecting together thoughts

Re: [O] how do scientists use org mode?

2012-01-31 Thread Christopher W Ryan
Ah, now I'm beginning to understand: I can export a *part* of an
org-mode file; I'm not limited to exporting the whole thing. Cool!

I also use bibtex/biblatex a lot. I've started to read that these
tools work with Org-mode also. Can anyone speak to that from
experience?

Thanks.

--Chris

On Mon, Jan 30, 2012 at 2:51 PM,  cbe...@tajo.ucsd.edu wrote:
 Christopher W. Ryan cr...@binghamton.edu writes:

 I'm fairly experienced with emacs, ESS, Sweave, and R, but I've only
 started to dabble in Org mode in the past couple of weeks. Just as
 Christoph is, I'm trying to decide whether/how Org-mode might be useful
 in organizing and carrying out research projects, presentations, etc. So
 this thread has been very useful and timely.

 I'm trying to envision what a small research project, managed via a
 single Org file, might look like. There would be notes from meetings,
 thoughts from brainstorming sessions, scheduled appointments, data, R
 code, R output, and manuscript/presentation prose. Some of this might be
 destined for a manuscript, some for a beamer presentation, and some only
 for internal consumption. How are all these pieces differentiated in
 the Org file, so that Org knows what to put in the
 presentation/manuscript, and what not to? Could anyone share or point to
 a short, perhaps fictional, example?

 Have you looked at

     http://orgmode.org/worg/org-contrib/babel/uses.html
 ??

 There are almost too many possibilities --- it is a bit overwhelming.

 Here are three things I find useful:

 1) The ability to export a subtree allows you to have many documents
 within the *.org file. Setting EXPORT_* properties for the subtree gives
 you a lot of flexibility. And it is easy to do with TAB completion to
 prompt you to fill in the needed pieces.

 2) Internal hyperlinks are really useful in staying on course in a big,
 complicated document.

 3) Noweb syntax allows you to mix and match different parts of the
 document. Below is a minimal example. The latex chunks can be used
 anywhere I need them. Navigating to '* mini report' and typing

         'C-c @ C-c C-e l'

 produces mini.tex.


 ,
 | * COMMENT latex chunks
 |
 | #+name: chunk1
 | #+begin_src latex
 |   \begin{displaymath}
 |     y = r\sin\theta
 |   \end{displaymath}
 | #+end_src
 |
 | #+name: chunk2
 | #+begin_src latex
 |   \begin{displaymath}
 |     x = s\cos\theta
 |   \end{displaymath}
 | #+end_src
 |
 |
 | * mini report
 |   :PROPERTIES:
 |   :EXPORT_FILE_NAME: mini.tex
 |   :EXPORT_TITLE: Minimal Report
 |   :EXPORT_AUTHOR: Mister CCB
 |   :END:
 |
 | #+begin_src latex :noweb yes
 | chunk1
 | chunk2
 | #+end_src
 `

 HTH,

 Chuck


 Thanks very much.

 --Chris

 [snip]

 --
 Charles C. Berry                            Dept of Family/Preventive Medicine
 cberry at ucsd edu                          UC San Diego
 http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901





Re: [O] how do scientists use org mode?

2012-01-30 Thread Christopher W. Ryan
I'm fairly experienced with emacs, ESS, Sweave, and R, but I've only
started to dabble in Org mode in the past couple of weeks. Just as
Christoph is, I'm trying to decide whether/how Org-mode might be useful
in organizing and carrying out research projects, presentations, etc. So
this thread has been very useful and timely.

I'm trying to envision what a small research project, managed via a
single Org file, might look like. There would be notes from meetings,
thoughts from brainstorming sessions, scheduled appointments, data, R
code, R output, and manuscript/presentation prose. Some of this might be
destined for a manuscript, some for a beamer presentation, and some only
for internal consumption. How are all these pieces differentiated in
the Org file, so that Org knows what to put in the
presentation/manuscript, and what not to? Could anyone share or point to
a short, perhaps fictional, example?

Thanks very much.

--Chris
Christopher W. Ryan, MD
SUNY Upstate Medical University Clinical Campus at Binghamton
425 Robinson Street, Binghamton, NY  13904
cryanatbinghamtondotedu

Observation is a more powerful force than you could possibly reckon.
The invisible, the overlooked, and the unobserved are the most in danger
of reaching the end of the spectrum. They lose the last of their light.
From there, anything can happen . . .  [God, in Joan of Arcadia,
episode entitled, The Uncertainty Principle.]

Tomas Grigera wrote:
 Hi Cristoph
 
 On Fri, Jan 27, 2012 at 15:27, John Hendy jw.he...@gmail.com wrote:
 On Thu, Jan 26, 2012 at 3:21 PM, GMX Christoph 13 christoph...@gmx.net 
 wrote:
 Hi
 this is my first post here and although I am evaluating org mode with great 
 interest, I am also asking myself in which way other scientists are making 
 use of org mode. It will take a while to get my head around how to 
 accomplish certain things in org mode but for the moment I am intrigued by 
 *why* one would want to approach the problem of organizing one's research 
 with org mode and in which way.

 [...]
 
 Thomas, Eric and John gave very useful answers, I just want to add my
 $0.02 as a physicist who recently (about a year ago) started using Org
 mode.  I started mainly looking for a workflow organization system,
 but slowly discovered it has many other possibilities. For research, I
 find org-babel is a great tool. It allows you to have a document
 collecting together thoughts and discussion along with data, data
 analysis, scripts for data manipulations and plots (Org tables are
 actually more like a spreadsheet since Org supports quite complex
 formulas and even plotting directly from the table).  The many export
 possibilities mean that you can share your notes with colleagues not
 using Org (or even Emacs).
 
 I have also discovered it is a great tool for drafting presentations
 and then actually producing your slides via Latex- Beamer export.
 
 HTH,
 
 Tomas