emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: <tomas@tuxteam.de>
To: emacs-orgmode@gnu.org
Subject: Re: Emphasis on a region
Date: Thu, 4 Jun 2020 10:35:28 +0200	[thread overview]
Message-ID: <20200604083528.GA14993@tuxteam.de> (raw)
In-Reply-To: <5db135ed-dd64-64b1-02bf-2eb46998cf7e@lorke.de>

[-- Attachment #1: Type: text/plain, Size: 1269 bytes --]

On Wed, Jun 03, 2020 at 12:32:25AM +0200, Berthold Lorke wrote:
> I am talking about this feature:
> https://orgmode.org/manual/Emphasis-and-Monospace.html
> 
> It currently doesn't seem to be possible to mark a whole region with,
> say, "+" to strike through a whole paragraph, especially when separating
> each sentence in a paragraph by a linebreak (i believe this is even
> encouraged, as seen here https://orgmode.org/manual/Paragraphs.html).
> 
> Is there a fix for this?  Enclosing each line with emphasis markers
> (like "+") doesn't fix it, as when exported every sentence in a
> paragraph would then have a space inbetween the strikethroughs.

Yes, see variable `org-emphasis-regexp-components': it is a list
describing how an emphasis span (bold, emphasised, strike-through
etc) is "built".

It's fifth component is the number of newlines allowed whithin such
a span. It's set, by default, to 1.

You can modify it like so

  (setf (nth 4 org-emphasis-regexp-components) 4)

to allow 4 newlines in your emphasis span. You have to reload
Org for it to take effect, so the best might be to have this
somewhere in your Emacs init just before loading Org?

Perhaps someone with a more elegant approach can chime in.

Cheers
-- t

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2020-06-04  8:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-02 22:32 Emphasis on a region Berthold Lorke
2020-06-04  8:35 ` tomas [this message]
2020-06-04 10:35   ` Russell Adams
2020-06-04 12:33     ` tomas
2020-06-04 11:28 ` Eric S Fraga
2020-06-04 12:49 ` Nicolas Goaziou

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=20200604083528.GA14993@tuxteam.de \
    --to=tomas@tuxteam.de \
    --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).