Re: [O] [LaTeX Export] Question: How to import a really long caption in #+CAPTION:

2011-06-03 Thread Sunny Srivastava
Hi Thomas;

Your solution is exactly what I want.

I am sorry, I was talking about the line break in the Emacs buffer.

Thanks a lot!

Best Regards,
S.

On Thu, Jun 2, 2011 at 3:00 AM, Thomas S. Dye t...@tsdye.com wrote:

 Sunny Srivastava research.b...@gmail.com writes:

  Dear org-mode users:
 
  I want to export a really long caption in org to latex export.
 
  For example:
 
  #+CAPTION: A_really_long_caption_that_really_needs_a_line_break
  #+LABEL:  fig:sims
 
  Presently, I can do it by just having the really long line in front of
  #+caption; if I have a line break, it is not exported as a caption. From
  worg, I know I can use:
 
  #+LaTeX: \caption{  }
 
  But I was wondering if there is a org-mode way of doing this.
 
  Thanks in advance for your help.
 
  Best Regards,
  S.
  Dear org-mode users:I want to export a really long caption in org to
 latex export.For example:#+CAPTION:
 A_really_long_caption_that_really_needs_a_line_break#+LABEL:
 fig:simsPresently, I can do it by just having the really long line in front
 of #+caption; if I have a line break, it is not exported as a caption. From
 worg, I know I can use:
  #+LaTeX: \caption{  }But I was wondering if there is a org-mode way
 of doing this.Thanks in advance for your help.Best Regards,S.

 Aloha Sunny,

 I can't tell from your post what problem you've run into.  I can export
 long captions without problems, e.g.:

 #+CAPTION: [Polynesian colonization of Hawai`i]{Posterior probability
  for Polynesian colonization of Hawai`i: \textit{left}, estimate based
  on inequality (\ref{eq:no-rat}), with a 95\% highest posterior density
  region of AD 810--1289; \textit{right}, estimate based on inequality
 (\ref{eq:rat}), with a 95\% highest posterior density region of AD
 780--1119.}

 This all resides in one line in the org-mode file.  Why does your
 caption need a line break?

 All the best,
 Tom

 --
 Thomas S. Dye
 http://www.tsdye.com



[O] [LaTeX Export] Question: How to import a really long caption in #+CAPTION:

2011-06-01 Thread Sunny Srivastava
Dear org-mode users:

I want to export a really long caption in org to latex export.

For example:

#+CAPTION: A_really_long_caption_that_really_needs_a_line_break
#+LABEL:  fig:sims

Presently, I can do it by just having the really long line in front of
#+caption; if I have a line break, it is not exported as a caption. From
worg, I know I can use:

#+LaTeX: \caption{  }

But I was wondering if there is a org-mode way of doing this.

Thanks in advance for your help.

Best Regards,
S.


[O] [LaTeX Export] Question: How to export one section as an Appendix and choosing a way to crossreference

2011-05-16 Thread Sunny Srivastava
Dear Org-mode list members:

I am using org-mode to write a research paper. I am very pleased with the
way org-mode works for LaTeX export.

However I am stuck and I can't seem to find the solution using google (I am
sure I am missing something). Could you please help me with the following:

1. How can I import the Appendix with a different section number. Presently,
the Appendix section has the number following the previous section number.
Instead I want to have no number of Appendix and the sections of Appendix
with numbers like A.1 (for 1st section of Appendix), A.2 (for 2nd section of
Appendix). Similarly, sub-sections should be numbered like A.1.1 ... (I
could not find a solution for this issue in the well-written worg tutorial
by Dr. Dye. This may be solely because I am a beginner and could not
formulate how to achieve this numbering scheme.)

2. For cross-referencing, currently I use \ref{CUSTOM_ID}. If there is a way
of achieving the numbering scheme in 1., would the current cross referencing
method work for Appendix too?

Thank you in advance for your help.

Best Regards,
S.


Re: [O] [LaTeX Export] Question: How to export one section as an Appendix and choosing a way to crossreference

2011-05-16 Thread Sunny Srivastava
Dear Suvayu:

Thank you for the help. I appreciate it.

I think the solution no 2. gives the appropriate numbering for Appendix that
I need.

Could you pls enlighten me how to do the cross-referencing ?

Thanks again!

Best Regards,
S.

On Mon, May 16, 2011 at 4:54 AM, Suvayu Ali fatkasuvayu+li...@gmail.comwrote:

 On Mon, 16 May 2011 04:18:32 -0400
 Sunny Srivastava research.b...@gmail.com wrote:

  1. How can I import the Appendix with a different section number.
  Presently, the Appendix section has the number following the previous
  section number. Instead I want to have no number of Appendix and the
  sections of Appendix with numbers like A.1 (for 1st section of
  Appendix), A.2 (for 2nd section of Appendix). Similarly, sub-sections
  should be numbered like A.1.1 ... (I could not find a solution for
  this issue in the well-written worg tutorial by Dr. Dye. This may be
  solely because I am a beginner and could not formulate how to achieve
  this numbering scheme.)

 You have two options:

 1. With some customisations, this will provide you a clean option
   http://thread.gmane.org/gmane.emacs.orgmode/41582/focus=41583

 2. No customisations required but somewhat inconvenient to manage
   http://thread.gmane.org/gmane.emacs.orgmode/41582/focus=41636

 GL

 --
 Suvayu

 Open source is the future. It sets us free.




Re: [O] [LaTeX Export] Question: How to export one section as an Appendix and choosing a way to crossreference

2011-05-16 Thread Sunny Srivastava
Thanks Nick and Suvayu. Nick's solution works fine!

I knew something simple would be the solution!

S.

On Mon, May 16, 2011 at 11:20 AM, Suvayu Ali fatkasuvayu+li...@gmail.comwrote:

 On Mon, 16 May 2011 10:28:18 -0400
 Nick Dokos nicholas.do...@hp.com wrote:

  I get the impression that the OP is asking a simpler question: not so
  much an org question as a LaTeX question. If I'm right, the following
  should help (and the references should take care of themselves):
 
  --8---cut here---start-8---
  * Chapter
  ** Section
  foo
 
  ** Section
  bar
 
  * Chapter
  ** Section
  baz
 
  ** Section
  hunoz
 
  #+LaTeX: \appendix
  * Appendix
  ** Section
  appfoo
  ** Section
  appbar
 
  --8---cut here---end---8---
 

 I should not have posted so late in the night. :-p I think you are
 correct, I over analysed the OP's request.

  Nick

 --
 Suvayu

 Open source is the future. It sets us free.




[Orgmode] [org-beamer] Question: How to insert different background images on different frames

2011-01-06 Thread Sunny Srivastava
Hello Org-mode users:

I am still a beginner with org-mode and I am trying to make my first beamer
presentation using org-mode exclusively. I had my moments of enlightenment
but at the moment I am stuck, please bear with me if my question is very
basic.

I want to include different background images for different frames. The
beamer solution is to use \usebackgroundtemplate.

Let's say I want to insert the image on the 2nd frame, I would write the
latex code as follows:

\end{frame}   %% frame 1 ends

% Now we install the new template for the following frames:

\usebackgroundtemplate{

 
\includegraphics[width=\paperwidth,height=\paperheight]{my_background_image.png}
}

\begin{frame} %% frame 2 begins

%% This frame will have my_background_image as the background image.

\end{frame}

% Now we install another template, effective from now on, we will use a
different background image
\usebackgroundtemplate{

 \includegraphics[width=\paperwidth,height=\paperheight]{my_different_image.png}
}

\begin{frame}

%% This frame will have my_different_image as the background image.

\end{frame}


For no image we can simply use \usebackgroundtemplate{}.


Currently I tried to replicate this in org by doing something like this

* frame 1
  - item1
  - item2

#+begin_latex
\usebackgroundtemplate{

 
\includegraphics[width=\paperwidth,height=\paperheight]{my_background_image.png}
}
#+begin_latex

* frame 2

This inserts the latex statement before \end{frame} (as expected). Is there
a way to get the statement after \end{frame} in the exported .tex file? It
would be even better if I can avoid using latex and let org handle this.

I am sorry for such a basic query.

Thanks in advance for any pointers of help. Much appreciated.

Best Regards,
S.
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [org-beamer] Question: How to insert different background images on different frames

2011-01-06 Thread Sunny Srivastava
Thank you John. I also tried a bunch of modifications, but could not do it.

I thought may be there is a way to handle this through :PROPERTY:, but I am
not skilled enough to figure out a way.

On Thu, Jan 6, 2011 at 6:27 PM, John Hendy jw.he...@gmail.com wrote:

 Not sure what to say. I tried several placements and still wound up with
 the .tex file placing the second background declaration in an ineffective
 location (either inside the second frame environment or before the first
 frame's end). Maybe manually editing the .tex file directly is the best
 approach?


 Best regards,
 John

 On Thu, Jan 6, 2011 at 3:48 PM, Sunny Srivastava 
 research.b...@gmail.comwrote:

 Hello Org-mode users:

 I am still a beginner with org-mode and I am trying to make my first
 beamer presentation using org-mode exclusively. I had my moments of
 enlightenment but at the moment I am stuck, please bear with me if my
 question is very basic.

 I want to include different background images for different frames. The
 beamer solution is to use \usebackgroundtemplate.

 Let's say I want to insert the image on the 2nd frame, I would write the
 latex code as follows:

 \end{frame}   %% frame 1 ends

 % Now we install the new template for the following frames:

 \usebackgroundtemplate{

  
 \includegraphics[width=\paperwidth,height=\paperheight]{my_background_image.png}
 }

 \begin{frame} %% frame 2 begins

 %% This frame will have my_background_image as the background image.

 \end{frame}

 % Now we install another template, effective from now on, we will use a
 different background image
 \usebackgroundtemplate{

  
 \includegraphics[width=\paperwidth,height=\paperheight]{my_different_image.png}
 }

 \begin{frame}

 %% This frame will have my_different_image as the background image.

 \end{frame}


 For no image we can simply use \usebackgroundtemplate{}.


 Currently I tried to replicate this in org by doing something like this

 * frame 1
   - item1
   - item2

 #+begin_latex
 \usebackgroundtemplate{

  
 \includegraphics[width=\paperwidth,height=\paperheight]{my_background_image.png}
 }
 #+begin_latex

 * frame 2

 This inserts the latex statement before \end{frame} (as expected). Is
 there a way to get the statement after \end{frame} in the exported .tex
 file? It would be even better if I can avoid using latex and let org handle
 this.

 I am sorry for such a basic query.

 Thanks in advance for any pointers of help. Much appreciated.

 Best Regards,
 S.

 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [org-beamer] Help: Questions about overlay, background image, spacing between bullet points, and footnote

2010-12-25 Thread Sunny Srivastava
Hello Org-moders:

I was trying to use org-mode to make a beamer presentation. The tutorial on
Worg by Eric Fraga helped a lot (thank you Eric). However, I am stuck with a
few questions. Some of them are because of me being picky (apologies in
advance for that). To make my questions clearer here is a reproducible
example

* Laws of Nature

** Newton's law
   :PROPERTIES:
   :BEAMER_envargs: [+-]
   :END:

*** First law of motion
Constant motion[fn:1]

*** Second law of motion
Equal and opposite force[fn:2]

** Einstein's Law
   :PROPERTIES:
   :BEAMER_envargs: [+-]
   :END:

*** First law
Light is the fastest[fn:3]

*** Second law
Length can shrink

* Footnotes
[fn:1] f1
[fn:2] f2
[fn:3] f3


1. Overlay :: I googled and found this (
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg29607.html), which was
helpful. However, lets say I want to have this to work for the entire
presentation how should I do this? In my example, BEAMER_envargs [+-]
appears in Newton's and Einstein's laws, respectively. Is there a way to do
this once so that both the frames inherit it? I tried to put the
:PROPERTIES: drawer below =* Laws of nature= and it didn't work

2. Footnote :: Presently, footnotes f1 and f2 appear together and I want to
appear them in order of appearance of the bullet points. On a side note, one
of the users of org-mode and a member of this list, Mr. Bernd Weiss, came up
with this nice idea, called \infobox{} (which I copied from his org-beamer
presentation). It is a piece of LaTeX code which makes the footer appear in
a fancy way.

\newcommand{\infobox}[1]{
  \vfill\vfill\hrule
  \begin{columns}[t]
\begin{column}{0.02\textwidth}
  \Info
\end{column}
\begin{column}[T]{0.97\textwidth}
  \tiny{#1}
\end{column}
\end{columns}}

For this case, the footers will be

\infobox{ f1\\ f2} ## Note this is not exactly similar to C-c C-x f as there
is no marking on the main slide, but looks beautiful (to me).

If some one can help me in working \infobox{} and [fns], that would be pure
awesomeness.

3. Spacing between bullet points :: Currently I am using \vspace15pt to
increase the space between bullet points in a frame. This is a LaTeX-y way
of handling things, but I was wondering if there an org-mode way of doing
it?

4. Background Image for a slide :: I wanted to insert (different) background
images on different slides and I was trying to use something like:

\usebackgroundtemplate{\includegraphics[width=\paperwidth]{../images/crayons.png}}

But, this did not work for me. Is there a way of doing this? I also tried
Eric's example of inserting images but failed again. He says I have added
an attribute to the image to tell LaTeX to scale the image to the full width
of the column. I think my problem is related to this as I don't know which
attribute is this (I am just guessing here, it is very possible I didn't
understand him!!).


Any help or pointers  are greatly appreciated.

Thank you for your attention.

Misc. details: Org-mode version 7.3 (release_7.3.196.g13637), GNU Emacs
23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1)
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Org-mode Code Blocks Manuscript: Request For Comments

2010-12-06 Thread Sunny Srivastava
Hello Chuck:

Your idea is very interesting. I am curious to make use of your ideas. If it
is not too much trouble, can you please share an example org file that you
use for package development? I completely understand if you can't share the
file.

Your help is highly appreciated.

Thank you in advance.

Best Regards,
S.

On Mon, Dec 6, 2010 at 2:52 PM, Charles C. Berry cbe...@tajo.ucsd.eduwrote:

 On Sat, 4 Dec 2010, Thomas S. Dye wrote:

  Aloha Detlef

 On Dec 2, 2010, at 9:58 PM, Detlef Steuer wrote:

  Hi!

 I very much appreciate your article as a nice introduction to org-babel
 and its uses. As I'm going to introduce my colleagues into the nice
 world of org-babel giving a talk sometime next term I'll shamelessly
 steal from your work. (Of course giving attribution!)

 Some remarks:
 If you send it to Journal of _Statistical_ Software may be you should
 be a little bit more focused on statistics. You article introduces
 org-babel as a multi-language frontend to literate programming. What it
 is, but there is little statistics in it.

 In their article Gentleman and Lang introduced the statistical
 compendium. In my opinion emacs + org-mode + babel +
 all-programming-languages-we-know + LaTeX + HTML export build the first
 incarnation of a tool to really create such a compendium, org-babel
 being central in that chain.
 May be you can use some of Tom Dye's data to give an example of a
 self-contained statistical workflow. I used his introduction given in
 Worg to do my first steps in that direction. (Thx again Tom!)
 Doing everything beginning with data-cleaning over data analysis to
 template generating and report publishing and presentation in one
 text-file.
 That feature was, what caught me immediately as a statistician.

 If you want to focus on the simulation side (may be more focused on
 academics) I would stress the always-correctness of graphs in
 articles. You all know what I mean...

 Just my 2 cents. Of course it is great as it stands  and surely I'm
 biased by my own needs.

 Detlef
 (a statistician)


 Thanks very much for the helpful comments and especially your perspective
 on the Journal of Statistical Software.

 I'm interested to learn how you've developed a statistical workflow with
 Org-mode beyond my first tentative steps in that direction.  It would be
 great to have an example of your progress on Worg, if you can find the time.


 Tom,

 You might glean something from these links:

 ESS and org-mode workflows are discussed here:



 http://stackoverflow.com/questions/1429907/workflow-for-statistical-analysis-and-report-writing/


 http://stackoverflow.com/questions/3027476/ess-workflow-for-r-project-package-development

 https://github.com/Choens/LiterateR


 CRAN's reproducible research 'task view' (with 'Related Links' of some
 interest):

   http://cran.r-project.org/web/views/ReproducibleResearch.html

 If you want to reach the R community, 'The R Journal' might be worth a try:

 http://journal.r-project.org/

 ==

 Let me just add my $0.02 worth to what others have already said and
 say, that I really find org-babel useful in my R related work.

 Currently, I am making use of it an environment for developing
 R-packages. An org-mode file sits in the top level source directory of
 an R package; it contains src blocks to fire up speedbar, list files
 (for navigation w/o speedbar), do version control operations, check,
 build, install, load the package, and do other routine tasks. Each
 operation has its own headline, so I need only put the point on the
 headline and 'C-c C-v C-s y' to run the subtree containing the block -
 effectively making each operation a point - and - (a little more than
 a) click.  Those source blocks are nearly the same for each package.

 Additional blocks display help pages in the org file, load sample
 data, let me work on new package features, and try out R idioms I
 might want to use.

 Then there are all the usual org-mode features that let me keep notes
 and ideas and track the status of the package. org-mode has made this
 part of my life a good deal simpler!

 Chuck



 All the best,
 Tom

  On Thu, 02 Dec 2010 12:28:27 -0700
 Eric Schulte schulte.e...@gmail.com wrote:

  Hi,
   Dan Davison, Tom Dye, Carsten Dominik and myself have been working on
 a
  paper introducing Org-mode's code block functionality.  We plan to
  submit this paper to the Journal of Statistical Software.  As both
  Org-mode and the code block functionality are largely products of this
  mailing list community, and in the spirit of an open peer review
 process
  we are releasing the current draft of the paper here to solicit your
  review and comments.
   Both the .org and .pdf formats of the paper are available at the
  following locations.
   http://cs.unm.edu/~eschulte/org-paper/babel.org
   http://cs.unm.edu/~eschulte/org-paper/babel.pdf
   Thanks -- Eric
   ___
  Emacs-orgmode mailing list
  Please use `Reply 

