* error when exporting org to html
@ 2009-02-05 13:05 Rainer Stengele
2009-02-05 14:08 ` Giovanni Ridolfi
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Rainer Stengele @ 2009-02-05 13:05 UTC (permalink / raw)
To: emacs-orgmode
I have a problem exporting html and directly browsing the exported file.
I have my org file in a indirect buffer,
Pressing "C-c C-e b" results in:
Exporting... [2 times]
save-restriction: Args out of range: 0, 1
org version: 6.21b
GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2009-01-12 on LENNART-69DE564
(patched)
Can anybody give me a hint?
By the way, I always run into this task:
I have a very large org file and want to export a specific region to html.
The highest org-level of the region is for example "6" "******".
Exporting results "correctly" in "high" HTML header levels and "strange"
formatting formatting.
I would like to automatically export to "level 1".
What I now do is copy the region in a new org file. move the level to "1" = "*"
and export then. Bad workaround ...
Anybody has a suggestion?
Rainer
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: error when exporting org to html
2009-02-05 13:05 error when exporting org to html Rainer Stengele
@ 2009-02-05 14:08 ` Giovanni Ridolfi
2009-02-05 14:32 ` Carsten Dominik
2009-02-06 7:32 ` Carsten Dominik
2009-02-06 13:11 ` Rainer Stengele
2 siblings, 1 reply; 11+ messages in thread
From: Giovanni Ridolfi @ 2009-02-05 14:08 UTC (permalink / raw)
To: emacs-orgmode, Rainer Stengele
--- Gio 5/2/09, Rainer Stengele <rainer.stengele@diplan.de> ha scritto:
Hi, Rainer
> I have a problem exporting html and directly browsing the
> exported file.
> I have my org file in a indirect buffer,
>
> Pressing "C-c C-e b" results in:
>
> Exporting... [2 times]
> save-restriction: Args out of range: 0, 1
> By the way, I always run into this task:
> I have a very large org file and want to export a specific
> region to html.
> The highest org-level of the region is for example
> "6" "******".
> Exporting results "correctly" in "high"
> HTML header levels and "strange"
> formatting formatting.
I thik the HTML exporter has some problems,
as I pointed out.
Carsten answered [1] and I'm pretty sure he will
resolve this issue.
For now I think we should (as he suggested)
1. manually create a new file with the subheading
2. export with
C-c C-e h
..
Ah, he didn't say, but I'm convinced
he will be *really* happy, if we patch orgmode ;-)
cheers
Giovanni
[1] http://lists.gnu.org/archive/html/emacs-orgmode/2009-02/msg00069.html
Passa a Yahoo! Mail.
La webmail che ti offre GRATIS spazio illimitato,
antispam e messenger integrato.
http://it.mail.yahoo.com/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: error when exporting org to html
2009-02-05 14:08 ` Giovanni Ridolfi
@ 2009-02-05 14:32 ` Carsten Dominik
2009-02-05 15:14 ` Giovanni Ridolfi
0 siblings, 1 reply; 11+ messages in thread
From: Carsten Dominik @ 2009-02-05 14:32 UTC (permalink / raw)
To: giovanni.ridolfi; +Cc: Rainer Stengele, emacs-orgmode
On Feb 5, 2009, at 3:08 PM, Giovanni Ridolfi wrote:
> --- Gio 5/2/09, Rainer Stengele <rainer.stengele@diplan.de> ha
> scritto:
> Hi, Rainer
>
>> I have a problem exporting html and directly browsing the
>> exported file.
>> I have my org file in a indirect buffer,
>>
>> Pressing "C-c C-e b" results in:
>>
>> Exporting... [2 times]
>> save-restriction: Args out of range: 0, 1
>
>> By the way, I always run into this task:
>> I have a very large org file and want to export a specific
>> region to html.
>> The highest org-level of the region is for example
>> "6" "******".
>> Exporting results "correctly" in "high"
>> HTML header levels and "strange"
>> formatting formatting.
>
> I thik the HTML exporter has some problems,
> as I pointed out.
> Carsten answered [1] and I'm pretty sure he will
> resolve this issue.
>
> For now I think we should (as he suggested)
>
> 1. manually create a new file with the subheading
> 2. export with
> C-c C-e h
Did I say this? No. I said, use `C-c C-e h', and I meant doe
this in the file, after selecting.... :-)
>
> ..
> Ah, he didn't say, but I'm convinced
> he will be *really* happy, if we patch orgmode ;-)
Hear hear!
- Carsten
>
>
> cheers
> Giovanni
>
> [1] http://lists.gnu.org/archive/html/emacs-orgmode/2009-02/msg00069.html
>
>
>
> Passa a Yahoo! Mail.
>
> La webmail che ti offre GRATIS spazio illimitato,
> antispam e messenger integrato.
> http://it.mail.yahoo.com/
>
>
>
> _______________________________________________
> 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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: error when exporting org to html
2009-02-05 14:32 ` Carsten Dominik
@ 2009-02-05 15:14 ` Giovanni Ridolfi
2009-02-05 15:34 ` Bernt Hansen
2009-02-05 15:37 ` William Henney
0 siblings, 2 replies; 11+ messages in thread
From: Giovanni Ridolfi @ 2009-02-05 15:14 UTC (permalink / raw)
To: Carsten Dominik; +Cc: Rainer Stengele, emacs-orgmode
--- Gio 5/2/09, Carsten Dominik <dominik@science.uva.nl> ha scritto:
> On Feb 5, 2009, at 3:08 PM, Giovanni Ridolfi wrote:
>
> > For now I think we should (as he suggested)
> >
> > 1. manually create a new file with the subheading
> > 2. export with
> > C-c C-e h
>
> Did I say this? No. I said, use `C-c C-e h', and I
> meant doe
> this in the file, after selecting.... :-)
(load pedantic-mode) ;-)
Yes, yes, in
http://lists.gnu.org/archive/html/emacs-orgmode/2009-02/msg00069.html
you said:
> > try exporting with `C-c C-e h' instead of
> > exporting with `C-c C-e R',
> > I think this will fix these problems,
> > at least largely.
So:
1. I selected the region with C-c @ and the I did
C-c C-e h
-> and I found the *whole* file exported.
2. I selected the region with C-SPC (goto last
character of the region) M-w
C-c C-e h
-> and still the *whole* file has been exported
3. I selected the region C-SPC M-w then
C-c C-e R
then saved the html buffer
-> and finally the region has been exported!
....Mmmmm....
Regarding the issue of the subheadings, I found that,
if the region begins with sublevel
higher than 3, the region is exported
as a list and not with numbered headings:
-------------------------------------
o 2nd
* 3rd
Bye!
o very complicated!!!!!
-----------------
If the region has the first sublevel equal to tree
it is exported like:
-----------------------------
1 boh
* 2nd
o 3rd
Bye!
+ very complicated!!!!!
--------------------------------------
For this reason I suggested Rainer to open a new file
and rearrange the headings accordingly.
I did the same thing yesterday.
(unload pedantic-mode)
cheers,
Giovanni
Passa a Yahoo! Mail.
La webmail che ti offre GRATIS spazio illimitato,
antispam e messenger integrato.
http://it.mail..yahoo.com/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: error when exporting org to html
2009-02-05 15:14 ` Giovanni Ridolfi
@ 2009-02-05 15:34 ` Bernt Hansen
2009-02-05 15:37 ` William Henney
1 sibling, 0 replies; 11+ messages in thread
From: Bernt Hansen @ 2009-02-05 15:34 UTC (permalink / raw)
To: giovanni.ridolfi; +Cc: emacs-orgmode, Rainer Stengele
Giovanni Ridolfi <giovanni.ridolfi@yahoo.it> writes:
> --- Gio 5/2/09, Carsten Dominik <dominik@science.uva.nl> ha scritto:
>> On Feb 5, 2009, at 3:08 PM, Giovanni Ridolfi wrote:
>>
>> > For now I think we should (as he suggested)
>> >
>> > 1. manually create a new file with the subheading
>> > 2. export with
>> > C-c C-e h
>>
>> Did I say this? No. I said, use `C-c C-e h', and I
>> meant doe
>> this in the file, after selecting.... :-)
>
> (load pedantic-mode) ;-)
>
> Yes, yes, in
> http://lists.gnu.org/archive/html/emacs-orgmode/2009-02/msg00069.html
> you said:
>
>> > try exporting with `C-c C-e h' instead of
>> > exporting with `C-c C-e R',
>> > I think this will fix these problems,
>> > at least largely.
>
> So:
>
> 1. I selected the region with C-c @ and the I did
> C-c C-e h
>
> -> and I found the *whole* file exported.
>
Ah - you don't have transient mark mode set.
Try this:
C-SPC C-SPC
move cursor to highlight the region
and then export.
If you don't have the region explicitly marked (in transient mark mode)
you get the whole file.
HTH,
Bernt
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: error when exporting org to html
2009-02-05 15:14 ` Giovanni Ridolfi
2009-02-05 15:34 ` Bernt Hansen
@ 2009-02-05 15:37 ` William Henney
2009-02-05 15:39 ` William Henney
2009-02-05 16:11 ` Giovanni Ridolfi
1 sibling, 2 replies; 11+ messages in thread
From: William Henney @ 2009-02-05 15:37 UTC (permalink / raw)
To: giovanni.ridolfi; +Cc: emacs-orgmode, Rainer Stengele
Hi Giovanni
On Thu, Feb 5, 2009 at 9:14 AM, Giovanni Ridolfi
<giovanni.ridolfi@yahoo.it> wrote:
>
> 1. I selected the region with C-c @ and the I did
> C-c C-e h
>
> -> and I found the *whole* file exported.
>
This has always (and still does) work correctly for me. That is, only
the region is exported. Perhaps it is some interaction with your
customizations. Have you turned off transient-mark-mode perhaps?
[snip]
> Regarding the issue of the subheadings, I found that,
> if the region begins with sublevel
> higher than 3, the region is exported
> as a list and not with numbered headings:
You can change that with, for example:
#+OPTIONS: H:6
However, there are certainly issues with the html headers when
exporting a sub-tree. I raised this exact point last week
(http://lists.gnu.org/archive/html/emacs-orgmode/2009-01/msg00729.html)
but have not received any answer. I don't know if it just fell through
the cracks or if it is not considered to be a "reasonable question" :)
Cheers
Will
--
Dr William Henney, Centro de Radioastronomía y Astrofísica,
Universidad Nacional Autónoma de México, Campus Morelia
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: error when exporting org to html
2009-02-05 15:37 ` William Henney
@ 2009-02-05 15:39 ` William Henney
2009-02-05 16:11 ` Giovanni Ridolfi
1 sibling, 0 replies; 11+ messages in thread
From: William Henney @ 2009-02-05 15:39 UTC (permalink / raw)
To: giovanni.ridolfi; +Cc: emacs-orgmode, Rainer Stengele
Correction:
On Thu, Feb 5, 2009 at 9:37 AM, William Henney <whenney@gmail.com> wrote:
> However, there are certainly issues with the html headers when
I meant "headings" (i.e. <h1>, <h6>, etc), not "headers".
--
Dr William Henney, Centro de Radioastronomía y Astrofísica,
Universidad Nacional Autónoma de México, Campus Morelia
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: error when exporting org to html
2009-02-05 15:37 ` William Henney
2009-02-05 15:39 ` William Henney
@ 2009-02-05 16:11 ` Giovanni Ridolfi
1 sibling, 0 replies; 11+ messages in thread
From: Giovanni Ridolfi @ 2009-02-05 16:11 UTC (permalink / raw)
To: William Henney; +Cc: emacs-orgmode, Rainer Stengele
--- Gio 5/2/09, William Henney <whenney@gmail.com> ha scritto:
Hi William
>
> However, there are certainly issues with the html headers
> when
> exporting a sub-tree. I raised this exact point last week
> (http://lists.gnu.org/archive/html/emacs-orgmode/2009-01/msg00729.html)
> but have not received any answer. I don't know if it
> just fell through
> the cracks or if it is not considered to be a
> "reasonable question" :)
No, I think there are some bugs in the html exporter,
but I think Carsten has not yet had the time to
fix them.
Tomorrow I will try to investigate further to provide him
a pedantic (with transient-mark-mode ;-) & comprehensive
bug report.
cheers,
Giovanni
Passa a Yahoo! Mail.
La webmail che ti offre GRATIS spazio illimitato,
antispam e messenger integrato.
http://it.mail..yahoo.com/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: error when exporting org to html
2009-02-05 13:05 error when exporting org to html Rainer Stengele
2009-02-05 14:08 ` Giovanni Ridolfi
@ 2009-02-06 7:32 ` Carsten Dominik
2009-02-06 13:11 ` Rainer Stengele
2 siblings, 0 replies; 11+ messages in thread
From: Carsten Dominik @ 2009-02-06 7:32 UTC (permalink / raw)
To: Rainer Stengele; +Cc: emacs-orgmode
I cannot reproduce this.
- Carsten
On Feb 5, 2009, at 2:05 PM, Rainer Stengele wrote:
> I have a problem exporting html and directly browsing the exported
> file.
> I have my org file in a indirect buffer,
>
> Pressing "C-c C-e b" results in:
>
> Exporting... [2 times]
> save-restriction: Args out of range: 0, 1
>
> org version: 6.21b
> GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2009-01-12 on
> LENNART-69DE564
> (patched)
>
> Can anybody give me a hint?
>
>
> By the way, I always run into this task:
> I have a very large org file and want to export a specific region to
> html.
> The highest org-level of the region is for example "6" "******".
> Exporting results "correctly" in "high" HTML header levels and
> "strange"
> formatting formatting.
> I would like to automatically export to "level 1".
> What I now do is copy the region in a new org file. move the level
> to "1" = "*"
> and export then. Bad workaround ...
> Anybody has a suggestion?
>
> Rainer
>
>
>
> _______________________________________________
> 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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: error when exporting org to html
2009-02-05 13:05 error when exporting org to html Rainer Stengele
2009-02-05 14:08 ` Giovanni Ridolfi
2009-02-06 7:32 ` Carsten Dominik
@ 2009-02-06 13:11 ` Rainer Stengele
2 siblings, 0 replies; 11+ messages in thread
From: Rainer Stengele @ 2009-02-06 13:11 UTC (permalink / raw)
Cc: emacs-orgmode
Rainer Stengele schrieb:
> I have a problem exporting html and directly browsing the exported file.
> I have my org file in a indirect buffer,
>
> Pressing "C-c C-e b" results in:
>
> Exporting... [2 times]
> save-restriction: Args out of range: 0, 1
>
> org version: 6.21b
> GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2009-01-12 on LENNART-69DE564
> (patched)
>
> Can anybody give me a hint?
>
>
> By the way, I always run into this task:
> I have a very large org file and want to export a specific region to html.
> The highest org-level of the region is for example "6" "******".
> Exporting results "correctly" in "high" HTML header levels and "strange"
> formatting formatting.
> I would like to automatically export to "level 1".
> What I now do is copy the region in a new org file. move the level to "1" = "*"
> and export then. Bad workaround ...
> Anybody has a suggestion?
>
> Rainer
>
>
>
> _______________________________________________
> 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
>
Hi again,
Carsten, I now cannot reproduce the "save-restriction: Args out of range: 0, 1"
error anymore. It is gone after restarting emacs.
I have another little thing:
having this "PROPERTIES" in my org file defined like this:
:PROPERTIES:
#+TITLE: dotNET Statusrunde
#+DATE: 2009-02-03 Dienstag
#+LANGUAGE: de
#+OPTIONS: H:7 num:t toc:t \n:t @:t ::t |:t ^:t -:t f:t *:t TeX:t LaTeX:nil
skip:nil d:nil tags:nil timestamp:nil creator:nil autor:nil
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCUDE_TAGS: noexport
#+LINK_UP:
#+LINK_HOME:
:END:
after the HTML Export the HTML file still has these two lines in it:
:PROPERTIES:<br/>
:END:<br/>
How can I disable this?
Rainer
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: error when exporting org to html
2009-02-06 10:39 Giovanni Ridolfi
@ 2009-02-07 14:09 ` Carsten Dominik
0 siblings, 0 replies; 11+ messages in thread
From: Carsten Dominik @ 2009-02-07 14:09 UTC (permalink / raw)
To: giovanni.ridolfi; +Cc: Bernt Hansen, srandby@gmail.com, emacs-orgmode
On Feb 6, 2009, at 11:39 AM, Giovanni Ridolfi wrote:
> 1. OK
> Export region from the first heading
> C-c @ on the [2009...] heading
> C-c C-e h
> + exports the region OK
OK.
> 2. Wishlist
> Export region from *before* the 2nd heading
> "I'm 1st line 1st heading"
> Select region with C-SPC, M-w or with C-c @
> C-c C-e h
> + exports region
> title: as in #+TITLE
> first line:"I'm 1st line 1st heading"
> + levels:
> 2nd level is <h3>, why not <h2>?
> 3rd level is <h4>
No, this is not possible, and maybe for such a case you
should just go through a separate buffer. It would be quite
inconsistent to implement this, because the text before
the 2nd heading does not belong to it in any way, it is
part of the of the tree before it.
There is two locations for text that are special: Before the
first heading, and, when exporting a subtree, text before the
first child. I believe both are being dealt with correctly
now.
>
>
> 2.1. Export region from the 2nd heading
> C-c @ on the 2nd level heading
> C-c C-e h
> + exports the region OK
> + The 2nd heading becames the title
> + However
> - 3rd becomes a <h4>
> why not a <h2>?
> - from 4th to end are <ul>
>
> William Henney pointed out this behaviour [2].
> "I would rather heading 3rd were <h1> and
> that all heading levels be relative to the
> root of the sub-tree."
> [2]
> http://lists.gnu.org/archive/html/emacs-orgmode/2009-01/msg00729.html
>
> I suspect the exporter rests upon the level of the heading
> (**** is forth even if you exports it as the root)
> and does not consider it as the root of the level.
> The exporter should check the level of the heading
> and, in case, it should increase such value and the values of the
> subheadings M- <-
> until the first heading becomes 1.
> (I don't know if such implementation is possible)
This is fixed now, thanks.
>
>
> 3. BUG
> The lines before the first heading are exported
>
> Even if in the #+OPTIONS: the 'skip lines' is true,
> the lines before the first heading are exported,
> if the file is exported with command
> C-c C-e h
>
> Reported also from Scott Randby [1]
> [1] http://lists.gnu.org/archive/html/emacs-orgmode/2009-02/msg00164.html
> He said that Org-6.09 worked fine.
This is fixed as well.
>
>
> 4. OK
> The exporter exports a subheading with properties
> in compliance with values defined in properties.
> C-c @
> C-c C-e h
OK.
>
>
> Hope this is complete enough.
Yes, this was a useful and complete test case, thanks!
- Carsten
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2009-02-07 14:09 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-05 13:05 error when exporting org to html Rainer Stengele
2009-02-05 14:08 ` Giovanni Ridolfi
2009-02-05 14:32 ` Carsten Dominik
2009-02-05 15:14 ` Giovanni Ridolfi
2009-02-05 15:34 ` Bernt Hansen
2009-02-05 15:37 ` William Henney
2009-02-05 15:39 ` William Henney
2009-02-05 16:11 ` Giovanni Ridolfi
2009-02-06 7:32 ` Carsten Dominik
2009-02-06 13:11 ` Rainer Stengele
-- strict thread matches above, loose matches on Subject: below --
2009-02-06 10:39 Giovanni Ridolfi
2009-02-07 14:09 ` Carsten Dominik
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).