From: Laurence von Bottorff <borgauf@gmail.com>
To: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: How to in-line change html for specific paragraph only
Date: Fri, 18 Oct 2024 11:39:24 -0500 [thread overview]
Message-ID: <CAFAhFSX6+3bGAq4rs=rD5rd_V1T9tYdiKC9eORU=b8w9XfuA0w@mail.gmail.com> (raw)
In-Reply-To: <CAFAhFSW9LyODNw6sORXvkto2n8e-8UqYK7fK7Z2vsDx+HuApmQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1744 bytes --]
Just solved it with this in the org-mode file
@@html:<p class="myindent">@@my text here@@html:</p>@@
after adding this to css file
p.myindent {
text-indent: 0em;
}
On Fri, Oct 18, 2024 at 10:52 AM Laurence von Bottorff <borgauf@gmail.com>
wrote:
> I would like to temporarily suspend a CSS rule on an org-mode export to
> html. I have various CSS things going on in my export settings. Finally,
> I'm overruling the basic html export behavior with this
>
> #+HTML_HEAD: <style>p { margin-top: 0px; margin-bottom: 0px; text-indent:
> 2em; } </style>
>
> which is specific to my ox-tufte <https://github.com/ox-tufte/ox-tufte>
> html export in order to achieve a not-included "literary" book paragraph
> look, i.e., paragraph has first line indented, paragraphs have no gap.
> However, I would like to suspend the indentation only once in a while
> throughout the document for specific paragraphs, e.g., a first paragraph of
> a chapter -- but just for that paragraph. However, if I do an inline
> somewhere in the text, e.g.,
>
> @@<style> p > { text-indent: 0em; }</style>@@The sheep and their
> Cumbrians, an age-old partnership, together since the ancient Norsemen
> brought the hardy Herdwick breed to the high and lonely Lake District...
>
> this changes *all* paragraphs to no indentation everywhere top to bottom.
> And reversing this at the end of the paragraph back to 2em just changes
> everything everywhere back to 2em. So how can I do a temporary suspension
> of the indentation for one paragraph and then turn it back on?
> --
> ⨽
> Lawrence Bottorff
> Grand Marais, MN, USA
> borgauf@gmail.com
>
--
⨽
Lawrence Bottorff
Grand Marais, MN, USA
borgauf@gmail.com
[-- Attachment #2: Type: text/html, Size: 2849 bytes --]
prev parent reply other threads:[~2024-10-18 16:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-18 15:52 How to in-line change html for specific paragraph only Laurence von Bottorff
2024-10-18 16:39 ` Laurence von Bottorff [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='CAFAhFSX6+3bGAq4rs=rD5rd_V1T9tYdiKC9eORU=b8w9XfuA0w@mail.gmail.com' \
--to=borgauf@gmail.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 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).