Re: [Orgmode] Help: Updating my org-mode repository which lies in

2010-12-02 Thread Sunny Srivastava
thank you Surayu!

On Wed, Dec 1, 2010 at 6:15 PM, suvayu ali
fatkasuvayu+li...@gmail.comfatkasuvayu%2bli...@gmail.com
 wrote:

 On Wed, Dec 1, 2010 at 10:42 PM, Sunny Srivastava
 research.b...@gmail.com wrote:
   $ git pull  make clean  make  make doc  make install

 Yes, that should be all right.

 --
 Suvayu

 Open source is the future. It sets us free.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [org-babel-R] Help: In converting an .org file to pdf, do I need to re-run the R code even if I ran them previously?

2010-12-02 Thread Sunny Srivastava
Hello Org-moders:

I am trying to use org-mode, instead of Sweave, to write a report for a
statistical analysis. During the process of writing, I prefer to export the
org file to pdf to see the output (for sanity check). However, every time I
do this, I get a question in minibuffer to choose if I want to run the R
code. I have three questions related to this:

1. Can I turn this feature off and let org-babel-R (sorry if this is
something else) automatically choose YES if the code has not been run
already and NO if the code has been already run.

2. Currently, if the code was run already, I choose NO. I am assuming this
won't affect the results. Am I correct? (If I change something in the code I
run it using C-c in org-mode before exporting it to pdf)

