* Emphasis on a region
@ 2020-06-02 22:32 Berthold Lorke
2020-06-04 8:35 ` tomas
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Berthold Lorke @ 2020-06-02 22:32 UTC (permalink / raw)
To: emacs-orgmode
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.
--Berber
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emphasis on a region
2020-06-02 22:32 Emphasis on a region Berthold Lorke
@ 2020-06-04 8:35 ` tomas
2020-06-04 10:35 ` Russell Adams
2020-06-04 11:28 ` Eric S Fraga
2020-06-04 12:49 ` Nicolas Goaziou
2 siblings, 1 reply; 6+ messages in thread
From: tomas @ 2020-06-04 8:35 UTC (permalink / raw)
To: emacs-orgmode
[-- 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 --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emphasis on a region
2020-06-04 8:35 ` tomas
@ 2020-06-04 10:35 ` Russell Adams
2020-06-04 12:33 ` tomas
0 siblings, 1 reply; 6+ messages in thread
From: Russell Adams @ 2020-06-04 10:35 UTC (permalink / raw)
To: emacs-orgmode
On Thu, Jun 04, 2020 at 10:35:28AM +0200, tomas@tuxteam.de wrote:
> Yes, see variable `org-emphasis-regexp-components': it is a list
> describing how an emphasis span (bold, emphasised, strike-through
> etc) is "built".
Can this be done in M-x customize?
------------------------------------------------------------------
Russell Adams RLAdams@AdamsInfoServ.com
PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/
Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emphasis on a region
2020-06-04 10:35 ` Russell Adams
@ 2020-06-04 12:33 ` tomas
0 siblings, 0 replies; 6+ messages in thread
From: tomas @ 2020-06-04 12:33 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 380 bytes --]
On Thu, Jun 04, 2020 at 12:35:51PM +0200, Russell Adams wrote:
> On Thu, Jun 04, 2020 at 10:35:28AM +0200, tomas@tuxteam.de wrote:
> > Yes, see variable `org-emphasis-regexp-components': it is a list
> > describing how an emphasis span (bold, emphasised, strike-through
> > etc) is "built".
>
> Can this be done in M-x customize?
Not, as far as I know.
Cheers
-- t
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emphasis on a region
2020-06-02 22:32 Emphasis on a region Berthold Lorke
2020-06-04 8:35 ` tomas
@ 2020-06-04 11:28 ` Eric S Fraga
2020-06-04 12:49 ` Nicolas Goaziou
2 siblings, 0 replies; 6+ messages in thread
From: Eric S Fraga @ 2020-06-04 11:28 UTC (permalink / raw)
To: Berthold Lorke; +Cc: emacs-orgmode
On Wednesday, 3 Jun 2020 at 00:32, Berthold Lorke wrote:
> 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.
You don't specify what your export target is. If PDF via LaTeX, you can
always define a new environment for LaTeX and then use special blocks in
org to invoke that environment. For instance, the following works:
--8<---------------cut here---------------start------------->8---
#+latex_header: \newenvironment{emphasis}{\em}{}
#+begin_emphasis
This is the first line.
And this is the second.
#+end_emphasis
Followed by the third.
--8<---------------cut here---------------end--------------->8---
HTH,
eric
--
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-640-g9bc0cc
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emphasis on a region
2020-06-02 22:32 Emphasis on a region Berthold Lorke
2020-06-04 8:35 ` tomas
2020-06-04 11:28 ` Eric S Fraga
@ 2020-06-04 12:49 ` Nicolas Goaziou
2 siblings, 0 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2020-06-04 12:49 UTC (permalink / raw)
To: Berthold Lorke; +Cc: emacs-orgmode
Hello,
Berthold Lorke <berthold@lorke.de> writes:
> 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.
Could you show an example of what you are trying to achieve?
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-06-04 12:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-02 22:32 Emphasis on a region Berthold Lorke
2020-06-04 8:35 ` tomas
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
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.