From: Richard Lawrence <richard.lawrence@berkeley.edu>
To: emacs-orgmode@gnu.org
Cc: Marcin Borkowski <mbork@wmi.amu.edu.pl>
Subject: Re: How do I set a class for a paragraph in HTML export?
Date: Mon, 01 Dec 2014 20:36:50 -0800 [thread overview]
Message-ID: <87tx1efz19.fsf@berkeley.edu> (raw)
In-Reply-To: 871toihn5c.fsf@wmi.amu.edu.pl
Hi Marcin,
Marcin Borkowski <mbork@wmi.amu.edu.pl> writes:
>
> I'd like to get something like this:
>
> <p class="myclass">Hello world</p>
>
> What should I write in the Org file? Looking at org-html-paragraph, I'm
> afraid that it's currently impossible.
This works for me:
----------------------------------
#+ATTR_HTML: :class myclass
This is a paragraph.
----------------------------------
That produces
----------------------------------
<p class="myclass">
This is a paragraph.</p>
----------------------------------
in the exported HTML.
Best,
Richard
OpenPGP Key ID: CF6FA646
Fingerprint: 9969 43E1 CF6F A646
(See http://www.ocf.berkeley.edu/~rwl/encryption.html for more information.)
prev parent reply other threads:[~2014-12-02 4:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-02 1:10 How do I set a class for a paragraph in HTML export? Marcin Borkowski
2014-12-02 4:36 ` Richard Lawrence [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
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=87tx1efz19.fsf@berkeley.edu \
--to=richard.lawrence@berkeley.edu \
--cc=emacs-orgmode@gnu.org \
--cc=mbork@wmi.amu.edu.pl \
/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).