all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: Water Lin <WaterLin@ymail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Can I publish one block of org file?
Date: Tue, 15 Sep 2009 09:05:18 -0400	[thread overview]
Message-ID: <87ocpctl2p.fsf@fastmail.fm> (raw)
In-Reply-To: <83ljkglkkl.fsf@ymail.com> (Water Lin's message of "Tue, 15 Sep 2009 15:43:22 +0800")

Water Lin <WaterLin@ymail.com> writes:

> I am using org to write my draft. After finish the writing, I will copy
> to my blog poster and edit something like linker, pictures.
>
> This way works but is a little slow and should be very careful or else
> it is very easy to forget some linkers, pictures, etc.
>
> I am trying to find a way to write full text in org mode. I think it is
> a good way to do following:
> ---------------------------
> After I finish the writing, I select the block of my article, then use a
> command to publish it to basic html and copy the html code into memory.
>
>
> I don't need whole html elements, just need the customized html code for
> the block.
>
> I try to read the org help doc but can't find anything related to
> it. Please give me a start stone, thanks.......

C-u M-x org-export-region-as-html

or

C-u C-c C-e R

From the doc-string:

,----
| org-export-region-as-html is an interactive compiled Lisp function in
| `org-html.el'.
| 
| (org-export-region-as-html beg end &optional body-only buffer)
| 
| Convert region from beg to end in org-mode buffer to HTML.
| If prefix arg body-only is set, omit file header, footer, and table of
| contents, and only produce the region of converted text, useful for
| cut-and-paste operations.
| If buffer is a buffer or a string, use/create that buffer as a target
| of the converted HTML.  If buffer is the symbol `string', return the
| produced HTML as a string and leave not buffer behind.  For example,
| a Lisp program could call this function in the following way:
| 
|   (setq html (org-export-region-as-html beg end t 'string))
| 
| When called interactively, the output buffer is selected, and shown
| in a window.  A non-interactive call will only return the buffer.
`----

Best,
Matt

      parent reply	other threads:[~2009-09-15 13:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-15  7:43 Can I publish one block of org file? Water Lin
2009-09-15 12:56 ` Bernt Hansen
2009-09-15 13:05 ` Matt Lundin [this message]

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

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

  git send-email \
    --in-reply-to=87ocpctl2p.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=WaterLin@ymail.com \
    --cc=emacs-orgmode@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.