Re: [O] Bug in latex export tutorial on worg ?

2011-05-10 Thread Thomas S. Dye
Nick Dokos  writes:

> Nick Dokos  wrote:
>
>> Robert Goldman  wrote:
>> 
>> > Ah.  I get it now.  But then surely the above IS a bug -- presumably
>> > it's not usual for a person to wish their latex export configuration to
>> > appear, in verbatim block, in their org-generated latex document!
>> > 
>> 
>> Perhaps not in most cases, but a tutorial has to do exactly that: how
>> else is it going to show the reader what needs to be done? Certainly
>> not by omitting the code that the reader is supposed to use.
>> 
>
> After Tom's reply, I went and looked at the example and now I get it
> too :-) Sorry for being dense before.
>
> Nick
>
>
Hi Nick,

Actually, your diagnosis was exactly right, as usual.  The "buggy" example
came from a document meant as a tutorial.

All the best,
Tom

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



Re: [O] [Accepted] Making the output of %% functions linkable in agenda views

2011-05-10 Thread Bert Burgemeister
Carsten Dominik  writes:

> On 7.5.2011, at 17:20, Bert Burgemeister wrote:
>
>> Matt Lundin  writes:
>> 
>>> Bert Burgemeister  writes:
>>> 
 Just curious, is there anything I should have known that prevented the
 patch submitted in http://article.gmane.org/gmane.emacs.orgmode/39313,
>>> 
>>> Is it still in the bugtracker, or was it rejected?
>> 
>> Yes, and no.
>> 
>>> With your patch, what would happen if there were two or more links in
>>> the headline?
>>> 
>>> * Two links
>>> %%(format "%s" (concat "[[elisp:(info)]" "[Link to info]]"))
>>> http://www.orgmode.org
>>> 
>>> This entry would show up in the agenda as:
>>> 
>>>  org:  [[elisp:(info)][Link to info]]
>>> 
>>> But AFAICT, hitting C-c C-o in the agenda-buffer (even on the elisp
>>> link) would jump immediately to http://www.orgmode.org, bypassing the
>>> opportunity to select the the %%(...) generated link.
>> 
>> That's true and your patch reduces org-mode's LOC, so you win.
>
> Hi Bert,
>
> does this mean
>
> http://patchwork.newartisans.com/patch/681/
>
> is now obsolete?

It doesn't fix any issues I'm aware of, so you could consider it
obsolete.  But on the other hand, it still makes org-agenda-open-link a
bit more robust as it makes the cond try the remaining clauses if the
first one doesn't succeed.

-- 
Bert




Re: [O] Agenda todo filter order

2011-05-10 Thread Bernt Hansen
Thanks!  :)

Regards,
Bernt


Carsten Dominik  writes:

> I have pushed this patch.
>
> - Carsten
>
> On 8.5.2011, at 20:17, Bernt Hansen wrote:
>
>> Hi Carsten,
>> 
>> I think this one works :)  \o/
>> 
>> Thanks!
>> 
>> -Bernt
>> 
>> 
>> Carsten Dominik  writes:
>> 
>>> Hi Bernt,
>>> 
>>> here is another try, I fixed a logical bug in the previous patch...
>>> Again, this patch replaces the previous one.
>>> 
>>> Changes at master
>>> Modified lisp/org-agenda.el
>>> diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
>>> index 609edd4..84e3247 100644
>>> --- a/lisp/org-agenda.el
>>> +++ b/lisp/org-agenda.el
>>> @@ -4575,13 +4575,12 @@ the documentation of `org-diary'."
>>>   (catch :skip
>>> (save-match-data
>>>   (beginning-of-line)
>>> + (org-agenda-skip)
>>>   (setq beg (point) end (save-excursion (outline-next-heading) (point)))
>>>   (when (org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item 
>>> end)
>>> (goto-char (1+ beg))
>>> (or org-agenda-todo-list-sublevels (org-end-of-subtree 'invisible))
>>> (throw :skip nil)))
>>> -   (goto-char beg)
>>> -   (org-agenda-skip)
>>> (goto-char (match-beginning 1))
>>> (setq marker (org-agenda-new-marker (match-beginning 0))
>>>   category (org-get-category)
>>> Modified lisp/org.el
>>> diff --git a/lisp/org.el b/lisp/org.el
>>> index acbb261..975266c 100644
>>> --- a/lisp/org.el
>>> +++ b/lisp/org.el
>>> @@ -12437,17 +12437,31 @@ only lines with a TODO keyword are included in 
>>> the output."
>>> ;; selective inheritance, remove uninherited ones
>>> (setcdr (car tags-alist)
>>> (org-remove-uninherited-tags (cdar tags-alist
>>> - (when (and (or (not todo-only)
>>> -(and (member todo org-not-done-keywords)
>>> - (or (not 
>>> org-agenda-tags-todo-honor-ignore-options)
>>> - (not 
>>> (org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item)
>>> -(let ((case-fold-search t)) (eval matcher))
>>> -(or
>>> - (not (member org-archive-tag tags-list))
>>> - ;; we have an archive tag, should we use this anyway?
>>> - (or (not org-agenda-skip-archived-trees)
>>> - (and (eq action 'agenda) org-agenda-archives-mode
>>> -   (unless (eq action 'sparse-tree) (org-agenda-skip))
>>> + (when (and
>>> +
>>> +;; eval matcher only when the todo condition is OK
>>> +(and (or (not todo-only) (member todo org-not-done-keywords))
>>> + (let ((case-fold-search t)) (eval matcher)))
>>> +
>>> +;; Call the skipper, but return t if it does not skip,
>>> +;; so that the `and' form continues evaluating
>>> +(progn
>>> +  (unless (eq action 'sparse-tree) (org-agenda-skip))
>>> +  t)
>>> +
>>> +;; Check if timestamps are deselecting this entry
>>> +(or (not todo-only)
>>> +(and (member todo org-not-done-keywords)
>>> + (or (not org-agenda-tags-todo-honor-ignore-options)
>>> + (not 
>>> (org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item)
>>> +
>>> +;; Extra check for the archive tag
>>> +;; FIXME: Does the skipper already do this
>>> +(or
>>> + (not (member org-archive-tag tags-list))
>>> + ;; we have an archive tag, should we use this anyway?
>>> + (or (not org-agenda-skip-archived-trees)
>>> + (and (eq action 'agenda) org-agenda-archives-mode
>>> 
>>> ;; select this headline
>>> 



Re: [O] Bug in latex export tutorial on worg ?

2011-05-10 Thread Robert Goldman
On 5/10/11 May 10 -12:25 AM, Thomas S. Dye wrote:
> Robert Goldman  writes:
> 
>> On 5/9/11 May 9 -11:22 PM, Nick Dokos wrote:
>>> Robert Goldman  wrote:
>>>
 On 5/9/11 May 9 -9:54 PM, Nick Dokos wrote:
> Robert Goldman  wrote:
>
>> There is the following code block there:
>>
>> #+begin_src emacs-lisp :results silent
>>   (add-to-list 'org-export-latex-classes
>>   '("per-file-class"
>>  "\\documentclass{scrartcl}
>>  [NO-DEFAULT-PACKAGES]
>>  [EXTRA]"
>>  ("\\section{%s}" . "\\section*{%s}")
>>  ("\\subsection{%s}" . "\\subsection*{%s}")
>>  ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
>>  ("\\paragraph{%s}" . "\\paragraph*{%s}")
>>  ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>> #+end_src
>>
>> Is this still correct?  Or should this be :exports none instead of
>> :results silent?
>>
>
> ``:results silent'' works for me and keeps the result from appearing in
> the org buffer. I don't think :exports can do that - it can only affect
> what's exported.
>
> Nick

 I must be doing something wrong then --- I had the :results silent and
 found the source block in verbatim in my latex export file  Changing
 to :exports none made that go away for me.  Maybe that was a
 coincidence.  I will have to investigate further, I guess.

>>>
>>> No, you are not doing anything wrong: the default :exports value is
>>> "code", so the code ends up in your export. ``:exports none'' keeps it
>>> (and any results) from being exported.
>>>
>>> OTOH, try evaluating (C-c C-c) the code block, with and without
>>> ``:results silent''. There is a behavior difference and *that* difference
>>> is not affected by how you set :exports.
>>>
>>> Nick
>>
>> Ah.  I get it now.  But then surely the above IS a bug -- presumably
>> it's not usual for a person to wish their latex export configuration to
>> appear, in verbatim block, in their org-generated latex document!
>>
>> Best,
>> Robert
>>
>>
>>
> 
> Aloha Robert,
> 
> I've added :exports none to the example, which came from a document
> about how to export LaTeX documents from Org-mode.  Thanks for pointing
> out that it could be used in a way that yields unexpected results.
> 
> In my usual setup I put this kind of configuration in a heading of its
> own that is protected by a :noexport: tag.  This works for me because I
> often have notes about why things are in there and what I think they
> might be doing.

Great!  Thanks.  Your tutorial has been very helpful to me.  I needed to
figure out how to set up a special-purpose format for my document and in
a moment I had just the solution I needed.

I suppose one could do...

(unless (find "per-file-class" org-export-latex-classes :key 'car
   :test 'equal)
  (add-to-list 'org-export-latex-classes
  '("per-file-class"
 "\\documentclass{scrartcl}
 [NO-DEFAULT-PACKAGES]
 [EXTRA]"
 ("\\section{%s}" . "\\section*{%s}")
 ("\\subsection{%s}" . "\\subsection*{%s}")
 ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
 ("\\paragraph{%s}" . "\\paragraph*{%s}")
 ("\\subparagraph{%s}" . "\\subparagraph*{%s}"

since the add-to-list is a globally side-effecting action; it doesn't
need to be repeated on each export, right?  [I thought at first pushnew
could do the job, but now I don't think so.]

Best,
R



Re: [O] org-capture-other-frame

2011-05-10 Thread Radosław Grzanka

W dniu 2011-05-02 20:07, Lluís pisze:

I've made a little function to launch org-capture on another frame,
which is very handy when plugged into a hotkey and working with other
applications.


That work excelent on windows machine.

Thank you!
  Radek.



Re: [O] 'wrong-type-argument stringp nil' when exporting (reftex/orgmode)

2011-05-10 Thread Michael Zombok
> "Matt" == Matt Lundin  writes:

Matt> michael.zom...@googlemail.com writes:
>> I am using Org-mode version 7.5 (release_7.5.264.g94664) with GNU
>> Emacs 23.2.1. When I do C-c C-e l (or any other export, not only
>> latex), I get the error (backtrace) below.
>> 
>> I use reftex with org-mode with the setup described in the FAQ,
>> that means in my .emacs is the following:
>> 
>> (require 'reftex) (defun org-mode-reftex-setup () (load-library
>> "reftex") (and (buffer-file-name) (file-exists-p
>> (buffer-file-name)) (reftex-parse-all)) (reftex-set-cite-format
>> "\\citep{%l}") (define-key org-mode-map (kbd "C-c )")
>> 'reftex-citation)) (add-hook 'org-mode-hook
>> 'org-mode-reftex-setup) (setq reftex-default-bibliography
>> '("/home/basil/docs/liball.bib"))

Matt> The function reftex-set-cite-format should also be made
Matt> conditional on the buffer-file-name and file-exists-p
Matt> checks. It calls reftex-TeX-master-file in the temporary
Matt> export buffer; this fails because there is no file associated
Matt> with the buffer.

Matt> Best, Matt

Thank you for the explanation. Your suggestions works fine. :)

Best, 
Michael



Re: [O] Docbook XML file does not exist

2011-05-10 Thread Eric Belpaire

On 04/05/11 16:00, Jambunathan K wrote:

Jambunathan K  writes:


Export to xml from within emacs and export to pdf from within
shell. (shell is bash within cygwin). There are two variations of shell
command that I use:

1. Variation 1:
#+begin_src sh
   xsltproc -stringparam admon.graphics 1 --output test.fo 
/usr/share/sgml/docbook/xsl-stylesheets/fo/docbook.xsl test.xml

   ~/bin/fop-1.0/fop ./test.fo test.pdf

   open test.pdf
#+end_src


I confirm that this works !

the whole docbook to pdf could be shellified by
using org-export-as-docbook-batch.


This works to transform the org file into a xml file.

Thanks, Eric



[O] Bug: The org-entry-put add extra space after each invoking [7.5 (release_7.5.260.geb2a)]

2011-05-10 Thread wujun zhou
Each time I invoke the org-entry-put, I will get an extra space before
the value, like this:


[O] Day Planner link broken

2011-05-10 Thread Brian Brooks
Just an FYI, the "Day Planner" link on orgmode.org is broken.


[O] [PATCH] Optional \caption argument in LaTeX export

2011-05-10 Thread Thomas S. Dye
Aloha all,

The attached patch initializes the shortn variable, uses it to add the
optional argument to \caption in two places where this wasn't
implemented, and adds a bit of documentation.

Note that the shortn variable in org-mode is already used to add an
optional argument to \caption in one case.  The patch enables this
behavior for other captions, as well.

Note also, that if the shortn variable isn't initialized nil, the
optional argument to one \caption is recycled to the next \caption
indefinitely until shortn is reset.

Thanks to Nick Dokos for explaining why an earlier patch of mine didn't
show up on patchwork (wrong MIME type, evil mail client).  This one is
sent from gnus with crossed fingers.

All the best,
Tom

>From 9dc65f7e598dd171ebce9448cd39c4062f7cafff Mon Sep 17 00:00:00 2001
From: Tom Dye 
Date: Sun, 8 May 2011 06:56:25 -1000
Subject: [PATCH] optional caption arguments in LaTeX export

---
 doc/org.texi  |5 +
 lisp/org-exp.el   |2 +-
 lisp/org-latex.el |4 ++--
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index 844de6d..3988838 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -8817,6 +8817,11 @@ the object with @code{\ref@{tab:basic-data@}}:
|-||
 @end example
 
+Optionally, the caption can take the form:
+@example
+#+CAPTION: [Caption for list of figures]{Caption for table (or link).}
+@end example
+
 @cindex inlined images, markup rules
 Some backends (HTML, @LaTeX{}, and DocBook) allow you to directly include
 images into the exported document.  Org does this, if a link to an image
diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index cda1f98..e840b6c 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -1871,7 +1871,7 @@ table line.  If it is a link, add it to the line containing the link."
    'org-label label))
 	(if label (push (cons label label) target-alist))
 	(goto-char end)
-	(setq cap nil attr nil label nil)
+	(setq cap nil shortn nil attr nil label nil)
   target-alist)
 
 (defun org-export-remove-comment-blocks-and-subtrees ()
diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index bc9a3f3..516ee12 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -2199,12 +2199,12 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
 	   (multicolumnp "\\begin{figure*}%placement
 \\centering
 \\includegraphics[%attr]{%path}
-\\caption{%labelcmd%caption}
+\\caption%shortn{%labelcmd%caption}
 \\end{figure*}")
 	   (floatp "\\begin{figure}%placement
 \\centering
 \\includegraphics[%attr]{%path}
-\\caption{%labelcmd%caption}
+\\caption%shortn{%labelcmd%caption}
 \\end{figure}")
 	   (t "\\includegraphics[%attr]{%path}")))
 
-- 
1.7.1


-- 
http://www.tsdye.com



[O] Daisy chain file/heading links

2011-05-10 Thread Derek Thomas
Hi, is there a way to daisy chain the searches in links?  I'm linking
several files that are organized in a heading, subheading, paragraph
format (paragraphs are numbered) and I'd like to specify a link like
this [[file:example.org::*Heading::*Subheading::P. 1][test link]].
The problem is that the subheadings and paragraph numbers are not
unique.  I also don't really want to set CUSTOM_ID properties for
every paragraph.  Thanks.

Derek



Re: [O] Day Planner link broken

2011-05-10 Thread Jason Dunsmore
Brian Brooks  writes:

> Just an FYI, the "Day Planner" link on orgmode.org is broken.

I updated the link.  Thanks for reporting this.



Re: [O] Daisy chain file/heading links

2011-05-10 Thread Michael Brand
Hi Derek

If you mean by "daisy chain a search" what I would call "outline
path": no, there is no such possibility for links yet, only for
refile. Once I also wanted to have this for links but now I prefer
:ID: links for my use cases. Read here for more:
http://thread.gmane.org/gmane.emacs.orgmode/36059

Michael

On Tue, May 10, 2011 at 16:25, Derek Thomas  wrote:
> Hi, is there a way to daisy chain the searches in links?  I'm linking
> several files that are organized in a heading, subheading, paragraph
> format (paragraphs are numbered) and I'd like to specify a link like
> this [[file:example.org::*Heading::*Subheading::P. 1][test link]].
> The problem is that the subheadings and paragraph numbers are not
> unique.  I also don't really want to set CUSTOM_ID properties for
> every paragraph.  Thanks.



[O] Assigning a keyboard shortcut

2011-05-10 Thread John Hendy
This is surely very simple but I can't find it anywhere...

I'm trying to assign org-resolve-clocks to C-c C-r. I tried to just
modify the way that link and agendar are set:
,---
| (global-set-key "\C-ca" 'org-agenda)
`---

So I've tried:
,---
| (global-set-key "\C-c C-r" 'org-resolve-clocks)
| (global-set-key "\C-c \C-r" 'org-resolve-clocks)
| (global-set-key "\C-c\C-r" 'org-resolve-clocks)
`---

and none have worked.
,---
| (global-set-key "\C-cr" 'org-resolve-clocks)
`---

works fine, but I wanted C-c C-r not C-c r. What am I goofing?


Thanks,
John



Re: [O] Assigning a keyboard shortcut

2011-05-10 Thread Matt Lundin
John Hendy  writes:

> This is surely very simple but I can't find it anywhere...
>
> I'm trying to assign org-resolve-clocks to C-c C-r. I tried to just
> modify the way that link and agendar are set:
[...]
> ,---
> | (global-set-key "\C-c\C-r" 'org-resolve-clocks)
> `---

This one works for me. You could also use this:

(global-set-key (kbd "C-c C-r") 'org-resolve-clocks)

Best,
Matt



Re: [O] Assigning a keyboard shortcut

2011-05-10 Thread Michael Markert
Hi John,

don't bother and use `kbd':

-- snip --
  (global-set-key (kbd "C-c C-r") 'org-resolve-clocks)
-- snap --

Michael


pgpAeEhmCsXNw.pgp
Description: PGP signature


Re: [O] typo

2011-05-10 Thread Jason Dunsmore
Cor Ninaber  writes:

> This "bug" is a very silly little thing but there is missing a letter in the
> description of "Org Mobile Index File" in the settings. Namely inks
> should be links (see the copy below).

Fixed.  http://orgmode.org/w/?p=org-mode.git;a=commitdiff;h=c735d62f0

Thanks for reporting this.



Re: [O] [PATCH] Sitemap sans extension

2011-05-10 Thread Manuel Giraud
Carsten Dominik  writes:

> Hi Manuel,
>
> this has been applied, but please provide a separate patch for the
> manual to document the new property.

Thanks Carsten, here it is.

>From 50d10f54241bbdd554b99534af9b66ea67b557eb Mon Sep 17 00:00:00 2001
From: Manuel Giraud 
Date: Tue, 10 May 2011 17:06:16 +0200
Subject: [PATCH 2/2] * org.texi (Sitemap): documentation for :sitemap-sans-extension

---
 doc/org.texi |5 +
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index 0625f4c..535672d 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -11155,6 +11155,11 @@ for the title of the file, @code{%a} stands for the author of the file and
 a sitemap entry's date is to be formated. This property bypasses
 @code{org-publish-sitemap-date-format} which defaults to @code{%Y-%m-%d}.
 
+@item @code{:sitemap-sans-extension}
+@tab When non-nil, remove filenames' extensions from the generated sitemap. 
+Useful to have cool URIs (see @uref{http://www.w3.org/Provider/Style/URI}).
+Defaults to @code{nil}.
+
 @end multitable
 
 @node Generating an index,  , Sitemap, Configuration
-- 
1.7.3.5


-- 
Manuel Giraud


[O] org-mode and ebib

2011-05-10 Thread Piter_
Hi all.
There was a discussion about integration of ebib and org mode. And it
is possible to open ebib on selected link like this
[[citep:jones1999][35]] .
But I cannot manage to insert such link from ebib into org-mode.
Have anybody made a function for it?
Thanks.
Petro.



[O] mobileorg android refuses to syn with mydisk.se

2011-05-10 Thread Robert Goldman
Using mydisk.se, when I try to sync I get an SSL error --- not trusted
server certificate.

Interestingly, neither FF nor Google Chrome on my laptop have any issue
with this server.  And my iPod Touch's copy of Mobile Org is happy with
mydisk.se, too.

Unfortunately, MobileOrg does not offer any option to inspect the cert
and decide to accept it.

Is anyone else having this problem?  Is it fixable?

thanks,
r



Re: [O] orgmode.org: 404 page not found error

2011-05-10 Thread Jason Dunsmore
Mehul Sanghvi  writes:

> If you go to http://orgmode.org/index.html#sec-4_1  and then click on the
> link in the first list item that says "this directory"  then you will
> get the 404
> error from nginx.

I fixed this with:

git checkout release_7.5
make html_manual

..and then copying the html files under doc/manual/ to the server.  The
manual for the Org 7.5 release is now at:

http://orgmode.org/manual/release_7.5/

Thanks for reporting this.



Re: [O] Bug in latex export tutorial on worg ?

2011-05-10 Thread Thomas S. Dye
Robert Goldman  writes:

> On 5/10/11 May 10 -12:25 AM, Thomas S. Dye wrote:
>> Robert Goldman  writes:
>> 
>>> On 5/9/11 May 9 -11:22 PM, Nick Dokos wrote:
 Robert Goldman  wrote:

> On 5/9/11 May 9 -9:54 PM, Nick Dokos wrote:
>> Robert Goldman  wrote:
>>
>>> There is the following code block there:
>>>
>>> #+begin_src emacs-lisp :results silent
>>>   (add-to-list 'org-export-latex-classes
>>>   '("per-file-class"
>>>  "\\documentclass{scrartcl}
>>>  [NO-DEFAULT-PACKAGES]
>>>  [EXTRA]"
>>>  ("\\section{%s}" . "\\section*{%s}")
>>>  ("\\subsection{%s}" . "\\subsection*{%s}")
>>>  ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
>>>  ("\\paragraph{%s}" . "\\paragraph*{%s}")
>>>  ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>>> #+end_src
>>>
>>> Is this still correct?  Or should this be :exports none instead of
>>> :results silent?
>>>
>>
>> ``:results silent'' works for me and keeps the result from appearing in
>> the org buffer. I don't think :exports can do that - it can only affect
>> what's exported.
>>
>> Nick
>
> I must be doing something wrong then --- I had the :results silent and
> found the source block in verbatim in my latex export file  Changing
> to :exports none made that go away for me.  Maybe that was a
> coincidence.  I will have to investigate further, I guess.
>

 No, you are not doing anything wrong: the default :exports value is
 "code", so the code ends up in your export. ``:exports none'' keeps it
 (and any results) from being exported.

 OTOH, try evaluating (C-c C-c) the code block, with and without
 ``:results silent''. There is a behavior difference and *that* difference
 is not affected by how you set :exports.

 Nick
>>>
>>> Ah.  I get it now.  But then surely the above IS a bug -- presumably
>>> it's not usual for a person to wish their latex export configuration to
>>> appear, in verbatim block, in their org-generated latex document!
>>>
>>> Best,
>>> Robert
>>>
>>>
>>>
>> 
>> Aloha Robert,
>> 
>> I've added :exports none to the example, which came from a document
>> about how to export LaTeX documents from Org-mode.  Thanks for pointing
>> out that it could be used in a way that yields unexpected results.
>> 
>> In my usual setup I put this kind of configuration in a heading of its
>> own that is protected by a :noexport: tag.  This works for me because I
>> often have notes about why things are in there and what I think they
>> might be doing.
>
> Great!  Thanks.  Your tutorial has been very helpful to me.  I needed to
> figure out how to set up a special-purpose format for my document and in
> a moment I had just the solution I needed.
>
> I suppose one could do...
>
> (unless (find "per-file-class" org-export-latex-classes :key 'car
>:test 'equal)
>   (add-to-list 'org-export-latex-classes
>   '("per-file-class"
>  "\\documentclass{scrartcl}
>  [NO-DEFAULT-PACKAGES]
>  [EXTRA]"
>  ("\\section{%s}" . "\\section*{%s}")
>  ("\\subsection{%s}" . "\\subsection*{%s}")
>  ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
>  ("\\paragraph{%s}" . "\\paragraph*{%s}")
>  ("\\subparagraph{%s}" . "\\subparagraph*{%s}"
>
> since the add-to-list is a globally side-effecting action; it doesn't
> need to be repeated on each export, right?  [I thought at first pushnew
> could do the job, but now I don't think so.]
>
> Best,
> R
>

Aloha Robert,

Many thanks for this improvement to the example code.  I've added it to
the tutorial (and to my own bits of setup code).

All the best,
Tom

-- 
T.S. Dye & Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com



Re: [O] org-mode and ebib

2011-05-10 Thread Thomas S. Dye
Piter_  writes:

> Hi all.
> There was a discussion about integration of ebib and org mode. And it
> is possible to open ebib on selected link like this
> [[citep:jones1999][35]] .
> But I cannot manage to insert such link from ebib into org-mode.
> Have anybody made a function for it?
> Thanks.
> Petro.
>
>

Aloha Petro,

Here's how I insert those links (perhaps someone else has a better way):

[[citep: (type this in the org-mode buffer)

M-x ebib (find desired reference in ebib buffer)

P Ret Ret Z (push the reference to the default buffer without using one
of the ebib format functions, then submerge ebib)

][XX]] (close the link, optionally adding a page number)

hth,
Tom

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



Re: [O] Assigning a keyboard shortcut

2011-05-10 Thread John Hendy
Got it -- I found that in my googling, but wondered why the org-mode
setup documentation has the other notation "\C-ca" vs. (kbd "C-c a").

Thanks,
John

On Tue, May 10, 2011 at 10:07 AM, Michael Markert
 wrote:
> Hi John,
>
> don't bother and use `kbd':
>
> -- snip --
>      (global-set-key (kbd "C-c C-r") 'org-resolve-clocks)
> -- snap --
>
> Michael
>



Re: [O] mobileorg android refuses to syn with mydisk.se

2011-05-10 Thread Matthew Jones
Hi Robert... I'm the developer for MobileOrg on Android, we have a known
issue with self-signed certificates.   What version of MobileOrg are you
using?  If you visit the site in the Android browser do you get a
certificate notification also?

On Tue, May 10, 2011 at 11:30 AM, Robert Goldman wrote:

> Using mydisk.se, when I try to sync I get an SSL error --- not trusted
> server certificate.
>
> Interestingly, neither FF nor Google Chrome on my laptop have any issue
> with this server.  And my iPod Touch's copy of Mobile Org is happy with
> mydisk.se, too.
>
> Unfortunately, MobileOrg does not offer any option to inspect the cert
> and decide to accept it.
>
> Is anyone else having this problem?  Is it fixable?
>
> thanks,
> r
>
>


Re: [O] mobileorg android refuses to syn with mydisk.se

2011-05-10 Thread Matthew Jones
Also... what version of Android are you using?

On Tue, May 10, 2011 at 1:34 PM, Matthew Jones  wrote:

> Hi Robert... I'm the developer for MobileOrg on Android, we have a known
> issue with self-signed certificates.   What version of MobileOrg are you
> using?  If you visit the site in the Android browser do you get a
> certificate notification also?
>
> On Tue, May 10, 2011 at 11:30 AM, Robert Goldman wrote:
>
>> Using mydisk.se, when I try to sync I get an SSL error --- not trusted
>> server certificate.
>>
>> Interestingly, neither FF nor Google Chrome on my laptop have any issue
>> with this server.  And my iPod Touch's copy of Mobile Org is happy with
>> mydisk.se, too.
>>
>> Unfortunately, MobileOrg does not offer any option to inspect the cert
>> and decide to accept it.
>>
>> Is anyone else having this problem?  Is it fixable?
>>
>> thanks,
>> r
>>
>>
>


[O] Org as a publishing toolkit

2011-05-10 Thread Marcelo de Moraes Serpa
Hi list,

So today I have been reseaching about higher-levels toolkits that
could help me get into TeX (and or LaTeX) and at the same time
allowing me to keep the text in a more human-readable format (easier
to mantain and to convert to other formats if needed).

I know that if I want beautiful formatted PDFs I will need to get into
TeX / LaTeX, and I already started doing that, but as I said, keeping
the text in a higher level format has benefits that you already know
about.

So I looked at asciidoc, the lower-level XML-based docbook, markdown,
pandoc, ConTeXt, etc.

Then I thought, why not try orgmode?

So, after reading this article:
http://orgmode.org/worg/org-tutorials/org-latex-export.html, I've then
realized how powerful the org-export feature is.

I can basically do this:
 * Keep the text in a (very) human readable format that I'm used to
and that is much better to maintain than any other format I know
(markdown / asciidoc) and integrated with my own orgmode personal
information manager!
 * Add / customize the LaTeX output in *ANY* way I want to. Thanks to
org AND babel! From what I can see, there are no limitations on how
complex the LaTeX customizations can be, it can essentially match up
any other "pure" latex documents out there.
 * As noted above, fully support LaTeX while still allowing me to export to:
   * plaintext
   * HTML
   * DocBook (and hence an array of other formats)

I mean, how cool is that? I'm only starting in TeX/LaTeX so I might be
overlooking some limitations, but from what I can see, orgmode is the
most pragmatic and powerful publishing framework I have ever come to
know.

And what excites me even more is that I can keep my book in my
preferred format and still output a beautifully-formatted PDF book
*and* still support other formats (such as mobi or epub through
docbook). Amazing!

By the way, if I want to use raw TeX or maybe ConTeXt, is it possible?
Not that I need, only curious :)

This needs more hype! I don't think people realize how powerful this is ;)

Cheers!

Marcelo.



Re: [O] Org as a publishing toolkit

2011-05-10 Thread Thomas S. Dye
Marcelo de Moraes Serpa  writes:

> Hi list,
>
> So today I have been reseaching about higher-levels toolkits that
> could help me get into TeX (and or LaTeX) and at the same time
> allowing me to keep the text in a more human-readable format (easier
> to mantain and to convert to other formats if needed).
>
> I know that if I want beautiful formatted PDFs I will need to get into
> TeX / LaTeX, and I already started doing that, but as I said, keeping
> the text in a higher level format has benefits that you already know
> about.
>
> So I looked at asciidoc, the lower-level XML-based docbook, markdown,
> pandoc, ConTeXt, etc.
>
> Then I thought, why not try orgmode?
>
> So, after reading this article:
> http://orgmode.org/worg/org-tutorials/org-latex-export.html, I've then
> realized how powerful the org-export feature is.
>
> I can basically do this:
>  * Keep the text in a (very) human readable format that I'm used to
> and that is much better to maintain than any other format I know
> (markdown / asciidoc) and integrated with my own orgmode personal
> information manager!
>  * Add / customize the LaTeX output in *ANY* way I want to. Thanks to
> org AND babel! From what I can see, there are no limitations on how
> complex the LaTeX customizations can be, it can essentially match up
> any other "pure" latex documents out there.
>  * As noted above, fully support LaTeX while still allowing me to export to:
>* plaintext
>* HTML
>* DocBook (and hence an array of other formats)
>
> I mean, how cool is that? I'm only starting in TeX/LaTeX so I might be
> overlooking some limitations, but from what I can see, orgmode is the
> most pragmatic and powerful publishing framework I have ever come to
> know.
>
> And what excites me even more is that I can keep my book in my
> preferred format and still output a beautifully-formatted PDF book
> *and* still support other formats (such as mobi or epub through
> docbook). Amazing!
>
> By the way, if I want to use raw TeX or maybe ConTeXt, is it possible?
> Not that I need, only curious :)
>
> This needs more hype! I don't think people realize how powerful this is ;)
>
> Cheers!
>
> Marcelo.
>
>

Aloha Marcelo,

The LaTeX export tutorial is a work in progress.  I hope you find it
useful.  When you run across something that doesn't work (or make sense)
don't hesitate to come back to the list with a query or suggestion.

All the best,
Tom

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



Re: [O] Org as a publishing toolkit

2011-05-10 Thread Marcelo de Moraes Serpa
Cool! Thanks.

Now that you mention it, I was wondering if something like "condition
export" is possible. For very specific localized LaTeX fetures, it
would be useful. Take this example:

#+LaTeX_HEADER: \usepackage[T1]{fontenc}

#+LaTeX:\yinipar{\color{red}H}ello World

This created a first-letter that is stylized differently. This won't
come out in any other exported, so I'd like to do something like
(NOTE: pseudo-code!)

#+LaTeX:\yinipar{\color{red}H}ello World

#iif not LaTeX
   Hello World
#end

If it is not possible what I can do is to pre-process the orgfile with
something like ERB (I'm familiar with Ruby) or another templating
language before exporting (and even automate it all by calling emacs
in batch mode ;) ), but it'd be nice if org supported that
out-of-the-box.

Cheers,

Marcelo.


On Tue, May 10, 2011 at 1:31 PM, Thomas S. Dye  wrote:
> Marcelo de Moraes Serpa  writes:
>
>> Hi list,
>>
>> So today I have been reseaching about higher-levels toolkits that
>> could help me get into TeX (and or LaTeX) and at the same time
>> allowing me to keep the text in a more human-readable format (easier
>> to mantain and to convert to other formats if needed).
>>
>> I know that if I want beautiful formatted PDFs I will need to get into
>> TeX / LaTeX, and I already started doing that, but as I said, keeping
>> the text in a higher level format has benefits that you already know
>> about.
>>
>> So I looked at asciidoc, the lower-level XML-based docbook, markdown,
>> pandoc, ConTeXt, etc.
>>
>> Then I thought, why not try orgmode?
>>
>> So, after reading this article:
>> http://orgmode.org/worg/org-tutorials/org-latex-export.html, I've then
>> realized how powerful the org-export feature is.
>>
>> I can basically do this:
>>  * Keep the text in a (very) human readable format that I'm used to
>> and that is much better to maintain than any other format I know
>> (markdown / asciidoc) and integrated with my own orgmode personal
>> information manager!
>>  * Add / customize the LaTeX output in *ANY* way I want to. Thanks to
>> org AND babel! From what I can see, there are no limitations on how
>> complex the LaTeX customizations can be, it can essentially match up
>> any other "pure" latex documents out there.
>>  * As noted above, fully support LaTeX while still allowing me to export to:
>>    * plaintext
>>    * HTML
>>    * DocBook (and hence an array of other formats)
>>
>> I mean, how cool is that? I'm only starting in TeX/LaTeX so I might be
>> overlooking some limitations, but from what I can see, orgmode is the
>> most pragmatic and powerful publishing framework I have ever come to
>> know.
>>
>> And what excites me even more is that I can keep my book in my
>> preferred format and still output a beautifully-formatted PDF book
>> *and* still support other formats (such as mobi or epub through
>> docbook). Amazing!
>>
>> By the way, if I want to use raw TeX or maybe ConTeXt, is it possible?
>> Not that I need, only curious :)
>>
>> This needs more hype! I don't think people realize how powerful this is ;)
>>
>> Cheers!
>>
>> Marcelo.
>>
>>
>
> Aloha Marcelo,
>
> The LaTeX export tutorial is a work in progress.  I hope you find it
> useful.  When you run across something that doesn't work (or make sense)
> don't hesitate to come back to the list with a query or suggestion.
>
> All the best,
> Tom
>
> --
> Thomas S. Dye
> http://www.tsdye.com
>



Re: [O] Assigning a keyboard shortcut

2011-05-10 Thread Darlan Cavalcante Moreira

Emacs has different ways to assign key-bindings but the method with kbd
seems to be the best one.

An excellent blog post about key-bindings in Emacs is
http://www.masteringemacs.org/articles/2011/02/08/mastering-key-bindings-emacs/

--
Darlan

At Tue, 10 May 2011 09:59:21 -0500,
John Hendy  wrote:
> 
> This is surely very simple but I can't find it anywhere...
> 
> I'm trying to assign org-resolve-clocks to C-c C-r. I tried to just
> modify the way that link and agendar are set:
> ,---
> | (global-set-key "\C-ca" 'org-agenda)
> `---
> 
> So I've tried:
> ,---
> | (global-set-key "\C-c C-r" 'org-resolve-clocks)
> | (global-set-key "\C-c \C-r" 'org-resolve-clocks)
> | (global-set-key "\C-c\C-r" 'org-resolve-clocks)
> `---
> 
> and none have worked.
> ,---
> | (global-set-key "\C-cr" 'org-resolve-clocks)
> `---
> 
> works fine, but I wanted C-c C-r not C-c r. What am I goofing?
> 
> 
> Thanks,
> John
> 



Re: [O] Org as a publishing toolkit

2011-05-10 Thread Thomas S. Dye
Aloha Marcelo,

The approach I would take here, which might not be what you want, would
be to use inline markup:

http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-10_3

You would define the output for the various exporters in the link
definition, with something fancy for LaTeX and whatever else works in
the other export formats you care to support.

All the best,
Tom

Marcelo de Moraes Serpa  writes:

> Cool! Thanks.
>
> Now that you mention it, I was wondering if something like "condition
> export" is possible. For very specific localized LaTeX fetures, it
> would be useful. Take this example:
>
> #+LaTeX_HEADER: \usepackage[T1]{fontenc}
>
> #+LaTeX:\yinipar{\color{red}H}ello World
>
> This created a first-letter that is stylized differently. This won't
> come out in any other exported, so I'd like to do something like
> (NOTE: pseudo-code!)
>
> #+LaTeX:\yinipar{\color{red}H}ello World
>
> #iif not LaTeX
>Hello World
> #end
>
> If it is not possible what I can do is to pre-process the orgfile with
> something like ERB (I'm familiar with Ruby) or another templating
> language before exporting (and even automate it all by calling emacs
> in batch mode ;) ), but it'd be nice if org supported that
> out-of-the-box.
>
> Cheers,
>
> Marcelo.
>
>
> On Tue, May 10, 2011 at 1:31 PM, Thomas S. Dye  wrote:
>> Marcelo de Moraes Serpa  writes:
>>
>>> Hi list,
>>>
>>> So today I have been reseaching about higher-levels toolkits that
>>> could help me get into TeX (and or LaTeX) and at the same time
>>> allowing me to keep the text in a more human-readable format (easier
>>> to mantain and to convert to other formats if needed).
>>>
>>> I know that if I want beautiful formatted PDFs I will need to get into
>>> TeX / LaTeX, and I already started doing that, but as I said, keeping
>>> the text in a higher level format has benefits that you already know
>>> about.
>>>
>>> So I looked at asciidoc, the lower-level XML-based docbook, markdown,
>>> pandoc, ConTeXt, etc.
>>>
>>> Then I thought, why not try orgmode?
>>>
>>> So, after reading this article:
>>> http://orgmode.org/worg/org-tutorials/org-latex-export.html, I've then
>>> realized how powerful the org-export feature is.
>>>
>>> I can basically do this:
>>>  * Keep the text in a (very) human readable format that I'm used to
>>> and that is much better to maintain than any other format I know
>>> (markdown / asciidoc) and integrated with my own orgmode personal
>>> information manager!
>>>  * Add / customize the LaTeX output in *ANY* way I want to. Thanks to
>>> org AND babel! From what I can see, there are no limitations on how
>>> complex the LaTeX customizations can be, it can essentially match up
>>> any other "pure" latex documents out there.
>>>  * As noted above, fully support LaTeX while still allowing me to export to:
>>>    * plaintext
>>>    * HTML
>>>    * DocBook (and hence an array of other formats)
>>>
>>> I mean, how cool is that? I'm only starting in TeX/LaTeX so I might be
>>> overlooking some limitations, but from what I can see, orgmode is the
>>> most pragmatic and powerful publishing framework I have ever come to
>>> know.
>>>
>>> And what excites me even more is that I can keep my book in my
>>> preferred format and still output a beautifully-formatted PDF book
>>> *and* still support other formats (such as mobi or epub through
>>> docbook). Amazing!
>>>
>>> By the way, if I want to use raw TeX or maybe ConTeXt, is it possible?
>>> Not that I need, only curious :)
>>>
>>> This needs more hype! I don't think people realize how powerful this is ;)
>>>
>>> Cheers!
>>>
>>> Marcelo.
>>>
>>>
>>
>> Aloha Marcelo,
>>
>> The LaTeX export tutorial is a work in progress.  I hope you find it
>> useful.  When you run across something that doesn't work (or make sense)
>> don't hesitate to come back to the list with a query or suggestion.
>>
>> All the best,
>> Tom
>>
>> --
>> Thomas S. Dye
>> http://www.tsdye.com
>>
>

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



Re: [O] mobileorg android refuses to syn with mydisk.se

2011-05-10 Thread Robert Goldman
On 5/10/11 May 10 -12:34 PM, Matthew Jones wrote:
> Hi Robert... I'm the developer for MobileOrg on Android, we have a known
> issue with self-signed certificates.   What version of MobileOrg are you
> using?  If you visit the site in the Android browser do you get a
> certificate notification also?

Yes, I do, but I get the opportunity to continue through the certificate
notification.

this is android 2.2

Best,
r





Re: [O] mobileorg android refuses to syn with mydisk.se

2011-05-10 Thread Matthew Jones
Unfortunately this is a known critical issue which I have had great
difficulty in solving:

https://github.com/matburt/mobileorg-android/issues/22

The workaround in
the case of mydisk.se, to say nothing of whether this would be acceptable to
you, is to use the non-https version of the mydisk.se webdav system.  This
is actually the first I have heard that mydisk's https has issues with
Android's certificate system.

I suspect there is some final solution to this problem, but I'm still
working on it... I'd recommend adding a note to that bug I just posted above
with the details that you have listed here and when I close it (hopefully
for the 0.6.0 release) you will be notified of it.

On Tue, May 10, 2011 at 3:31 PM, Robert Goldman  wrote:

> On 5/10/11 May 10 -12:34 PM, Matthew Jones wrote:
> > Hi Robert... I'm the developer for MobileOrg on Android, we have a known
> > issue with self-signed certificates.   What version of MobileOrg are you
> > using?  If you visit the site in the Android browser do you get a
> > certificate notification also?
>
> Yes, I do, but I get the opportunity to continue through the certificate
> notification.
>
> this is android 2.2
>
> Best,
> r
>
>
>


Re: [O] Org as a publishing toolkit

2011-05-10 Thread Marcelo de Moraes Serpa
Thomas,

I have a more specific question. I have already managed to embed an
image to act as the cover of the book. However, the image is being
shown in the third page. I want the sequence to be like this:

1) Cover image
2) The sub-cover:

   "Title""
 My Name
   Date

3) TOC

4) Intro, chapters...

How could I do that?

Thanks in advance!

Regards,

Marcelo.

On Tue, May 10, 2011 at 2:19 PM, Thomas S. Dye  wrote:
> Aloha Marcelo,
>
> The approach I would take here, which might not be what you want, would
> be to use inline markup:
>
> http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-10_3
>
> You would define the output for the various exporters in the link
> definition, with something fancy for LaTeX and whatever else works in
> the other export formats you care to support.
>
> All the best,
> Tom
>
> Marcelo de Moraes Serpa  writes:
>
>> Cool! Thanks.
>>
>> Now that you mention it, I was wondering if something like "condition
>> export" is possible. For very specific localized LaTeX fetures, it
>> would be useful. Take this example:
>>
>> #+LaTeX_HEADER: \usepackage[T1]{fontenc}
>>
>> #+LaTeX:\yinipar{\color{red}H}ello World
>>
>> This created a first-letter that is stylized differently. This won't
>> come out in any other exported, so I'd like to do something like
>> (NOTE: pseudo-code!)
>>
>> #+LaTeX:\yinipar{\color{red}H}ello World
>>
>> #iif not LaTeX
>>    Hello World
>> #end
>>
>> If it is not possible what I can do is to pre-process the orgfile with
>> something like ERB (I'm familiar with Ruby) or another templating
>> language before exporting (and even automate it all by calling emacs
>> in batch mode ;) ), but it'd be nice if org supported that
>> out-of-the-box.
>>
>> Cheers,
>>
>> Marcelo.
>>
>>
>> On Tue, May 10, 2011 at 1:31 PM, Thomas S. Dye  wrote:
>>> Marcelo de Moraes Serpa  writes:
>>>
 Hi list,

 So today I have been reseaching about higher-levels toolkits that
 could help me get into TeX (and or LaTeX) and at the same time
 allowing me to keep the text in a more human-readable format (easier
 to mantain and to convert to other formats if needed).

 I know that if I want beautiful formatted PDFs I will need to get into
 TeX / LaTeX, and I already started doing that, but as I said, keeping
 the text in a higher level format has benefits that you already know
 about.

 So I looked at asciidoc, the lower-level XML-based docbook, markdown,
 pandoc, ConTeXt, etc.

 Then I thought, why not try orgmode?

 So, after reading this article:
 http://orgmode.org/worg/org-tutorials/org-latex-export.html, I've then
 realized how powerful the org-export feature is.

 I can basically do this:
  * Keep the text in a (very) human readable format that I'm used to
 and that is much better to maintain than any other format I know
 (markdown / asciidoc) and integrated with my own orgmode personal
 information manager!
  * Add / customize the LaTeX output in *ANY* way I want to. Thanks to
 org AND babel! From what I can see, there are no limitations on how
 complex the LaTeX customizations can be, it can essentially match up
 any other "pure" latex documents out there.
  * As noted above, fully support LaTeX while still allowing me to export 
 to:
    * plaintext
    * HTML
    * DocBook (and hence an array of other formats)

 I mean, how cool is that? I'm only starting in TeX/LaTeX so I might be
 overlooking some limitations, but from what I can see, orgmode is the
 most pragmatic and powerful publishing framework I have ever come to
 know.

 And what excites me even more is that I can keep my book in my
 preferred format and still output a beautifully-formatted PDF book
 *and* still support other formats (such as mobi or epub through
 docbook). Amazing!

 By the way, if I want to use raw TeX or maybe ConTeXt, is it possible?
 Not that I need, only curious :)

 This needs more hype! I don't think people realize how powerful this is ;)

 Cheers!

 Marcelo.


>>>
>>> Aloha Marcelo,
>>>
>>> The LaTeX export tutorial is a work in progress.  I hope you find it
>>> useful.  When you run across something that doesn't work (or make sense)
>>> don't hesitate to come back to the list with a query or suggestion.
>>>
>>> All the best,
>>> Tom
>>>
>>> --
>>> Thomas S. Dye
>>> http://www.tsdye.com
>>>
>>
>
> --
> Thomas S. Dye
> http://www.tsdye.com
>



Re: [O] org-mode and ebib

2011-05-10 Thread Christian Moe
I use Reftex for inserting -- from the .bib file, not from ebib -- 
thanks to the setup tips here:


http://article.gmane.org/gmane.emacs.orgmode/2406/match=bibliography

http://www.mfasold.net/blog/2009/02/using-emacs-org-mode-to-draft-papers/

Yours,
Christian


On 5/10/11 6:15 PM, Thomas S. Dye wrote:

Piter_  writes:


Hi all.
There was a discussion about integration of ebib and org mode. And it
is possible to open ebib on selected link like this
[[citep:jones1999][35]] .
But I cannot manage to insert such link from ebib into org-mode.
Have anybody made a function for it?
Thanks.
Petro.




Aloha Petro,

Here's how I insert those links (perhaps someone else has a better way):

[[citep: (type this in the org-mode buffer)

M-x ebib (find desired reference in ebib buffer)

P Ret Ret Z (push the reference to the default buffer without using one
of the ebib format functions, then submerge ebib)

][XX]] (close the link, optionally adding a page number)

hth,
Tom






Re: [O] [PATCH] org-preview-latex-fragment in indirect buffers

2011-05-10 Thread Darlan Cavalcante Moreira

This is a rather small change in org.el. Since I didn't get a response
(even rejected) I suspect this is because I didn't attached a proper patch
so that the patchwork server can get it.

The patch is attached now.

--
Darlan

diff --git a/lisp/org.el b/lisp/org.el
index acbb261..eb95efa 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16151,6 +16151,11 @@ Revert to the normal definition outside of these 
fragments."
   (mapc 'delete-overlay org-latex-fragment-image-overlays)
   (setq org-latex-fragment-image-overlays nil))
 
+(defun org-buffer-file-name ()
+  "Similar to buffer-file-name, but also works on indirect buffers."
+  (buffer-file-name (buffer-base-buffer))
+  )
+
 (defun org-preview-latex-fragment (&optional subtree)
   "Preview the LaTeX fragment at point, or all locally or globally.
 If the cursor is in a LaTeX fragment, create the image and overlay
@@ -16189,7 +16194,7 @@ The images can be removed again with 
\\[org-ctrl-c-ctrl-c]."
(org-format-latex
 (concat "ltxpng/" (file-name-sans-extension
(file-name-nondirectory
-buffer-file-name)))
+(org-buffer-file-name
 default-directory 'overlays msg at 'forbuffer 'dvipng)
   (message msg "done.  Use `C-c C-c' to remove images.")
 


Re: [O] Org as a publishing toolkit

2011-05-10 Thread Thomas S. Dye
Aloha Marcelo,

Others might do this differently, but I don't use LaTeX for book
covers.  I only use it for the pages of the book.

It sounds like your cover image is floating, which is something that
LaTeX does with tables and images.  If you are new to LaTeX and don't
have a feel for how it handles "floats", then I recommend an
introductory text.  Leslie Lamport's book is terrific, but there are
other good introductions on the Internet.

Org-mode and its LaTeX exporter are *not* going to insulate you from the
need to learn some LaTeX, especially if you intend to write something as
complex as a book.

hth,
Tom

Marcelo de Moraes Serpa  writes:

> Thomas,
>
> I have a more specific question. I have already managed to embed an
> image to act as the cover of the book. However, the image is being
> shown in the third page. I want the sequence to be like this:
>
> 1) Cover image
> 2) The sub-cover:
>
>"Title""
>  My Name
>Date
>
> 3) TOC
>
> 4) Intro, chapters...
>
> How could I do that?
>
> Thanks in advance!
>
> Regards,
>
> Marcelo.
>
> On Tue, May 10, 2011 at 2:19 PM, Thomas S. Dye  wrote:
>> Aloha Marcelo,
>>
>> The approach I would take here, which might not be what you want, would
>> be to use inline markup:
>>
>> http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-10_3
>>
>> You would define the output for the various exporters in the link
>> definition, with something fancy for LaTeX and whatever else works in
>> the other export formats you care to support.
>>
>> All the best,
>> Tom
>>
>> Marcelo de Moraes Serpa  writes:
>>
>>> Cool! Thanks.
>>>
>>> Now that you mention it, I was wondering if something like "condition
>>> export" is possible. For very specific localized LaTeX fetures, it
>>> would be useful. Take this example:
>>>
>>> #+LaTeX_HEADER: \usepackage[T1]{fontenc}
>>>
>>> #+LaTeX:\yinipar{\color{red}H}ello World
>>>
>>> This created a first-letter that is stylized differently. This won't
>>> come out in any other exported, so I'd like to do something like
>>> (NOTE: pseudo-code!)
>>>
>>> #+LaTeX:\yinipar{\color{red}H}ello World
>>>
>>> #iif not LaTeX
>>>    Hello World
>>> #end
>>>
>>> If it is not possible what I can do is to pre-process the orgfile with
>>> something like ERB (I'm familiar with Ruby) or another templating
>>> language before exporting (and even automate it all by calling emacs
>>> in batch mode ;) ), but it'd be nice if org supported that
>>> out-of-the-box.
>>>
>>> Cheers,
>>>
>>> Marcelo.
>>>
>>>
>>> On Tue, May 10, 2011 at 1:31 PM, Thomas S. Dye  wrote:
 Marcelo de Moraes Serpa  writes:

> Hi list,
>
> So today I have been reseaching about higher-levels toolkits that
> could help me get into TeX (and or LaTeX) and at the same time
> allowing me to keep the text in a more human-readable format (easier
> to mantain and to convert to other formats if needed).
>
> I know that if I want beautiful formatted PDFs I will need to get into
> TeX / LaTeX, and I already started doing that, but as I said, keeping
> the text in a higher level format has benefits that you already know
> about.
>
> So I looked at asciidoc, the lower-level XML-based docbook, markdown,
> pandoc, ConTeXt, etc.
>
> Then I thought, why not try orgmode?
>
> So, after reading this article:
> http://orgmode.org/worg/org-tutorials/org-latex-export.html, I've then
> realized how powerful the org-export feature is.
>
> I can basically do this:
>  * Keep the text in a (very) human readable format that I'm used to
> and that is much better to maintain than any other format I know
> (markdown / asciidoc) and integrated with my own orgmode personal
> information manager!
>  * Add / customize the LaTeX output in *ANY* way I want to. Thanks to
> org AND babel! From what I can see, there are no limitations on how
> complex the LaTeX customizations can be, it can essentially match up
> any other "pure" latex documents out there.
>  * As noted above, fully support LaTeX while still allowing me to export 
> to:
>    * plaintext
>    * HTML
>    * DocBook (and hence an array of other formats)
>
> I mean, how cool is that? I'm only starting in TeX/LaTeX so I might be
> overlooking some limitations, but from what I can see, orgmode is the
> most pragmatic and powerful publishing framework I have ever come to
> know.
>
> And what excites me even more is that I can keep my book in my
> preferred format and still output a beautifully-formatted PDF book
> *and* still support other formats (such as mobi or epub through
> docbook). Amazing!
>
> By the way, if I want to use raw TeX or maybe ConTeXt, is it possible?
> Not that I need, only curious :)
>
> This needs more hype! I don't think people realize how powerful this is ;)
>
> Cheers!
>
> Marcelo.
>
>

 Aloha Marcelo,
>>

Re: [O] Org as a publishing toolkit

2011-05-10 Thread Marcelo de Moraes Serpa
Cool, I will do!

But org doesn't impose some structure that might prevent me from
putting the cover in the first page? Just curious. I wouldn't also
like to have to edit the latex generated afterwards, but that's a
possibility.

Thanks!

Marcelo.

On Tue, May 10, 2011 at 4:35 PM, Thomas S. Dye  wrote:
> Aloha Marcelo,
>
> Others might do this differently, but I don't use LaTeX for book
> covers.  I only use it for the pages of the book.
>
> It sounds like your cover image is floating, which is something that
> LaTeX does with tables and images.  If you are new to LaTeX and don't
> have a feel for how it handles "floats", then I recommend an
> introductory text.  Leslie Lamport's book is terrific, but there are
> other good introductions on the Internet.
>
> Org-mode and its LaTeX exporter are *not* going to insulate you from the
> need to learn some LaTeX, especially if you intend to write something as
> complex as a book.
>
> hth,
> Tom
>
> Marcelo de Moraes Serpa  writes:
>
>> Thomas,
>>
>> I have a more specific question. I have already managed to embed an
>> image to act as the cover of the book. However, the image is being
>> shown in the third page. I want the sequence to be like this:
>>
>> 1) Cover image
>> 2) The sub-cover:
>>
>>    "Title""
>>  My Name
>>    Date
>>
>> 3) TOC
>>
>> 4) Intro, chapters...
>>
>> How could I do that?
>>
>> Thanks in advance!
>>
>> Regards,
>>
>> Marcelo.
>>
>> On Tue, May 10, 2011 at 2:19 PM, Thomas S. Dye  wrote:
>>> Aloha Marcelo,
>>>
>>> The approach I would take here, which might not be what you want, would
>>> be to use inline markup:
>>>
>>> http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-10_3
>>>
>>> You would define the output for the various exporters in the link
>>> definition, with something fancy for LaTeX and whatever else works in
>>> the other export formats you care to support.
>>>
>>> All the best,
>>> Tom
>>>
>>> Marcelo de Moraes Serpa  writes:
>>>
 Cool! Thanks.

 Now that you mention it, I was wondering if something like "condition
 export" is possible. For very specific localized LaTeX fetures, it
 would be useful. Take this example:

 #+LaTeX_HEADER: \usepackage[T1]{fontenc}

 #+LaTeX:\yinipar{\color{red}H}ello World

 This created a first-letter that is stylized differently. This won't
 come out in any other exported, so I'd like to do something like
 (NOTE: pseudo-code!)

 #+LaTeX:\yinipar{\color{red}H}ello World

 #iif not LaTeX
    Hello World
 #end

 If it is not possible what I can do is to pre-process the orgfile with
 something like ERB (I'm familiar with Ruby) or another templating
 language before exporting (and even automate it all by calling emacs
 in batch mode ;) ), but it'd be nice if org supported that
 out-of-the-box.

 Cheers,

 Marcelo.


 On Tue, May 10, 2011 at 1:31 PM, Thomas S. Dye  wrote:
> Marcelo de Moraes Serpa  writes:
>
>> Hi list,
>>
>> So today I have been reseaching about higher-levels toolkits that
>> could help me get into TeX (and or LaTeX) and at the same time
>> allowing me to keep the text in a more human-readable format (easier
>> to mantain and to convert to other formats if needed).
>>
>> I know that if I want beautiful formatted PDFs I will need to get into
>> TeX / LaTeX, and I already started doing that, but as I said, keeping
>> the text in a higher level format has benefits that you already know
>> about.
>>
>> So I looked at asciidoc, the lower-level XML-based docbook, markdown,
>> pandoc, ConTeXt, etc.
>>
>> Then I thought, why not try orgmode?
>>
>> So, after reading this article:
>> http://orgmode.org/worg/org-tutorials/org-latex-export.html, I've then
>> realized how powerful the org-export feature is.
>>
>> I can basically do this:
>>  * Keep the text in a (very) human readable format that I'm used to
>> and that is much better to maintain than any other format I know
>> (markdown / asciidoc) and integrated with my own orgmode personal
>> information manager!
>>  * Add / customize the LaTeX output in *ANY* way I want to. Thanks to
>> org AND babel! From what I can see, there are no limitations on how
>> complex the LaTeX customizations can be, it can essentially match up
>> any other "pure" latex documents out there.
>>  * As noted above, fully support LaTeX while still allowing me to export 
>> to:
>>    * plaintext
>>    * HTML
>>    * DocBook (and hence an array of other formats)
>>
>> I mean, how cool is that? I'm only starting in TeX/LaTeX so I might be
>> overlooking some limitations, but from what I can see, orgmode is the
>> most pragmatic and powerful publishing framework I have ever come to
>> know.
>>
>> And what excites me even more is that I can keep my book in my
>

Re: [O] Org as a publishing toolkit

2011-05-10 Thread Thomas S. Dye
Aloha Marcelo,

I don't /believe/ org will keep you from doing that.  

My guess is that you are going to end up redefining the LaTeX \maketitle
command, see

http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-11_2

I've done this once or twice--it's an adventure for someone with my
limited programming skills.  You're likely to get needed advice from the
folks at comp.text.tex if your introductory LaTeX readings don't get you
where you want to be.

Good luck!

Tom

Marcelo de Moraes Serpa  writes:

> Cool, I will do!
>
> But org doesn't impose some structure that might prevent me from
> putting the cover in the first page? Just curious. I wouldn't also
> like to have to edit the latex generated afterwards, but that's a
> possibility.
>
> Thanks!
>
> Marcelo.
>
> On Tue, May 10, 2011 at 4:35 PM, Thomas S. Dye  wrote:
>> Aloha Marcelo,
>>
>> Others might do this differently, but I don't use LaTeX for book
>> covers.  I only use it for the pages of the book.
>>
>> It sounds like your cover image is floating, which is something that
>> LaTeX does with tables and images.  If you are new to LaTeX and don't
>> have a feel for how it handles "floats", then I recommend an
>> introductory text.  Leslie Lamport's book is terrific, but there are
>> other good introductions on the Internet.
>>
>> Org-mode and its LaTeX exporter are *not* going to insulate you from the
>> need to learn some LaTeX, especially if you intend to write something as
>> complex as a book.
>>
>> hth,
>> Tom
>>
>> Marcelo de Moraes Serpa  writes:
>>
>>> Thomas,
>>>
>>> I have a more specific question. I have already managed to embed an
>>> image to act as the cover of the book. However, the image is being
>>> shown in the third page. I want the sequence to be like this:
>>>
>>> 1) Cover image
>>> 2) The sub-cover:
>>>
>>>    "Title""
>>>  My Name
>>>    Date
>>>
>>> 3) TOC
>>>
>>> 4) Intro, chapters...
>>>
>>> How could I do that?
>>>
>>> Thanks in advance!
>>>
>>> Regards,
>>>
>>> Marcelo.
>>>
>>> On Tue, May 10, 2011 at 2:19 PM, Thomas S. Dye  wrote:
 Aloha Marcelo,

 The approach I would take here, which might not be what you want, would
 be to use inline markup:

 http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-10_3

 You would define the output for the various exporters in the link
 definition, with something fancy for LaTeX and whatever else works in
 the other export formats you care to support.

 All the best,
 Tom

 Marcelo de Moraes Serpa  writes:

> Cool! Thanks.
>
> Now that you mention it, I was wondering if something like "condition
> export" is possible. For very specific localized LaTeX fetures, it
> would be useful. Take this example:
>
> #+LaTeX_HEADER: \usepackage[T1]{fontenc}
>
> #+LaTeX:\yinipar{\color{red}H}ello World
>
> This created a first-letter that is stylized differently. This won't
> come out in any other exported, so I'd like to do something like
> (NOTE: pseudo-code!)
>
> #+LaTeX:\yinipar{\color{red}H}ello World
>
> #iif not LaTeX
>    Hello World
> #end
>
> If it is not possible what I can do is to pre-process the orgfile with
> something like ERB (I'm familiar with Ruby) or another templating
> language before exporting (and even automate it all by calling emacs
> in batch mode ;) ), but it'd be nice if org supported that
> out-of-the-box.
>
> Cheers,
>
> Marcelo.
>
>
> On Tue, May 10, 2011 at 1:31 PM, Thomas S. Dye  wrote:
>> Marcelo de Moraes Serpa  writes:
>>
>>> Hi list,
>>>
>>> So today I have been reseaching about higher-levels toolkits that
>>> could help me get into TeX (and or LaTeX) and at the same time
>>> allowing me to keep the text in a more human-readable format (easier
>>> to mantain and to convert to other formats if needed).
>>>
>>> I know that if I want beautiful formatted PDFs I will need to get into
>>> TeX / LaTeX, and I already started doing that, but as I said, keeping
>>> the text in a higher level format has benefits that you already know
>>> about.
>>>
>>> So I looked at asciidoc, the lower-level XML-based docbook, markdown,
>>> pandoc, ConTeXt, etc.
>>>
>>> Then I thought, why not try orgmode?
>>>
>>> So, after reading this article:
>>> http://orgmode.org/worg/org-tutorials/org-latex-export.html, I've then
>>> realized how powerful the org-export feature is.
>>>
>>> I can basically do this:
>>>  * Keep the text in a (very) human readable format that I'm used to
>>> and that is much better to maintain than any other format I know
>>> (markdown / asciidoc) and integrated with my own orgmode personal
>>> information manager!
>>>  * Add / customize the LaTeX output in *ANY* way I want to. Thanks to
>>> org AND babel! From what I can see, there are no lim

Re: [O] Assigning a keyboard shortcut

2011-05-10 Thread John Hendy
On Tue, May 10, 2011 at 2:06 PM, Darlan Cavalcante Moreira
 wrote:
>
> Emacs has different ways to assign key-bindings but the method with kbd
> seems to be the best one.
>
> An excellent blog post about key-bindings in Emacs is
> http://www.masteringemacs.org/articles/2011/02/08/mastering-key-bindings-emacs/

I'll say. That was *awesome* -- and thanks for the link to the blog in
general; I suspect I'll be spending a lot of time there and didn't
know about it.


John

>
> --
> Darlan
>
> At Tue, 10 May 2011 09:59:21 -0500,
> John Hendy  wrote:
>>
>> This is surely very simple but I can't find it anywhere...
>>
>> I'm trying to assign org-resolve-clocks to C-c C-r. I tried to just
>> modify the way that link and agendar are set:
>> ,---
>> | (global-set-key "\C-ca" 'org-agenda)
>> `---
>>
>> So I've tried:
>> ,---
>> | (global-set-key "\C-c C-r" 'org-resolve-clocks)
>> | (global-set-key "\C-c \C-r" 'org-resolve-clocks)
>> | (global-set-key "\C-c\C-r" 'org-resolve-clocks)
>> `---
>>
>> and none have worked.
>> ,---
>> | (global-set-key "\C-cr" 'org-resolve-clocks)
>> `---
>>
>> works fine, but I wanted C-c C-r not C-c r. What am I goofing?
>>
>>
>> Thanks,
>> John
>>
>



[O] Beginning R plot export

2011-05-10 Thread John Tait
Hi

Do I need to do extra configuration to get R plot output in LaTeX exports?

Using the simplest code block:

#+SRCNAME: graph
#+BEGIN_SRC R  :exports both
x=c(1,2)
y=c(2,4)
plot(x,y)
x
#+END_SRC

The numbers "1 2" appear in the LaTeX output, indicating that R is
running. The plot doesn't appear though. What am I missing?

Thanks

John



Re: [O] Beginning R plot export

2011-05-10 Thread Nick Dokos
John Tait  wrote:

> Hi
> 
> Do I need to do extra configuration to get R plot output in LaTeX exports?
> 
> Using the simplest code block:
> 
> #+SRCNAME: graph
> #+BEGIN_SRC R  :exports both
> x=c(1,2)
> y=c(2,4)
> plot(x,y)
> x
> #+END_SRC
> 
> The numbers "1 2" appear in the LaTeX output, indicating that R is
> running. The plot doesn't appear though. What am I missing?
> 

The following works for me:

--8<---cut here---start->8---
#+SRCNAME: graph
#+BEGIN_SRC R  :exports both :results graphics :file foo.png
x=c(1,2)
y=c(2,4)
plot(x,y)
#+END_SRC
--8<---cut here---end--->8---

Nick



[O] Epub and Mobi Export

2011-05-10 Thread Avdi Grimm
Well, I got my eBook finished and released. Thanks VERY much to
everyone who helped me with LaTeX export questions.

Now I have a lot of people asking me for Epub and Mobi formats. I
thought that before I launched into producing mobile formats from my
Org-Mode, I'd see if anyone else has any experience producing these
formats.

So: has anyone produced Epub or Mobi from Org-Mode source? Any
thoughts on the best way to do it?

Thanks,

-- 
Avdi Grimm
http://avdi.org



[O] file-error

2011-05-10 Thread Jeff Kowalczyk
I use el-get org-mode recipe, but I see the same behavior with a typical
org-mode config from init.el.

On org-mode git master start with emacs bzr trunk (emacs 24), org errors on 
load:

File mode specification error: (file-error "Cannot open load file" "lisp/org")
progn: Cannot open load file: lisp/org

Any idea what file mode specification in this context would be? The unix file
mode is normal:

[master]~/.emacs.d/el-get $ ls -al org-mode/lisp/org.el*
-rw-r--r-- 1 myuser users 774897 May 10 16:45 org-mode/lisp/org.el
-rw-r--r-- 1 myuser users 688684 May 10 16:45 org-mode/lisp/org.elc

Thanks for any suggestions,

Jeff







Re: [O] Org as a publishing toolkit

2011-05-10 Thread Marcelo de Moraes Serpa
Thanks Thomas. I got enough proof org can really be used to write a
book after finding out that Avdi Grimm wrote and published his
exceptional ruby book (http://exceptionalruby.com/) using org ;)

It's nice to be part of such a great community. Orgmode ROCKS!

Thank you for the help, now I'll get some much needed LaTeX knownledge.

Marcelo.

On Tue, May 10, 2011 at 5:26 PM, Thomas S. Dye  wrote:
> Aloha Marcelo,
>
> I don't /believe/ org will keep you from doing that.
>
> My guess is that you are going to end up redefining the LaTeX \maketitle
> command, see
>
> http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-11_2
>
> I've done this once or twice--it's an adventure for someone with my
> limited programming skills.  You're likely to get needed advice from the
> folks at comp.text.tex if your introductory LaTeX readings don't get you
> where you want to be.
>
> Good luck!
>
> Tom
>
> Marcelo de Moraes Serpa  writes:
>
>> Cool, I will do!
>>
>> But org doesn't impose some structure that might prevent me from
>> putting the cover in the first page? Just curious. I wouldn't also
>> like to have to edit the latex generated afterwards, but that's a
>> possibility.
>>
>> Thanks!
>>
>> Marcelo.
>>
>> On Tue, May 10, 2011 at 4:35 PM, Thomas S. Dye  wrote:
>>> Aloha Marcelo,
>>>
>>> Others might do this differently, but I don't use LaTeX for book
>>> covers.  I only use it for the pages of the book.
>>>
>>> It sounds like your cover image is floating, which is something that
>>> LaTeX does with tables and images.  If you are new to LaTeX and don't
>>> have a feel for how it handles "floats", then I recommend an
>>> introductory text.  Leslie Lamport's book is terrific, but there are
>>> other good introductions on the Internet.
>>>
>>> Org-mode and its LaTeX exporter are *not* going to insulate you from the
>>> need to learn some LaTeX, especially if you intend to write something as
>>> complex as a book.
>>>
>>> hth,
>>> Tom
>>>
>>> Marcelo de Moraes Serpa  writes:
>>>
 Thomas,

 I have a more specific question. I have already managed to embed an
 image to act as the cover of the book. However, the image is being
 shown in the third page. I want the sequence to be like this:

 1) Cover image
 2) The sub-cover:

    "Title""
  My Name
    Date

 3) TOC

 4) Intro, chapters...

 How could I do that?

 Thanks in advance!

 Regards,

 Marcelo.

 On Tue, May 10, 2011 at 2:19 PM, Thomas S. Dye  wrote:
> Aloha Marcelo,
>
> The approach I would take here, which might not be what you want, would
> be to use inline markup:
>
> http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-10_3
>
> You would define the output for the various exporters in the link
> definition, with something fancy for LaTeX and whatever else works in
> the other export formats you care to support.
>
> All the best,
> Tom
>
> Marcelo de Moraes Serpa  writes:
>
>> Cool! Thanks.
>>
>> Now that you mention it, I was wondering if something like "condition
>> export" is possible. For very specific localized LaTeX fetures, it
>> would be useful. Take this example:
>>
>> #+LaTeX_HEADER: \usepackage[T1]{fontenc}
>>
>> #+LaTeX:\yinipar{\color{red}H}ello World
>>
>> This created a first-letter that is stylized differently. This won't
>> come out in any other exported, so I'd like to do something like
>> (NOTE: pseudo-code!)
>>
>> #+LaTeX:\yinipar{\color{red}H}ello World
>>
>> #iif not LaTeX
>>    Hello World
>> #end
>>
>> If it is not possible what I can do is to pre-process the orgfile with
>> something like ERB (I'm familiar with Ruby) or another templating
>> language before exporting (and even automate it all by calling emacs
>> in batch mode ;) ), but it'd be nice if org supported that
>> out-of-the-box.
>>
>> Cheers,
>>
>> Marcelo.
>>
>>
>> On Tue, May 10, 2011 at 1:31 PM, Thomas S. Dye  wrote:
>>> Marcelo de Moraes Serpa  writes:
>>>
 Hi list,

 So today I have been reseaching about higher-levels toolkits that
 could help me get into TeX (and or LaTeX) and at the same time
 allowing me to keep the text in a more human-readable format (easier
 to mantain and to convert to other formats if needed).

 I know that if I want beautiful formatted PDFs I will need to get into
 TeX / LaTeX, and I already started doing that, but as I said, keeping
 the text in a higher level format has benefits that you already know
 about.

 So I looked at asciidoc, the lower-level XML-based docbook, markdown,
 pandoc, ConTeXt, etc.

 Then I thought, why not try orgmode?

 So, after reading this article:
 htt

Re: [O] Epub and Mobi Export

2011-05-10 Thread Thomas S. Dye
Avdi Grimm  writes:

> Well, I got my eBook finished and released. Thanks VERY much to
> everyone who helped me with LaTeX export questions.
>
> Now I have a lot of people asking me for Epub and Mobi formats. I
> thought that before I launched into producing mobile formats from my
> Org-Mode, I'd see if anyone else has any experience producing these
> formats.
>
> So: has anyone produced Epub or Mobi from Org-Mode source? Any
> thoughts on the best way to do it?
>
> Thanks,

Aloha Avdi,

Nice job!  The source code listings are really effective. I like how you
put the output box below the boxed source code:

http://exceptionalruby.com/exceptional-ruby-sample.pdf

Congratulations on the book and good luck with the other exports.

All the best,
Tom

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



Re: [O] Slow movement in large buffers

2011-05-10 Thread Carmine Casciato
Carsten Dominik  gmail.com> writes:
 
> >> On 2011-03-15 03:25, Matt Lundin wrote:
> >>> I've been navigating the org-issues file (14000+ lines) and have
> >>> found movement within the file to be fairly slow. Sometimes Emacs
> >>> will lock up for several seconds.
> >> 
> >>> Do others have the same experience? If so, does anyone have any tips
> >>> on how to diagnose this further?
> >> 
> >> I keep all my info in one big Org-mode file which is currently just shy
> >> of 115,000 lines. There's the occasional "stutter" of a fraction of a
> >> second when I move across closed nodes containing large chunks, but it's
> >> still perfectly acceptable (to me, anyway!).
> >> 
> >> My PC is an Intel dual-core 2.66GHz with 4GB RAM, so nothing
> >> earth-shattering.
> >> 
I am have been seeing this for a while now on only one of about 8 
org files that I have, specifically the longest one which also has the 
most babel snippets (of pretty long sql). This behaviour is present on 
an Ubuntu VM with a scant 300Mbs as well as a Mac Pro with 6Gbs 
(although less of course). On the Ubuntu, I specifically see the CPU 
spike when typing! Very bizarre.
-C.





[O] suppresing date in beamer output

2011-05-10 Thread Mehul Sanghvi
How do I tell org-mode/beamer to not output the date that is printed
on the title page ?

-- 
Mehul N. Sanghvi
email: mehul.sang...@gmail.com



Re: [O] Org as a publishing toolkit

2011-05-10 Thread prad
Marcelo de Moraes Serpa  writes:

> It's nice to be part of such a great community. Orgmode ROCKS!
>
ya i think org may become quite possibly the most useful item i use
... once i learn how to do more with it.

-- 
in friendship,
prad




[O] [OT] Custom remember template

2011-05-10 Thread Marcelo de Moraes Serpa
Hey list,

I want a truly custom string to be output by the org-remember
template, so I thought I could do something like:


 ("Journal Entry" ?j (concat "* " (mycustomfunc)))

Since "mycustomfunc" and concat both return strings, I thought I
wouldn't have a problem...

But it fails with:

let*: Wrong type argument: char-or-string-p, (concat "kd" "d")

I'm not yet that good with elisp to debug that. Could someone give a
hand ? Or it's not possible at all?

Thanks,

Marcelo.



Re: [O] [OT] Custom remember template

2011-05-10 Thread Nick Dokos
Marcelo de Moraes Serpa  wrote:


> I want a truly custom string to be output by the org-remember
> template, so I thought I could do something like:
> 
> 
>  ("Journal Entry" ?j (concat "* " (mycustomfunc)))
> 
> Since "mycustomfunc" and concat both return strings, I thought I
> wouldn't have a problem...
> 
> But it fails with:
> 
> let*: Wrong type argument: char-or-string-p, (concat "kd" "d")
> 
> I'm not yet that good with elisp to debug that. Could someone give a
> hand ? Or it's not possible at all?
> 

org-remember is more or less obsolete by now.  You should consider using
org-capture instead: it gives you much more flexibility (including the
ability to define a function that returns the template to be used).

Nick




Re: [O] suppresing date in beamer output

2011-05-10 Thread suvayu ali
On Tue, May 10, 2011 at 6:47 PM, Mehul Sanghvi  wrote:
> How do I tell org-mode/beamer to not output the date that is printed
> on the title page ?
>

Have you tried removing the "#+DATE:" line?


> --
> Mehul N. Sanghvi

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] file-error

2011-05-10 Thread Nick Dokos
Jeff Kowalczyk  wrote:

> I use el-get org-mode recipe, but I see the same behavior with a typical
> org-mode config from init.el.
> 
> On org-mode git master start with emacs bzr trunk (emacs 24), org errors on 
> load:
> 
> File mode specification error: (file-error "Cannot open load file" "lisp/org")
> progn: Cannot open load file: lisp/org
> 
> Any idea what file mode specification in this context would be? The unix file
> mode is normal:
> 
> [master]~/.emacs.d/el-get $ ls -al org-mode/lisp/org.el*
> -rw-r--r-- 1 myuser users 774897 May 10 16:45 org-mode/lisp/org.el
> -rw-r--r-- 1 myuser users 688684 May 10 16:45 org-mode/lisp/org.elc
> 
> Thanks for any suggestions,
> 

We need a backtrace: see section 1.4, "Feedback", in the Orgmode manual.
But clearly, this is not an orgmode error: emacs just cannot find the file
to load (for whatever reason - the backtrace will make clear what the reason
is, but it is probably an incorrect load-path or an incorrect file spec).

Nick



Re: [O] suppresing date in beamer output

2011-05-10 Thread Nick Dokos
suvayu ali  wrote:

> On Tue, May 10, 2011 at 6:47 PM, Mehul Sanghvi  
> wrote:
> > How do I tell org-mode/beamer to not output the date that is printed
> > on the title page ?
> >
> 
> Have you tried removing the "#+DATE:" line?
> 
> 

You actually need the #+DATE: line, but with an empty date:

--8<---cut here---start->8---
#+DATE:

* foo
bar
--8<---cut here---end--->8---

Nick



Re: [O] suppresing date in beamer output

2011-05-10 Thread Suvayu Ali
On Tue, 10 May 2011 23:17:55 -0400
Nick Dokos  wrote:

> > Have you tried removing the "#+DATE:" line?
> > 
> >   
> 
> You actually need the #+DATE: line, but with an empty date:

Thank you for correcting me. Should have checked instead of trying to
recall from memory. :-p

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] [OT] Custom remember template

2011-05-10 Thread Marcelo de Moraes Serpa
Hi Nick,

Nice to know that! I'll try org-catpure.

Thanks,

Marcelo.

On Tue, May 10, 2011 at 10:08 PM, Nick Dokos  wrote:
> Marcelo de Moraes Serpa  wrote:
>
>
>> I want a truly custom string to be output by the org-remember
>> template, so I thought I could do something like:
>>
>>
>>      ("Journal Entry" ?j (concat "* " (mycustomfunc)))
>>
>> Since "mycustomfunc" and concat both return strings, I thought I
>> wouldn't have a problem...
>>
>> But it fails with:
>>
>> let*: Wrong type argument: char-or-string-p, (concat "kd" "d")
>>
>> I'm not yet that good with elisp to debug that. Could someone give a
>> hand ? Or it's not possible at all?
>>
>
> org-remember is more or less obsolete by now.  You should consider using
> org-capture instead: it gives you much more flexibility (including the
> ability to define a function that returns the template to be used).
>
> Nick
>
>



Re: [O] Org as a publishing toolkit

2011-05-10 Thread Avdi Grimm
On Tue, May 10, 2011 at 4:53 PM, Marcelo de Moraes Serpa
 wrote:
> I have a more specific question. I have already managed to embed an
> image to act as the cover of the book. However, the image is being
> shown in the third page. I want the sequence to be like this:

Here's how I did the cover of my book:

1. Generate a 1-page PDF of the cover (in my case that meant SVG->EPS,
then EPS->PDF via `ps2pdf -sPAPERSIZE=letter -dEPSCrop`)
2. Include the "pdfpages" package:
#+LaTeX_HEADER: \usepackage{pdfpages}
2. Override "org-export-latex-title-command" to insert the cover page:
(setq org-export-latex-title-command
  "\\includepdf[pages=1]{exceptional-ruby-cover-svg.pdf}")

-- 
Avdi Grimm
http://avdi.org


-- 
Avdi Grimm
http://avdi.org



Re: [O] [agenda] %% questions

2011-05-10 Thread Michael Brand
Hi Matt

On Tue, May 3, 2011 at 16:58, Matt Lundin  wrote:
> At the moment, time of day strings are not allowed within brackets. So
> one has a choice between the following:
>
> * 12pm Monthly appointment
>   <%%(diary-float t 2 1)>

Good to know. To add the time I'm now using this format.

> * Text here will not appear in agenda
> %%(diary-float t 2 1) 12:00 Monthly appointment

Thank you for the explanations.

Michael



[O] Bug: Nesting of columns and itemized lists is reversed [7.5]

2011-05-10 Thread Davor Cubranic
In a Beamer presentation, if I nest multiple columns within a list item,
the enclosing 'itemize' environment gets closed before the 'columns'
environment that it contains. See attached .org and the generated .tex

I'm running GNU Emacs 23 from MacPorts, with Org-mode 7.5 installed from
source I downloaded from the Orgmode website.

Davor Cubranic





Emacs  : GNU Emacs 23.3.1 (x86_64-apple-darwin10.7.0, GTK+ Version 2.24.3)
of 2011-04-04 on toque.stat.ubc.ca
Package: Org-mode version 7.5

current state:
==
(setq
org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
org-export-latex-format-toc-function 'org-export-latex-format-toc-default
org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe)
org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
org-confirm-shell-link-function 'yes-or-no-p
org-export-first-hook '(org-beamer-initialize-open-trackers)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-babel-pre-tangle-hook '(save-buffer)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
org-export-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)
org-mode-hook '(#[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook org-show-block-all 
append local] 5]
 #[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook 
org-babel-show-result-all append local] 5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)
org-confirm-elisp-link-function 'yes-or-no-p
org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src 
org-babel-exp-inline-src-blocks))
org-occur-hook '(org-first-headline-recenter)
org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-export-blocks '((src org-babel-exp-src-block nil) (comment 
org-export-blocks-format-comment t)
 (ditaa org-export-blocks-format-ditaa nil)
 (dot org-export-blocks-format-dot nil))
)


beamer-bug.org
Description: Binary data


beamer-bug.tex
Description: Binary data