3. Is there a way to know which R code chunk is org-babel-R asking to run,
when it asks the question about running the R code.

I looked in the uses of org-babel-R webpage on worg, but could not see
anything related to this. Sorry if I missed something or the query is too
basic.

Thank you.

Regards,
S.
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [org-babel-R] Help: In converting an .org file to pdf, do I need to re-run the R code even if I ran them previously?

2010-12-02 Thread Sunny Srivastava
Thank you Thomas.

On Thu, Dec 2, 2010 at 10:33 AM, Thomas S. Dye t...@tsdye.com wrote:

 Aloha Sunny,


 On Dec 1, 2010, at 11:05 PM, Sunny Srivastava wrote:

  Hello Org-moders:

 I am trying to use org-mode, instead of Sweave, to write a report for a
 statistical analysis. During the process of writing, I prefer to export the
 org file to pdf to see the output (for sanity check). However, every time I
 do this, I get a question in minibuffer to choose if I want to run the R
 code. I have three questions related to this:

 1. Can I turn this feature off and let org-babel-R (sorry if this is
 something else) automatically choose YES if the code has not been run
 already and NO if the code has been already run.


 This is the :cache header argument.  The setting you want is :cache yes.


  2. Currently, if the code was run already, I choose NO. I am assuming this
 won't affect the results. Am I correct? (If I change something in the code I
 run it using C-c in org-mode before exporting it to pdf)

 3. Is there a way to know which R code chunk is org-babel-R asking to
 run, when it asks the question about running the R code.


 This behavior has changed relatively recently. I believe that with a recent
 version, answering NO won't abandon the evaluation of subsequent code
 blocks, and that the code block name is visible when the question is asked.
  This is something I don't use, so you'd have to pull and see for yourself.

 For me, it is preferable to disable the query.  To disable the query, I set
 this:

 #+begin_src emacs-lisp :tangle yes
   (setq org-confirm-babel-evaluate nil)
 #+end_src

 hth,
 Tom

 I looked in the uses of org-babel-R webpage on worg, but could not see
 anything related to this. Sorry if I missed something or the query is too
 basic.

 Thank you.

 Regards,
 S.

 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Help: Updating my org-mode repository which lies in

