Re: [Orgmode] export of emphasized link

2010-06-01 Thread Michael Brand

On 10-06-01 09:44 , Carsten Dominik wrote:

After removing org-bracket-link-regexp from org-html-expand


What do you mean by this sentence? What exactly did you do?


To understand the implementation I tried the following temporary
change (the line prefix `:' will bypass the nice patch extract
http://patchwork.newartisans.com/project/org-mode/list
for this time I hope):

:--- a/lisp/org-html.el
:+++ b/lisp/org-html.el
:@@ -2025,8 +2025,7 @@ that uses these same face definitions."
: (defun org-html-expand (string)
:   "Prepare STRING for HTML export.  Applies all active conversions.
: If there are links in the string, don't modify these."
:-  (let* ((re (concat org-bracket-link-regexp "\\|"
:-(org-re "[ \t]+\\(:[[:alnum:]_@:]+:\\)[ \t]*$")))
:+  (let* ((re (org-re "[ \t]+\\(:[[:alnum:]_@:]+:\\)[ \t]*$"))
: m s l res)
: (if (string-match "^[ \t]*\\+-[-+]*\\+[ \t]*$" string)
:string


With this trial the export to HTML of emphasized links is supported.
But this should not happen as I understand the doc string of
org-html-expand and org-docbook-expand:
"If there are links in the string, don't modify these."
Why should emphasized links not be supported for the export to HTML
and DocBook (and maybe more export formats?) while the org-mode
buffer display (and maybe some export formats?) supports them?

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


Re: [Orgmode] export of emphasized link

2010-06-01 Thread Bastien
Carsten Dominik  writes:

> I would write this as
>
>*Drop an email to* [[mailto:bzg%20AT%20altern%20DOT%20org][Bastien]]
>
> i.e. take the link out of the bold section.

Done. 

-- 
 Bastien

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


Re: [Orgmode] export of emphasized link

2010-06-01 Thread Carsten Dominik

Hi Michael,

On May 30, 2010, at 2:53 PM, Michael Brand wrote:


Hi all,

An org-mode line with an emphasized link like that one taken from  
current Worg:

--
*Drop an email to [[mailto:bzg%20AT%20altern%20DOT%20org][Bastien]]*  
mentioning your username on repo.or.cz


I would write this as

   *Drop an email to* [[mailto:bzg%20AT%20altern%20DOT%20org][Bastien]]

i.e. take the link out of the bold section.


--
shows the bold face in the Emacs Org buffer like expected. But it  
does not convert the emphasis and still shows `*' when exported to  
some formats:

- HTML: not converted
- LaTeX: could not check because of a missing setup on my side,
  from the source code I guess that it converts
- DocBook: not converted
- ...: don't know about other formats and what they should support

After removing org-bracket-link-regexp from org-html-expand


What do you mean by this sentence?  What exactly did you do?

and org-docbook-expand the HTML and DocBook exports _are_ converted  
and look similar to the highlighting in the Emacs Org buffer. But  
the doc string of both functions tell:

"If there are links in the string, don't modify these."
Why should links be modified in org-mode but not in HTML or DocBook?

If there will be any change I would also like this:
--
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -3285,6 +3285,7 @@ example *bold*, _underlined_ and /italic/.   
This variable
characters, the face to be used by font-lock for highlighting in Org- 
mode

Emacs buffers, and the HTML tags to be used for this.
For LaTeX export, see the variable `org-export-latex-emphasis-alist'.
+For DocBook export, see the variable `org-export-docbook-emphasis- 
alist'.

Use customize to modify this, or restart Emacs after changing it."
  :group 'org-appearance
  :set 'org-set-emph-re
--


I have applied this patch.



And: wouldn't it be nice for maintenance to have only one function  
for some sets of functions like

- org-html-expand, org-docbook-expand and possibly more
- org-html-do-expand, org-docbook-do-expand and possibly more
- org-export-html-convert-emphasize, org-export-docbook-convert- 
emphasize and possibly more
- org-export-html-convert-sub-super, org-export-docbook-convert-sub- 
super and possibly more

- possibly more
because they have almost all code in common.


Yes, that would be nice.  It would also be nice if all exporters
would basically use the same code - but this is not how things
happened, unfortunately.

- Carsten


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


Re: [Orgmode] Export question

2010-05-30 Thread Robert Goldman
On 5/25/10 May 25 -6:52 AM, Carsten Dominik wrote:
> 
> On May 25, 2010, at 5:09 AM, Robert Goldman wrote:
> 
>> I have the org-generic-export working better, but I'm having one
>> remaining problem:
>>
>> I have been using org-export-preprocess-string to make it possible to
>> handle emphasis (previously o-g-e couldn't handle emphasis because it
>> did the translation line-by-line).
>>
>> org-export-preprocess-string has fixed the problem of emphasis that
>> crosses line boundaries, so that I can handle fontification.
>>
>> But now I have a problem of o-e-p-s smashing together more than one list
>> item into a single line, if those list items are on adjacent lines, like
>>
>> + foo
>> + bar
>>
>> question:  is this just something we should never do?  Should list items
>> always have line skips in the middle?  Or am I misusing o-e-p-s?
> 
> 
> I cannot reproduce this.  But you give little context.  Please make a
> more detailed example, maybe a simple test case where you throw some
> data at o-e-p-s and it comes back wrong...

You were right and I was wrong.  I thought it was a problem with
o-e-p-s, but it turns out to be a problem with org-generic-export's
line-by-line processing.  Sorry about the red herring.  I have a fix to
org-generic-export that will handle this.

I am working on a wiki format (tikiwiki: tikiwiki.org) where the
processor decides that any line breaks indicate intent to preformat on
the part of the user.  It's turning out to be quite difficult to
harmonize this with line-by-line processing a la org-generic-export.

best,
r


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


[Orgmode] export of emphasized link

2010-05-30 Thread Michael Brand

Hi all,

An org-mode line with an emphasized link like that one taken from current Worg:
--
*Drop an email to [[mailto:bzg%20AT%20altern%20DOT%20org][Bastien]]* 
mentioning your username on repo.or.cz

--
shows the bold face in the Emacs Org buffer like expected. But it does not 
convert the emphasis and still shows `*' when exported to some formats:

- HTML: not converted
- LaTeX: could not check because of a missing setup on my side,
   from the source code I guess that it converts
- DocBook: not converted
- ...: don't know about other formats and what they should support

After removing org-bracket-link-regexp from org-html-expand and 
org-docbook-expand the HTML and DocBook exports _are_ converted and look 
similar to the highlighting in the Emacs Org buffer. But the doc string of 
both functions tell:

"If there are links in the string, don't modify these."
Why should links be modified in org-mode but not in HTML or DocBook?

If there will be any change I would also like this:
--
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -3285,6 +3285,7 @@ example *bold*, _underlined_ and /italic/.  This variable
 characters, the face to be used by font-lock for highlighting in Org-mode
 Emacs buffers, and the HTML tags to be used for this.
 For LaTeX export, see the variable `org-export-latex-emphasis-alist'.
+For DocBook export, see the variable `org-export-docbook-emphasis-alist'.
 Use customize to modify this, or restart Emacs after changing it."
   :group 'org-appearance
   :set 'org-set-emph-re
--

And: wouldn't it be nice for maintenance to have only one function for some 
sets of functions like

- org-html-expand, org-docbook-expand and possibly more
- org-html-do-expand, org-docbook-do-expand and possibly more
- org-export-html-convert-emphasize, org-export-docbook-convert-emphasize and 
possibly more
- org-export-html-convert-sub-super, org-export-docbook-convert-sub-super and 
possibly more

- possibly more
because they have almost all code in common.

Michael

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


Re: [Orgmode] Export literally but convert math equations?

2010-05-28 Thread Uriel Avalos
It would be nice to have that feature available as an option :-) Or is there a 
way to preserve whitespace in other blocks? I set the variable 
org-src-preserve-indentation for SRC blocks but that had no effect.

I'm typing up an HTML doc with lots of (simple) math. However, I'm trying to 
avoid using latex as much as possible. I thus need a way to align equations 
(incidentally, whitespace is good enough). 

Why not use latex/tex? Because I work for a publisher that uses MathType. And 
unfortunately, the current version of MathType is buggy when it comes to 
converting latex/tex, so I need to minimize it's use. 

Thanks for the reply!

--Uriel

On Fri, 28 May 2010 17:36:00 +0200
Carsten Dominik  wrote:

> 
> On May 28, 2010, at 5:32 PM, Uriel Avalos wrote:
> 
> > Is there a way to convert latex equations and math inside of EXAMPLE  
> > and HTML blocks?
> 
> 
> Well, the whole idea of example blocks is to *not* do this.  What is  
> the application for this?
> 
> - Carsten
> 
> >
> > For example, I would like to the following equation to display as an  
> > equation in the HTML:
> >
> > #+BEGIN_EXAMPLE
> >   Hello world
> >   $2^2+\sqrt(2) = 2$
> > #+END_EXAMPLE
> >
> > The current behavior just gives me the literal example. I would use  
> > other blocks (like BLOCKQUOTE); except that I need to preserve the  
> > extra whitespace.
> >
> > Alternatively: is there a way to preserve whitespace in the HTML  
> > export?--
> > --Thanks!
> > Uriel
> >
> > ___
> > Emacs-orgmode mailing list
> > Please use `Reply All' to send replies to the list.
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 
> - Carsten
> 
> 
> 


-- 
--Thanks!
Uriel

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


Re: [Orgmode] Export literally but convert math equations?

2010-05-28 Thread Carsten Dominik


On May 28, 2010, at 5:32 PM, Uriel Avalos wrote:

Is there a way to convert latex equations and math inside of EXAMPLE  
and HTML blocks?



Well, the whole idea of example blocks is to *not* do this.  What is  
the application for this?


- Carsten



For example, I would like to the following equation to display as an  
equation in the HTML:


#+BEGIN_EXAMPLE
  Hello world
  $2^2+\sqrt(2) = 2$
#+END_EXAMPLE

The current behavior just gives me the literal example. I would use  
other blocks (like BLOCKQUOTE); except that I need to preserve the  
extra whitespace.


Alternatively: is there a way to preserve whitespace in the HTML  
export?--

--Thanks!
Uriel

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


- Carsten




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


[Orgmode] Export literally but convert math equations?

2010-05-28 Thread Uriel Avalos
Is there a way to convert latex equations and math inside of EXAMPLE and HTML 
blocks?

For example, I would like to the following equation to display as an equation 
in the HTML:

#+BEGIN_EXAMPLE
   Hello world
   $2^2+\sqrt(2) = 2$
#+END_EXAMPLE

The current behavior just gives me the literal example. I would use other 
blocks (like BLOCKQUOTE); except that I need to preserve the extra whitespace. 

Alternatively: is there a way to preserve whitespace in the HTML export?-- 
--Thanks!
Uriel

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


Re: [Orgmode] Export to html

2010-05-27 Thread Thomas S. Dye

Aloha Sebastian,

Yes, the links are exporting correctly now.

Thanks,
Tom

On May 27, 2010, at 12:35 PM, Sebastian Rose wrote:


Nick Dokos  writes:

Thomas S. Dye  wrote:


Aloha all,

On the bus this morning I was able to find out a bit more about
problems with html export.

Using Bernt's minimal.emacs and exporting to html with C-c C-e H,  
git

bisect says:

459d99c44c7df4cd09d82fa54c53e5d5eec47a4e is the first bad commit
commit 459d99c44c7df4cd09d82fa54c53e5d5eec47a4e
Author: Tom Breton (Tehom) 
Date:   Mon May 17 18:17:38 2010 -0400

   Moved to new branch

Prior to this commit file links are exported like this:

file:index.pdf

After the commit, file links are exported like this:

index.pdf

I was a bit surprised at the git bisect result because I understood
Tom Breton (Tehom) to be working on a testing framework, rather than
html export.  So, I ran through git bisect a second time and got
identical results.

I hope I've understood the procedure correctly and that this
information is useful.  At this point, I'm in way over my head and
won't be able to do more without specific instructions.

I'm currently using commit  
d56d417bc214088114e10c959ce78bee2d26635d on

the master branch to make my exporting and publishing setup work as
expected.





In the current Org-mode's version this should be fixed.
Carsten pushed a fix yesterday.





Tom,

I can't reproduce the busted link. With more-or-less-current Org-mode
(version 6.36trans (release_6.36.102.g67b5)), the link looks like  
this:


   foo.pdf

Reverting the commit you identified (the revert was not clean: I  
had to
resolve a merge conflict by hand - a dicey proposition,  
particularly in

this situation where I have no idea what the patch is trying to do)
gives me:

   file:foo.pdf

That's with your minimal.emacs for the other problem you've  
identified
(changed to produce html of course). So it looks like the patch  
cleaned

up the link name in this case.

Nick

PS. I also looked at the commit: I gave up on figuring it out in any
reasonable time, but I must say the commit comment is no help.




 Sebastian



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


Re: [Orgmode] Export to html

2010-05-27 Thread Sebastian Rose
Nick Dokos  writes:
> Thomas S. Dye  wrote:
>
>> Aloha all,
>> 
>> On the bus this morning I was able to find out a bit more about
>> problems with html export.
>> 
>> Using Bernt's minimal.emacs and exporting to html with C-c C-e H, git
>> bisect says:
>> 
>> 459d99c44c7df4cd09d82fa54c53e5d5eec47a4e is the first bad commit
>> commit 459d99c44c7df4cd09d82fa54c53e5d5eec47a4e
>> Author: Tom Breton (Tehom) 
>> Date:   Mon May 17 18:17:38 2010 -0400
>> 
>> Moved to new branch
>> 
>> Prior to this commit file links are exported like this:
>> 
>> file:index.pdf
>> 
>> After the commit, file links are exported like this:
>> 
>> index.pdf
>> 
>> I was a bit surprised at the git bisect result because I understood
>> Tom Breton (Tehom) to be working on a testing framework, rather than
>> html export.  So, I ran through git bisect a second time and got
>> identical results.
>> 
>> I hope I've understood the procedure correctly and that this
>> information is useful.  At this point, I'm in way over my head and
>> won't be able to do more without specific instructions.
>> 
>> I'm currently using commit d56d417bc214088114e10c959ce78bee2d26635d on
>> the master branch to make my exporting and publishing setup work as
>> expected.




In the current Org-mode's version this should be fixed.
Carsten pushed a fix yesterday.




> Tom,
>
> I can't reproduce the busted link. With more-or-less-current Org-mode
> (version 6.36trans (release_6.36.102.g67b5)), the link looks like this:
>
> foo.pdf
>
> Reverting the commit you identified (the revert was not clean: I had to
> resolve a merge conflict by hand - a dicey proposition, particularly in
> this situation where I have no idea what the patch is trying to do)
> gives me:
>
> file:foo.pdf
>
> That's with your minimal.emacs for the other problem you've identified
> (changed to produce html of course). So it looks like the patch cleaned
> up the link name in this case.
>
> Nick
>
> PS. I also looked at the commit: I gave up on figuring it out in any
> reasonable time, but I must say the commit comment is no help.



  Sebastian

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


Re: [Orgmode] Export to html

2010-05-27 Thread Thomas S. Dye

Thanks Nick,

Sebastian Rose thinks this is fixed now.  I haven't had time to pull  
the latest org-mode, but hope to do so soon.


Apologies if my adventure with git bisect led you into dicey territory.

As always, I appreciate the benefit of your experience.

All the best,
Tom

On May 27, 2010, at 11:30 AM, Nick Dokos wrote:


Thomas S. Dye  wrote:


Aloha all,

On the bus this morning I was able to find out a bit more about
problems with html export.

Using Bernt's minimal.emacs and exporting to html with C-c C-e H, git
bisect says:

459d99c44c7df4cd09d82fa54c53e5d5eec47a4e is the first bad commit
commit 459d99c44c7df4cd09d82fa54c53e5d5eec47a4e
Author: Tom Breton (Tehom) 
Date:   Mon May 17 18:17:38 2010 -0400

   Moved to new branch

Prior to this commit file links are exported like this:

file:index.pdf

After the commit, file links are exported like this:

index.pdf

I was a bit surprised at the git bisect result because I understood
Tom Breton (Tehom) to be working on a testing framework, rather than
html export.  So, I ran through git bisect a second time and got
identical results.

I hope I've understood the procedure correctly and that this
information is useful.  At this point, I'm in way over my head and
won't be able to do more without specific instructions.

I'm currently using commit d56d417bc214088114e10c959ce78bee2d26635d  
on

the master branch to make my exporting and publishing setup work as
expected.



Tom,

I can't reproduce the busted link. With more-or-less-current Org-mode
(version 6.36trans (release_6.36.102.g67b5)), the link looks like  
this:


   foo.pdf

Reverting the commit you identified (the revert was not clean: I had  
to
resolve a merge conflict by hand - a dicey proposition, particularly  
in

this situation where I have no idea what the patch is trying to do)
gives me:

   file:foo.pdf

That's with your minimal.emacs for the other problem you've identified
(changed to produce html of course). So it looks like the patch  
cleaned

up the link name in this case.

Nick

PS. I also looked at the commit: I gave up on figuring it out in any
reasonable time, but I must say the commit comment is no help.




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


Re: [Orgmode] Export to html

2010-05-27 Thread Nick Dokos
Thomas S. Dye  wrote:

> Aloha all,
> 
> On the bus this morning I was able to find out a bit more about
> problems with html export.
> 
> Using Bernt's minimal.emacs and exporting to html with C-c C-e H, git
> bisect says:
> 
> 459d99c44c7df4cd09d82fa54c53e5d5eec47a4e is the first bad commit
> commit 459d99c44c7df4cd09d82fa54c53e5d5eec47a4e
> Author: Tom Breton (Tehom) 
> Date:   Mon May 17 18:17:38 2010 -0400
> 
> Moved to new branch
> 
> Prior to this commit file links are exported like this:
> 
> file:index.pdf
> 
> After the commit, file links are exported like this:
> 
> index.pdf
> 
> I was a bit surprised at the git bisect result because I understood
> Tom Breton (Tehom) to be working on a testing framework, rather than
> html export.  So, I ran through git bisect a second time and got
> identical results.
> 
> I hope I've understood the procedure correctly and that this
> information is useful.  At this point, I'm in way over my head and
> won't be able to do more without specific instructions.
> 
> I'm currently using commit d56d417bc214088114e10c959ce78bee2d26635d on
> the master branch to make my exporting and publishing setup work as
> expected.
> 

Tom,

I can't reproduce the busted link. With more-or-less-current Org-mode
(version 6.36trans (release_6.36.102.g67b5)), the link looks like this:

foo.pdf

Reverting the commit you identified (the revert was not clean: I had to
resolve a merge conflict by hand - a dicey proposition, particularly in
this situation where I have no idea what the patch is trying to do)
gives me:

file:foo.pdf

That's with your minimal.emacs for the other problem you've identified
(changed to produce html of course). So it looks like the patch cleaned
up the link name in this case.

Nick

PS. I also looked at the commit: I gave up on figuring it out in any
reasonable time, but I must say the commit comment is no help.


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


[Orgmode] Export to html

2010-05-27 Thread Thomas S. Dye

Aloha all,

On the bus this morning I was able to find out a bit more about  
problems with html export.


Using Bernt's minimal.emacs and exporting to html with C-c C-e H, git  
bisect says:


459d99c44c7df4cd09d82fa54c53e5d5eec47a4e is the first bad commit
commit 459d99c44c7df4cd09d82fa54c53e5d5eec47a4e
Author: Tom Breton (Tehom) 
Date:   Mon May 17 18:17:38 2010 -0400

Moved to new branch

Prior to this commit file links are exported like this:

file:index.pdf

After the commit, file links are exported like this:

index.pdf

I was a bit surprised at the git bisect result because I understood  
Tom Breton (Tehom) to be working on a testing framework, rather than  
html export.  So, I ran through git bisect a second time and got  
identical results.


I hope I've understood the procedure correctly and that this  
information is useful.  At this point, I'm in way over my head and  
won't be able to do more without specific instructions.


I'm currently using commit d56d417bc214088114e10c959ce78bee2d26635d on  
the master branch to make my exporting and publishing setup work as  
expected.


All the best,
Tom

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


Re: [Orgmode] Export question

2010-05-25 Thread Carsten Dominik


On May 25, 2010, at 5:09 AM, Robert Goldman wrote:


I have the org-generic-export working better, but I'm having one
remaining problem:

I have been using org-export-preprocess-string to make it possible to
handle emphasis (previously o-g-e couldn't handle emphasis because it
did the translation line-by-line).

org-export-preprocess-string has fixed the problem of emphasis that
crosses line boundaries, so that I can handle fontification.

But now I have a problem of o-e-p-s smashing together more than one  
list
item into a single line, if those list items are on adjacent lines,  
like


+ foo
+ bar

question:  is this just something we should never do?  Should list  
items

always have line skips in the middle?  Or am I misusing o-e-p-s?



I cannot reproduce this.  But you give little context.  Please make a  
more detailed example, maybe a simple test case where you throw some  
data at o-e-p-s and it comes back wrong...


- Carsten


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


[Orgmode] Export question

2010-05-24 Thread Robert Goldman
I have the org-generic-export working better, but I'm having one
remaining problem:

I have been using org-export-preprocess-string to make it possible to
handle emphasis (previously o-g-e couldn't handle emphasis because it
did the translation line-by-line).

org-export-preprocess-string has fixed the problem of emphasis that
crosses line boundaries, so that I can handle fontification.

But now I have a problem of o-e-p-s smashing together more than one list
item into a single line, if those list items are on adjacent lines, like

+ foo
+ bar

question:  is this just something we should never do?  Should list items
always have line skips in the middle?  Or am I misusing o-e-p-s?

thanks!

Hope to have a pretty substantial org-generic-export patch available
Real Soon Now.

r

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


Re: [Orgmode] export beamer

2010-05-05 Thread Rares Pop
Thanks Erik,

that was the problem. As a summary, I fixed my initial problem by

   - adding (require 'org-latex) to my .emacs configuration file
   - installing the *texlive-latex-extra* package for the LaTeX
   supplementary packages

Case closed.
Thanks again,
Rares

P.S. Good spotting Erik, I'm using ubuntu :)

On Tue, May 4, 2010 at 5:38 PM, Erik Butz  wrote:

> Hi Rares,
>
> actually it seems that it IS working. The error you are getting now is
> a latex error saying that you are missing a package (wrapfig).  You
> probably need to update your latex installation with that package. The
> way you do this, depends on the distribution you're using. On
> ubuntu/debian you could do:
> apt-cache search wrapfig
>
> which would give:
> texlive-latex-extra - TeX Live: LaTeX supplementary packages
>
> which would then be the package that you're missing.
>
>
> Cheers,
>
> Erik
>
>
> On Tue, May 4, 2010 at 3:18 PM, Rares Pop  wrote:
> > It's not working.
> >
> > I'm getting the following error when exporting to PDF:
> >
> > ! LaTeX Error: File `wrapfig.sty' not found.
> >
> > Type X to quit or  to proceed,
> > or enter new name. (Default extension: sty)
> >
> > Enter file name:
> > ! Emergency stop.
> > 
> >
> > l.11 \usepackage
> > {soul}^^M
> > *** (cannot \read from terminal in nonstop modes)
> >
> >  Thanks,
> > Rares
> >
> > On Tue, May 4, 2010 at 3:47 PM, Erik Butz 
> wrote:
> >>
> >> Hi Rares,
> >>
> >> I had a similar problem recently which was cured by including
> >>
> >> (require 'org-latex)
> >>
> >> in my .emacs file. Does this help in your case?
> >>
> >> Cheers,
> >>
> >> Erik
> >>
> >> On Tue, May 4, 2010 at 10:09 AM, Rares Pop  wrote:
> >> > Hi all,
> >> >
> >> > i'm using emacs-23.1 and org-mode 6.35i and trying to export as PDF
> the
> >> > beamer document from the Beamer tutorial
> >> > http://orgmode.org/worg/org-tutorials/org-beamer.php
> >> > but i get the following error:
> >> >
> >> > org-export-latex-set-initial-vars: No definition for class `beamer' in
> >> > `org-export-latex-classes'
> >> >
> >> > Can you please help me on this front?
> >> >
> >> > Thanks,
> >> > Rares
> >> >
> >> > ___
> >> > Emacs-orgmode mailing list
> >> > Please use `Reply All' to send replies to the list.
> >> > Emacs-orgmode@gnu.org
> >> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> >> >
> >> >
> >
> >
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] export beamer

2010-05-04 Thread Eric S Fraga
On Tue, 4 May 2010 16:18:40 +0300, Rares Pop  wrote:
> 
> It's not working.
> 
> I'm getting the following error when exporting to PDF:
> 
> ! LaTeX Error: File `wrapfig.sty' not found.
> 
> Type X to quit or  to proceed,
> or enter new name. (Default extension: sty)
> 
> Enter file name:
> ! Emergency stop.
> 
> 
> l.11 \usepackage
> {soul}^^M
> *** (cannot \read from terminal in nonstop modes)
> 
>  Thanks,
> Rares

This sounds like you have an incomplete latex installation.  It's not
a problem with org per se.  What system are you on and what TeX system
do you have installed?

You can play around with the latex code directly by exporting your org
file to latex (C-c C-e l).

HTH,
eric
-- 
MC .  -.. --- -  ..-. .-. .- --. .-  .- -  ..- -.-. .-..  .- -.-.  ..- -.-
NL Professor Eric S Fraga, UCL, http://www.homepages.ucl.ac.uk/~ucecesf/
PG Fingerprint: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
BF >++[>++>+++[<]>-]>++.>.<-.++.--.
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] export beamer

2010-05-04 Thread Erik Butz
Hi Rares,

actually it seems that it IS working. The error you are getting now is
a latex error saying that you are missing a package (wrapfig).  You
probably need to update your latex installation with that package. The
way you do this, depends on the distribution you're using. On
ubuntu/debian you could do:
apt-cache search wrapfig

which would give:
texlive-latex-extra - TeX Live: LaTeX supplementary packages

which would then be the package that you're missing.


Cheers,

Erik


On Tue, May 4, 2010 at 3:18 PM, Rares Pop  wrote:
> It's not working.
>
> I'm getting the following error when exporting to PDF:
>
> ! LaTeX Error: File `wrapfig.sty' not found.
>
> Type X to quit or  to proceed,
> or enter new name. (Default extension: sty)
>
> Enter file name:
> ! Emergency stop.
> 
>
> l.11 \usepackage
>     {soul}^^M
> *** (cannot \read from terminal in nonstop modes)
>
>  Thanks,
> Rares
>
> On Tue, May 4, 2010 at 3:47 PM, Erik Butz  wrote:
>>
>> Hi Rares,
>>
>> I had a similar problem recently which was cured by including
>>
>> (require 'org-latex)
>>
>> in my .emacs file. Does this help in your case?
>>
>> Cheers,
>>
>> Erik
>>
>> On Tue, May 4, 2010 at 10:09 AM, Rares Pop  wrote:
>> > Hi all,
>> >
>> > i'm using emacs-23.1 and org-mode 6.35i and trying to export as PDF the
>> > beamer document from the Beamer tutorial
>> > http://orgmode.org/worg/org-tutorials/org-beamer.php
>> > but i get the following error:
>> >
>> > org-export-latex-set-initial-vars: No definition for class `beamer' in
>> > `org-export-latex-classes'
>> >
>> > Can you please help me on this front?
>> >
>> > Thanks,
>> > Rares
>> >
>> > ___
>> > Emacs-orgmode mailing list
>> > Please use `Reply All' to send replies to the list.
>> > Emacs-orgmode@gnu.org
>> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>> >
>> >
>
>


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


Re: [Orgmode] export beamer

2010-05-04 Thread Rares Pop
It's not working.

I'm getting the following error when exporting to PDF:

! LaTeX Error: File `wrapfig.sty' not found.

Type X to quit or  to proceed,
or enter new name. (Default extension: sty)

Enter file name:
! Emergency stop.


l.11 \usepackage
{soul}^^M
*** (cannot \read from terminal in nonstop modes)

 Thanks,
Rares

On Tue, May 4, 2010 at 3:47 PM, Erik Butz  wrote:

> Hi Rares,
>
> I had a similar problem recently which was cured by including
>
> (require 'org-latex)
>
> in my .emacs file. Does this help in your case?
>
> Cheers,
>
> Erik
>
> On Tue, May 4, 2010 at 10:09 AM, Rares Pop  wrote:
> > Hi all,
> >
> > i'm using emacs-23.1 and org-mode 6.35i and trying to export as PDF the
> > beamer document from the Beamer tutorial
> > http://orgmode.org/worg/org-tutorials/org-beamer.php
> > but i get the following error:
> >
> > org-export-latex-set-initial-vars: No definition for class `beamer' in
> > `org-export-latex-classes'
> >
> > Can you please help me on this front?
> >
> > Thanks,
> > Rares
> >
> > ___
> > Emacs-orgmode mailing list
> > Please use `Reply All' to send replies to the list.
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> >
> >
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] export beamer

2010-05-04 Thread Erik Butz
Hi Rares,

I had a similar problem recently which was cured by including

(require 'org-latex)

in my .emacs file. Does this help in your case?

Cheers,

Erik

On Tue, May 4, 2010 at 10:09 AM, Rares Pop  wrote:
> Hi all,
>
> i'm using emacs-23.1 and org-mode 6.35i and trying to export as PDF the
> beamer document from the Beamer tutorial
> http://orgmode.org/worg/org-tutorials/org-beamer.php
> but i get the following error:
>
> org-export-latex-set-initial-vars: No definition for class `beamer' in
> `org-export-latex-classes'
>
> Can you please help me on this front?
>
> Thanks,
> Rares
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>


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


[Orgmode] export beamer

2010-05-04 Thread Rares Pop
Hi all,

i'm using emacs-23.1 and org-mode 6.35i and trying to export as PDF the
beamer document from the Beamer tutorial
http://orgmode.org/worg/org-tutorials/org-beamer.php
but i get the following error:

*org-export-latex-set-initial-vars: No definition for class `beamer' in
`org-export-latex-classes'*

Can you please help me on this front?

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


Re: [Orgmode] export problem

2010-04-24 Thread charles snyder
I think that problem seemed to be localized to one machine, probably from
the tex installation.

Thanks

On Fri, Apr 23, 2010 at 2:32 AM, Nick Dokos  wrote:

> Nick Dokos  wrote:
>
> > charles snyder  wrote:
> >
> > > Thanks Nick!
> > >
> > Glad to help!
> >
>
> BTW, I forgot that you originally reported two problems: the freemind
> export
> was one of them, but you also had problems with a PDF export. AFAICT, the
> solution to the freemind problem could not possibly affect the PDF export,
> so I assume that the latter is still a problem - is that correct?
>
> Thanks,
> Nick
>
> > > On 2 different machines,
> > > I got a "no match" when I tried C-h f org-export-as-freemind 
> > > and when I followed your instructions:
> > >
> > > M-x load-library  org-freemind 
> > > followed by C-c C-e m
> > >
> > > It worked!
> > >
> > > so, when I added:
> > >
> > > (load-library "C:/Users/clsnyder/Documents/org-6.33/lisp/org-freemind")
> to my .emacs, it works!
> > >
> > > but I have no clue why it stopped working and why I need to add this
> when the line above it in .emacs is:
> > >
> > > (add-to-list 'load-path "C:/Users/clsnyder/Documents/org-6.33/lisp")
> > >
> >
> > The add-to-list just tells emacs where to find the files that it needs to
> load.
> > Because of it, you should be able to load org-freemind using just
> >
> > (load-library "org-freemind")
> >
> > The loading itself can be done in various ways: explicitly as shown
> above, or
> > implicitly through the autoload mechanism.
> >
> > In my case, I load org-install.el (in my .emacs). org-install.el contains
> the following:
> >
> > (autoload 'org-export-as-freemind "org-freemind" "\
> > Not documented
> >
> > \(fn ARG &optional HIDDEN EXT-PLIST TO-BUFFER BODY-ONLY PUB-DIR)" t nil)
> >
> > so that when org-export-as-freemind is called, the autoload loads
> org-freemind.el (or
> > org-freemind.elc if the compiled file exists), that defines the function
> and the
> > call succeeds.
> >
> > At least, that's how it *should* work. You could do a little detective
> work in your
> > setup to see how things are initialized and why it did not work.
> >
> > One hint is that after the autoload is done but before you call the
> function,
> > if you say
> >
> >C-h f org-export-as-freemind 
> >
> > it will say
> >
> > ,
> > | org-export-as-freemind is an interactive autoloaded Lisp function in
> > | `org-freemind.el'.
> > |
> > | (org-export-as-freemind ARG &optional HIDDEN EXT-PLIST TO-BUFFER
> > | BODY-ONLY PUB-DIR)
> > |
> > | Not documented
> > `
> >
> > After you call the function once (which completes the loading),
> >
> >C-h f org-export-as-freemind 
> >
> > will say something else:
> >
> > ,
> > | org-export-as-freemind is an interactive compiled Lisp function in
> > | `org-freemind.el'.
> > |
> > | (org-export-as-freemind ARG &optional HIDDEN EXT-PLIST TO-BUFFER
> > | BODY-ONLY PUB-DIR)
> > |
> > | Not documented.
> > `
> >
> > Of course, in your case, emacs didn't know the function at all, so the
> > autoload never happened: either you are not loading org-install.el or
> > org-install.el does not contain the autoload form.
> >
> > HTH,
> > Nick
> >
> >
> >
> >
> >
> >
> > ___
> > Emacs-orgmode mailing list
> > Please use `Reply All' to send replies to the list.
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> >
>



-- 
Charles L. Snyder, MD
Professor of Surgery
Children's Mercy Hospital
Kansas City, MO
www.clsnyder.com
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] export problem

2010-04-23 Thread Nick Dokos
Nick Dokos  wrote:

> charles snyder  wrote:
> 
> > Thanks Nick!
> > 
> Glad to help!
> 

BTW, I forgot that you originally reported two problems: the freemind export
was one of them, but you also had problems with a PDF export. AFAICT, the
solution to the freemind problem could not possibly affect the PDF export,
so I assume that the latter is still a problem - is that correct?

Thanks,
Nick

> > On 2 different machines,
> > I got a "no match" when I tried C-h f org-export-as-freemind 
> > and when I followed your instructions:
> > 
> > M-x load-library  org-freemind 
> > followed by C-c C-e m
> > 
> > It worked!
> > 
> > so, when I added:
> > 
> > (load-library "C:/Users/clsnyder/Documents/org-6.33/lisp/org-freemind") to 
> > my .emacs, it works!
> > 
> > but I have no clue why it stopped working and why I need to add this when 
> > the line above it in .emacs is:
> > 
> > (add-to-list 'load-path "C:/Users/clsnyder/Documents/org-6.33/lisp")
> > 
> 
> The add-to-list just tells emacs where to find the files that it needs to 
> load.
> Because of it, you should be able to load org-freemind using just
> 
> (load-library "org-freemind")
> 
> The loading itself can be done in various ways: explicitly as shown above, or
> implicitly through the autoload mechanism.
> 
> In my case, I load org-install.el (in my .emacs). org-install.el contains the 
> following:
> 
> (autoload 'org-export-as-freemind "org-freemind" "\
> Not documented
> 
> \(fn ARG &optional HIDDEN EXT-PLIST TO-BUFFER BODY-ONLY PUB-DIR)" t nil)
> 
> so that when org-export-as-freemind is called, the autoload loads 
> org-freemind.el (or
> org-freemind.elc if the compiled file exists), that defines the function and 
> the
> call succeeds.
> 
> At least, that's how it *should* work. You could do a little detective work 
> in your
> setup to see how things are initialized and why it did not work.
> 
> One hint is that after the autoload is done but before you call the function,
> if you say
> 
>C-h f org-export-as-freemind 
> 
> it will say
> 
> ,
> | org-export-as-freemind is an interactive autoloaded Lisp function in
> | `org-freemind.el'.
> | 
> | (org-export-as-freemind ARG &optional HIDDEN EXT-PLIST TO-BUFFER
> | BODY-ONLY PUB-DIR)
> | 
> | Not documented
> `
> 
> After you call the function once (which completes the loading),
> 
>C-h f org-export-as-freemind 
> 
> will say something else:
> 
> ,
> | org-export-as-freemind is an interactive compiled Lisp function in
> | `org-freemind.el'.
> | 
> | (org-export-as-freemind ARG &optional HIDDEN EXT-PLIST TO-BUFFER
> | BODY-ONLY PUB-DIR)
> | 
> | Not documented.
> `
> 
> Of course, in your case, emacs didn't know the function at all, so the
> autoload never happened: either you are not loading org-install.el or
> org-install.el does not contain the autoload form.
> 
> HTH,
> Nick
> 
> 
> 
> 
> 
> 
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 


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


Re: [Orgmode] export problem

2010-04-22 Thread Nick Dokos
charles snyder  wrote:

> Thanks Nick!
> 
Glad to help!

> On 2 different machines,
> I got a "no match" when I tried C-h f org-export-as-freemind 
> and when I followed your instructions:
> 
> M-x load-library  org-freemind 
> followed by C-c C-e m
> 
> It worked!
> 
> so, when I added:
> 
> (load-library "C:/Users/clsnyder/Documents/org-6.33/lisp/org-freemind") to my 
> .emacs, it works!
> 
> but I have no clue why it stopped working and why I need to add this when the 
> line above it in .emacs is:
> 
> (add-to-list 'load-path "C:/Users/clsnyder/Documents/org-6.33/lisp")
> 

The add-to-list just tells emacs where to find the files that it needs to load.
Because of it, you should be able to load org-freemind using just

(load-library "org-freemind")

The loading itself can be done in various ways: explicitly as shown above, or
implicitly through the autoload mechanism.

In my case, I load org-install.el (in my .emacs). org-install.el contains the 
following:

(autoload 'org-export-as-freemind "org-freemind" "\
Not documented

\(fn ARG &optional HIDDEN EXT-PLIST TO-BUFFER BODY-ONLY PUB-DIR)" t nil)

so that when org-export-as-freemind is called, the autoload loads 
org-freemind.el (or
org-freemind.elc if the compiled file exists), that defines the function and the
call succeeds.

At least, that's how it *should* work. You could do a little detective work in 
your
setup to see how things are initialized and why it did not work.

One hint is that after the autoload is done but before you call the function,
if you say

   C-h f org-export-as-freemind 

it will say

,
| org-export-as-freemind is an interactive autoloaded Lisp function in
| `org-freemind.el'.
| 
| (org-export-as-freemind ARG &optional HIDDEN EXT-PLIST TO-BUFFER
| BODY-ONLY PUB-DIR)
| 
| Not documented
`

After you call the function once (which completes the loading),

   C-h f org-export-as-freemind 

will say something else:

,
| org-export-as-freemind is an interactive compiled Lisp function in
| `org-freemind.el'.
| 
| (org-export-as-freemind ARG &optional HIDDEN EXT-PLIST TO-BUFFER
| BODY-ONLY PUB-DIR)
| 
| Not documented.
`

Of course, in your case, emacs didn't know the function at all, so the
autoload never happened: either you are not loading org-install.el or
org-install.el does not contain the autoload form.

HTH,
Nick






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


Re: [Orgmode] export problem

2010-04-22 Thread charles snyder
Thanks Nick!

On 2 different machines,
I got a "no match" when I tried C-h f org-export-as-freemind 
and when I followed your instructions:

M-x load-library  org-freemind 
followed by C-c C-e m

It worked!

so, when I added:

(load-library "C:/Users/clsnyder/Documents/org-6.33/lisp/org-freemind") to
my .emacs, it works!

but I have no clue why it stopped working and why I need to add this when
the line above it in .emacs is:

(add-to-list 'load-path "C:/Users/clsnyder/Documents/org-6.33/lisp")

Thanks for all your help

Chuck


On Thu, Apr 22, 2010 at 1:29 PM, Nick Dokos  wrote:

> charles snyder  wrote:
>
> > I get the same error message ("Wrong type argument: commandp,
> org-export-as-freemind")   with any org file on:
> >
> > home windows 7 emacs 23, orgmode 6.34
> > home mac osx as previously described -emacs/aquamacs
> > work windows XP emacs 23
> > (all gnu emacs)
> > all have different .emacs files
> > all are using recent (6.33a to latest) versions of orgmode
> >
> > cls
> >
>
> This sounds as if org-freemind is not loaded. What does
>
>  C-h f org-export-as-freemind 
>
> say? If it is says "No match", try loading org-freemind:
>
>M-x load-library  org-freemind 
>
> and try the export again.
>
> If that does not work, I assume that you somehow introduced the same
> setup problem on all the machines. I'd concentrate on one machine, debug
> it there and then propagate the fix(es) to all the others.
>
> To debug it, please read section 1.4, "Feedback",  of the Org manual.
> In particular, the section on "How to create a useful backtrace". Since
> the problem is easy to reproduce, that's the most likely path to success.
> When you get the backtrace, post it here.
>
> Thanks,
> Nick
>
>
> > On Wed, Apr 21, 2010 at 11:33 PM, Nick Dokos 
> wrote:
> >
> > charles snyder  wrote:
> >
> > > Until recently, my org exports worked perfectly. I haven't made any
> changes I am aware of. Now
> > > I am having export problems with my .org files.
> > >
> > > When I try to export as freemind (C-c C-e  m) I get:
> > > "wrong type argument: org-export-as-freemind".
> > >
> > > When I try to export as pdf (C-c C-e  d), I get the following
> error:
> > > ...
> > > Runaway argument?
> > > {Request Library books \href {
> http://www.jocolibrary.org/default.aspx\ETC
> .
> > > ! File ended while scanning use of \...@xdblarg.
> > > 
> > > \par
> > > ...
> > > I am using org mode 6.35 emacs, GNU Emacs 22.3.1
> > > (i386-apple-darwin9.7.0, Carbon Version 1.6.0) or Aquamacs GNU
> Emacs
> > > 23.0.94.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) on mac
> osx
> > > (but same problem on windows)
> > >
> >
> > I tried both exports on a (trivial, although it did include some
> links)
> > org file and I had no problems. Can you try to get a minimal example
> of
> > an org file that causes these problems for you and post it here?
> Posting
> > the whole file (modulo any privacy concerns) is the second best
> > possibility.
> >
> > If that is not possible, it's going to be tougher going: try
> exporting
> > to latex and then run pdftex on it by hand. If that gives you the
> same
> > error, then post the portion of the latex file around the error and
> the
> > corresponding portion of the org file. That's probably not going to
> be
> > enough information but you never know.
> >
> > Nick
> >
> > --
> > Charles L. Snyder, MD
> > Professor of Surgery
> > Children's Mercy Hospital
> > Kansas City, MO
> > www.clsnyder.com
> >
>



-- 
Charles L. Snyder, MD
Professor of Surgery
Children's Mercy Hospital
Kansas City, MO
www.clsnyder.com
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] export problem

2010-04-22 Thread Nick Dokos
charles snyder  wrote:

> I get the same error message ("Wrong type argument: commandp, 
> org-export-as-freemind")   with any org file on:
> 
> home windows 7 emacs 23, orgmode 6.34
> home mac osx as previously described -emacs/aquamacs
> work windows XP emacs 23
> (all gnu emacs)
> all have different .emacs files
> all are using recent (6.33a to latest) versions of orgmode
> 
> cls
> 

This sounds as if org-freemind is not loaded. What does

  C-h f org-export-as-freemind 

say? If it is says "No match", try loading org-freemind:

M-x load-library  org-freemind 

and try the export again.

If that does not work, I assume that you somehow introduced the same
setup problem on all the machines. I'd concentrate on one machine, debug
it there and then propagate the fix(es) to all the others.

To debug it, please read section 1.4, "Feedback",  of the Org manual.
In particular, the section on "How to create a useful backtrace". Since
the problem is easy to reproduce, that's the most likely path to success.
When you get the backtrace, post it here.

Thanks,
Nick


> On Wed, Apr 21, 2010 at 11:33 PM, Nick Dokos  wrote:
> 
> charles snyder  wrote:
> 
> > Until recently, my org exports worked perfectly. I haven't made any 
> changes I am aware of. Now
> > I am having export problems with my .org files. 
> >
> > When I try to export as freemind (C-c C-e  m) I get:
> > "wrong type argument: org-export-as-freemind". 
> >
> > When I try to export as pdf (C-c C-e  d), I get the following error:
> > ...
> > Runaway argument?
> > {Request Library books \href 
> {http://www.jocolibrary.org/default.aspx\ETC.
> > ! File ended while scanning use of \...@xdblarg.
> >  
> >                 \par 
> > ...
> > I am using org mode 6.35 emacs, GNU Emacs 22.3.1
> > (i386-apple-darwin9.7.0, Carbon Version 1.6.0) or Aquamacs GNU Emacs
> > 23.0.94.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) on mac osx
> > (but same problem on windows)
> >
>
> I tried both exports on a (trivial, although it did include some links)
> org file and I had no problems. Can you try to get a minimal example of
> an org file that causes these problems for you and post it here? Posting
> the whole file (modulo any privacy concerns) is the second best
> possibility.
>
> If that is not possible, it's going to be tougher going: try exporting
> to latex and then run pdftex on it by hand. If that gives you the same
> error, then post the portion of the latex file around the error and the
> corresponding portion of the org file. That's probably not going to be
> enough information but you never know.
>
> Nick
> 
> --
> Charles L. Snyder, MD
> Professor of Surgery
> Children's Mercy Hospital
> Kansas City, MO
> www.clsnyder.com
> 


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


Re: [Orgmode] export problem

2010-04-22 Thread charles snyder
I get the same error message ("Wrong type argument: commandp,
org-export-as-freemind")   with *any *org file on:

home windows 7 emacs 23, orgmode 6.34
home mac osx as previously described -emacs/aquamacs
work windows XP emacs 23
(all gnu emacs)
all have different .emacs files
all are using recent (6.33a to latest) versions of orgmode

cls

On Wed, Apr 21, 2010 at 11:33 PM, Nick Dokos  wrote:

> charles snyder  wrote:
>
>
> > Until recently, my org exports worked perfectly. I haven't made any
> changes I am aware of. Now
> > I am having export problems with my .org files.
> >
> > When I try to export as freemind (C-c C-e  m) I get:
> > "wrong type argument: org-export-as-freemind".
> >
> > When I try to export as pdf (C-c C-e  d), I get the following error:
> > ...
> > Runaway argument?
> > {Request Library books \href {
> http://www.jocolibrary.org/default.aspx\ETC
> .
> > ! File ended while scanning use of \...@xdblarg.
> > 
> > \par
> > ...
> > I am using org mode 6.35 emacs, GNU Emacs 22.3.1
> > (i386-apple-darwin9.7.0, Carbon Version 1.6.0) or Aquamacs GNU Emacs
> > 23.0.94.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) on mac osx
> > (but same problem on windows)
> >
>
> I tried both exports on a (trivial, although it did include some links)
> org file and I had no problems. Can you try to get a minimal example of
> an org file that causes these problems for you and post it here? Posting
> the whole file (modulo any privacy concerns) is the second best
> possibility.
>
> If that is not possible, it's going to be tougher going: try exporting
> to latex and then run pdftex on it by hand. If that gives you the same
> error, then post the portion of the latex file around the error and the
> corresponding portion of the org file. That's probably not going to be
> enough information but you never know.
>
> Nick
>



-- 
Charles L. Snyder, MD
Professor of Surgery
Children's Mercy Hospital
Kansas City, MO
www.clsnyder.com
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] export problem

2010-04-21 Thread Nick Dokos
charles snyder  wrote:


> Until recently, my org exports worked perfectly. I haven't made any changes I 
> am aware of. Now
> I am having export problems with my .org files. 
> 
> When I try to export as freemind (C-c C-e  m) I get:
> "wrong type argument: org-export-as-freemind". 
> 
> When I try to export as pdf (C-c C-e  d), I get the following error:
> ...
> Runaway argument?
> {Request Library books \href {http://www.jocolibrary.org/default.aspx\ETC.
> ! File ended while scanning use of \...@xdblarg.
>  
>                 \par 
> ...
> I am using org mode 6.35 emacs, GNU Emacs 22.3.1
> (i386-apple-darwin9.7.0, Carbon Version 1.6.0) or Aquamacs GNU Emacs
> 23.0.94.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) on mac osx
> (but same problem on windows)
> 

I tried both exports on a (trivial, although it did include some links)
org file and I had no problems. Can you try to get a minimal example of
an org file that causes these problems for you and post it here? Posting
the whole file (modulo any privacy concerns) is the second best
possibility.

If that is not possible, it's going to be tougher going: try exporting
to latex and then run pdftex on it by hand. If that gives you the same
error, then post the portion of the latex file around the error and the
corresponding portion of the org file. That's probably not going to be
enough information but you never know.

Nick


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


[Orgmode] export problem

2010-04-21 Thread charles snyder
Hi

Until recently, my org exports worked perfectly. I haven't made any changes
I am aware of. Now
I am having export problems with my .org files.

When I try to export as freemind (C-c C-e  m) I get:
"wrong type argument: org-export-as-freemind".

When I try to export as pdf (C-c C-e  d), I get the following error:

This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(/Users/clsnyder/Dropbox/emacs_org/personal.tex
LaTeX2e <2005/12/01>
Babel  and hyphenation patterns for english, usenglishmax, dumylang,
noh
yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak, german,
ng
erman, danish, esperanto, spanish, catalan, galician, estonian, farsi,
finnish,
 french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua,
ibyc
us, indonesian, icelandic, italian, latin, mongolian, dutch, norsk, polish,
por
tuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian,
swedish,
turkish, ukenglish, ukrainian, loaded.
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/size11.clo))
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/inputenc.sty
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/utf8.def
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/t1enc.dfu)
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/ot1enc.dfu)
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/omsenc.dfu)))
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/t1enc.def))
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/fixltx2e.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2007/texmf/tex/latex/config/graphics.cfg)
(/usr/local/texlive/2007/texmf-dist/tex/latex/pdftex-def/pdftex.def)))
(/usr/local/texlive/2007/texmf-dist/tex/latex/tools/longtable.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/float/float.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/wrapfig/wrapfig.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/soul/soul.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/t1enc.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/textcomp.sty
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/ts1enc.def
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/ts1enc.dfu)))
(/usr/local/texlive/2007/texmf-dist/tex/latex/marvosym/marvosym.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/wasysym/wasysym.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/latexsym.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/local/texlive/2007/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2007/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/local/texlive/2007/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/local/texlive/2007/texmf/tex/latex/config/hyperref.cfg)
(/usr/local/texlive/2007/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
Implicit mode ON; LaTeX internals redefined
(/usr/local/texlive/2007/texmf-dist/tex/latex/ltxmisc/url.sty))
*hyperref using default driver hpdftex*
(/usr/local/texlive/2007/texmf-dist/tex/latex/hyperref/hpdftex.def)
(./personal.aux)
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/ts1cmr.fd)
(/usr/local/texlive/2007/texmf-dist/tex/context/base/supp-pdf.tex
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/local/texlive/2007/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/local/texlive/2007/texmf-dist/tex/latex/oberdiek/refcount.sty))
(./personal.out) (./personal.out)
(/usr/local/texlive/2007/texmf-dist/tex/latex/wasysym/uwasy.fd)
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/ulasy.fd)
(/usr/local/texlive/2007/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2007/texmf-dist/tex/latex/amsfonts/umsb.fd)
(./personal.toc
) (/usr/local/texlive/2007/texmf-dist/tex/latex/base/t1cmtt.fd)
[1{/usr/local/t
exlive/2007/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] [2]
Overfull \vbox (599.92874pt too high) has occurred while \output is active
[3])
Runaway argument?
{Request Library books \href {http://www.jocolibrary.org/default.aspx\ETC.
! File ended while scanning use of \...@xdblarg.

\par
<*> /Users/clsnyder/Dropbox/emacs_org/personal.tex

! Emergency stop.
<*> /Users/clsnyder/Dropbox/emacs_org/personal.tex

!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on personal.log.

I am using org mode 6.35 emacs, GNU Emacs 22.3.1 (i386-apple-darwin9.7.0,
Carbon Version 1.6.0) or Aquamacs GNU Emacs 23.0.94.1
(i386-apple-darwin9.8.0, NS apple-appkit-949.54) on mac osx (but same
problem on windows)

Thanks in advance

Charles Snyder


-- 
Charles L. Snyder, MD
Professor of Surgery
Children's Mer

Re: [Orgmode] export-latex-final-hook

2010-04-19 Thread Dan Davison
Matt Price  writes:

> Thanks to Dan and Carsten,
>
> I now have this:
>
>
> (defun  mwp/push-latex-to-odt ()
>   "takes the exported tex file from org-mode and converts it to odt,
> then launches openoffice"
>   (shell-command
>(format  "mk4ht oolatex  %s.tex"
>   (file-name-sans-extension (buffer-name
>   (shell-command
>(format  "ooffice  %s.odt &"
>   (file-name-sans-extension (buffer-name)
>
> (add-hook 'org-export-latex-final-hook
> 'mwp/push-latex-to-odt)
>
>
> which works fine.  The only issue is that the first shell command,
> mk4ht oolatex, sometimes takes a while to finish processing & would be
> nice to have running in the background.  Should  just write a shell
> script that runs the two commands, and then fork that process? Or is
> there a slightly more elegant way that keeps all of the programming
> contained in a lisp file?

Hi Matt,

It's either start-process or start-process-shell-command you want I
think. Also, I believe we may have hit on not-quite-the-correct export
hook. This seems to work:

(defun  mwp/push-latex-to-odt ()
  "takes the exported tex file from org-mode and converts it to odt,
then launches openoffice"
  (let* ((file-name (file-name-sans-extension (buffer-name)))
 (output-buffer "*latex-to-odt output*")
 (cmd (format  "mk4ht oolatex %s.tex && ooffice %s.odt"
  file-name file-name)))
(message "Converting latex to odt")
(start-process-shell-command
 "latex-to-odt" output-buffer cmd)))

(add-hook 'org-export-latex-after-save-hook
  'mwp/push-latex-to-odt)

Dan

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


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


Re: [Orgmode] export-latex-final-hook

2010-04-19 Thread Matt Price
Thanks to Dan and Carsten,

I now have this:


(defun  mwp/push-latex-to-odt ()
  "takes the exported tex file from org-mode and converts it to odt,
then launches openoffice"
  (shell-command
   (format  "mk4ht oolatex  %s.tex"
(file-name-sans-extension (buffer-name
  (shell-command
   (format  "ooffice  %s.odt &"
(file-name-sans-extension (buffer-name)

(add-hook 'org-export-latex-final-hook
  'mwp/push-latex-to-odt)


which works fine.  The only issue is that the first shell command,
mk4ht oolatex, sometimes takes a while to finish processing & would be
nice to have running in the background.  Should  just write a shell
script that runs the two commands, and then fork that process? Or is
there a slightly more elegant way that keeps all of the programming
contained in a lisp file?

Thanks again,

matt


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


Re: [Orgmode] Export special characters to LaTeX and HTML

2010-03-28 Thread sven . bretfeld
Hi Thomas

"Thomas S. Dye"  writes:

> This is brilliant.  Thanks!  I tried to find this solution in the
> documentation last night but came up empty.  Did I miss something?
> Seems like it should be there someplace.

This wont show up in the Org manual, since it consists of usual Emacs
code. It took me a while to find the command ucs-insert when I shifted
to Emacs from Kile some years ago. The only org-specific part is the
detachment of M-a as a prefix, because this key is bound to some
function in the org-keymap.

> Actually, I harbor a grudge against Thomas Magnum :)  I've been a
> Detroit Tigers fan for more than 50 years.  For many of those years
> I've worn a Tiger's cap in the summer, but once Magnum started doing
> it, people began to accuse me of aping him.  I had to find a friend
> with a TV to find out what people were asking me.  You are the first
> to ask in at least a decade.

Hehe. This really amuses me. T.M. is one of my heroes. He comes to my
mind whenever I think of Hawaii.

Greetings,

Sven


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


Re: [Orgmode] Export special characters to LaTeX and HTML

2010-03-28 Thread Thomas S. Dye


On Mar 27, 2010, at 10:29 PM, Sven Bretfeld wrote:


Hi Tom

"Thomas S. Dye"  writes:


Aloha all,


You aren't Thomas Magnum, are you?

Is there a way to insert special characters in org-mode so they  
export

correctly to both LaTeX and HTML? I'm interested in characters that
don't appear on the long list of LaTeX special characters that export
to HTML listed here: http://
orgmode.org/worg/org-tutorials/org-publish-html-tutorial.php#sec-9



I use Hawaiian words extensively and they often require a macron over
vowels, so Ā ā Ē ē etc. in HTML or \=A, \=a, \=E,
\=e, etc. in LaTeX.


I use the same characters for Sanskrit. They export just fine to  
LaTeX.

To type them I have the following in my .emacs:

(define-key global-map [(meta a)] nil) ;;make Alt-a free as a prefix
(define-key org-mode-map [(meta a)] nil)

(defun insert-lang-a ()
(interactive)
(ucs-insert "0101"))
(global-set-key "\M-aa" 'insert-lang-a)

(defun insert-lang-i ()
(interactive)
(ucs-insert "012B"))
(global-set-key "\M-ai" 'insert-lang-i)

This binds a-macron and i-macron to M-aa and M-ai. The same can be  
done

for all other characters (M-aA = A-macron etc.).

For LaTeX-export you should set inputenc to utf8x.

Hope it helps

Sven



Hi Sven,

This is brilliant.  Thanks!  I tried to find this solution in the  
documentation last night but came up empty.  Did I miss something?   
Seems like it should be there someplace.


Actually, I harbor a grudge against Thomas Magnum :)  I've been a  
Detroit Tigers fan for more than 50 years.  For many of those years  
I've worn a Tiger's cap in the summer, but once Magnum started doing  
it, people began to accuse me of aping him.  I had to find a friend  
with a TV to find out what people were asking me.  You are the first  
to ask in at least a decade.


Thanks again for your help.

Tom



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


Re: [Orgmode] Export special characters to LaTeX and HTML

2010-03-28 Thread Sven Bretfeld
Hi Tom

"Thomas S. Dye"  writes:

> Aloha all,

You aren't Thomas Magnum, are you?

> Is there a way to insert special characters in org-mode so they export
> correctly to both LaTeX and HTML? I'm interested in characters that
> don't appear on the long list of LaTeX special characters that export
> to HTML listed here: http://
> orgmode.org/worg/org-tutorials/org-publish-html-tutorial.php#sec-9

> I use Hawaiian words extensively and they often require a macron over
> vowels, so Ā ā Ē ē etc. in HTML or \=A, \=a, \=E,
> \=e, etc. in LaTeX.

I use the same characters for Sanskrit. They export just fine to LaTeX.
To type them I have the following in my .emacs:

(define-key global-map [(meta a)] nil) ;;make Alt-a free as a prefix
(define-key org-mode-map [(meta a)] nil)

(defun insert-lang-a ()
(interactive)
(ucs-insert "0101"))
(global-set-key "\M-aa" 'insert-lang-a)

(defun insert-lang-i ()
(interactive)
(ucs-insert "012B"))
(global-set-key "\M-ai" 'insert-lang-i)

This binds a-macron and i-macron to M-aa and M-ai. The same can be done
for all other characters (M-aA = A-macron etc.). 

For LaTeX-export you should set inputenc to utf8x.

Hope it helps

Sven



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


[Orgmode] Export special characters to LaTeX and HTML

2010-03-28 Thread Thomas S. Dye

Aloha all,

Is there a way to insert special characters in org-mode so they export  
correctly to both LaTeX and HTML?  I'm interested in characters that  
don't appear on the long list of LaTeX special characters that export  
to HTML listed here: http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.php#sec-9


I use Hawaiian words extensively and they often require a macron over  
vowels, so Ā ā Ē ē etc. in HTML or \=A, \=a, \=E,  
\=e, etc. in LaTeX.


My idea is to have a single org-mode document that I can export to  
LaTeX to interact with my colleagues, and then export to HTML for  
journals that require submissions in Word format.  I'm using tex4ht  
now, but an org-mode solution would be simpler and more direct.


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


Re: [Orgmode] Export HTML from command line

2010-03-17 Thread Pierre de Buyl

From the documentation
http://orgmode.org/manual/Quoting-HTML-tags.html#Quoting-HTML-tags
I would say that you need to remove the ":" in "#+BEGIN_HTML:" and  
the closing line. However leaving them works also on my emacs (org  
6.31trans).


If it still does not work, can you send a minimal org file in which  
the error is reproducible ?


Pierre

Le 16 mars 10 à 20:47, Zachary Young a écrit :


Hi all,

When I run `org-export-as-html' in a buffer, it works as I expect,  
but when I try to run it from an emacs batch command:


emacs --batch --execute='(setq vc-follow-symlinks nil)' -- 
visit=current-day.org --execute='(org-export-as-html-and-open nil)'


anything between #+BEGIN_HTML: and #+END_HTML: are exported like  
the following:


#+BEGIN_HTML:
Revision: 934
Message:


Revved 'release-name' variable to '1.10'.




Modified : /trunk/scripts/AutoDoc/AutoDoc.build
#+END_HTML: and I am expecting: Revision: 934 Message: 1) Revved 'release-name' variable to '1.10'. Modified : /trunk/scripts/AutoDoc/AutoDoc.build This is my first try at running emacs as a batch command, so I might be doing something wrong there. If more information is required, please let me know. Thank you, Zach ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode

[Orgmode] Export HTML from command line

2010-03-16 Thread Zachary Young
Hi all,

When I run `org-export-as-html' in a buffer, it works as I expect, but when
I try to run it from an emacs batch command:

emacs --batch --execute='(setq vc-follow-symlinks nil)' --visit=
current-day.org --execute='(org-export-as-html-and-open nil)'


anything between #+BEGIN_HTML: and #+END_HTML: are exported like the
following:

#+BEGIN_HTML:
Revision: 934
Message:


Revved 'release-name' variable to '1.10'.




Modified : /trunk/scripts/AutoDoc/AutoDoc.build
#+END_HTML: and I am expecting: Revision: 934 Message: 1) Revved 'release-name' variable to '1.10'. Modified : /trunk/scripts/AutoDoc/AutoDoc.build This is my first try at running emacs as a batch command, so I might be doing something wrong there. If more information is required, please let me know. Thank you, Zach ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Re: [Orgmode] Export to latex ignores user-mail-address

2010-03-12 Thread Carsten Dominik

Fixed as well, thanks.

- Carsten

On Mar 11, 2010, at 8:32 PM, Jambunathan K wrote:



My gut feelings is that although macros are enabled for author  
string, the parsing is broken when the invocation spans multiple  
lines.


I would like to add the following observation as well -

---> org input <---
#+AUTHOR: Jambunathan K\cr\href{mailto:{{{EMAILEMAIL

---> actual tex output <---
\author{Jambunathan K\cr\href{mailto:kjambunat...@gmail.com}\{kjambunathan@gmail.com 
\}}


The above tex snippet has the effect of getting the "Url Box" wrong.

I was hoping to produce the following line -
\author{Jambunathan K\cr\href{mailto:kjambunat...@gmail.com}{kjambunathan@gmail.com 
}}


Generally speaking, macro expansion in author string behaves  
strangely.


Thanks,
Jambunathan K.




- Carsten





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


Re: [Orgmode] Export to latex ignores user-mail-address

2010-03-11 Thread Jambunathan K


My gut feelings is that although macros are enabled for author string, 
the parsing is broken when the invocation spans multiple lines.


I would like to add the following observation as well -

---> org input <---
#+AUTHOR: Jambunathan K\cr\href{mailto:{{{EMAILEMAIL

---> actual tex output <---
\author{Jambunathan 
K\cr\href{mailto:kjambunat...@gmail.com}\{kjambunathan@gmail.com\}}


The above tex snippet has the effect of getting the "Url Box" wrong.

I was hoping to produce the following line -
\author{Jambunathan 
K\cr\href{mailto:kjambunat...@gmail.com}{kjambunathan@gmail.com}}


Generally speaking, macro expansion in author string behaves strangely.

Thanks,
Jambunathan K.




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


Re: [Orgmode] Export to latex ignores user-mail-address

2010-03-11 Thread Jambunathan K

On 3/9/2010 10:40 PM, Carsten Dominik wrote:


On Mar 7, 2010, at 5:48 PM, Jambunathan K wrote:


Hi  Carsten

What can I do to get the email address automagically as in the header 
as below:


... [Snipped from Wikibook] 

\title{How to Structure a \LaTeX{} Document}
\author{Andrew Roberts\\
\texttt{an...@comp.leeds.ac.uk}}
\date{\today}
\maketitle

Ascii export does plugin the email-address based on email property.  
Shouldn't  (org-export-latex-make-header ...)  test the email 
property and emit the required latex line?


Maybe this will work:

AUTHOR: Andrew Roberts\newline\textttEMAIL}




On 3/10/2010 8:34 AM, Nick Dokos wrote:

Andrew Roberts\cr\textttEMAIL
   


Thanks for this suggestion. This satisfactorily addresses the concern 
that I had raised.


For completion's sake, let me register my observations here.

I was trying to get in a newline (in sort of a roundabout way).

Facts
1. Author string can have macros
2. Macro arguments allow linebreaks to be reproduced verbatim in 
exported files


Putting 1 & 2 together, I had a partial success.

Variant-1:

> org-input <

#+MACRO: verbatim $1
#+AUTHOR: {{{verbatim(Jambunathan K)}}}
* Section

  {{{verbatim(Jambunathan K)}}}

  {{{verbatim(Jambunathan
  K)}}}

 ---> tex outut <---
...
\author{Jambunathan K}
...
\section{Section}
\label{sec-1}
  Jambunathan K
  Jambunathan
K
...

This is a well-formed tex file. Key thing is it validates facts 1 & 2 above.

Variant-2:

---> org input <---

#+MACRO: verbatim $1
#+AUTHOR:   {{{verbatim(Jambunathan
  K)}}}

* Section
  {{{verbatim(Jambunathan K)}}}
  {{{verbatim(Jambunathan
  K)}}}

---> tex output <---
...
\author{{\{{verbatim(Jambunathan}
...
\section{Section}
\label{sec-1}
  Jambunathan K
  Jambunathan
K

This is not a well-formed latex file.

My gut feelings is that although macros are enabled for author string, 
the parsing is broken when the invocation spans multiple lines.


Thanks,
Jambunathan K











Btw, I would like to thank you and all other contributors for making 
available this wonderful module.


Jambunathan K.


On 3/7/2010 8:54 PM, Carsten Dominik wrote:

Hi Jambunathan,

that is because \maketitle does not show an email address.

- Carsten

On Mar 6, 2010, at 5:47 PM, Jambunathan K wrote:

I am seeing latex export honors user-full-name but not 
user-mail-address.


The document header goes something like.

#+TITLE:My Title
#+DESCRIPTION:
#+STARTUP: showall
#+LaTeX: \setlength\parindent{0.0in}
#+LaTeX: \setlength\parskip{0.1in}

orgmode-version is 6.33x -  Emacs 23.1.91.1 (i386-mingw-nt5.1.2600).






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


- Carsten







- Carsten



- Carsten







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


Re: [Orgmode] Export to latex ignores user-mail-address

2010-03-09 Thread Carsten Dominik


On Mar 7, 2010, at 5:48 PM, Jambunathan K wrote:


Hi  Carsten

What can I do to get the email address automagically as in the  
header as below:


... [Snipped from Wikibook] 

\title{How to Structure a \LaTeX{} Document}
\author{Andrew Roberts\\
\texttt{an...@comp.leeds.ac.uk}}
\date{\today}
\maketitle

Ascii export does plugin the email-address based on email property.   
Shouldn't  (org-export-latex-make-header ...)  test the email  
property and emit the required latex line?


Maybe this will work:

AUTHOR: Andrew Roberts\newline\textttEMAIL}




Btw, I would like to thank you and all other contributors for making  
available this wonderful module.


Jambunathan K.


On 3/7/2010 8:54 PM, Carsten Dominik wrote:

Hi Jambunathan,

that is because \maketitle does not show an email address.

- Carsten

On Mar 6, 2010, at 5:47 PM, Jambunathan K wrote:

I am seeing latex export honors user-full-name but not user-mail- 
address.


The document header goes something like.

#+TITLE:My Title
#+DESCRIPTION:
#+STARTUP: showall
#+LaTeX: \setlength\parindent{0.0in}
#+LaTeX: \setlength\parskip{0.1in}

orgmode-version is 6.33x -  Emacs 23.1.91.1 (i386-mingw-nt5.1.2600).






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


- Carsten







- Carsten



- Carsten





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


Re: [Orgmode] Export to latex ignores user-mail-address

2010-03-09 Thread Carsten Dominik

Hi Jambunathan,

On Mar 7, 2010, at 5:48 PM, Jambunathan K wrote:


Hi  Carsten

What can I do to get the email address automagically as in the  
header as below:


... [Snipped from Wikibook] 

\title{How to Structure a \LaTeX{} Document}
\author{Andrew Roberts\\
\texttt{an...@comp.leeds.ac.uk}}
\date{\today}
\maketitle

Ascii export does plugin the email-address based on email property.   
Shouldn't  (org-export-latex-make-header ...)  test the email  
property and emit the required latex line?



You can do this.

1. pull again from the git repository
2. Use this code:

#+AUTHOR: Andrew Roberts\\\textttemail

HTH

- Carsten



Btw, I would like to thank you and all other contributors for making  
available this wonderful module.


Jambunathan K.


On 3/7/2010 8:54 PM, Carsten Dominik wrote:

Hi Jambunathan,

that is because \maketitle does not show an email address.

- Carsten

On Mar 6, 2010, at 5:47 PM, Jambunathan K wrote:

I am seeing latex export honors user-full-name but not user-mail- 
address.


The document header goes something like.

#+TITLE:My Title
#+DESCRIPTION:
#+STARTUP: showall
#+LaTeX: \setlength\parindent{0.0in}
#+LaTeX: \setlength\parskip{0.1in}

orgmode-version is 6.33x -  Emacs 23.1.91.1 (i386-mingw-nt5.1.2600).






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


- Carsten







- Carsten





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


Re: [Orgmode] Export to latex ignores user-mail-address

2010-03-07 Thread Jambunathan K

Hi  Carsten

What can I do to get the email address automagically as in the header as 
below:


... [Snipped from Wikibook] 

\title{How to Structure a \LaTeX{} Document}
\author{Andrew Roberts\\
\texttt{an...@comp.leeds.ac.uk}}
\date{\today}
\maketitle

Ascii export does plugin the email-address based on email property.  
Shouldn't  (org-export-latex-make-header ...)  test the email property 
and emit the required latex line?


Btw, I would like to thank you and all other contributors for making 
available this wonderful module.


Jambunathan K.


On 3/7/2010 8:54 PM, Carsten Dominik wrote:

Hi Jambunathan,

that is because \maketitle does not show an email address.

- Carsten

On Mar 6, 2010, at 5:47 PM, Jambunathan K wrote:

I am seeing latex export honors user-full-name but not 
user-mail-address.


The document header goes something like.

#+TITLE:My Title
#+DESCRIPTION:
#+STARTUP: showall
#+LaTeX: \setlength\parindent{0.0in}
#+LaTeX: \setlength\parskip{0.1in}

orgmode-version is 6.33x -  Emacs 23.1.91.1 (i386-mingw-nt5.1.2600).






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


- Carsten







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


Re: [Orgmode] Export to latex ignores user-mail-address

2010-03-07 Thread Carsten Dominik

Hi Jambunathan,

that is because \maketitle does not show an email address.

- Carsten

On Mar 6, 2010, at 5:47 PM, Jambunathan K wrote:

I am seeing latex export honors user-full-name but not user-mail- 
address.


The document header goes something like.

#+TITLE:My Title
#+DESCRIPTION:
#+STARTUP: showall
#+LaTeX: \setlength\parindent{0.0in}
#+LaTeX: \setlength\parskip{0.1in}

orgmode-version is 6.33x -  Emacs 23.1.91.1 (i386-mingw-nt5.1.2600).






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


- Carsten





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


[Orgmode] Export to latex ignores user-mail-address

2010-03-07 Thread Jambunathan K

I am seeing latex export honors user-full-name but not user-mail-address.

The document header goes something like.

#+TITLE:My Title
#+DESCRIPTION:
#+STARTUP: showall
#+LaTeX: \setlength\parindent{0.0in}
#+LaTeX: \setlength\parskip{0.1in}

orgmode-version is 6.33x -  Emacs 23.1.91.1 (i386-mingw-nt5.1.2600).






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


Re: [Orgmode] Export latex source blocks as HTML

2010-03-01 Thread Carsten Dominik


On Mar 1, 2010, at 5:19 PM, Thomas S. Dye wrote:



On Feb 28, 2010, at 9:54 PM, Carsten Dominik wrote:



On Feb 28, 2010, at 5:57 PM, Thomas S. Dye wrote:



On Feb 27, 2010, at 6:47 PM, Nick Dokos wrote:


Thomas S. Dye  wrote:


Aloha all,

Exporting this file to html gives me a source code block for  
bibtex but not for latex.


* Test export
#+BEGIN_SRC latex
No export with latex
#+END_SRC

#+BEGIN_SRC bibtex
Export OK with bibtex
#+END_SRC

Does anyone else see this?  Any idea what I might have messed  
up?  Files that used to export perfectly have all lost their  
latex source code blocks in

HTML output.



Tom,

I just put the above in a file and exported it to html. I get the
attached html file (which, afaict, contains both latex and bibtex  
src

blocks, in contrast to what you get). This is with Org-mode version
6.34trans (release_6.34c.103.g8625e).


Does that need to be fixed somewhere?

- Carsten


Hi Carsten,

I think we should add a footnote to the org-mode publishing section  
that points to the org-babel documentation (which should probably be  
augmented to make explicit the need for the :exports code header  
argument in org-mode publishing).  I'm willing to do these things  
when I find some time, but am wondering about making changes to the  
org-mode manual.  What's the polite way to do this?


Send a patch!  And in Worg, just Edit!

:-)

- Carsten



All the best,
Tom


- Carsten





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


Re: [Orgmode] Export latex source blocks as HTML

2010-03-01 Thread Thomas S. Dye


On Feb 28, 2010, at 9:54 PM, Carsten Dominik wrote:



On Feb 28, 2010, at 5:57 PM, Thomas S. Dye wrote:



On Feb 27, 2010, at 6:47 PM, Nick Dokos wrote:


Thomas S. Dye  wrote:


Aloha all,

Exporting this file to html gives me a source code block for  
bibtex but not for latex.


* Test export
#+BEGIN_SRC latex
No export with latex
#+END_SRC

#+BEGIN_SRC bibtex
Export OK with bibtex
#+END_SRC

Does anyone else see this?  Any idea what I might have messed  
up?  Files that used to export perfectly have all lost their  
latex source code blocks in

HTML output.



Tom,

I just put the above in a file and exported it to html. I get the
attached html file (which, afaict, contains both latex and bibtex  
src

blocks, in contrast to what you get). This is with Org-mode version
6.34trans (release_6.34c.103.g8625e).


Does that need to be fixed somewhere?

- Carsten


Hi Carsten,

I think we should add a footnote to the org-mode publishing section  
that points to the org-babel documentation (which should probably be  
augmented to make explicit the need for the :exports code header  
argument in org-mode publishing).  I'm willing to do these things when  
I find some time, but am wondering about making changes to the org- 
mode manual.  What's the polite way to do this?


All the best,
Tom


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


Re: [Orgmode] Export latex source blocks as HTML

2010-03-01 Thread Carsten Dominik


On Feb 28, 2010, at 5:57 PM, Thomas S. Dye wrote:



On Feb 27, 2010, at 6:47 PM, Nick Dokos wrote:


Thomas S. Dye  wrote:


Aloha all,

Exporting this file to html gives me a source code block for  
bibtex but not for latex.


* Test export
#+BEGIN_SRC latex
No export with latex
#+END_SRC

#+BEGIN_SRC bibtex
Export OK with bibtex
#+END_SRC

Does anyone else see this?  Any idea what I might have messed up?   
Files that used to export perfectly have all lost their latex  
source code blocks in

HTML output.



Tom,

I just put the above in a file and exported it to html. I get the
attached html file (which, afaict, contains both latex and bibtex src
blocks, in contrast to what you get). This is with Org-mode version
6.34trans (release_6.34c.103.g8625e).


Does that need to be fixed somewhere?

- Carsten



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


Re: [Orgmode] Export latex source blocks as HTML

2010-02-28 Thread Thomas S. Dye


On Feb 27, 2010, at 6:47 PM, Nick Dokos wrote:


Thomas S. Dye  wrote:


Aloha all,

Exporting this file to html gives me a source code block for bibtex  
but not for latex.


* Test export
#+BEGIN_SRC latex
 No export with latex
#+END_SRC

#+BEGIN_SRC bibtex
 Export OK with bibtex
#+END_SRC

Does anyone else see this?  Any idea what I might have messed up?   
Files that used to export perfectly have all lost their latex  
source code blocks in

HTML output.



Tom,

I just put the above in a file and exported it to html. I get the
attached html file (which, afaict, contains both latex and bibtex src
blocks, in contrast to what you get). This is with Org-mode version
6.34trans (release_6.34c.103.g8625e).

HTH,
Nick




Thanks Nick,

My results are due to org-babel.  The recently augmented support for  
LaTeX sets the default to :exports results, when the org-mode  
publishing process wants :exports code.  I was aware of the change but  
not prepared to understand all its ramifications.


All the best,
Tom


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


[Orgmode] Export latex source blocks as HTML

2010-02-26 Thread Thomas S. Dye

Aloha all,

Exporting this file to html gives me a source code block for bibtex  
but not for latex.


* Test export
#+BEGIN_SRC latex
  No export with latex
#+END_SRC

#+BEGIN_SRC bibtex
  Export OK with bibtex
#+END_SRC

Does anyone else see this?  Any idea what I might have messed up?   
Files that used to export perfectly have all lost their latex source  
code blocks in HTML output.


All the best,
Tom

Thomas S. Dye, Ph.D.
T. S. Dye & Colleagues, Archaeologists, Inc.
Phone: (808) 529-0866 Fax: (808) 529-0884
http://www.tsdye.com


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


Re: [Orgmode] Export to HTML & open in browser error

2010-02-02 Thread Carsten Dominik

Hi Russel,

I cannot reproduce this.  I open a file with

emacs test/xx\ yy.org

and C-c C-e b opens the corresponding HTML file in the correctly
in Firefox.

- Carsten

On Feb 3, 2010, at 12:10 AM, Russell Adams wrote:


Whitespace in the filename isn't being escaped when launching the
external browser.

Thanks!

--
Russell Adamsrlad...@adamsinfoserv.com

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

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


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


- Carsten





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


[Orgmode] Export to HTML & open in browser error

2010-02-02 Thread Russell Adams
Whitespace in the filename isn't being escaped when launching the
external browser.

Thanks!

--
Russell Adamsrlad...@adamsinfoserv.com

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

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


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


Re: [Orgmode] Export Options for subtree question

2010-02-01 Thread JBash
Thanks, Giovanni.

I should have seen that.  Sorry for the noise.

Jerry

On Mon, Feb 1, 2010 at 4:43 AM, Giovanni Ridolfi
wrote:

> JBash  writes:
>
> > Hi,I am not able to get the export options for single sub-tree
> > exporting to work as I expected it would.  In the attached file,
> > exporting any of the subtrees yields the same author, date, export
> > file name, and structure (absence of toc).
> > I had expected the
> > #+EXPORT_DATE line (in 'Week 5' heading)
>
> * Notes - Week 5
> :PROPERTIES
> #+EXPORT_TITLE:   Weekly Schedule - Week 5
> #+EXPORT_AUTHOR:  Author 2
> #+EXPORT_DATE:January 29, 2010
> #+EXPORT_FILE_NAME:   week5
> #+OPTIONS: H:2 toc:nil
> #END
>
> This syntax is wrong.
>
>
> > and/or the EXPORT_DATE Property (Week 6 heading)
>
> * Notes - Week 6
>  :PROPERTIES:
>  EXPORT_TITLE:   Weekly Notes - Week 6
>  EXPORT_AUTHOR:  Author 3
>  EXPORT_DATE:February 6, 2010
>  OPTIONS: H:2
>  :END:
>
> This syntax is wrong as well!
>
> The properties MUST have the colon (:) *before* and *after*
> the word(s).
>
> This is the correct syntax, and, obviously, works ;-)
>
> * Notes - Week 6 CORRECT
>  :PROPERTIES:
>  :EXPORT_TITLE:   Weekly Notes - Week 6
>  :EXPORT_AUTHOR:  Author 3
>  :EXPORT_DATE:February 6, 2010
>  :OPTIONS: H:2
>  :END:
> ** Week 6 CORRECT Heading 1
>  - Topic 1a
>  - Topic 1b
> ** Week 6 CORRECT Heading 2
>  - Topic 2a
>  - Topic 2b
>
>
> cheers,
> Giovanni
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Export Options for subtree question

2010-02-01 Thread Giovanni Ridolfi
JBash  writes:

> Hi,I am not able to get the export options for single sub-tree
> exporting to work as I expected it would.  In the attached file,
> exporting any of the subtrees yields the same author, date, export
> file name, and structure (absence of toc).   
> I had expected the
> #+EXPORT_DATE line (in 'Week 5' heading) 

* Notes - Week 5
:PROPERTIES
#+EXPORT_TITLE:   Weekly Schedule - Week 5
#+EXPORT_AUTHOR:  Author 2
#+EXPORT_DATE:January 29, 2010
#+EXPORT_FILE_NAME:   week5
#+OPTIONS: H:2 toc:nil
#END

This syntax is wrong.


> and/or the EXPORT_DATE Property (Week 6 heading) 

* Notes - Week 6
  :PROPERTIES:
  EXPORT_TITLE:   Weekly Notes - Week 6
  EXPORT_AUTHOR:  Author 3
  EXPORT_DATE:February 6, 2010
  OPTIONS: H:2
  :END:

This syntax is wrong as well!

The properties MUST have the colon (:) *before* and *after*
the word(s).

This is the correct syntax, and, obviously, works ;-) 

* Notes - Week 6 CORRECT
  :PROPERTIES:
  :EXPORT_TITLE:   Weekly Notes - Week 6
  :EXPORT_AUTHOR:  Author 3
  :EXPORT_DATE:February 6, 2010
  :OPTIONS: H:2
  :END:
** Week 6 CORRECT Heading 1
 - Topic 1a
 - Topic 1b
** Week 6 CORRECT Heading 2
 - Topic 2a
 - Topic 2b


cheers,
Giovanni


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


[Orgmode] Export Options for subtree question

2010-01-29 Thread JBash
Hi,

I am not able to get the export options for single sub-tree exporting to
work as I expected it would.  In the attached file, exporting any of the
subtrees yields the same author, date, export file name, and structure
(absence of toc).   I had expected the #+EXPORT_DATE line (in 'Week 5'
heading) and/or the EXPORT_DATE Property (Week 6 heading) to be used for the
resultant exported file. Similarly with the other EXPORT_ options defined
(author, title, filename) in the subtree.

Are the methods used in Week 5 "#+   " and Week 6 (properties) equivalent
for this purpose?  I tried the Week 5 method first, and when I didn't get
what I expected, I tried using Properties, but that didn't work either.

I am exporting to latex -> pdf, using either 'C-c C-e 1 d' (after placing
point on the subtree heading), with transient-mark-mode enabled, in emacs
23.

Are there other things that I may have configured improperly, or is my
understanding of the behavior incorrect.

Thanks,
Jerry


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


Re: [Orgmode] Export to LaTeX without "surroundings"?

2009-12-26 Thread Karl Maihofer
Thanks a lot, Darlan!

Am 23.12.09 04:41, schrieb Darlan Cavalcante Moreira:
> 
> If all you want to do is using the org-mode superpowers for tables to write
> latex tables then you should about "Radio tables" in the manual
> (http://orgmode.org/manual/Radio-tables.html#Radio-tables). Basically, you 
> write
> a standard org-mode table as a comment in your .tex file and then call a
> function to send the table as a latex table to a specified place in the same
> file. It is really nice and you can use all of the spreadsheet operations.
> 
> - Darlan Cavalcante Moreira
> 
> At Tue, 22 Dec 2009 13:45:05 +0100,
> Karl Maihofer  wrote:
>>
>> Hi,
>>
>> is there a way to only export the content of an org-file to the LaTeX
>> syntax (without LaTeX header etc.)?
>>
>> I'd like to include a table.tex (my bibliography, i do not use bibtex)
>> into my main tex-file. But because it is very nice to write tables in
>> orgmode, i thought i could write my table in a file table.org, export it
>> to table.tex, which then will be included into my main.tex file.
>>
>> Thanks!
>>
>> Karl
>>
>>
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 



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


Re: [Orgmode] Export to LaTeX without "surroundings"?

2009-12-22 Thread Darlan Cavalcante Moreira

If all you want to do is using the org-mode superpowers for tables to write
latex tables then you should about "Radio tables" in the manual
(http://orgmode.org/manual/Radio-tables.html#Radio-tables). Basically, you write
a standard org-mode table as a comment in your .tex file and then call a
function to send the table as a latex table to a specified place in the same
file. It is really nice and you can use all of the spreadsheet operations.

- Darlan Cavalcante Moreira

At Tue, 22 Dec 2009 13:45:05 +0100,
Karl Maihofer  wrote:
> 
> Hi,
> 
> is there a way to only export the content of an org-file to the LaTeX
> syntax (without LaTeX header etc.)?
> 
> I'd like to include a table.tex (my bibliography, i do not use bibtex)
> into my main tex-file. But because it is very nice to write tables in
> orgmode, i thought i could write my table in a file table.org, export it
> to table.tex, which then will be included into my main.tex file.
> 
> Thanks!
> 
> Karl
> 
> 
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


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


[Orgmode] Export to LaTeX without "surroundings"?

2009-12-22 Thread Karl Maihofer
Hi,

is there a way to only export the content of an org-file to the LaTeX
syntax (without LaTeX header etc.)?

I'd like to include a table.tex (my bibliography, i do not use bibtex)
into my main tex-file. But because it is very nice to write tables in
orgmode, i thought i could write my table in a file table.org, export it
to table.tex, which then will be included into my main.tex file.

Thanks!

Karl


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


Re: [Orgmode] Export to ics, recurring events not being exported

2009-11-26 Thread Carsten Dominik


On Nov 24, 2009, at 6:35 PM, Marcelo de Moraes Serpa wrote:


Hello list!

I have some events that have a past date, but that have the +1w flag  
at the end, meaning they should repeat every week. However, they  
don't seem to be exported when I export using  the org-export-agenda- 
combined command. Any ideas?


Hi Marcello,

please make an example file.  I am going through 20 mails like yours  
every day - anything that reduces the effort I have to put in will  
make it more likely that I

will take a look at the issue.

Thanks.

- Carsten



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


[Orgmode] Export to ics, recurring events not being exported

2009-11-24 Thread Marcelo de Moraes Serpa
Hello list!

I have some events that have a past date, but that have the +1w flag at the
end, meaning they should repeat every week. However, they don't seem to be
exported when I export using  the org-export-agenda-combined command. Any
ideas?

Thanks,

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


Re: [Orgmode] export of list with lowered characters

2009-11-20 Thread Carsten Dominik


On Nov 20, 2009, at 12:07 PM, Jörg Hagmann wrote:


Hi,

How can I get the following to be exported correctly to html?

- A 20mM HCO_{3}^{-}
- B 20 - 100mM H^{+}
- C 20 - 100mM Na^{+}
- D 5 - 15 mM K^{+}
- E 80 - 150mM Cl^{+}

I have "^{}:t" in the "+OPTIONS:" line.
In other words: can I turn off strike-throughs (++)?


Customize org-emphasis-alist and remove the final entry in that list.
I did that long a go and never looked back... :-)

- Carsten



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


Re: [Orgmode] export of list with lowered characters

2009-11-20 Thread Jörg Hagmann
Line E should of course be Cl^{-}, but I kept adding plusses not paying 
attention to the chemistry.


Jörg Hagmann wrote:

Hi,

How can I get the following to be exported correctly to html?

- A 20mM HCO_{3}^{-}
- B 20 - 100mM H^{+}
- C 20 - 100mM Na^{+}
- D 5 - 15 mM K^{+}
- E 80 - 150mM Cl^{+}

I have "^{}:t" in the "+OPTIONS:" line.
In other words: can I turn off strike-throughs (++)?

Thanks, Jörg


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



--
Prof. Jörg Hagmann-Zanolari MD
University of Basel
Department of Biomedicine
Institute of Biochemistry and Genetics
Mattenstrasse 28
CH-4058 Basel
Switzerland
Phone +41 (0)61 267 3565



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


[Orgmode] export of list with lowered characters

2009-11-20 Thread Jörg Hagmann

Hi,

How can I get the following to be exported correctly to html?

- A 20mM HCO_{3}^{-}
- B 20 - 100mM H^{+}
- C 20 - 100mM Na^{+}
- D 5 - 15 mM K^{+}
- E 80 - 150mM Cl^{+}

I have "^{}:t" in the "+OPTIONS:" line.
In other words: can I turn off strike-throughs (++)?

Thanks, Jörg


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


Re: [Orgmode] Export to ascii simpler

2009-09-29 Thread Andrew Stribblehill
I export to ascii with C-c C-e a, then can Apple-v the exported text
into whatever I choose.

2009/9/29 andrea Crotti :
> Is there a very quick way to copy some text from an emacs buffer
> taking away the indentation?  org-export-as-ascii creates a new file,
> I only need in the ring (and in osx buffer) the text copied.  I can
> copy to another buffer than do a *kill-rectangle* on it but it's quite
> a long procedure..
>
>
>
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


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


Re: [Orgmode] Export to ascii simpler

2009-09-29 Thread Nick Dokos
andrea Crotti  wrote:

> Is there a very quick way to copy some text from an emacs buffer
> taking away the indentation?  org-export-as-ascii creates a new file,
> I only need in the ring (and in osx buffer) the text copied.  I can
> copy to another buffer than do a *kill-rectangle* on it but it's quite
> a long procedure..
> 
> 

I'm not sure I understand what you want - it's also not clear to me
whether this has anything to do with org-mode, but here goes:

o Forget about copying to another buffer: kill the rectangle in the
original buffer and then undo.

or:

o Mark the region, do C-0 C-M-\ to take away the indentation, M-w to
copy it to the kill ring, then undo to restore the indentation.

Does this help?

Nick


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


[Orgmode] Export to ascii simpler

2009-09-29 Thread andrea Crotti
Is there a very quick way to copy some text from an emacs buffer
taking away the indentation?  org-export-as-ascii creates a new file,
I only need in the ring (and in osx buffer) the text copied.  I can
copy to another buffer than do a *kill-rectangle* on it but it's quite
a long procedure..



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


Re: [Orgmode] Export bug: LaTeX TOC headline numbers above 100 overlap headline

2009-09-28 Thread Carsten Dominik

Wow, Tim, thanks a lot for this excellent answer.
I am glad this is in the mailing list archive now.

- Carsten


On Sep 25, 2009, at 12:06 PM, Tim Burt wrote:


Carsten Dominik writes:

On Sep 25, 2009, at 2:10 AM, Jeff Kowalczyk wrote:


When the headline count for a pdftolatex export gets to be more than
100 lines, the TOC renders with the headline number directly
touching the headline text. More than 1,000, and it starts to  
overlap.


This is a LaTeX issue, which I do not know how to fix.

- Carsten



It would seem that LaTeX calculates the space to allocate for the
headline number based on too few initial entries.

I have included a simple test case below.


* Executive Summary

Add the following two lines to the org file (after ensuring you have
the tocloft.sty package installed and visible to LaTeX).
#+LaTeX_HEADER: \usepackage{tocloft}
#+LaTeX_HEADER: \setlength{\cftsecnumwidth}{3em}

* Supporting Jabber

The formatting for Table of Contents (and its kin) is set deep in the
class definitions.  The tocloft package provides user-level commands
to modify those internals which the tocloft documentation describes
quite well, including a figure that shows a value called 'numwidth' is
the length of the box in which the number is set.  This value can be
different for each sectioning level (e.g. chapter, section,
subsection).  In the test case below, the first org level[1] is being
exported as a \section{}.  The box length for section can be set by
the value of \cftsecnumwidth using the \setlength command, as in
\setlength{\cftsecnumwidth}{3em}
The second argument must have a unit of length which in this example
is 'em' (the width of a capital M).  This allows the width of the box
to scale with font changes, but other units are certainly permissible
(e.g. cm, mm, in).


Good morning,
Tim


[1] Note: This test case was run using the default org export
variables for LaTeX which means the article class was used.  If
another class is used (e.g. report) then the first org level should be
exported as a \chapter{}.  In this case, replace \cftsecnumwidth with
\cftchapnumwidth.


Thanks,
Jeff

* Headline 0
* Headline 1
* Headline 2
* Headline 3
* Headline 4
* Headline 5
* Headline 6
* Headline 7
* Headline 8
* Headline 9
* Headline 10
* Headline 11
* Headline 12
* Headline 13
* Headline 14
* Headline 15
* Headline 16
* Headline 17
* Headline 18
* Headline 19
* Headline 20
* Headline 21
* Headline 22
* Headline 23
* Headline 24
* Headline 25
* Headline 26
* Headline 27
* Headline 28
* Headline 29
* Headline 30
* Headline 31
* Headline 32
* Headline 33
* Headline 34
* Headline 35
* Headline 36
* Headline 37
* Headline 38
* Headline 39
* Headline 40
* Headline 41
* Headline 42
* Headline 43
* Headline 44
* Headline 45
* Headline 46
* Headline 47
* Headline 48
* Headline 49
* Headline 50
* Headline 51
* Headline 52
* Headline 53
* Headline 54
* Headline 55
* Headline 56
* Headline 57
* Headline 58
* Headline 59
* Headline 60
* Headline 61
* Headline 62
* Headline 63
* Headline 64
* Headline 65
* Headline 66
* Headline 67
* Headline 68
* Headline 69
* Headline 70
* Headline 71
* Headline 72
* Headline 73
* Headline 74
* Headline 75
* Headline 76
* Headline 77
* Headline 78
* Headline 79
* Headline 80
* Headline 81
* Headline 82
* Headline 83
* Headline 84
* Headline 85
* Headline 86
* Headline 87
* Headline 88
* Headline 89
* Headline 90
* Headline 91
* Headline 92
* Headline 93
* Headline 94
* Headline 95
* Headline 96
* Headline 97
* Headline 98
* Headline 99
* Headline 100
* Headline 101
* Headline 102
* Headline 103
* Headline 104
* Headline 105
* Headline 106
* Headline 107
* Headline 108
* Headline 109
* Headline 110
* Headline 111
* Headline 112
* Headline 113
* Headline 114
* Headline 115
* Headline 116
* Headline 117
* Headline 118
* Headline 119
* Headline 120








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




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




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


Re: [Orgmode] Export bug: _ { chars in enough headlines, pdflatex export fails

2009-09-25 Thread Nick Dokos
Jeff Kowalczyk  wrote:

> Export to pdflatex fails if underscore or unclosed bracket characters are in 
> enough headlines.
> 
> Thanks,
> Jeff
> 

Open braces without the corresponding closing brace on the same line
caused errors before: Carsten fixed one (in an ATTR_LaTeX header iirc),
but I have run into at least one more. In my case, the open braces were
part of LaTeX constructs, so I could work around the problem by fooling
the org latex exporter like so:

#+BEGIN_LaTeX
\someconstruct{ %} dummy closing brace in comment
#+END_LaTeX
foo bar
#+BEGIN_LaTeX
}   % the real closing brace
#+END_LaTeX

(One could also use \begin{env}/\end{end} in most cases, but there are
still some cases where that option is not available, afaik).

That will not work as well for you. But I don't understand why you need
open braces in your headlines at all - can't you just get rid of them?

Thanks,
Nick



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


Re: [Orgmode] Export bug: _ { chars in enough headlines, pdflatex export fails

2009-09-25 Thread Jeff Kowalczyk
Carsten Dominik  gmail.com> writes:
> 
> Hi Jeff,
> 
> may I ask what the practical use case of _{ is?
> 
> - Carsten

Hi Carsten,

There's no practical use case ;) 

I reported with a test case because it could be that _ and { are not escaped in 
clocktable summary in the same way that they are in headlines and body text. I 
updated the test case to fail with __foo, which could occur in a large python 
documentation project, for example.

These were accidental occurrences, which I can fix in my document. I truncated 
first lines of a git repository commit messages. The original text read:

   "... import acme.foo_{inv,det,pay} from CSV ..."

The truncate point happened to fall between the brackets in about 250 
headlines. Given a sufficiently large file, export triggered enough errors that 
LaTeX gave up.

I simplified the test case file below. Export fails with the "that's 100 
errors" message. The behavior manifests for two adjacent characters _{, __, or 
{{. Export succeeds if the clocktable summary is removed.

Thanks,
Jeff

---

#+OPTIONS: toc:nil ^:nil
* Headline
#+BEGIN: clocktable :maxlevel 2 :scope subtree
Clock summary at [2009-09-25 Fri 05:04]

| L | Headline   | Time   |  |
|---+++--|
|   | *Total time*   | *2:01* |  |
|---+++--|
| 1 | Headline   | 2:01   |  |
| 2 | Headline __foo 0   || 0:01 |
| 2 | Headline __foo 1   || 0:01 |
| 2 | Headline __foo 2   || 0:01 |
| 2 | Headline __foo 3   || 0:01 |
| 2 | Headline __foo 4   || 0:01 |
| 2 | Headline __foo 5   || 0:01 |
| 2 | Headline __foo 6   || 0:01 |
| 2 | Headline __foo 7   || 0:01 |
| 2 | Headline __foo 8   || 0:01 |
| 2 | Headline __foo 9   || 0:01 |
| 2 | Headline __foo 10  || 0:01 |
| 2 | Headline __foo 11  || 0:01 |
| 2 | Headline __foo 12  || 0:01 |
| 2 | Headline __foo 13  || 0:01 |
| 2 | Headline __foo 14  || 0:01 |
| 2 | Headline __foo 15  || 0:01 |
| 2 | Headline __foo 16  || 0:01 |
| 2 | Headline __foo 17  || 0:01 |
| 2 | Headline __foo 18  || 0:01 |
| 2 | Headline __foo 19  || 0:01 |
| 2 | Headline __foo 20  || 0:01 |
| 2 | Headline __foo 21  || 0:01 |
| 2 | Headline __foo 22  || 0:01 |
| 2 | Headline __foo 23  || 0:01 |
| 2 | Headline __foo 24  || 0:01 |
| 2 | Headline __foo 25  || 0:01 |
| 2 | Headline __foo 26  || 0:01 |
| 2 | Headline __foo 27  || 0:01 |
| 2 | Headline __foo 28  || 0:01 |
| 2 | Headline __foo 29  || 0:01 |
| 2 | Headline __foo 30  || 0:01 |
| 2 | Headline __foo 31  || 0:01 |
| 2 | Headline __foo 32  || 0:01 |
| 2 | Headline __foo 33  || 0:01 |
| 2 | Headline __foo 34  || 0:01 |
| 2 | Headline __foo 35  || 0:01 |
| 2 | Headline __foo 36  || 0:01 |
| 2 | Headline __foo 37  || 0:01 |
| 2 | Headline __foo 38  || 0:01 |
| 2 | Headline __foo 39  || 0:01 |
| 2 | Headline __foo 40  || 0:01 |
| 2 | Headline __foo 41  || 0:01 |
| 2 | Headline __foo 42  || 0:01 |
| 2 | Headline __foo 43  || 0:01 |
| 2 | Headline __foo 44  || 0:01 |
| 2 | Headline __foo 45  || 0:01 |
| 2 | Headline __foo 46  || 0:01 |
| 2 | Headline __foo 47  || 0:01 |
| 2 | Headline __foo 48  || 0:01 |
| 2 | Headline __foo 49  || 0:01 |
| 2 | Headline __foo 50  || 0:01 |
| 2 | Headline __foo 51  || 0:01 |
| 2 | Headline __foo 52  || 0:01 |
| 2 | Headline __foo 53  || 0:01 |
| 2 | Headline __foo 54  || 0:01 |
| 2 | Headline __foo 55  || 0:01 |
| 2 | Headline __foo 56  || 0:01 |
| 2 | Headline __foo 57  || 0:01 |
| 2 | Headline __foo 58  || 0:01 |
| 2 | Headline __foo 59  || 0:01 |
| 2 | Headline __foo 60  || 0:01 |
| 2 | Headline __foo 61  || 0:01 |
| 2 | Headline __foo 62  || 0:01 |
| 2 | Headline __foo 63  || 0:01 |
| 2 | Headline __foo 64  || 0:01 |
| 2 | Headline __foo 65  || 0:01 |
| 2 | Headline __foo 66  || 0:01 |
| 2 | Headline __foo 67  || 0:01 |
| 2 | Headline __foo 68  || 0:01 |
| 2 | Headline __foo 69  || 0:01 |
| 2 | Headline __foo 70  || 0:01 |
| 2 | Headline __foo 71  || 0:01 |
| 2 | Headline __foo 72  || 0:01 |
| 2 | Headline __foo 73  || 0:01 |
| 2 | Headline __foo 74  || 0:01 |
| 2 | Headline __foo 75  || 0:01 |
| 2 | Headline __foo 76  || 0:01 |
| 2 | Headline __foo 77  || 0:01 |
| 2 | Headline __foo 78  || 0:01 |
| 2 | Headline __foo 79  || 0:01 |
| 2 | Headline __foo 80  || 0:01 |
| 2 | Headline __foo 81  || 0:01 |
| 2 | Headline __foo 82  || 0:01 |
| 2 | Headline __foo 83  || 0:01

Re: [Orgmode] Export bug: LaTeX TOC headline numbers above 100 overlap headline

2009-09-25 Thread Tim Burt
Carsten Dominik writes:
 > On Sep 25, 2009, at 2:10 AM, Jeff Kowalczyk wrote:
 > 
 > > When the headline count for a pdftolatex export gets to be more than  
 > > 100 lines, the TOC renders with the headline number directly  
 > > touching the headline text. More than 1,000, and it starts to overlap.
 > 
 > This is a LaTeX issue, which I do not know how to fix.
 > 
 > - Carsten
 > 
 > >
 > > It would seem that LaTeX calculates the space to allocate for the  
 > > headline number based on too few initial entries.
 > >
 > > I have included a simple test case below.

* Executive Summary

Add the following two lines to the org file (after ensuring you have
the tocloft.sty package installed and visible to LaTeX).
 #+LaTeX_HEADER: \usepackage{tocloft}
 #+LaTeX_HEADER: \setlength{\cftsecnumwidth}{3em}

* Supporting Jabber

The formatting for Table of Contents (and its kin) is set deep in the
class definitions.  The tocloft package provides user-level commands
to modify those internals which the tocloft documentation describes
quite well, including a figure that shows a value called 'numwidth' is
the length of the box in which the number is set.  This value can be
different for each sectioning level (e.g. chapter, section,
subsection).  In the test case below, the first org level[1] is being
exported as a \section{}.  The box length for section can be set by
the value of \cftsecnumwidth using the \setlength command, as in
 \setlength{\cftsecnumwidth}{3em}
The second argument must have a unit of length which in this example
is 'em' (the width of a capital M).  This allows the width of the box
to scale with font changes, but other units are certainly permissible
(e.g. cm, mm, in).


Good morning,
Tim


[1] Note: This test case was run using the default org export
variables for LaTeX which means the article class was used.  If
another class is used (e.g. report) then the first org level should be
exported as a \chapter{}.  In this case, replace \cftsecnumwidth with
\cftchapnumwidth. 
 > >
 > > Thanks,
 > > Jeff
 > >
 > > * Headline 0
 > > * Headline 1
 > > * Headline 2
 > > * Headline 3
 > > * Headline 4
 > > * Headline 5
 > > * Headline 6
 > > * Headline 7
 > > * Headline 8
 > > * Headline 9
 > > * Headline 10
 > > * Headline 11
 > > * Headline 12
 > > * Headline 13
 > > * Headline 14
 > > * Headline 15
 > > * Headline 16
 > > * Headline 17
 > > * Headline 18
 > > * Headline 19
 > > * Headline 20
 > > * Headline 21
 > > * Headline 22
 > > * Headline 23
 > > * Headline 24
 > > * Headline 25
 > > * Headline 26
 > > * Headline 27
 > > * Headline 28
 > > * Headline 29
 > > * Headline 30
 > > * Headline 31
 > > * Headline 32
 > > * Headline 33
 > > * Headline 34
 > > * Headline 35
 > > * Headline 36
 > > * Headline 37
 > > * Headline 38
 > > * Headline 39
 > > * Headline 40
 > > * Headline 41
 > > * Headline 42
 > > * Headline 43
 > > * Headline 44
 > > * Headline 45
 > > * Headline 46
 > > * Headline 47
 > > * Headline 48
 > > * Headline 49
 > > * Headline 50
 > > * Headline 51
 > > * Headline 52
 > > * Headline 53
 > > * Headline 54
 > > * Headline 55
 > > * Headline 56
 > > * Headline 57
 > > * Headline 58
 > > * Headline 59
 > > * Headline 60
 > > * Headline 61
 > > * Headline 62
 > > * Headline 63
 > > * Headline 64
 > > * Headline 65
 > > * Headline 66
 > > * Headline 67
 > > * Headline 68
 > > * Headline 69
 > > * Headline 70
 > > * Headline 71
 > > * Headline 72
 > > * Headline 73
 > > * Headline 74
 > > * Headline 75
 > > * Headline 76
 > > * Headline 77
 > > * Headline 78
 > > * Headline 79
 > > * Headline 80
 > > * Headline 81
 > > * Headline 82
 > > * Headline 83
 > > * Headline 84
 > > * Headline 85
 > > * Headline 86
 > > * Headline 87
 > > * Headline 88
 > > * Headline 89
 > > * Headline 90
 > > * Headline 91
 > > * Headline 92
 > > * Headline 93
 > > * Headline 94
 > > * Headline 95
 > > * Headline 96
 > > * Headline 97
 > > * Headline 98
 > > * Headline 99
 > > * Headline 100
 > > * Headline 101
 > > * Headline 102
 > > * Headline 103
 > > * Headline 104
 > > * Headline 105
 > > * Headline 106
 > > * Headline 107
 > > * Headline 108
 > > * Headline 109
 > > * Headline 110
 > > * Headline 111
 > > * Headline 112
 > > * Headline 113
 > > * Headline 114
 > > * Headline 115
 > > * Headline 116
 > > * Headline 117
 > > * Headline 118
 > > * Headline 119
 > > * Headline 120
 > >
 > >
 > >
 > >
 > >
 > >
 > >
 > >
 > > ___
 > > Emacs-orgmode mailing list
 > > Remember: use `Reply All' to send replies to the list.
 > > Emacs-orgmode@gnu.org
 > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 > 
 > 
 > 
 > ___
 > Emacs-orgmode mailing list
 > Remember: use `Reply All' to send replies to the list.
 > Emacs-orgmode@gnu.org
 > http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmod

Re: [Orgmode] Export bug: _ { chars in enough headlines, pdflatex export fails

2009-09-24 Thread Carsten Dominik

Hi Jeff,

may I ask what the practical use case of _{ is?

- Carsten

On Sep 25, 2009, at 5:42 AM, Jeff Kowalczyk wrote:

Export to pdflatex fails if underscore or unclosed bracket  
characters are in enough headlines.


Thanks,
Jeff

Testcase file demonstrating pdflatex export fail:

---

#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:nil -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:nil skip:nil d:t todo:nil pri:nil tags:nil
* Headline
#+CAPTION: Clocktable Summary
#+LABEL: tbl:clock
#+ATTR_LaTeX: longtable
#+BEGIN: clocktable :maxlevel 2 :scope subtree
Clock summary at [2009-09-24 Thu 21:37]

| L | Headline   | Time   |  |
|---+++--|
|   | *Total time*   | *2:01* |  |
|---+++--|
| 1 | Headline   | 2:01   |  |
| 2 | Headline 0_{   || 0:01 |
| 2 | Headline 1_{   || 0:01 |
| 2 | Headline 2_{   || 0:01 |
| 2 | Headline 3_{   || 0:01 |
| 2 | Headline 4_{   || 0:01 |
| 2 | Headline 5_{   || 0:01 |
| 2 | Headline 6_{   || 0:01 |
| 2 | Headline 7_{   || 0:01 |
| 2 | Headline 8_{   || 0:01 |
| 2 | Headline 9_{   || 0:01 |
| 2 | Headline 10_{  || 0:01 |
| 2 | Headline 11_{  || 0:01 |
| 2 | Headline 12_{  || 0:01 |
| 2 | Headline 13_{  || 0:01 |
| 2 | Headline 14_{  || 0:01 |
| 2 | Headline 15_{  || 0:01 |
| 2 | Headline 16_{  || 0:01 |
| 2 | Headline 17_{  || 0:01 |
| 2 | Headline 18_{  || 0:01 |
| 2 | Headline 19_{  || 0:01 |
| 2 | Headline 20_{  || 0:01 |
| 2 | Headline 21_{  || 0:01 |
| 2 | Headline 22_{  || 0:01 |
| 2 | Headline 23_{  || 0:01 |
| 2 | Headline 24_{  || 0:01 |
| 2 | Headline 25_{  || 0:01 |
| 2 | Headline 26_{  || 0:01 |
| 2 | Headline 27_{  || 0:01 |
| 2 | Headline 28_{  || 0:01 |
| 2 | Headline 29_{  || 0:01 |
| 2 | Headline 30_{  || 0:01 |
| 2 | Headline 31_{  || 0:01 |
| 2 | Headline 32_{  || 0:01 |
| 2 | Headline 33_{  || 0:01 |
| 2 | Headline 34_{  || 0:01 |
| 2 | Headline 35_{  || 0:01 |
| 2 | Headline 36_{  || 0:01 |
| 2 | Headline 37_{  || 0:01 |
| 2 | Headline 38_{  || 0:01 |
| 2 | Headline 39_{  || 0:01 |
| 2 | Headline 40_{  || 0:01 |
| 2 | Headline 41_{  || 0:01 |
| 2 | Headline 42_{  || 0:01 |
| 2 | Headline 43_{  || 0:01 |
| 2 | Headline 44_{  || 0:01 |
| 2 | Headline 45_{  || 0:01 |
| 2 | Headline 46_{  || 0:01 |
| 2 | Headline 47_{  || 0:01 |
| 2 | Headline 48_{  || 0:01 |
| 2 | Headline 49_{  || 0:01 |
| 2 | Headline 50_{  || 0:01 |
| 2 | Headline 51_{  || 0:01 |
| 2 | Headline 52_{  || 0:01 |
| 2 | Headline 53_{  || 0:01 |
| 2 | Headline 54_{  || 0:01 |
| 2 | Headline 55_{  || 0:01 |
| 2 | Headline 56_{  || 0:01 |
| 2 | Headline 57_{  || 0:01 |
| 2 | Headline 58_{  || 0:01 |
| 2 | Headline 59_{  || 0:01 |
| 2 | Headline 60_{  || 0:01 |
| 2 | Headline 61_{  || 0:01 |
| 2 | Headline 62_{  || 0:01 |
| 2 | Headline 63_{  || 0:01 |
| 2 | Headline 64_{  || 0:01 |
| 2 | Headline 65_{  || 0:01 |
| 2 | Headline 66_{  || 0:01 |
| 2 | Headline 67_{  || 0:01 |
| 2 | Headline 68_{  || 0:01 |
| 2 | Headline 69_{  || 0:01 |
| 2 | Headline 70_{  || 0:01 |
| 2 | Headline 71_{  || 0:01 |
| 2 | Headline 72_{  || 0:01 |
| 2 | Headline 73_{  || 0:01 |
| 2 | Headline 74_{  || 0:01 |
| 2 | Headline 75_{  || 0:01 |
| 2 | Headline 76_{  || 0:01 |
| 2 | Headline 77_{  || 0:01 |
| 2 | Headline 78_{  || 0:01 |
| 2 | Headline 79_{  || 0:01 |
| 2 | Headline 80_{  || 0:01 |
| 2 | Headline 81_{  || 0:01 |
| 2 | Headline 82_{  || 0:01 |
| 2 | Headline 83_{  || 0:01 |
| 2 | Headline 84_{  || 0:01 |
| 2 | Headline 85_{  || 0:01 |
| 2 | Headline 86_{  || 0:01 |
| 2 | Headline 87_{  || 0:01 |
| 2 | Headline 88_{  || 0:01 |
| 2 | Headline 89_{  || 0:01 |
| 2 | Headline 90_{  || 0:01 |
| 2 | Headline 91_{  || 0:01 |
| 2 | Headline 92_{  || 0:01 |
| 2 | Headline 93_{  || 0:01 |
| 2 | Headline 94_{  || 0:01 |
| 2 | Headline 95_{  || 0:01 |
| 2 | Headline 96_{  || 0:01 |
| 2 | Headline 97_{  || 0:01 |
| 2 | Headline 98_{  || 0:01 |
| 2 | Headline 99_{  || 0:01 |
| 2 | Headline 100_{ || 0:01 |
| 2 | Headline 101_{ || 0:01 |
| 2 | Headline 102_{ || 0:01 |
| 2 | Headline 103_{ || 0:01 |
| 2 | Headline 104_{ || 0:01 |
| 2 | Headline 105_{ || 0:01 |
| 2 | Headline 106_{ || 0:01 |
| 2 | Headline 107_{ |   

Re: [Orgmode] Export bug: LaTeX TOC headline numbers above 100 overlap headline

2009-09-24 Thread Carsten Dominik


On Sep 25, 2009, at 2:10 AM, Jeff Kowalczyk wrote:

When the headline count for a pdftolatex export gets to be more than  
100 lines, the TOC renders with the headline number directly  
touching the headline text. More than 1,000, and it starts to overlap.


This is a LaTeX issue, which I do not know how to fix.

- Carsten



It would seem that LaTeX calculates the space to allocate for the  
headline number based on too few initial entries.


I have included a simple test case below.

Thanks,
Jeff

* Headline 0
* Headline 1
* Headline 2
* Headline 3
* Headline 4
* Headline 5
* Headline 6
* Headline 7
* Headline 8
* Headline 9
* Headline 10
* Headline 11
* Headline 12
* Headline 13
* Headline 14
* Headline 15
* Headline 16
* Headline 17
* Headline 18
* Headline 19
* Headline 20
* Headline 21
* Headline 22
* Headline 23
* Headline 24
* Headline 25
* Headline 26
* Headline 27
* Headline 28
* Headline 29
* Headline 30
* Headline 31
* Headline 32
* Headline 33
* Headline 34
* Headline 35
* Headline 36
* Headline 37
* Headline 38
* Headline 39
* Headline 40
* Headline 41
* Headline 42
* Headline 43
* Headline 44
* Headline 45
* Headline 46
* Headline 47
* Headline 48
* Headline 49
* Headline 50
* Headline 51
* Headline 52
* Headline 53
* Headline 54
* Headline 55
* Headline 56
* Headline 57
* Headline 58
* Headline 59
* Headline 60
* Headline 61
* Headline 62
* Headline 63
* Headline 64
* Headline 65
* Headline 66
* Headline 67
* Headline 68
* Headline 69
* Headline 70
* Headline 71
* Headline 72
* Headline 73
* Headline 74
* Headline 75
* Headline 76
* Headline 77
* Headline 78
* Headline 79
* Headline 80
* Headline 81
* Headline 82
* Headline 83
* Headline 84
* Headline 85
* Headline 86
* Headline 87
* Headline 88
* Headline 89
* Headline 90
* Headline 91
* Headline 92
* Headline 93
* Headline 94
* Headline 95
* Headline 96
* Headline 97
* Headline 98
* Headline 99
* Headline 100
* Headline 101
* Headline 102
* Headline 103
* Headline 104
* Headline 105
* Headline 106
* Headline 107
* Headline 108
* Headline 109
* Headline 110
* Headline 111
* Headline 112
* Headline 113
* Headline 114
* Headline 115
* Headline 116
* Headline 117
* Headline 118
* Headline 119
* Headline 120








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




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


[Orgmode] Export bug: _ { chars in enough headlines, pdflatex export fails

2009-09-24 Thread Jeff Kowalczyk
Export to pdflatex fails if underscore or unclosed bracket characters are in 
enough headlines.

Thanks,
Jeff

Testcase file demonstrating pdflatex export fail:

---

#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:nil -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:nil skip:nil d:t todo:nil pri:nil tags:nil
* Headline
#+CAPTION: Clocktable Summary
#+LABEL: tbl:clock
#+ATTR_LaTeX: longtable
#+BEGIN: clocktable :maxlevel 2 :scope subtree
Clock summary at [2009-09-24 Thu 21:37]

| L | Headline   | Time   |  |
|---+++--|
|   | *Total time*   | *2:01* |  |
|---+++--|
| 1 | Headline   | 2:01   |  |
| 2 | Headline 0_{   || 0:01 |
| 2 | Headline 1_{   || 0:01 |
| 2 | Headline 2_{   || 0:01 |
| 2 | Headline 3_{   || 0:01 |
| 2 | Headline 4_{   || 0:01 |
| 2 | Headline 5_{   || 0:01 |
| 2 | Headline 6_{   || 0:01 |
| 2 | Headline 7_{   || 0:01 |
| 2 | Headline 8_{   || 0:01 |
| 2 | Headline 9_{   || 0:01 |
| 2 | Headline 10_{  || 0:01 |
| 2 | Headline 11_{  || 0:01 |
| 2 | Headline 12_{  || 0:01 |
| 2 | Headline 13_{  || 0:01 |
| 2 | Headline 14_{  || 0:01 |
| 2 | Headline 15_{  || 0:01 |
| 2 | Headline 16_{  || 0:01 |
| 2 | Headline 17_{  || 0:01 |
| 2 | Headline 18_{  || 0:01 |
| 2 | Headline 19_{  || 0:01 |
| 2 | Headline 20_{  || 0:01 |
| 2 | Headline 21_{  || 0:01 |
| 2 | Headline 22_{  || 0:01 |
| 2 | Headline 23_{  || 0:01 |
| 2 | Headline 24_{  || 0:01 |
| 2 | Headline 25_{  || 0:01 |
| 2 | Headline 26_{  || 0:01 |
| 2 | Headline 27_{  || 0:01 |
| 2 | Headline 28_{  || 0:01 |
| 2 | Headline 29_{  || 0:01 |
| 2 | Headline 30_{  || 0:01 |
| 2 | Headline 31_{  || 0:01 |
| 2 | Headline 32_{  || 0:01 |
| 2 | Headline 33_{  || 0:01 |
| 2 | Headline 34_{  || 0:01 |
| 2 | Headline 35_{  || 0:01 |
| 2 | Headline 36_{  || 0:01 |
| 2 | Headline 37_{  || 0:01 |
| 2 | Headline 38_{  || 0:01 |
| 2 | Headline 39_{  || 0:01 |
| 2 | Headline 40_{  || 0:01 |
| 2 | Headline 41_{  || 0:01 |
| 2 | Headline 42_{  || 0:01 |
| 2 | Headline 43_{  || 0:01 |
| 2 | Headline 44_{  || 0:01 |
| 2 | Headline 45_{  || 0:01 |
| 2 | Headline 46_{  || 0:01 |
| 2 | Headline 47_{  || 0:01 |
| 2 | Headline 48_{  || 0:01 |
| 2 | Headline 49_{  || 0:01 |
| 2 | Headline 50_{  || 0:01 |
| 2 | Headline 51_{  || 0:01 |
| 2 | Headline 52_{  || 0:01 |
| 2 | Headline 53_{  || 0:01 |
| 2 | Headline 54_{  || 0:01 |
| 2 | Headline 55_{  || 0:01 |
| 2 | Headline 56_{  || 0:01 |
| 2 | Headline 57_{  || 0:01 |
| 2 | Headline 58_{  || 0:01 |
| 2 | Headline 59_{  || 0:01 |
| 2 | Headline 60_{  || 0:01 |
| 2 | Headline 61_{  || 0:01 |
| 2 | Headline 62_{  || 0:01 |
| 2 | Headline 63_{  || 0:01 |
| 2 | Headline 64_{  || 0:01 |
| 2 | Headline 65_{  || 0:01 |
| 2 | Headline 66_{  || 0:01 |
| 2 | Headline 67_{  || 0:01 |
| 2 | Headline 68_{  || 0:01 |
| 2 | Headline 69_{  || 0:01 |
| 2 | Headline 70_{  || 0:01 |
| 2 | Headline 71_{  || 0:01 |
| 2 | Headline 72_{  || 0:01 |
| 2 | Headline 73_{  || 0:01 |
| 2 | Headline 74_{  || 0:01 |
| 2 | Headline 75_{  || 0:01 |
| 2 | Headline 76_{  || 0:01 |
| 2 | Headline 77_{  || 0:01 |
| 2 | Headline 78_{  || 0:01 |
| 2 | Headline 79_{  || 0:01 |
| 2 | Headline 80_{  || 0:01 |
| 2 | Headline 81_{  || 0:01 |
| 2 | Headline 82_{  || 0:01 |
| 2 | Headline 83_{  || 0:01 |
| 2 | Headline 84_{  || 0:01 |
| 2 | Headline 85_{  || 0:01 |
| 2 | Headline 86_{  || 0:01 |
| 2 | Headline 87_{  || 0:01 |
| 2 | Headline 88_{  || 0:01 |
| 2 | Headline 89_{  || 0:01 |
| 2 | Headline 90_{  || 0:01 |
| 2 | Headline 91_{  || 0:01 |
| 2 | Headline 92_{  || 0:01 |
| 2 | Headline 93_{  || 0:01 |
| 2 | Headline 94_{  || 0:01 |
| 2 | Headline 95_{  || 0:01 |
| 2 | Headline 96_{  || 0:01 |
| 2 | Headline 97_{  || 0:01 |
| 2 | Headline 98_{  || 0:01 |
| 2 | Headline 99_{  || 0:01 |
| 2 | Headline 100_{ || 0:01 |
| 2 | Headline 101_{ || 0:01 |
| 2 | Headline 102_{ || 0:01 |
| 2 | Headline 103_{ || 0:01 |
| 2 | Headline 104_{ || 0:01 |
| 2 | Headline 105_{ || 0:01 |
| 2 | Headline 106_{ || 0:01 |
| 2 | Headline 107_{ || 0:01 |
| 2 | Headline 108_{ || 0:01 |
| 2 | Headline 109_{ || 0:01 |
| 2 | Headline 110_{ || 0:01 

[Orgmode] Export bug: LaTeX TOC headline numbers above 100 overlap headline

2009-09-24 Thread Jeff Kowalczyk
When the headline count for a pdftolatex export gets to be more than 100 lines, 
the TOC renders with the headline number directly touching the headline text. 
More than 1,000, and it starts to overlap.

It would seem that LaTeX calculates the space to allocate for the headline 
number based on too few initial entries.

I have included a simple test case below.

Thanks,
Jeff

* Headline 0
* Headline 1
* Headline 2
* Headline 3
* Headline 4
* Headline 5
* Headline 6
* Headline 7
* Headline 8
* Headline 9
* Headline 10
* Headline 11
* Headline 12
* Headline 13
* Headline 14
* Headline 15
* Headline 16
* Headline 17
* Headline 18
* Headline 19
* Headline 20
* Headline 21
* Headline 22
* Headline 23
* Headline 24
* Headline 25
* Headline 26
* Headline 27
* Headline 28
* Headline 29
* Headline 30
* Headline 31
* Headline 32
* Headline 33
* Headline 34
* Headline 35
* Headline 36
* Headline 37
* Headline 38
* Headline 39
* Headline 40
* Headline 41
* Headline 42
* Headline 43
* Headline 44
* Headline 45
* Headline 46
* Headline 47
* Headline 48
* Headline 49
* Headline 50
* Headline 51
* Headline 52
* Headline 53
* Headline 54
* Headline 55
* Headline 56
* Headline 57
* Headline 58
* Headline 59
* Headline 60
* Headline 61
* Headline 62
* Headline 63
* Headline 64
* Headline 65
* Headline 66
* Headline 67
* Headline 68
* Headline 69
* Headline 70
* Headline 71
* Headline 72
* Headline 73
* Headline 74
* Headline 75
* Headline 76
* Headline 77
* Headline 78
* Headline 79
* Headline 80
* Headline 81
* Headline 82
* Headline 83
* Headline 84
* Headline 85
* Headline 86
* Headline 87
* Headline 88
* Headline 89
* Headline 90
* Headline 91
* Headline 92
* Headline 93
* Headline 94
* Headline 95
* Headline 96
* Headline 97
* Headline 98
* Headline 99
* Headline 100
* Headline 101
* Headline 102
* Headline 103
* Headline 104
* Headline 105
* Headline 106
* Headline 107
* Headline 108
* Headline 109
* Headline 110
* Headline 111
* Headline 112
* Headline 113
* Headline 114
* Headline 115
* Headline 116
* Headline 117
* Headline 118
* Headline 119
* Headline 120




  



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


Re: [Orgmode] export (as latex) a large number of org files in a directory

2009-08-30 Thread Stephen Tucker
Thanks yet again! That makes sense... works now!!



> I tried your code with both
> 
> > orglib=/Applications/Emacs.app/Contents/Resources/lisp/org
> > and
> > orglib=$HOME/elisp/org-mode/lisp
> 
> You need the former - the latter is where I keep my org.el[c]

(sorry, forgot to mention that I created and copied my files to the latter 
directory to try it out)

> #! /bin/bash
> 
> orglib=/Applications/Emacs.app/Contents/Resources/lisp/org
> emacs   --batch \
>  --eval "(add-to-list 'load-path \"$orglib\")"
 \  # need a backslash 
here.
>  --load=$orglib/org.elc \
>  --eval "(setq org-export-headline-levels 2)" \
>  --visit=$1 --funcall org-export-as-latex-batch
> 

(yes, caught that!)

Thanks again very much, Nick - this had been on my mind for a while.

Stephen



  


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


Re: [Orgmode] export (as latex) a large number of org files in a directory

2009-08-30 Thread Nick Dokos
Nick Dokos  wrote:

> Stephen Tucker  wrote:
> 
> > Hi Nick, 
> 
> > thanks for the response! Actually in the code that I had pasted, the
> > emacs --batch call is all on one line (so no need to escape newlines
> > there). I tried your code with both
> 
> > orglib=/Applications/Emacs.app/Contents/Resources/lisp/org
> > and
> > orglib=$HOME/elisp/org-mode/lisp
> 
> You need the former - the latter is where I keep my org.el[c]
> 
> > but got 
> > Cannot open load file: org-macs
> > in both cases I also added a line, 
> > --eval "(load 
> > \"/Applications/Emacs.app/Contents/Resources/lisp/org/org.elc\")" \
> > to replace the --load option but same deal.
> > I do in fact have org-macs in my 'orglib' directories so I tried
> > loading them explicitly (with multiple --load specifications), but it
> > still doesn't work (Still "Cannot open load file" pointing to some org
> > file or subst-ksc, depending on how many or in what order org .el
> > files are loaded). Any more ideas?
> > 
> 
> The problem is probably that --batch implies -q, so .emacs is *not*
> loaded and you don't get your load-path customizations. Maybe
> something like this will work (the quoting gets hairy, so pay
> close attention to all the details):
> 
> #! /bin/bash
> 
> orglib=/Applications/Emacs.app/Contents/Resources/lisp/org
> emacs   --batch \
>  --eval "(add-to-list 'load-path \"$orglib\")"
 \  # need a backslash 
here.
>  --load=$orglib/org.elc \
>  --eval "(setq org-export-headline-levels 2)" \
>  --visit=$1 --funcall org-export-as-latex-batch
> 
> 

... and I just noticed that I missed a backslash on the added line.
Sorry about that.

Nick


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


Re: [Orgmode] export (as latex) a large number of org files in a directory

2009-08-30 Thread Nick Dokos
Stephen Tucker  wrote:

> Hi Nick, 

> thanks for the response! Actually in the code that I had pasted, the
> emacs --batch call is all on one line (so no need to escape newlines
> there). I tried your code with both

> orglib=/Applications/Emacs.app/Contents/Resources/lisp/org
> and
> orglib=$HOME/elisp/org-mode/lisp

You need the former - the latter is where I keep my org.el[c]

> but got 
> Cannot open load file: org-macs
> in both cases I also added a line, 
> --eval "(load 
> \"/Applications/Emacs.app/Contents/Resources/lisp/org/org.elc\")" \
> to replace the --load option but same deal.
> I do in fact have org-macs in my 'orglib' directories so I tried
> loading them explicitly (with multiple --load specifications), but it
> still doesn't work (Still "Cannot open load file" pointing to some org
> file or subst-ksc, depending on how many or in what order org .el
> files are loaded). Any more ideas?
> 

The problem is probably that --batch implies -q, so .emacs is *not*
loaded and you don't get your load-path customizations. Maybe
something like this will work (the quoting gets hairy, so pay
close attention to all the details):

--8<---cut here---start->8---
#! /bin/bash

orglib=/Applications/Emacs.app/Contents/Resources/lisp/org
emacs   --batch \
 --eval "(add-to-list 'load-path \"$orglib\")"
 --load=$orglib/org.elc \
 --eval "(setq org-export-headline-levels 2)" \
 --visit=$1 --funcall org-export-as-latex-batch
--8<---cut here---end--->8---


HTH,
Nick



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


Re: [Orgmode] export (as latex) a large number of org files in a directory

2009-08-30 Thread Stephen Tucker
Hi Nick, thanks for the response! Actually in the code that I had pasted, the 
emacs --batch call is all on one line (so no need to escape newlines there). I 
tried your code with both
orglib=/Applications/Emacs.app/Contents/Resources/lisp/org
and
orglib=$HOME/elisp/org-mode/lisp
but got 
Cannot open load file: org-macs
in both cases I also added a line, 
--eval "(load \"/Applications/Emacs.app/Contents/Resources/lisp/org/org.elc\")" 
\
to replace the --load option but same deal.

I do in fact have org-macs in my 'orglib' directories so I tried loading them 
explicitly (with multiple --load specifications), but it still doesn't work 
(Still "Cannot open load file" pointing to some org file or subst-ksc, 
depending on how many or in what order org .el files are loaded). Any more 
ideas?

Thanks...!

Stephen




- Original Message 
From: Nick Dokos 
To: Stephen Tucker 
Cc: emacs-orgmode@gnu.org; nicholas.do...@hp.com
Sent: Sunday, August 30, 2009 8:04:06 AM
Subject: Re: [Orgmode] export (as latex) a large number of org files in a 
directory

Stephen Tucker  wrote:

> Hi, I am trying to export a bunch of .org files stored in a directory as 
> latex files. I have tried two methods:
> 
> (1) 
> ---
> At the bash prompt (I am using OS X):
> 
> bash$ emacs --batch
> --load=/Applications/Emacs.app/Contents/Resources/lisp/org/org.elc
> --visit=file.org --funcall org-export-as-latex-batch'
> 
> and I get an error:
> "Cannot open load file: subst-ksc"
> 
> If I can get this to work, then I can embed this system call in a shell 
> script and call it iteratively on a list of .org files retrieved from, say, 
> Python or Bash (changing 'file.org' appropriately each time).
> 

Did you escape the newlines? If you cut-n-pasted from the
org-export-as-latex-batch help, you fell into the trap :-) Maybe the
documentation of the function could be changed to add the backslashes?

The following script (I call it org-to-latex) works fine on linux:

--8<---cut here---start->8---
#! /bin/bash

orglib=$HOME/elisp/org-mode/lisp
emacs   --batch \
--load=$orglib/org.elc \
--eval "(setq org-export-headline-levels 2)" \
--visit=$1 --funcall org-export-as-latex-batch
--8<---cut here---end--->8---

You can add a loop in it too - or do the loop by hand:

--8<---cut here---start->8---
for x in *.org
do
org-to-latex $x
done
--8<---cut here---end--->8---

HTH,
Nick


  


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


Re: [Orgmode] export (as latex) a large number of org files in a directory

2009-08-30 Thread Nick Dokos
Stephen Tucker  wrote:

> Hi, I am trying to export a bunch of .org files stored in a directory as 
> latex files. I have tried two methods:
> 
> (1) 
> ---
> At the bash prompt (I am using OS X):
> 
> bash$ emacs --batch
> --load=/Applications/Emacs.app/Contents/Resources/lisp/org/org.elc
> --visit=file.org --funcall org-export-as-latex-batch'
> 
> and I get an error:
> "Cannot open load file: subst-ksc"
> 
> If I can get this to work, then I can embed this system call in a shell 
> script and call it iteratively on a list of .org files retrieved from, say, 
> Python or Bash (changing 'file.org' appropriately each time).
> 

Did you escape the newlines? If you cut-n-pasted from the
org-export-as-latex-batch help, you fell into the trap :-) Maybe the
documentation of the function could be changed to add the backslashes?

The following script (I call it org-to-latex) works fine on linux:

--8<---cut here---start->8---
#! /bin/bash

orglib=$HOME/elisp/org-mode/lisp
emacs   --batch \
--load=$orglib/org.elc \
--eval "(setq org-export-headline-levels 2)" \
--visit=$1 --funcall org-export-as-latex-batch
--8<---cut here---end--->8---

You can add a loop in it too - or do the loop by hand:

--8<---cut here---start->8---
for x in *.org
do
org-to-latex $x
done
--8<---cut here---end--->8---

HTH,
Nick



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


[Orgmode] export (as latex) a large number of org files in a directory

2009-08-30 Thread Stephen Tucker
Hi, I am trying to export a bunch of .org files stored in a directory as latex 
files. I have tried two methods:

(1) 
---
At the bash prompt (I am using OS X):

bash$ emacs --batch
--load=/Applications/Emacs.app/Contents/Resources/lisp/org/org.elc
--visit=file.org --funcall org-export-as-latex-batch'

and I get an error:
"Cannot open load file: subst-ksc"

If I can get this to work, then I can embed this system call in a shell script 
and call it iteratively on a list of .org files retrieved from, say, Python or 
Bash (changing 'file.org' appropriately each time).

(2) 
---

I created the following function which is intended to take a filename argument, 
load it into a temporary buffer, and export that buffer as a latex file. I 
thought to apply (map) this function to a list of file names generated by the 
directory-files() function.

(defun orgexpastex (filenm)
  (let (buffer-file-name)
(with-temp-buffer
  (setq buffer-file-name "test")
  (insert-file-contents filenm)
  (org-export-as-latex 3)) ;;or (org-export-as-latex-batch))
)
)

But, upon testing this function,
(orgexpastex "file.org")

I get

[-] = =*Backtrace*--
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  re-search-forward(nil nil t)
  org-export-remove-headline-metadata((:for-LaTeX t :emph-multiline t
:add-text nil :comments nil :skip-before-1st-heading nil :LaTeX-fragments nil
:timestamps t :footnotes t))
  org-export-preprocess-string("" :for-LaTeX t :emph-multiline t :add-text nil
:comments nil :skip-before-1st-heading nil :LaTeX-fragments nil :timestamps t
:footnotes t)
  org-export-latex-first-lines((:latex-image-options "width=10em"
:exclude-tags ("noexport") :select-tags ("export") :auto-postamble t
[...snip...]

---

I wonder if it is obvious to anyone what I am doing wrong, or if there is a 
better way to go about exporting a bunch of org files with a program.

Thanks much!
Stephen



  


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


[Orgmode] Export full org-mode to CSV (not tables)

2009-08-24 Thread Simon Mullis
Hi All,

I now use org-mode for everthing I can.  Unfortunately, the rest of
the world is still stuck in Excel-land.

I have a long and detailed org file for each project arranged as follows:

* Priority 1:
**  Project: 
*** Number: 
*** Key1: 
*** Key2: 
*** Key3: 
* Priority 2:
**  Project: 
*** Number: 
*** Key1: 
*** Key2: 
*** Key3: 

and so on. There are multiple "Projects" per "Priority". There may be
multiple "Numbers" per "Project".

I'd like an easy way to export this data to an Excel table, or better yet, CSV.

So,

Priority,Project, Number, Key1, Key2, Key3
,, , , , ,
,, , , , ,

and so on

Ideally I'd like to do this from within org-mode. (Alternatively I can
just write some quick python (or whatever) to do this for me.)

Any ideas?

Thanks

SM


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


Re: [Orgmode] export table html centered

2009-08-15 Thread Carsten Dominik

Hi Henry, Nick,

another way would be this:

#+STYLE: table.center {margin-left:auto; margin- 
right:auto;}


* A centered table

#+ATTR_HTML: class="center"
| a | b | c |
|---+---+---|
| 1 | 2 | 3 |

* An uncentered table

| a | b | c |
|---+---+---|
| 1 | 2 | 3 |


You can also configure org-export-html-table-tag to add the  
class="center"

if you want to center all tables.

HTH

- Carsten

On Aug 16, 2009, at 3:13 AM, Nick Dokos wrote:


Nick Dokos  wrote:


...  But if you don't mind using deprecated attributes, and assuming
you want *every* table centered, then customizing

   org-export-table-header-tags

...


Correction: that should be

org-export-html-table-tag

Sorry about that - the BIND version below is correct.


should do it. You can also use #+BIND to do it per-file:

,
| #+BIND: org-export-html-table-tag   "border=\"2\" cellspacing=\"0\" cellpadding=\"6\" rules=\"groups\"  
frame=\"hsides\">"

| | foo | bar |
| |-+-|
| | 1   | 2   |
| | 2   | 5   |
| | 3   | 10  |
`


Thanks,
Nick


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




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


Re: [Orgmode] export table html centered

Nick Dokos  wrote:

> ...  But if you don't mind using deprecated attributes, and assuming
> you want *every* table centered, then customizing
> 
> org-export-table-header-tags
> 
> ...

Correction: that should be

 org-export-html-table-tag

Sorry about that - the BIND version below is correct.

> should do it. You can also use #+BIND to do it per-file:
> 
> ,
> | #+BIND: org-export-html-table-tag   " cellspacing=\"0\" cellpadding=\"6\" rules=\"groups\" frame=\"hsides\">"
> | | foo | bar |
> | |-+-|
> | | 1   | 2   |
> | | 2   | 5   |
> | | 3   | 10  |
> `

Thanks,
Nick


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


Re: [Orgmode] export table html centered

henry atting  wrote:

> That is what I am searching for: Is there a markup rule that puts org
> tables centered on the resulting page when exported as html.
> Seems that #+BEGIN_CENTER – #+END_CENTER does not do this, marking a
> table like that solely leads to an error message:
> 
> progn: Args out of range: 84, 906
> 
> 

Version info: Org-mode version 6.29trans
  GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 
2009-08-09 on gamaville.dokosmarshall.org

I don't get an error using #+BEGIN_CENTER/#+END_CENTER, but otoh I also
don't get a centered table: it's meant for centered paragraphs I think.

The align= attribute for a table is deprecated and I don't know what
the currently recommended method is (probably CSS - but I don't know much
about that). But if you don't mind using deprecated attributes, and assuming
you want *every* table centered, then customizing

org-export-table-header-tags

to add 

align="center"

should do it. You can also use #+BIND to do it per-file:

,
| #+BIND: org-export-html-table-tag   ""
| | foo | bar |
| |-+-|
| | 1   | 2   |
| | 2   | 5   |
| | 3   | 10  |
`

HTH,
Nick





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


[Orgmode] export table html centered

That is what I am searching for: Is there a markup rule that puts org
tables centered on the resulting page when exported as html.
Seems that #+BEGIN_CENTER – #+END_CENTER does not do this, marking a
table like that solely leads to an error message:

progn: Args out of range: 84, 906


henry


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


Re: [Orgmode] Export plots made with org-plot

Hi Dan,

org-plot does not have support for automatic generation of plots on
export.  Currently to include plots in an exported document you must
manually plot the data to a file using the 'file' argument in your plot
string, then include the generated file into your org-mode document as
you would any other image.

Cheers -- Eric


side note: If you are feeling bold, I have recently added gnuplot as a
supported language to org-babel [1].  With org-babel it is possible to
setup a plot which will be automatically generated and included in an
org-mode document upon export to html.  Here is an example of a plot
using the new org-babel syntax [2].  To preview the graph before export
press C-c C-c with the point on the block.

Daniel Clemente  writes:

> Hi,
>   org-plot shows a plot from a table's data, via: M-x org-plot/gnuplot RET. 
> For instance:
>
> #+PLOT: type:3d with:pm3d
> | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
> | 0 | 2 | 2 | 2 | 2 | 2 | 0 |
> | 0 | 2 | 3 | 3 | 3 | 2 | 0 |
> | 0 | 2 | 3 | 4 | 3 | 2 | 0 |
> | 0 | 2 | 3 | 3 | 3 | 2 | 0 |
> | 0 | 2 | 2 | 2 | 2 | 2 | 0 |
> | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
>
>
>   However there must probably be a way to export the whole .org document to 
> HTML (via C-c C-e b) including plots (exported as .png images in the same 
> directory).
>   Now only the table is exported. org-plot's documentation [1] doesn't refer 
> to plot exporting; am I missing something?
>
> -- Daniel
>
> [1]: http://orgmode.org/worg/org-tutorials/org-plot.php
>
>
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Footnotes: 
[1]  http://github.com/eschulte/org-babel/tree/master

[2]  

#+TBLNAME: gnuplot-data
| independent var | first dependent var | second dependent var |
|-+-+--|
| 0.1 |   0.425 |0.375 |
| 0.2 |  0.3125 |   0.3375 |
| 0.3 |  0.2493 |   0.2838 |
| 0.4 |   0.275 |  0.28125 |
| 0.5 |0.26 | 0.27 |
| 0.6 |  0.2588 |   0.2493 |
| 0.7 |  0.24642845 |   0.23928553 |
| 0.8 | 0.23125 |   0.2375 |
| 0.9 |  0.2323 |0.232 |
|   1 |  0.2225 | 0.22 |
| 1.1 |  0.20909075 |   0.22272708 |
| 1.2 |  0.1998 |   0.21458333 |
| 1.3 |  0.19615368 |   0.21730748 |

#+srcname: gnuplot-example
#+begin_src gnuplot :var data=gnuplot-data :exports results
set title "Gnuplot Example"
plot data using 1:2 with lines
#+end_src



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


[Orgmode] Export to org?

Hi,

Is there an easy way to export an org file to another org file, stripping away
any subtrees that are tagged "noexport" or marked as comments?  The idea is to
discard anything that is also ignored by the other export formats, such as
HTML.  I would find this a useful feature to have, for example, for
distributing Org files to other people without showing subtrees that are still
works-in-progress.

-- 
Best,
Hsiu-Khuern.


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


[Orgmode] Export plots made with org-plot


Hi,
  org-plot shows a plot from a table's data, via: M-x org-plot/gnuplot RET. For 
instance:

#+PLOT: type:3d with:pm3d
| 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 2 | 2 | 2 | 2 | 2 | 0 |
| 0 | 2 | 3 | 3 | 3 | 2 | 0 |
| 0 | 2 | 3 | 4 | 3 | 2 | 0 |
| 0 | 2 | 3 | 3 | 3 | 2 | 0 |
| 0 | 2 | 2 | 2 | 2 | 2 | 0 |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 |


  However there must probably be a way to export the whole .org document to 
HTML (via C-c C-e b) including plots (exported as .png images in the same 
directory).
  Now only the table is exported. org-plot's documentation [1] doesn't refer to 
plot exporting; am I missing something?

-- Daniel

[1]: http://orgmode.org/worg/org-tutorials/org-plot.php


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


Re: [Orgmode] Export Org Mode in Wiki Format



On Jul 15, 2009, at 12:30 PM, Mike Malloy wrote:

I would like to export a .org file to a Confluence wiki page.  Does  
anyone have any insight of how to do this?


I'v found that exporting to HTML then visiting http://toolserver.org/~diberri/cgi-bin/html2wiki/index.cgi 
 works quite nicely.  I don't use confluence, but the MoinMoin  
conversion is reasonable.


Hope this helps,
Ed



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


Re: [Orgmode] Export Org Mode in Wiki Format

I used to export to Twiki via:

perl -ape 's/^\*+/"---" . "+" x length($&)/e' File.org > File.wiki

That just fixes the headlines though.

On Wed, Jul 15, 2009 at 12:30:59PM -0700, Mike Malloy wrote:
> Hello,
> I am a newbie but have done a Google search for this.
> 
> I would like to export a .org file to a Confluence wiki page.  Does anyone
> have any insight of how to do this?
> 
> 
> Thanks, Mike
> 
> -- 
> Mike Malloy  |  Senior Director of Product Management  |  Appregatta
> Technologies, Inc.
> 45 Belden Place  |  San Francisco, CA 94104  |  415.391.2408

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



--
Russell Adamsrlad...@adamsinfoserv.com

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

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


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


[Orgmode] Export Org Mode in Wiki Format

Hello,
I am a newbie but have done a Google search for this.

I would like to export a .org file to a Confluence wiki page.  Does anyone
have any insight of how to do this?


Thanks, Mike

-- 
Mike Malloy  |  Senior Director of Product Management  |  Appregatta
Technologies, Inc.
45 Belden Place  |  San Francisco, CA 94104  |  415.391.2408
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] export timestamp in headline

Mmh, what option do I have to use if I want to display the timestamp in
a headline when exporting to html?

Regards
henry


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


Re: [Orgmode] Export Org files to TWiki format

You mean FOSWiki, right? ;]

On Thu, May 07, 2009 at 09:05:05PM -0700, Baoqiu Cui wrote:
> Hi,
> 
> Recently I wrote an XSL stylesheet that converts DocBook documents to
> TWiki (http://www.twiki.org/) format, and it can be used to convert Org
> files to TWiki format using DocBook exporter as a bridge.  I have used
> it to generate some of my recent TWiki documents at work from Org mode
> files, and it worked pretty well.  Now Org-mode can be used as a TWiki
> editor.
> 
> If you are interested, you can get the stylesheet from
> 
>http://docbook2twiki.googlecode.com
> 
> The following Elisp function can be used to export Org file to TWiki
> using this stylesheet (the only external tool that you need is
> ``xsltproc''):
> 
> (defun org-export-as-twiki ()
>   "Export Org file to TWiki."
>   (interactive)
>   (message "Exporting to TWiki...")
>   (let* ((wconfig (current-window-configuration))
>(docbook-buf (org-export-as-docbook))
>(filename (buffer-file-name docbook-buf))
>(base (file-name-sans-extension filename))
>(twiki-file (concat base ".twiki")))
> (and (file-exists-p twiki-file) (delete-file twiki-file))
> (message "Processing DocBook XML file...")
> (shell-command
>  (format "xsltproc --output %s 
> /Users/bcui/docbook2twiki/docbook2twiki.xsl %s"
>twiki-file (shell-quote-argument filename)))
> (message "Processing DocBook file...done")
> (if (not (file-exists-p twiki-file))
>   (error "TWiki file was not produced")
>   (set-window-configuration wconfig)
>   (message "Exporting to TWiki...done")
>   twiki-file)))
> 
> Originally I started with writing Org-to-TWiki exporter in Elisp, but
> realized that I had to duplicate a lot of code from the DocBook exporter
> after 99% of the work was done.  Writing the stylesheet is little harder
> for me, but it proves that DocBook exporter can be helpful in some
> case. ;-)
> 
> Please let me know if you have any comments.
> 
> Thanks,
> Baoqiu
> 
> 
> 
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 


--
Russell Adamsrlad...@adamsinfoserv.com

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

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


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


[Orgmode] Export Org files to TWiki format

Hi,

Recently I wrote an XSL stylesheet that converts DocBook documents to
TWiki (http://www.twiki.org/) format, and it can be used to convert Org
files to TWiki format using DocBook exporter as a bridge.  I have used
it to generate some of my recent TWiki documents at work from Org mode
files, and it worked pretty well.  Now Org-mode can be used as a TWiki
editor.

If you are interested, you can get the stylesheet from

   http://docbook2twiki.googlecode.com

The following Elisp function can be used to export Org file to TWiki
using this stylesheet (the only external tool that you need is
``xsltproc''):

(defun org-export-as-twiki ()
  "Export Org file to TWiki."
  (interactive)
  (message "Exporting to TWiki...")
  (let* ((wconfig (current-window-configuration))
 (docbook-buf (org-export-as-docbook))
 (filename (buffer-file-name docbook-buf))
 (base (file-name-sans-extension filename))
 (twiki-file (concat base ".twiki")))
(and (file-exists-p twiki-file) (delete-file twiki-file))
(message "Processing DocBook XML file...")
(shell-command
 (format "xsltproc --output %s /Users/bcui/docbook2twiki/docbook2twiki.xsl 
%s"
 twiki-file (shell-quote-argument filename)))
(message "Processing DocBook file...done")
(if (not (file-exists-p twiki-file))
(error "TWiki file was not produced")
  (set-window-configuration wconfig)
  (message "Exporting to TWiki...done")
  twiki-file)))

Originally I started with writing Org-to-TWiki exporter in Elisp, but
realized that I had to duplicate a lot of code from the DocBook exporter
after 99% of the work was done.  Writing the stylesheet is little harder
for me, but it proves that DocBook exporter can be helpful in some
case. ;-)

Please let me know if you have any comments.

Thanks,
Baoqiu



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


Re: [Orgmode] Export options for subtrees

Carsten Dominik  writes:

> Sure!
>
> It's done.
>
> - Carsten

That was fast! Thanks so much.

- Matt


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


Re: [Orgmode] Export options for subtrees


Sure!

It's done.

- Carsten

On Apr 18, 2009, at 6:01 PM, Matthew Lundin wrote:


Hi Carsten,

If it's not too much trouble, I was wondering if I could request the
following properties to set export options for subtrees:

EXPORT_AUTHOR
EXPORT_DATE

In addition to specifying an EXPORT_FILE and EXPORT_TITLE for a  
subtree,

I often find myself wanting to change the date and author lines.

Thanks in advance for considering this!

- Matt



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




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


[Orgmode] Export options for subtrees

Hi Carsten, 

If it's not too much trouble, I was wondering if I could request the
following properties to set export options for subtrees:

EXPORT_AUTHOR
EXPORT_DATE

In addition to specifying an EXPORT_FILE and EXPORT_TITLE for a subtree,
I often find myself wanting to change the date and author lines.

Thanks in advance for considering this!

- Matt



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


Re: [Orgmode] export to html: timestamp-kwd



On Apr 14, 2009, at 1:12 AM, Eraldo Helal wrote:


Salve Orgers!


When exporting to html my auto-timestamp looks like this:
CLOSED:  class="timestamp">2009-04-14 Tue 00:52


I would rather like to have it like this:
CLOSED: class="timestamp">2009-04-14 Tue 00:52
In words: I would like timestamp keyword html span to include the  
timestamp.


Reason: This would enable me to move the whole thing to the right  
side of the headline (float: right).


Comments on this idea are welcome :)


This is a nice application, but I don't think the kwd span should be  
extended for this.  Instead, I have added a new span around both the  
keyword and the stamp, with class timestamp-wrapper.


HTH

- Carsten




Greetings and happy orging,
Eraldo

Ps: If you have any other idea on how to get the same result..  
please let me know.

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




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


[Orgmode] export to html: timestamp-kwd

Salve Orgers!


When exporting to html my auto-timestamp looks like this:

> CLOSED:   class="timestamp">2009-04-14 Tue 00:52
>
> I would rather like to have it like this:

CLOSED: 2009-04-14
Tue 00:52

In words: I would like timestamp keyword html span to include the timestamp.

Reason: This would enable me to move the whole thing to the right side of
the headline (float: right).

Comments on this idea are welcome :)


Greetings and happy orging,
Eraldo

Ps: If you have any other idea on how to get the same result.. please let me
know.
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Export as HTML



On Mar 30, 2009, at 10:55 AM, Sébastien Vauban wrote:


Hello,

Trying to use free CSS templates for some Web site, I have layout  
problems
with the current export to HTML, as a first `' is  
hard-coded

into the resulting Web page.

Could you remove that line, and its closing tag from `(insert
"\n\n\n\n"))' (in function `org-export-as-html')  
so that
we have a completely naked BODY, that the user can fill at its own  
freedom via

the preamble/postamble?


Why and how is this  limiting what you can do?
It was recently introduce precisely to aid CSS formatting
of the entire body.

Sebasian (Rose) and Richard, you helped making getting
the outer div into place, would you care to comment?

- Carsten



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


<    1   2   3   4   >