* Babel and capitalization
@ 2012-05-21 14:58 François Pinard
2012-05-21 13:48 ` Eric Schulte
0 siblings, 1 reply; 3+ messages in thread
From: François Pinard @ 2012-05-21 14:58 UTC (permalink / raw)
To: emacs-orgmode
Hi, Org people!
A while ago, we discussed capitalization on this list, as the manual was
irregular on things like #+BEGIN_SRC and #+begin_src. After some
discussion and hesitation, Bastien decided to stick to upper case in the
manual, and despite it was not my own preference, I amended all my Org
files to use upper case, for consistency.
Now, I have a script, run at least daily, which checks all my Org files
for a lot of nits. After I started to study some of Babel facilities
(yesterday), my script now trips on Babel results:
--8<---------------cut here---------------start------------->8---
~/fp/notes/notes.org:33: Wrong capitalization
~/fp/notes/notes.org:57: Wrong capitalization
--8<---------------cut here---------------end--------------->8---
And indeed, I get, trying an example taken from this mailing list:
--8<---------------cut here---------------start------------->8---
#+BEGIN_SRC R :results output
citation()
#+END_SRC
#+RESULTS:
#+begin_example
To cite R in publications use:
R Development Core Team (2011). R: A language and environment for
statistical computing. R Foundation for Statistical Computing,
Vienna, Austria. ISBN 3-900051-07-0, URL http://www.R-project.org/.
A BibTeX entry for LaTeX users is
@Manual{,
title = {R: A Language and Environment for Statistical Computing},
author = {{R Development Core Team}},
organization = {R Foundation for Statistical Computing},
address = {Vienna, Austria},
year = {2011},
note = {{ISBN} 3-900051-07-0},
url = {http://www.R-project.org/},
}
We have invested a lot of time and effort in creating R, please cite it
when using it for data analysis. See also ‘citation("pkgname")’ for
citing R packages.
#+end_example
--8<---------------cut here---------------end--------------->8---
If I correct #+begin_example to #+BEGIN_EXAMPLE, etc. and retry, the
result returns to lower case.
I could of course modify my nit-picking program so it recognizes the
#+RESULTS: case, but my feeling is that Org should be consistent overall
on capitalization. And by telling this, of course, I disregard my own
preference. Consistency has a stronger appeal to me.
François
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Babel and capitalization
2012-05-21 14:58 Babel and capitalization François Pinard
@ 2012-05-21 13:48 ` Eric Schulte
2012-05-21 16:01 ` François Pinard
0 siblings, 1 reply; 3+ messages in thread
From: Eric Schulte @ 2012-05-21 13:48 UTC (permalink / raw)
To: François Pinard; +Cc: emacs-orgmode
François Pinard <pinard@iro.umontreal.ca> writes:
> Hi, Org people!
>
> A while ago, we discussed capitalization on this list, as the manual was
> irregular on things like #+BEGIN_SRC and #+begin_src. After some
> discussion and hesitation, Bastien decided to stick to upper case in the
> manual, and despite it was not my own preference, I amended all my Org
> files to use upper case, for consistency.
>
> Now, I have a script, run at least daily, which checks all my Org files
> for a lot of nits. After I started to study some of Babel facilities
> (yesterday), my script now trips on Babel results:
>
> --8<---------------cut here---------------start------------->8---
> ~/fp/notes/notes.org:33: Wrong capitalization
> ~/fp/notes/notes.org:57: Wrong capitalization
> --8<---------------cut here---------------end--------------->8---
>
> And indeed, I get, trying an example taken from this mailing list:
>
> --8<---------------cut here---------------start------------->8---
> #+BEGIN_SRC R :results output
> citation()
> #+END_SRC
>
> #+RESULTS:
> #+begin_example
>
> To cite R in publications use:
>
> R Development Core Team (2011). R: A language and environment for
> statistical computing. R Foundation for Statistical Computing,
> Vienna, Austria. ISBN 3-900051-07-0, URL http://www.R-project.org/.
>
> A BibTeX entry for LaTeX users is
>
> @Manual{,
> title = {R: A Language and Environment for Statistical Computing},
> author = {{R Development Core Team}},
> organization = {R Foundation for Statistical Computing},
> address = {Vienna, Austria},
> year = {2011},
> note = {{ISBN} 3-900051-07-0},
> url = {http://www.R-project.org/},
> }
>
> We have invested a lot of time and effort in creating R, please cite it
> when using it for data analysis. See also ‘citation("pkgname")’ for
> citing R packages.
> #+end_example
> --8<---------------cut here---------------end--------------->8---
>
> If I correct #+begin_example to #+BEGIN_EXAMPLE, etc. and retry, the
> result returns to lower case.
>
> I could of course modify my nit-picking program so it recognizes the
> #+RESULTS: case, but my feeling is that Org should be consistent overall
> on capitalization. And by telling this, of course, I disregard my own
> preference. Consistency has a stronger appeal to me.
>
> François
>
Hi François,
I've just added a new variable which may be customized to control the
capitalization of these example delimiters. Add the following to your
config
;; -*- emacs-lisp -*-
(setq org-babel-capitalize-examplize-region-markers t)
and the latest version of Org-mode will insert capitalized versions of
all begin/end example delimiters.
Best,
--
Eric Schulte
http://cs.unm.edu/~eschulte
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Babel and capitalization
2012-05-21 13:48 ` Eric Schulte
@ 2012-05-21 16:01 ` François Pinard
0 siblings, 0 replies; 3+ messages in thread
From: François Pinard @ 2012-05-21 16:01 UTC (permalink / raw)
To: emacs-orgmode
> François Pinard <pinard@iro.umontreal.ca> writes:
>> I could of course modify my nit-picking program so it recognizes the
>> #+RESULTS: case, but my feeling is that Org should be consistent overall
>> on capitalization. And by telling this, of course, I disregard my own
>> preference. Consistency has a stronger appeal to me.
Eric Schulte <eric.schulte@gmx.com> writes:
> (setq org-babel-capitalize-examplize-region-markers t)
Thanks, Eric! I added this new variable as suggested (and also modified
the nit-picking script for the meantime).
François
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-21 16:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-21 14:58 Babel and capitalization François Pinard
2012-05-21 13:48 ` Eric Schulte
2012-05-21 16:01 ` François Pinard
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.