2010-12-01 Thread Sunny Srivastava
Hello Org-moders:

I want to update my org-mode and emacs-starter-kit repository. My org-mode
repository is in the emacs-starter-kit repository. I am a beginner in
org-mode as well as git. Before doing anything I want to make sure that I am
not doing anything incorrect. Please bear with me if the query is very
basic.

I googled on how to get the latest update and checked the org-mode website
instructions. If I have tp update my org-mode repository (which lies in
src/org/) should I just do

 $ git pull  make clean  make  make doc  make install 

Also, will it break anything in the emacs-starter-kit repository? (I am
sorry, but I am worried)

Please accept my apologies if this should have been addressed to directly to
the Eric (I am using his forked version of emacs-starter-kit).

Thank you in advance.

Best Regards,
S.
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Help: Getting ESS key binding to work with a R code block in org-mode

2010-11-21 Thread Sunny Srivastava
Hello Org-moders,
I have been a very happy ESS user so far. Recently, I was introduced to
org-mode and I am still a beginner.

I am trying to write a research paper using the literate programming style
of org-babel-R, instead of Sweave, and the journey has been OK so far. I
have a very lame question related to this, so please bear with me.

I am used to the ESS key-bindings, however they don't work properly in the
code block (begin_src R ... end_src). I googled and found that it is
recommended to use C-c ` to edit the source code in an Org-tmp buffer.
However, there are a few issues related to this:

1. Let's say I have a code block which contains some code in it. When I do
C-c ` a temporary buffer opens up but it doesn't include the R code that was
in the code block.
2. The temporary buffer for editing R code doesn't associate itself with
ESS, ie the key-bindings don't work. (I am addicted to the smart _ key
 binding of ESS as well I am facing problems indenting the code using C-M-\)

