emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: giovanni.ridolfi@yahoo.it
Cc: Bernt Hansen <bernt@norang.ca>,
	"srandby@gmail.com" <srandby@gmail.com>,
	emacs-orgmode@gnu.org
Subject: Re: error when exporting org to html
Date: Sat, 7 Feb 2009 15:09:46 +0100	[thread overview]
Message-ID: <5E57FB03-171D-43EB-AA8E-CE9A21686609@uva.nl> (raw)
In-Reply-To: <295368.57544.qm@web28308.mail.ukl.yahoo.com>


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

  reply	other threads:[~2009-02-07 14:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-06 10:39 Re: error when exporting org to html Giovanni Ridolfi
2009-02-07 14:09 ` Carsten Dominik [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-02-05 13:05 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5E57FB03-171D-43EB-AA8E-CE9A21686609@uva.nl \
    --to=dominik@science.uva.nl \
    --cc=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=giovanni.ridolfi@yahoo.it \
    --cc=srandby@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).