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
[-- 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 --]
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
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
[-- 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 --]
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