Any help or pointers is much appreciated.

Thanks to Eric and other developers for implementing such a great idea.


Version: 7.3 (release_7.3-89-g97f4c
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Help: Getting ESS key binding to work with a R code block in org-mode

2010-11-21 Thread Sunny Srivastava
Hello Dan:
Thank you. I knew it was something silly like that ..

C-c ' is the right key and not C-c ` .. (I didn't notice the difference :-(
)

Everything works perfectly normal now.

Actually, I have started using Eric's fork of emacs-starter-kit and it has
done wonders to my productivity with Emacs. The kit activates R by default
(if I understood the documentation correctly).

Thanks,
S.

PS: If you are the same Dan as on worg, thank you for drift.org ... it has
helped me a lot in writing my paper.

On Sun, Nov 21, 2010 at 3:17 PM, Dan Davison dandavis...@gmail.com wrote:

 Sunny Srivastava research.b...@gmail.com writes:

  Hello Org-moders,
  I have been a very happy ESS user so far. Recently, I was introduced to
  org-mode and I am still a beginner.
 
  I am trying to write a research paper using the literate programming
 style
  of org-babel-R, instead of Sweave, and the journey has been OK so far. I
  have a very lame question related to this, so please bear with me.
 
  I am used to the ESS key-bindings, however they don't work properly in
 the
  code block (begin_src R ... end_src). I googled and found that it is
  recommended to use C-c ` to edit the source code in an Org-tmp buffer.
  However, there are a few issues related to this:

 Hi Sunny,

 A couple of possibilities to solve your current problems:

 Firstly, the key combination is C-c '  not   C-c `

 i.e., that character is a straight single quote.

 Secondly, have you activated R as an Org-babel language?

 See section 14.7 of the manual. You can do it with customize, or you can
 do it by adding some emacs-lisp to your .emacs file. E.g. the following
 activates emacs-lisp and R:

 (org-babel-do-load-languages
  'org-babel-load-languages
  '((emacs-lisp . t)
(R . t)))

 Don't hesitate to get back to the list if you have further questions.

 Dan


 
  1. Let's say I have a code block which contains some code in it. When I
 do
  C-c ` a temporary buffer opens up but it doesn't include the R code that
 was
  in the code block.
  2. The temporary buffer for editing R code doesn't associate itself with
  ESS, ie the key-bindings don't work. (I am addicted to the smart _ key
   binding of ESS as well I am facing problems indenting the code using
 C-M-\)
 
  Any help or pointers is much appreciated.
 
  Thanks to Eric and other developers for implementing such a great idea.
 
 
  Version: 7.3 (release_7.3-89-g97f4c
  ___
  Emacs-orgmode mailing list
  Please use `Reply All' to send replies to the list.
  Emacs-orgmode@gnu.org
  http://lists.gnu.org/mailman/listinfo/emacs-orgmode

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] New Screencast: Setting Up Org-mode for Windows

