[O] worg access source

2012-02-09 Thread Thomas Alexander Gerds

in worg it would be great if (as in emacs muse) there was a link to the
underlying .org file which was used to generate the page. my naiive
attempt to catch a glimpse of the source of

http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html

was to browse-url

http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.org

but this page just says nginx

(if beginner-has-not-read-the-documentation-carefully-question-p sorry
thanks)

tomy

--
sent from nil







Re: [O] worg access source

2012-02-09 Thread suvayu ali
Hi Thomas,

On Thu, Feb 9, 2012 at 11:09, Thomas Alexander Gerds tagt...@sund.ku.dk wrote:
 in worg it would be great if (as in emacs muse) there was a link to the
 underlying .org file which was used to generate the page. my naiive
 attempt to catch a glimpse of the source of

Two ways,

http://orgmode.org/worg/sources/

$ git clone git://orgmode.org/worg.git

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.



[O] Journalling certain BBDB contacts in org

2012-02-09 Thread Richard Riley

Does anyone have something which potentially auto creates a journal
entry with an org link back to sent items in gnus for certain email
addresses which, present in bbdb, are somehow tagged in bbdb as
needing journalling? Failing that some method to query sent items
directly and auto insert journal entries in the agenda from the sent
date and recipient address.





Re: [O] OrgMode - Export Simple Chinese text to Latex/PDF

2012-02-09 Thread suvayu ali
Hi,

On Thu, Feb 9, 2012 at 04:12, Haisheng Wu fre...@gmail.com wrote:
 As you would see, the `CJK` is nested in the `document`,
 therefore, title which is in Chinese as well can not display correctly.
 Any ideas?

Well, when it comes to utf8 export, I always recommend xelatex or
lualatex. :) Recently there was a thread on devanagari (for Sanskrit
and its derivatives like Hindi) which proved useful to the OP.

http://thread.gmane.org/gmane.emacs.orgmode/51914

Hope this helps.

-- 
Suvayu

Open source is the future. It sets us free.



[O] Setting multiple variables for code blocks in one property drawer

2012-02-09 Thread Viktor Rosenfeld
Hi,

after following the discussion about the new BABEL syntax I was under
the impression that the following should work to set two variables in
one PROPERTIES drawer:

:PROPERTIES:
:var: foo=1
:var+: bar=2
:END:

However, the definition of bar is ignored. It turns out that there can
only be one :var: or :var+: entry in a drawer and the latter can only be
used to append to inherited entries, but not to those defined in the
same drawer. Is this the intended behavior? How would I define multiple
variables in a drawer (except for putting them all on one line)?

Thanks,
Viktor



[O] issue with babel R evaluate session vs external process

2012-02-09 Thread Thomas Alexander Gerds

still a beginner, and maybe therefore, in my setup (release is: 7.8.03,
emacs 23.2.1) the following occurs

-org.snip---
* here it works: org-ctrl-c-ctrl-c and export

#+begin_src R :results output :exports results
  foo=matrix(1:2)
  foo
#+end_src

#+RESULTS:
:  [,1]
: [1,]1
: [2,]2

* here it does not:

#+begin_src R :results output :exports results :session *R*
  foo=matrix(3:8)
  foo
#+end_src

the buffer *R* shows this:

 'org_babel_R_eoe'
[1] org_babel_R_eoe
org.snap--

some debugging revealed this:

ELISP (org-babel-R-evaluate-session *R* foo=matrix(1:2)\nfoo 'output 
'(output replace) nil nil)
*** Eval error ***  
ELISP (org-babel-R-evaluate-external-process  foo=matrix(1:2)\nfoo 'output 
'(output replace) nil nil)
 [,1]\n[1,]1\n[2,]2\n

but strange-enough when I try to edebug org-babel-R-evaluate-session, I
 get an error:

Symbol's value as variable is void: edebug-after

can someone explain this? 

thanks!
tomy

-- 
sent from nil



Re: [O] AUCTex within org-babel

2012-02-09 Thread Riccardo Romoli
Hi, Jonas
if you enter in the AUCTeX buffer (C-c') and than you use the AUCTeX C-c
C-e, you can choose the environment you need in the emacs minibuffer such
as in LaTeX.

Best
Riccardo

2012/2/8 Jonas Hörsch co...@online.de

 Hi list,

 On Wed, Feb 08 2012, Riccardo Romoli wrote:

  thanks a lot for your answer!! I completely ignore that C-c' lunch the
  small buffer for all the code within the src blocks. I belive it was used
  only for ESS

 the only remaining problem is that the AUCTeX mode tries to be smart
 about what environments it allows to insert. f.ex. inserting

 #+begin_src latex

 #+end_src

 then C-', brings one to a source buffer with AUCTeX-mode enabled.

 But a C-c C-e to insert an environment doesn't want to complete on
 itemize or figure, but instead only allows to choose document (Which
 would be perfectly sane under the assumption that the buffer contains
 the whole tex-document).

 Does anybody know how to deactivate this feature of AUCTeX? Perhaps
 setting TeX-master-file to something special?

 Thanks,
 Jonas






Re: [O] AUCTex within org-babel

2012-02-09 Thread Jonas Hörsch
hi riccardo,

On Thu, Feb 09 2012, Riccardo Romoli wrote:

 if you enter in the AUCTeX buffer (C-c') and than you use the AUCTeX C-c
 C-e, you can choose the environment you need in the emacs minibuffer such
 as in LaTeX.

yes, indeed. and my claim was, that the completion facility of AUCTeX
then only shows the environment
\begin{document}..\end{document} and not f.ex. figure.

but when i tried to verify that claim right now, it curiously seems not
to be true any longer.

so sorry for the noise, my problem (if it ever was one) is solved.

cheers,
jonas




[O] Collaborative edition?

2012-02-09 Thread François Pinard
Hi, Org friends.

Let me send this message in chat mode, nothing important in here! :-)

Before Org mode, I was using a mix of Tomboy and Workflowy.  Tomboy is a
note taking application, which I used under GNOME, and Workflowy.com is
an outlining Web service.  I used and liked both intensely, each is full
of various virtues.

There is one thing in Workflowy that I miss a bit in Org mode, and this
is the capability of collaborative edition.  I once much used it with
some of my co-workers.  I presume such things have been discussed to
death already on this mailing list?  Did some consensus emerged?

My question is a rhetorical one, as I'm pretty sure my co-workers are
never going to switch to Emacs, and anyway, collaboration is managed
differently for the time being.  Yet, I'm curious, so my question.  And
who knows, ideas sometimes germinate while being exchanged! :-)

François



Re: [O] AUCTex within org-babel

2012-02-09 Thread Riccardo Romoli
I have a further question: how can I export a code like this:

#+begin_src latex
  \begin{figure}
\centering
\includegraphics[width=1\textwidth]{foo.jpg}
\caption{Figure example}
\label{fig:foo}
  \end{figure}
#+end_src

to LaTeX to obtain a working figure code??

Best
Riccardo

2012/2/9 Jonas Hörsch co...@online.de

 hi riccardo,

 On Thu, Feb 09 2012, Riccardo Romoli wrote:

  if you enter in the AUCTeX buffer (C-c') and than you use the AUCTeX C-c
  C-e, you can choose the environment you need in the emacs minibuffer such
  as in LaTeX.

 yes, indeed. and my claim was, that the completion facility of AUCTeX
 then only shows the environment
 \begin{document}..\end{document} and not f.ex. figure.

 but when i tried to verify that claim right now, it curiously seems not
 to be true any longer.

 so sorry for the noise, my problem (if it ever was one) is solved.

 cheers,
 jonas





Re: [O] Changing [X] by something else

2012-02-09 Thread Nicolas Goaziou
Hello,

pin...@iro.umontreal.ca (François Pinard) writes:

 I notice in org.el that [X] is hard-wired, while I would have liked the
 possibility of changing it by [✓] in my things, which I find both softer
 and cleaner.  Could these ([ ], [-] and [X]) be turned into variables?
 The difficulty might be to recognize them properly, I guess.

 While it would be nice that I could change it, it might also have a
 negative effect, making Org files less interoperable between people.  On
 the other hand, the TODO keywords are already changeable, so there is a
 kind of precedent :-).

Allowing to configure TODO keywords is mandatory if we aim at providing
a decent tool for project planning. On the other hand, customizable
check-boxes is only icing on the cake and doesn't add any
functionality. Hence, I wouldn't call it a kind of precedent.

I don't think that we should allow basic structural elements to
change. As you said, it will make Org documents less interoperable, but
also less _recognizable_. What would happen to Org if every user could
come up with its own syntax? Could we even talk about an Org format
anymore?

I'd rather keep it simple and consistent. It may be a bit ugly at times,
but don't we all feel at home with plain text?


Regards,

-- 
Nicolas Goaziou



Re: [O] orgmode and auctex

2012-02-09 Thread Christopher Witte
OK so using the setq-default inside a hook is probably not a good idea.
But I can reliably reproduce this problem, I'm surprised you couldn't.  If
I start emacs using emacs -Q and open an org file everything is fine.  If I
then evaluate this

(setq-default TeX-master nil)

(defun org-mode-reftex-setup ()
  (load-library reftex)
  (and (buffer-file-name)
   (file-exists-p (buffer-file-name))
   (reftex-parse-all))
  (define-key org-mode-map (kbd C-c )) 'reftex-citation))
(add-hook 'org-mode-hook 'org-mode-reftex-setup)

and try to open an org file I get prompted Master file: ~/.  I'm running
Ubuntu 11.10 and the emacs-snapshot package: GNU Emacs 23.3.1
(i686-pc-linux-gnu, GTK+ Version 2.24.5), latest org pulled from git today.
Is there any more information I could provide to help diagnose this problem?

Cheers
Chris.

On 7 February 2012 19:15, Nick Dokos nicholas.do...@hp.com wrote:

 Christopher Witte ch...@witte.net.au wrote:

  I've had a small problem with orgmode and auctex.  Follwing the auctex
 quickstart I added the
  following to my .emacs
 
  (setq-default TeX-master nil)
 
  and then from the orgmode FAQ to setup reftex in orgmode I added the
 following
 
  (defun org-mode-reftex-setup ()
(load-library reftex)
(and (buffer-file-name)
 (file-exists-p (buffer-file-name))
 (reftex-parse-all))
(define-key org-mode-map (kbd C-c )) 'reftex-citation))
  (add-hook 'org-mode-hook 'org-mode-reftex-setup)
 
  With both of these, whenever I opened an org file I was asked to name
 the master file.  If I comment
  out the setq-default I don't get the behaviour I would like with
 mulitfile tex files.  My solution
  was to change
 
  (setq-default TeX-master nil)
 
  to
 
  (add-hook 'TeX-mode-hook (lambda ()
 (setq-default TeX-master nil)))
 
  I then appear to get the behaviour I desire.  Is this a good way to do
 this?  If so I might add it
  to the FAQ.
 

 Probably not. setq-default sets the default value of the variable
 whereas the hook is supposed to set the local value in order to override
 the default value: setting the default value from a hook seems backwards
 to me.

 Actually, I added the above code (*without* the TeX-mode-hook mod) to my
 minimal .emacs and opening org files does not generate any questions. Are
 you sure you have diagnosed the problem correctly?

 Nick



Re: [O] Changing [X] by something else

2012-02-09 Thread François Pinard
Nicolas Goaziou n.goaz...@gmail.com writes:

 It may be a bit ugly at times, but don't we all feel at home with
 plain text?

We surely do.  Yet, now that we all swim within Unicode -- aren't we?
:-) --, ASCII feels a bit constricted.

François



Re: [O] save-excursion not saving when I call org-capture-goto-last-stored

2012-02-09 Thread Jon Miller
Awesome, thanks. That worked for me.
  Now to add my conditional logic for which parent headings I want
this behavior to apply to and I'm done.

Thanks again,
Jon Miller

On Thu, Feb 9, 2012 at 1:28 AM, David Maus dm...@ictsoc.de wrote:
 At Sat, 4 Feb 2012 22:01:32 -0500,
 Jon Miller wrote:

 I'm currently trying to write a function to do some post-capture
 updates to an entry. My intention is to add it to
 org-capture-after-finalize-hook. First step is navigating to the
 captured item but I'd like to return to the current buffer I was in
 before. I'm still a novice with elisp, so I could use a pointer here.

 Here is a simplified example:
 M-: (save-excursion (org-capture-goto-last-stored))

 Is there a better way to navigate to the last capture and then return
 to my current buffer?

 Well, save-excursion does restore the current buffer but is not
 switching to it. Executing

 ,
 | (progn
 |   (save-excursion
 |     (org-capture-goto-last-stored))
 |   (princ (current-buffer)))
 `

 in *scratch* tells me that the current-buffer after the excursion is
 *scratch*. What you are looking for is saving and restoring the
 windows configuration (visible buffers in a frame).

 C-h f save-window-excursion RET

 This should do the trick:

 ,
 | (progn
 |   (save-excursion
 |     (save-window-excursion
 |       (org-capture-goto-last-stored
 `

 Best,
  -- David
 --
 OpenPGP... 0x99ADB83B5A4478E6
 Jabber dmj...@jabber.org
 Email. dm...@ictsoc.de



Re: [O] AUCTex within org-babel

2012-02-09 Thread Jonas Hörsch
On Thu, Feb 09 2012, Riccardo Romoli wrote:

 I have a further question: how can I export a code like this:

 #+begin_src latex
   \begin{figure}
 \centering
 \includegraphics[width=1\textwidth]{foo.jpg}
 \caption{Figure example}
 \label{fig:foo}
   \end{figure}
 #+end_src

 to LaTeX to obtain a working figure code??


it seems to do what you want, when you instead use

#+begin_latex
...
#+end_latex

C-' also still does the same. only the native fontification in the org
buffer doesn't work irrespective of the org-src-fontify-natively
setting. perhaps there is another variable for that.

mind that you could also use org constructs, for instance

#+CAPTION: Figure example
#+LABEL: fig:foo
[[foo.jpg]]

exports to something rather similar.

cheers,
jonas




Re: [O] Updating the Babel section of Worg

2012-02-09 Thread Thomas S. Dye
Hi Eric,

I pushed a draft of the revised LaTeX language section to Worg
(http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html).

Please take a look and edit as necessary.  Too often I understand
these things partially!

If Andreas Leha is reading this it would be good to take a look at my
description of the ImageMagick facility.  I tried to stick closely to
the sources, but might have strayed.

All the best,
Tom

Eric Schulte eric.schu...@gmx.com writes:

 t...@tsdye.com (Thomas S. Dye) writes:

 Hi Eric,

 I've attached a first draft of a template for review and revision.  It
 is heavily influenced by John Hendy's terrific gnuplot page.  I
 believe it incorporates the points in your outline.  Feel free to
 edit as appropriate.


 Looks great to me.  I made a small change, and I've just pushed it up to
 worg and linked to it from the languages page.  We can continue to
 improve this template as needed on worg although I think it is already
 in very good shape and ready for use.

 Thanks,


 All the best,
 Tom




 Eric Schulte eric.schu...@gmx.com writes:

 Hi Tom,

 t...@tsdye.com (Thomas S. Dye) writes:

 Hi Eric,

 Yes, this is overdue.  I think your plan is a good one.

 Perhaps a few of the individual use cases could be moved to FIXME,
 instead?  I'm thinking here of Feiming Chen's R setup and some of my
 contributions when I was experimenting writing LaTeX inside source
 code blocks.  The authors could resurrect these as they see fit.


 I don't know what FIXME is, but if there is a way to keep the page in
 the worg git repository but remove it from the exported HTML then that
 sounds ideal.


 Hopefully, others will contribute use examples.  My sense from reading
 the list is there are many interesting ones.

 I'd like it if Org mode users designed a template for the language
 specific pages.  Currently, these seem to me a mixed bag and it would be
 good to regularize them.

 The below is a modified version of a template which can be found in a
 couple of the existing language tutorials, I think it serves as a good
 starting point.

 - Install and Setup
   - Instillation and configuration of software (e.g., the language itself)
   - Configuration of Emacs (e.g., activate language, set command path)
 - Examples
   - Common ways to use the language in an Org-mode document
 - Special cases
   - are there any language-specific header arguments
   - does the language support session evaluation
   - does the language support all result types
   - is the language different from most babel languages
 (e.g., C is compiled before execution, ditaa returns files, etc...)

 It would also be nice to have one for each of the supported languages.
 There are 11 language specific pages now, which leaves quite a few
 languages under-documented.

 (length org-babel-load-languages) ;; = 27

 ls org-contrib/babel/languages/ob-doc-*|wc -l # = 11

 It looks like we have at least 16 more to go before we hit full language
 coverage.  Perhaps we should use the empty cells in the documentation
 column in the languages table at [1] as a sign up space for volunteers
 who would be willing to write a brief tutorial demonstrating usage of
 Org-mode with their favorite language.

 Moving forward this is likely something we could request of the
 contributors of new languages.

 Also, once the template above is finalized it should be posted on worg
 and linked to through the languages page.


 I'll be happy to work on this as I can.


 Great, I don't anticipate having time to put towards this, although I'll
 be happy to help troubleshoot where I can.

 Cheers,


 All the best,
 Tom


 Eric Schulte eric.schu...@gmx.com writes:

 Thanks for raising this point.  The bulk of the content in the Babel
 portion of worg is fairly old, predating the syntax standardization
 efforts this fall.  I've just pushed some minor updates to the main
 babel pages, but updating the language-specific tutorials and the
 individual use cases will be a much larger effort.

 I'm not sure how to proceed.  One option would be to go through and add
 a [uses deprecated syntax] tag to the top of each such page, which could
 be removed after the page has been checked and possibly updated to
 ensure consistency with the latest syntax.

 Given that the Babel syntax will not be changing significantly moving
 forward now would be a good time to do such a review.  Ideally this
 could be completed before the release of Emacs 24 in a couple of months.

 Any other ideas for update/reorganization or volunteers?

 Cheers,

 t...@tsdye.com (Thomas S. Dye) writes:

 Hi Riccardo,

 Thanks for the URL.  Org mode has evolved since this article was
 written.  It should probably be revised or taken off Worg.  I've copied
 Eric Schulte, who is better able than me to determine the correct course
 of action here.

 In the meantime, an up-to-date description of how Org mode can be used
 to write literate programs has appeared in the Journal of Statistical
 

[O] [PATCH] Fix J in agenda when clock out hook clocks in again

2012-02-09 Thread Bernt Hansen
* org-clock.el (org-clock-out): Do not delete the current clocking task
when org-clock-out-hook clocks in another task

My clock out hook keeps the clock running by automatically clocking in
a new task (the parent task, or the default task).  This sets a new
clocking task which was then clobbered at the end of org-clock-out
so that J in the agenda would return

No running clock, use `C-c C-x C-j' to jump to the most recent one

We now detect that another task is clocked in and skip clearing the
org-clock-current-task variable used by the agenda to determine if
the clock is currently running.
---
 lisp/org-clock.el |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index a1df776..7dff094 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -1387,7 +1387,8 @@ If there is no running clock, throw an error, unless 
FAIL-QUIETLY is set.
  (message (concat Clock stopped at %s after HH:MM =  
org-time-clocksum-format %s) te h m
   (if remove  = LINE REMOVED ))
   (run-hooks 'org-clock-out-hook)
- (org-clock-delete-current))
+ (unless (org-clocking-p)
+   (org-clock-delete-current)))
 
 (add-hook 'org-clock-out-hook 'org-clock-remove-empty-clock-drawer)
 
-- 
1.7.9.48.g85da4d




[O] Multiple/sticky agenda buffers branch updated

2012-02-09 Thread Max Mikhanosha
In case anyone is trying out g...@github.com:7max/org-mode.git sticky
agendas functionality, I pushed some bug fixes.

M-x org-toggle-sticky-agenda now works correctly when its turned on
when agenda buffer already exists.

When refreshing agenda buffers, prefix format was being pickup up from
the last time non-sticky agenda was generated, instead of the agenda
that is being refreshed.



Re: [O] hidestarsfile: hidestars for file

2012-02-09 Thread Michael Brand
Hi all

On Fri, Feb 3, 2012 at 17:43, Michael Brand michael.ch.br...@gmail.com wrote:
 I am still uncertain about if this could be made Org-mode-specific to
 cover more use cases: When switching between Org mode and another
 major mode like Fundamental mode [...]

Now I see that for testing how a hidestarsfile looks like in a file
viewer or simple editor, preferred over switching the major mode is:
Just stay in Org mode and with org-hide-leading-stars still enabled
from before, temporarily change only the look:

#+BEGIN_SRC emacs-lisp
  (visible-mode 1)
  (my-disable-font-lock-except-org-hide)
#+END_SRC

I have not yet much of an idea how to do this: Disable font lock for
all faces except the face org-hide. What possibilities are there?

Michael



[O] SO question on dynamic arguments

2012-02-09 Thread Ken Williams
I asked this question on Stack Overflow today, I wonder if someone might know 
the answer here:

  
http://stackoverflow.com/questions/9215216/computing-argument-values-dynamically

It's about computing arguments to a #+begin_src R block based on previous R 
results.

Thanks.

--
Ken Williams, Senior Research Scientist
WindLogics
http://windlogics.com



CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. Any 
unauthorized review, use, disclosure or distribution of any kind is strictly 
prohibited. If you are not the intended recipient, please contact the sender 
via reply e-mail and destroy all copies of the original message. Thank you.


[O] Links to Gnus articles don't export correctly

2012-02-09 Thread Jason Dunsmore
Hello,

When I export (to HTML) a link to a gnus article, for example:

[[gnus:inbox#a1b422bc2355834c81a44135af25e4392cf42...@domain.com][email]]

...it turns into this:

gnus:inbox#a1b422bc2355834c81a44135af25e4392cf42...@domain.com

How can I make it export like a normal link?  It's okay if the link is
broken.  I just don't want it exporting a long string.

I'm using Org-mode version 7.8.02 and GNU Emacs 23.3.1.

Thanks,
Jason



Re: [O] worg access source

2012-02-09 Thread Jason Dunsmore
On Thu, Feb 09 2012, Thomas Alexander Gerds wrote:

 in worg it would be great if (as in emacs muse) there was a link to the
 underlying .org file which was used to generate the page. my naiive
 attempt to catch a glimpse of the source of

 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html

 was to browse-url

 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.org

Almost.  The URL containing the formatted Org source is:
http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.org.html



Re: [O] OrgMode - Export Simple Chinese text to Latex/PDF

2012-02-09 Thread Eric Abrahamsen
On Thu, Feb 09 2012, suvayu ali wrote:

 Hi,

 On Thu, Feb 9, 2012 at 04:12, Haisheng Wu fre...@gmail.com wrote:
 As you would see, the `CJK` is nested in the `document`,
 therefore, title which is in Chinese as well can not display correctly.
 Any ideas?

 Well, when it comes to utf8 export, I always recommend xelatex or
 lualatex. :) Recently there was a thread on devanagari (for Sanskrit
 and its derivatives like Hindi) which proved useful to the OP.

I do a lot of org to latex export with Chinese in it, and would
absolutely second using Xelatex, it just makes so many things simpler.
Use these headers, and compile with xelatex, you might need a pretty
recent texlive installation.

\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{xeCJK}
\setmainfont{Janson Text LT Pro} % or whatever
\setCJKmainfont{文泉驿正黑} % or whatever


-- 
GNU Emacs 24.0.93.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2012-02-07 on pellet
Org-mode version 7.8.03 (release_7.8.03.324.gc4b233)




Re: [O] Title gets a 'nil' appended on org-export-subtree to html

2012-02-09 Thread John Hendy
On Wed, Feb 8, 2012 at 12:31 PM, David Maus dm...@ictsoc.de wrote:
 Hi John,

 At Tue, 7 Feb 2012 12:46:30 -0600,
 John Hendy wrote:

 I got some weird behavior on a file, so I recreated a smaller example
 and can reproduce it. Here it is:

 --

 #+options:  :t num:t tasks:nil tags:t

 * test
 ** sub 1
 ** sub 2
 --

 If I go to the first headline, 'test', and do =C-c C-e 1 h= to export
 the subtree as html, my filename/default title ends up as 'test nil.'

 If I export with =C-c C-e h=, I just end up with 'test.'

 If I remove =tags:t= from the options line, the 'nil' also goes away.

 Any thoughts on why this is happening?

 I can confirm the bug and it should be fixed in master.

 What happend was that Org grabbed the document title from the headline
 (good) and tags:t told Org to include the tags (Okay), but then Org
 forgot to check if there are actually tags in the headline when
 creating the document title with a `format' w/ a placeholder for the
 tags.

Did a fresh pull and make and this does appear to be solved. Thanks!

John


 Best,
  -- David



Re: [O] Way to replace normal tabular env with booktabs?

2012-02-09 Thread John Hendy
On Wed, Feb 8, 2012 at 4:32 PM, Nicolas Goaziou n.goaz...@gmail.com wrote:
 Hello,

 Niels Giesen niels.gie...@gmail.com writes:

 I say: go for it!

 Booktabs are available in e-latex backend, through booktabs=yes
 attribute or org-e-latex-tables-booktabs variable.


This is currently implemented? I just did a pull and don't get any
results for the variable org-e[xport]-latex-booktabs...

Sorry if I didn't understand how you implemented it.


Thanks,
JOhn

 I don't make use of :skipheadrule yet, since it's not in tree. Speaking
 about it, it should be a good idea to including a line about it in
 `orgtbl-to-generic' docstring.


 Regards,

 --
 Nicolas Goaziou



Re: [O] worg access source

2012-02-09 Thread Thomas Alexander Gerds

excellent. so, why not put a link to the org page in the footer of each
worg page? there is already a canonical place:
,
| 
| Documentation from the http://orgmode.org/worg/ website (either in its
| HTML format or in its [[xxx.org.html][Org format]])
`

cheers
tomy

Jason Dunsmore jasondunsm...@gmail.com writes:

 On Thu, Feb 09 2012, Thomas Alexander Gerds wrote:

 in worg it would be great if (as in emacs muse) there was a link to
 the
 underlying .org file which was used to generate the page. my naiive
 attempt to catch a glimpse of the source of

 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html

 was to browse-url

 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.org

 Almost.  The URL containing the formatted Org source is:
 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.org.html



Re: [O] Way to replace normal tabular env with booktabs?

2012-02-09 Thread Thomas S. Dye
Hi John,

I had the same experience.  When I restarted Emacs, it was there.
What's more, it appears to work.  I haven't had time to explore
thoroughly but the initial test worked out of the box.

All the best,
Tom

John Hendy jw.he...@gmail.com writes:

 On Wed, Feb 8, 2012 at 4:32 PM, Nicolas Goaziou n.goaz...@gmail.com wrote:
 Hello,

 Niels Giesen niels.gie...@gmail.com writes:

 I say: go for it!

 Booktabs are available in e-latex backend, through booktabs=yes
 attribute or org-e-latex-tables-booktabs variable.


 This is currently implemented? I just did a pull and don't get any
 results for the variable org-e[xport]-latex-booktabs...

 Sorry if I didn't understand how you implemented it.


 Thanks,
 JOhn

 I don't make use of :skipheadrule yet, since it's not in tree. Speaking
 about it, it should be a good idea to including a line about it in
 `orgtbl-to-generic' docstring.


 Regards,

 --
 Nicolas Goaziou



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



Re: [O] orgmode and auctex

2012-02-09 Thread Thomas Alexander Gerds

Hi Chris,

maybe I cannot follow exactly what you are trying to do, but when I
start emacs -q and evaluate (setq-default TeX-master nil) and then open
a new file test.tex, then I get the same prompt Master file:.

so maybe, if you do not want to get prompted, you could try setting
(setq-default TeX-master t). 

Cheers
Tomy



Christopher Witte ch...@witte.net.au writes:

 OK so using the setq-default inside a hook is probably not a good
 idea.
 But I can reliably reproduce this problem, I'm surprised you couldn't.
 If
 I start emacs using emacs -Q and open an org file everything is fine.
 If I
 then evaluate this

 (setq-default TeX-master nil)

 (defun org-mode-reftex-setup ()
   (load-library reftex)
   (and (buffer-file-name)
(file-exists-p (buffer-file-name))
(reftex-parse-all))
   (define-key org-mode-map (kbd C-c )) 'reftex-citation))
 (add-hook 'org-mode-hook 'org-mode-reftex-setup)

 and try to open an org file I get prompted Master file: ~/.  I'm
 running
 Ubuntu 11.10 and the emacs-snapshot package: GNU Emacs 23.3.1
 (i686-pc-linux-gnu, GTK+ Version 2.24.5), latest org pulled from git
 today.
 Is there any more information I could provide to help diagnose this
 problem?

 Cheers
 Chris.

 On 7 February 2012 19:15, Nick Dokos nicholas.do...@hp.com wrote:

 Christopher Witte ch...@witte.net.au wrote:

  I've had a small problem with orgmode and auctex.  Follwing the
 auctex
 quickstart I added the
  following to my .emacs
 
  (setq-default TeX-master nil)
 
  and then from the orgmode FAQ to setup reftex in orgmode I added
 the
 following
 
  (defun org-mode-reftex-setup ()
(load-library reftex)
(and (buffer-file-name)
 (file-exists-p (buffer-file-name))
 (reftex-parse-all))
(define-key org-mode-map (kbd C-c )) 'reftex-citation))
  (add-hook 'org-mode-hook 'org-mode-reftex-setup)
 
  With both of these, whenever I opened an org file I was asked to
 name
 the master file.  If I comment
  out the setq-default I don't get the behaviour I would like with
 mulitfile tex files.  My solution
  was to change
 
  (setq-default TeX-master nil)
 
  to
 
  (add-hook 'TeX-mode-hook (lambda ()
 (setq-default TeX-master nil)))
 
  I then appear to get the behaviour I desire.  Is this a good way
 to do
 this?  If so I might add it
  to the FAQ.
 

 Probably not. setq-default sets the default value of the variable
 whereas the hook is supposed to set the local value in order to
 override
 the default value: setting the default value from a hook seems
 backwards
 to me.

 Actually, I added the above code (*without* the TeX-mode-hook mod)
 to my
 minimal .emacs and opening org files does not generate any
 questions. Are
 you sure you have diagnosed the problem correctly?

 Nick

--
Thomas A. Gerds -- Assoc. Prof. Department of Biostatistics
University of Copenhagen, Øster Farimagsgade 5, 1014 Copenhagen, Denmark
Office: CSS-15.2.07 (Gamle Kommunehospital)
tel: 35327914 (sec: 35327901) 



Re: [O] worg access source

2012-02-09 Thread Thomas S. Dye
Thomas Alexander Gerds tagt...@sund.ku.dk writes:

 excellent. so, why not put a link to the org page in the footer of each
 worg page? there is already a canonical place:
 ,
 | 
 | Documentation from the http://orgmode.org/worg/ website (either in its
 | HTML format or in its [[xxx.org.html][Org format]])
 `

 cheers
 tomy

 Jason Dunsmore jasondunsm...@gmail.com writes:

 On Thu, Feb 09 2012, Thomas Alexander Gerds wrote:

 in worg it would be great if (as in emacs muse) there was a link to
 the
 underlying .org file which was used to generate the page. my naiive
 attempt to catch a glimpse of the source of

 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html

 was to browse-url

 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.org

 Almost.  The URL containing the formatted Org source is:
 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.org.html


+1, if this isn't too much work.  It saves Worg authors having to
remember this detail, which the reader finds useful.

Tom

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



Re: [O] orgmode and auctex

2012-02-09 Thread Nick Dokos
Thomas Alexander Gerds tagt...@sund.ku.dk wrote:

 
 Hi Chris,
 
 maybe I cannot follow exactly what you are trying to do, but when I
 start emacs -q and evaluate (setq-default TeX-master nil) and then open
 a new file test.tex, then I get the same prompt Master file:.
 

I think Chris means that he gets the prompt when he opens a .org file.
I couldn't reproduce that behavior when I tried it but I have not tried
it again yet.

Nick


 so maybe, if you do not want to get prompted, you could try setting
 (setq-default TeX-master t). 
 
 Cheers
 Tomy
 
 
 
 Christopher Witte ch...@witte.net.au writes:
 
  OK so using the setq-default inside a hook is probably not a good
  idea.
  But I can reliably reproduce this problem, I'm surprised you couldn't.
  If
  I start emacs using emacs -Q and open an org file everything is fine.
  If I
  then evaluate this
 
  (setq-default TeX-master nil)
 
  (defun org-mode-reftex-setup ()
(load-library reftex)
(and (buffer-file-name)
 (file-exists-p (buffer-file-name))
 (reftex-parse-all))
(define-key org-mode-map (kbd C-c )) 'reftex-citation))
  (add-hook 'org-mode-hook 'org-mode-reftex-setup)
 
  and try to open an org file I get prompted Master file: ~/.  I'm
  running
  Ubuntu 11.10 and the emacs-snapshot package: GNU Emacs 23.3.1
  (i686-pc-linux-gnu, GTK+ Version 2.24.5), latest org pulled from git
  today.
  Is there any more information I could provide to help diagnose this
  problem?
 
  Cheers
  Chris.
 
  On 7 February 2012 19:15, Nick Dokos nicholas.do...@hp.com wrote:
 
  Christopher Witte ch...@witte.net.au wrote:
 
   I've had a small problem with orgmode and auctex.  Follwing the
  auctex
  quickstart I added the
   following to my .emacs
  
   (setq-default TeX-master nil)
  
   and then from the orgmode FAQ to setup reftex in orgmode I added
  the
  following
  
   (defun org-mode-reftex-setup ()
 (load-library reftex)
 (and (buffer-file-name)
  (file-exists-p (buffer-file-name))
  (reftex-parse-all))
 (define-key org-mode-map (kbd C-c )) 'reftex-citation))
   (add-hook 'org-mode-hook 'org-mode-reftex-setup)
  
   With both of these, whenever I opened an org file I was asked to
  name
  the master file.  If I comment
   out the setq-default I don't get the behaviour I would like with
  mulitfile tex files.  My solution
   was to change
  
   (setq-default TeX-master nil)
  
   to
  
   (add-hook 'TeX-mode-hook (lambda ()
  (setq-default TeX-master nil)))
  
   I then appear to get the behaviour I desire.  Is this a good way
  to do
  this?  If so I might add it
   to the FAQ.
  
 
  Probably not. setq-default sets the default value of the variable
  whereas the hook is supposed to set the local value in order to
  override
  the default value: setting the default value from a hook seems
  backwards
  to me.
 
  Actually, I added the above code (*without* the TeX-mode-hook mod)
  to my
  minimal .emacs and opening org files does not generate any
  questions. Are
  you sure you have diagnosed the problem correctly?
 
  Nick
 
 --
 Thomas A. Gerds -- Assoc. Prof. Department of Biostatistics
 University of Copenhagen, Øster Farimagsgade 5, 1014 Copenhagen, Denmark
 Office: CSS-15.2.07 (Gamle Kommunehospital)
 tel: 35327914 (sec: 35327901) 
 



Re: [O] Way to replace normal tabular env with booktabs?

2012-02-09 Thread John Hendy
On Thu, Feb 9, 2012 at 1:57 PM, Thomas S. Dye t...@tsdye.com wrote:
 Hi John,

 I had the same experience.  When I restarted Emacs, it was there.
 What's more, it appears to work.  I haven't had time to explore
 thoroughly but the initial test worked out of the box.

I've restarted... still nothing.

,---
| Org-mode version 7.8.03 (release_7.8.03.330.gc804)
`---

Just did another fresh pull, made sure I'm on master, and still don't have it.

John


 All the best,
 Tom

 John Hendy jw.he...@gmail.com writes:

 On Wed, Feb 8, 2012 at 4:32 PM, Nicolas Goaziou n.goaz...@gmail.com wrote:
 Hello,

 Niels Giesen niels.gie...@gmail.com writes:

 I say: go for it!

 Booktabs are available in e-latex backend, through booktabs=yes
 attribute or org-e-latex-tables-booktabs variable.


 This is currently implemented? I just did a pull and don't get any
 results for the variable org-e[xport]-latex-booktabs...

 Sorry if I didn't understand how you implemented it.


 Thanks,
 JOhn

 I don't make use of :skipheadrule yet, since it's not in tree. Speaking
 about it, it should be a good idea to including a line about it in
 `orgtbl-to-generic' docstring.


 Regards,

 --
 Nicolas Goaziou



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



Re: [O] Way to replace normal tabular env with booktabs?

2012-02-09 Thread Nick Dokos
John Hendy jw.he...@gmail.com wrote:

 On Thu, Feb 9, 2012 at 1:57 PM, Thomas S. Dye t...@tsdye.com wrote:
  Hi John,
 
  I had the same experience.  When I restarted Emacs, it was there.
  What's more, it appears to work.  I haven't had time to explore
  thoroughly but the initial test worked out of the box.
 
 I've restarted... still nothing.
 
 ,---
 | Org-mode version 7.8.03 (release_7.8.03.330.gc804)
 `---
 
 Just did another fresh pull, made sure I'm on master, and still don't have it.
 

Make sure org-mode/contrib/lisp is in your load-path and do

(require 'org-export)

This is ngz's new experimental exporter - IIUC.

Nick

 John
 
 
  All the best,
  Tom
 
  John Hendy jw.he...@gmail.com writes:
 
  On Wed, Feb 8, 2012 at 4:32 PM, Nicolas Goaziou n.goaz...@gmail.com 
  wrote:
  Hello,
 
  Niels Giesen niels.gie...@gmail.com writes:
 
  I say: go for it!
 
  Booktabs are available in e-latex backend, through booktabs=yes
  attribute or org-e-latex-tables-booktabs variable.
 
 
  This is currently implemented? I just did a pull and don't get any
  results for the variable org-e[xport]-latex-booktabs...
 
  Sorry if I didn't understand how you implemented it.
 
 
  Thanks,
  JOhn
 
  I don't make use of :skipheadrule yet, since it's not in tree. Speaking
  about it, it should be a good idea to including a line about it in
  `orgtbl-to-generic' docstring.
 
 
  Regards,
 
  --
  Nicolas Goaziou
 
 
 
  --
  Thomas S. Dye
  http://www.tsdye.com
 



Re: [O] Way to replace normal tabular env with booktabs?

2012-02-09 Thread Thomas S. Dye
Sorry John,

I think the important step is (require 'org-e-latex).  When I checked
just now I couldn't see org-e-latex-booktables, but when I went back to
my initialization code and ran it, the variable was visible.

hth,
Tom

John Hendy jw.he...@gmail.com writes:

 On Thu, Feb 9, 2012 at 1:57 PM, Thomas S. Dye t...@tsdye.com wrote:
 Hi John,

 I had the same experience.  When I restarted Emacs, it was there.
 What's more, it appears to work.  I haven't had time to explore
 thoroughly but the initial test worked out of the box.

 I've restarted... still nothing.

 ,---
 | Org-mode version 7.8.03 (release_7.8.03.330.gc804)
 `---

 Just did another fresh pull, made sure I'm on master, and still don't have it.

 John


 All the best,
 Tom

 John Hendy jw.he...@gmail.com writes:

 On Wed, Feb 8, 2012 at 4:32 PM, Nicolas Goaziou n.goaz...@gmail.com wrote:
 Hello,

 Niels Giesen niels.gie...@gmail.com writes:

 I say: go for it!

 Booktabs are available in e-latex backend, through booktabs=yes
 attribute or org-e-latex-tables-booktabs variable.


 This is currently implemented? I just did a pull and don't get any
 results for the variable org-e[xport]-latex-booktabs...

 Sorry if I didn't understand how you implemented it.


 Thanks,
 JOhn

 I don't make use of :skipheadrule yet, since it's not in tree. Speaking
 about it, it should be a good idea to including a line about it in
 `orgtbl-to-generic' docstring.


 Regards,

 --
 Nicolas Goaziou



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

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



Re: [O] Way to replace normal tabular env with booktabs?

2012-02-09 Thread Nick Dokos
John Hendy jw.he...@gmail.com wrote:

 On Thu, Feb 9, 2012 at 1:57 PM, Thomas S. Dye t...@tsdye.com wrote:
  Hi John,
 
  I had the same experience.  When I restarted Emacs, it was there.
  What's more, it appears to work.  I haven't had time to explore
  thoroughly but the initial test worked out of the box.
 
 I've restarted... still nothing.
 
 ,---
 | Org-mode version 7.8.03 (release_7.8.03.330.gc804)
 `---
 
 Just did another fresh pull, made sure I'm on master, and still don't have it.
 

... oh, one more thing: to use it, *don't do* C-c C-e (that will give
you the standard exporter). You have to invoke it explicitly with

   M-x org-export-dispatch RET

Nick

 John
 
 
  All the best,
  Tom
 
  John Hendy jw.he...@gmail.com writes:
 
  On Wed, Feb 8, 2012 at 4:32 PM, Nicolas Goaziou n.goaz...@gmail.com 
  wrote:
  Hello,
 
  Niels Giesen niels.gie...@gmail.com writes:
 
  I say: go for it!
 
  Booktabs are available in e-latex backend, through booktabs=yes
  attribute or org-e-latex-tables-booktabs variable.
 
 
  This is currently implemented? I just did a pull and don't get any
  results for the variable org-e[xport]-latex-booktabs...
 
  Sorry if I didn't understand how you implemented it.
 
 
  Thanks,
  JOhn
 
  I don't make use of :skipheadrule yet, since it's not in tree. Speaking
  about it, it should be a good idea to including a line about it in
  `orgtbl-to-generic' docstring.
 
 
  Regards,
 
  --
  Nicolas Goaziou
 
 
 
  --
  Thomas S. Dye
  http://www.tsdye.com
 



Re: [O] Way to replace normal tabular env with booktabs?

2012-02-09 Thread John Hendy
On Thu, Feb 9, 2012 at 2:29 PM, Nick Dokos nicholas.do...@hp.com wrote:
 John Hendy jw.he...@gmail.com wrote:

 On Thu, Feb 9, 2012 at 1:57 PM, Thomas S. Dye t...@tsdye.com wrote:
  Hi John,
 
  I had the same experience.  When I restarted Emacs, it was there.
  What's more, it appears to work.  I haven't had time to explore
  thoroughly but the initial test worked out of the box.

 I've restarted... still nothing.

 ,---
 | Org-mode version 7.8.03 (release_7.8.03.330.gc804)
 `---

 Just did another fresh pull, made sure I'm on master, and still don't have 
 it.


 ... oh, one more thing: to use it, *don't do* C-c C-e (that will give
 you the standard exporter). You have to invoke it explicitly with

           M-x org-export-dispatch RET


Ah. That makes more sense. I haven't used the new exporter. I'm
skimming the .el file to see how it differs.

Tom -- I saw your note as well and I think we're all on the same page
now. I didn't get that it was in the new exporter.

Thanks for the input,
John

 Nick

 John

 
  All the best,
  Tom
 
  John Hendy jw.he...@gmail.com writes:
 
  On Wed, Feb 8, 2012 at 4:32 PM, Nicolas Goaziou n.goaz...@gmail.com 
  wrote:
  Hello,
 
  Niels Giesen niels.gie...@gmail.com writes:
 
  I say: go for it!
 
  Booktabs are available in e-latex backend, through booktabs=yes
  attribute or org-e-latex-tables-booktabs variable.
 
 
  This is currently implemented? I just did a pull and don't get any
  results for the variable org-e[xport]-latex-booktabs...
 
  Sorry if I didn't understand how you implemented it.
 
 
  Thanks,
  JOhn
 
  I don't make use of :skipheadrule yet, since it's not in tree. Speaking
  about it, it should be a good idea to including a line about it in
  `orgtbl-to-generic' docstring.
 
 
  Regards,
 
  --
  Nicolas Goaziou
 
 
 
  --
  Thomas S. Dye
  http://www.tsdye.com




[O] Pushing *.org.gpg file to MobileOrg without prompting for the password

2012-02-09 Thread Juan Carlos Coruña
Hi,

I'm trying to use a gpg encrypted file with MobileOrg, but whenever I
org-mobile-push emacs asks for the password to decrypt the gpg file. Maybe
it needs to inspect the file for building agendas.org, but in this case the
gpg file is my password safe and it does nothing to do with the agenda.

My emacs executes org-mobile-push at fixed intervals (with run-at-time) and
since it prompts for the password it keeps waiting for it and don't pushes
my org files until I am back on the computer and enter the password.

If I copy the gpg file to the org-mobile-directory it does not appear in
MobileOrg because it also must be included in index.org.
I need that the gpg file is included in the index.org in order to lookup my
password safe form the MobileOrg application (on Android).

This is the relevant configuration in .emacs:

(setq org-agenda-files (file-expand-wildcards ~/Dropbox/org/*.org))
(setq org-mobile-files (cons ~/Dropbox/org/mysecrets.org.gpg
 (org-agenda-files)))

(run-at-time 15 min (* 30 60) 'org-mobile-push)
(add-hook 'kill-emacs-hook 'org-mobile-push)
(setq epa-armor t)

-- 
Juan Carlos Coruña: Magento, Python, Zope, Plone, Navision.
http://oggers-blog.blogspot.com


Re: [O] [beamer] Code blocks in lists?

2012-02-09 Thread Nicolas Goaziou


Hello,

Sebastien Vauban
wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes:

 Nicolas Goaziou wrote:

 I can't reproduce any list break ...

 Does that mean that you consider the following as normal?

No, it just means that I cannot reproduce it, notwithstanding how
abnormal your LaTeX output is.

 IIUC, every code block, inside lists or not, must be located at column
 0?

No, but last code block boundaries in your example are at column 0, so
list above ends there. Lists don't care about code's indentation. What
really matters is indentation of the #+begin_src line.


Regards,

-- 
Nicolas Goaziou




Re: [O] Way to replace normal tabular env with booktabs?

2012-02-09 Thread John Hendy
On Thu, Feb 9, 2012 at 2:29 PM, Nick Dokos nicholas.do...@hp.com wrote:
 John Hendy jw.he...@gmail.com wrote:

 On Thu, Feb 9, 2012 at 1:57 PM, Thomas S. Dye t...@tsdye.com wrote:
  Hi John,
 
  I had the same experience.  When I restarted Emacs, it was there.
  What's more, it appears to work.  I haven't had time to explore
  thoroughly but the initial test worked out of the box.

 I've restarted... still nothing.

 ,---
 | Org-mode version 7.8.03 (release_7.8.03.330.gc804)
 `---

 Just did another fresh pull, made sure I'm on master, and still don't have 
 it.


 ... oh, one more thing: to use it, *don't do* C-c C-e (that will give
 you the standard exporter). You have to invoke it explicitly with

           M-x org-export-dispatch RET

Got it. Works. What's the status on this exporter? I have settings in
a setupfile for latex export, which this (obviously) doesn't pick up
since it's bypassing. Thus, it looks like I'll have to set individual
options via the org-e-latex family of variables. But... it might be
nice to know when this will be pulled in. Should I invest in it or
stick to the normal exporter for now (which does work with the
booktabs patch)?


Thanks,
John


 Nick

 John

 
  All the best,
  Tom
 
  John Hendy jw.he...@gmail.com writes:
 
  On Wed, Feb 8, 2012 at 4:32 PM, Nicolas Goaziou n.goaz...@gmail.com 
  wrote:
  Hello,
 
  Niels Giesen niels.gie...@gmail.com writes:
 
  I say: go for it!
 
  Booktabs are available in e-latex backend, through booktabs=yes
  attribute or org-e-latex-tables-booktabs variable.
 
 
  This is currently implemented? I just did a pull and don't get any
  results for the variable org-e[xport]-latex-booktabs...
 
  Sorry if I didn't understand how you implemented it.
 
 
  Thanks,
  JOhn
 
  I don't make use of :skipheadrule yet, since it's not in tree. Speaking
  about it, it should be a good idea to including a line about it in
  `orgtbl-to-generic' docstring.
 
 
  Regards,
 
  --
  Nicolas Goaziou
 
 
 
  --
  Thomas S. Dye
  http://www.tsdye.com




Re: [O] AUCTex within org-babel

2012-02-09 Thread Riccardo Romoli
Thanks Jonas!!
I do not understand why the code works only if I use:

#+begin_latex

#+end-latex

instead of :

#+begin_src latex :exports results :results latex

#+end_src


mind that you could also use org constructs, for instance

 #+CAPTION: Figure example
 #+LABEL: fig:foo
 [[foo.jpg]]


I prefer to use the original LaTeX code!!

Best
Riccardo


2012/2/9 Jonas Hörsch co...@online.de

 On Thu, Feb 09 2012, Riccardo Romoli wrote:

  I have a further question: how can I export a code like this:
 
  #+begin_src latex
\begin{figure}
  \centering
  \includegraphics[width=1\textwidth]{foo.jpg}
  \caption{Figure example}
  \label{fig:foo}
\end{figure}
  #+end_src
 
  to LaTeX to obtain a working figure code??
 

 it seems to do what you want, when you instead use

 #+begin_latex
 ...
 #+end_latex

 C-' also still does the same. only the native fontification in the org
 buffer doesn't work irrespective of the org-src-fontify-natively
 setting. perhaps there is another variable for that.

 mind that you could also use org constructs, for instance

 #+CAPTION: Figure example
 #+LABEL: fig:foo
 [[foo.jpg]]

 exports to something rather similar.

 cheers,
 jonas





[O] bug / regression: C-x C-s is broken in org-edit-special

2012-02-09 Thread Leo Alekseyev
Previously, C-x C-s in an org-edit-special buffer (invoked via C-')
would save the underlying org buffer (provided (setq
org-src-window-setup (quote current-window)) was set; it was buggy
with other settings, see
http://thread.gmane.org/gmane.emacs.orgmode/50979 for discussion).
Currently, C-x C-s prompts to save the temporary source edit buffer in
a new file, which is almost certainly not what the user intends.  I
hope someone can look into this, C-x C-s shouldn't be broken in any
context.

This broke some time between commit
fc93b6f34071703d5a154a51540f3f4e3f15b8a2 (Jan. 18) and this week,
_possibly_ as a result of the change ensuring that buffer-file-name is
nil in temporary org-src buffers.  Buffer-file-name not being nil in a
temp buffer is incorrect behavior, but in this context having C-x C-s
not working is a much worse behavior, so perhaps that change ought to
be reverted if it's the culprit.

--Leo



Re: [O] Way to replace normal tabular env with booktabs?

2012-02-09 Thread Thomas S. Dye
John Hendy jw.he...@gmail.com writes:

 On Thu, Feb 9, 2012 at 2:29 PM, Nick Dokos nicholas.do...@hp.com wrote:
 John Hendy jw.he...@gmail.com wrote:

 On Thu, Feb 9, 2012 at 1:57 PM, Thomas S. Dye t...@tsdye.com wrote:
  Hi John,
 
  I had the same experience.  When I restarted Emacs, it was there.
  What's more, it appears to work.  I haven't had time to explore
  thoroughly but the initial test worked out of the box.

 I've restarted... still nothing.

 ,---
 | Org-mode version 7.8.03 (release_7.8.03.330.gc804)
 `---

 Just did another fresh pull, made sure I'm on master, and still don't have 
 it.


 ... oh, one more thing: to use it, *don't do* C-c C-e (that will give
 you the standard exporter). You have to invoke it explicitly with

           M-x org-export-dispatch RET

 Got it. Works. What's the status on this exporter? I have settings in
 a setupfile for latex export, which this (obviously) doesn't pick up
 since it's bypassing. Thus, it looks like I'll have to set individual
 options via the org-e-latex family of variables. But... it might be
 nice to know when this will be pulled in. Should I invest in it or
 stick to the normal exporter for now (which does work with the
 booktabs patch)?

The LaTeX and ASCII backends are still in EXPERIMENTAL.  The underlying
parser, etc. are in contrib.

I don't know if there is a schedule for moving this to the Org Mode
core, but it looks certain to make it there someday.

My $0.02 would be to wait for it to move to core and have some
documentation outside the docstrings in the .el files and the occasional
message to the list.

At this point Nicolas welcomes comments, so if you have time to
experiment with it you might be able to help him out.

I'm using it now on a real project with a distant time horizon.  The
document is still simple, but the experimental LaTeX exporter is doing a
good job.  I'm finding it relatively easy to configure.

All the best,
Tom



 Thanks,
 John


 Nick

 John

 
  All the best,
  Tom
 
  John Hendy jw.he...@gmail.com writes:
 
  On Wed, Feb 8, 2012 at 4:32 PM, Nicolas Goaziou n.goaz...@gmail.com 
  wrote:
  Hello,
 
  Niels Giesen niels.gie...@gmail.com writes:
 
  I say: go for it!
 
  Booktabs are available in e-latex backend, through booktabs=yes
  attribute or org-e-latex-tables-booktabs variable.
 
 
  This is currently implemented? I just did a pull and don't get any
  results for the variable org-e[xport]-latex-booktabs...
 
  Sorry if I didn't understand how you implemented it.
 
 
  Thanks,
  JOhn
 
  I don't make use of :skipheadrule yet, since it's not in tree. Speaking
  about it, it should be a good idea to including a line about it in
  `orgtbl-to-generic' docstring.
 
 
  Regards,
 
  --
  Nicolas Goaziou
 
 
 
  --
  Thomas S. Dye
  http://www.tsdye.com



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



Re: [O] Unicode (hindi/devnagari) in beamer export

2012-02-09 Thread Vikas Rawal

 
 # font for pdf export as article
 #+LATEX_HEADER: \setmainfont{Linux Libertine}
 
 Make sure you choose something which supports devanagari.

Unfortunately, I do not like the latin characters of all the fonts I
have with devanagari characters. Most of them have san-serif latin
characters while I would like to use serif.

Is it possible to use different fonts for latin and devanagari
characters? I have looked at the documentation of xetex and fontspec
but could not make it work.

Gratefully,

Vikas