2010-11-07 Thread Sunny Srivastava
Dear Russell,
I am a newbie in org-mode-world. Thanks a lot for uploading an informative
video.

Best Regards,
S.

On Sun, Nov 7, 2010 at 8:02 PM, Russell Adams rlad...@adamsinfoserv.comwrote:

 On Mon, Nov 08, 2010 at 01:12:43AM +0100, Stefan Vollmar wrote:
  Dear Russell,
 
  I was one of the Vimeo watchers: excellent!
 
  I was so impressed with the part about popup notifications, that I tried
 to get it running on the Mac. Many users who have Emacs on the Mac will use
 growl, http://growl.info, a free notification system.
 
  The shell command of your my-appt-disp-window() function can be adapted
 to use growl's optional commandline interface in this way:
 
growlnotify -s -m \ msg \
 
  This will produce a beautiful (and sticky) popup window, one can add an
 optional icon and a priority (and lots of styles for the graphical
 appearance).
 

 That's fantastic! I use kdialog myself on linux, and had to find a
 compatible method for Windows. It has occurred to me that Emacs itself
 uses popups, but I'm not sure how...

 I can't take credit for figuring out how to get the agenda to do the
 popups, I just adapted that from another post here.

 Glad you enjoyed it!

 Thanks.

 --
 Russell Adamsrlad...@adamsinfoserv.com

 PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

 Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Umlauts in LaTeX export

2010-11-03 Thread Sunny Srivastava
Thanks Richard,
I had the same issue! I can definitely use your solution!

S.

On Wed, Nov 3, 2010 at 11:50 AM, Richard Lawrence 
richard.lawre...@berkeley.edu wrote:

 Hi all,

 I don't think this is a bug so much as an unfortunate consequence of
 expected behavior, but I wanted to document it here for the sake of
 future mailing list searches, because I didn't find anything about it
 myself.  (If someone has a better solution than the one I propose,
 please clue me in!)

 To add an umlaut/trema/diaeresis to a letter in LaTeX, I use the \
 command, as in:

 G\{o}del

 Unfortunately, due to the fact that Org export treats both `{}' and `'
 specially, this will be exported to LaTeX as:

 G\''\{o\}del

 It isn't sufficient to surround the \{o} with math mode delimiters, e.g.,

 G\(\{o}\)del

 even though this will prevent Org from escaping the brackets and
 converting the double-quote, because the command doesn't seem to produce
 output in math mode.  (The compiled file will read Gdel.)

 So, the work-around I've come up with is to use an \mbox inside math
 mode, which prevents Org from doing the escapes/conversions:

 G\(\mbox{\{o}}\)del

 A bit ugly, but it produces the correct output.

 Hope that helps someone!  And again, if there's a better way, please let
 me know!

 Best,
 Richard


 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode