emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Toggle headline underlining in text export?
@ 2021-02-16 10:00 Loris Bennett
  2021-02-16 13:45 ` Vladimir Lomov
  2021-02-16 16:54 ` Christine Köhn
  0 siblings, 2 replies; 5+ messages in thread
From: Loris Bennett @ 2021-02-16 10:00 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I have an Org file which I export to a text file.  A separate program I
have written then uses this text file as the body of an email which is
sent to a number of people.

The problem I have is that the underlining of the headlines is much
longer than the headline text itself if a proportional font is used to
view the email.  As most of the recipients will probably not be using a
fixed-width font for their mail clients, I would like to be able to
toggle the underlining and just rely on the numbering of the headlines.

I'd didn't find anything which seemed relevant here

  https://orgmode.org/manual/Export-Settings.html

so is this possible?  Is there a (better) alternative?

Cheers,

Loris

-- 
This signature is currently under construction.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Toggle headline underlining in text export?
  2021-02-16 10:00 Toggle headline underlining in text export? Loris Bennett
@ 2021-02-16 13:45 ` Vladimir Lomov
  2021-02-16 14:35   ` Loris Bennett
  2021-02-16 16:54 ` Christine Köhn
  1 sibling, 1 reply; 5+ messages in thread
From: Vladimir Lomov @ 2021-02-16 13:45 UTC (permalink / raw)
  To: emacs-orgmode

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

Hello,
** Loris Bennett <loris.bennett@fu-berlin.de> [2021-02-16 11:00:08 +0100]:

> Hi,

> I have an Org file which I export to a text file.  A separate program I
> have written then uses this text file as the body of an email which is
> sent to a number of people.

> The problem I have is that the underlining of the headlines is much
> longer than the headline text itself if a proportional font is used to
> view the email.

This contradicts a bit to first paragraph. I would assume that you export to
text format to send email message as plain text.

> As most of the recipients will probably not be using a fixed-width font for
> their mail clients,

And this assumes that they are fine with html messages otherwise they would
use fixed-width font.

> I would like to be able to toggle the underlining and just rely on the
> numbering of the headlines.

> I'd didn't find anything which seemed relevant here

>   https://orgmode.org/manual/Export-Settings.html

> so is this possible?  Is there a (better) alternative?

May be send them a html message?

> Cheers,

> Loris

---
WBR, Vladimir Lomov

-- 
To get something clean, one has to get something dirty.
To get something dirty, one does not have to get anything clean.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Toggle headline underlining in text export?
  2021-02-16 13:45 ` Vladimir Lomov
@ 2021-02-16 14:35   ` Loris Bennett
  0 siblings, 0 replies; 5+ messages in thread
From: Loris Bennett @ 2021-02-16 14:35 UTC (permalink / raw)
  To: emacs-orgmode

Hi Vladimir, 

Vladimir Lomov <lomov.vl@yandex.ru> writes:

> Hello,
> ** Loris Bennett <loris.bennett@fu-berlin.de> [2021-02-16 11:00:08 +0100]:
>
>> Hi,
>
>> I have an Org file which I export to a text file.  A separate program I
>> have written then uses this text file as the body of an email which is
>> sent to a number of people.
>
>> The problem I have is that the underlining of the headlines is much
>> longer than the headline text itself if a proportional font is used to
>> view the email.
>
> This contradicts a bit to first paragraph. I would assume that you export to
> text format to send email message as plain text.

I'm not sure what contradiction you are referring to.  I am indeed
exporting the a text format and in this text format the top-level
headlines are underlined with either a '=' if I export to ASCII or some
UTF symbol if I export to UTF-8.  Whether the underlining is the same
length as the headline itself depends on whether the font used to
display the text is fixed-width or proportional.

>> As most of the recipients will probably not be using a fixed-width font for
>> their mail clients,
>
> And this assumes that they are fine with html messages otherwise they would
> use fixed-width font.

I'm not sure this is true.  Someone might not like HTML mail for
security reasons, but still might use a proportional font.  In addition,
at least a few of the recipients certainly will be using a fixed-width
font.

>> I would like to be able to toggle the underlining and just rely on the
>> numbering of the headlines.
>
>> I'd didn't find anything which seemed relevant here
>
>>   https://orgmode.org/manual/Export-Settings.html
>
>> so is this possible?  Is there a (better) alternative?
>
> May be send them a html message?

I could do, but I'd rather not :-)

Cheers,

Loris

-- 
This signature is currently under construction.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Toggle headline underlining in text export?
  2021-02-16 10:00 Toggle headline underlining in text export? Loris Bennett
  2021-02-16 13:45 ` Vladimir Lomov
@ 2021-02-16 16:54 ` Christine Köhn
  2021-02-17  8:30   ` Loris Bennett
  1 sibling, 1 reply; 5+ messages in thread
From: Christine Köhn @ 2021-02-16 16:54 UTC (permalink / raw)
  To: Loris Bennett; +Cc: emacs-orgmode

Hi Loris,

have a look at the variable org-ascii-underline. It defines the
characters for underlining headings. If no character is set, the
headlines shouldn't be underlined (according to the documentation).

Best,
Christine


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Toggle headline underlining in text export?
  2021-02-16 16:54 ` Christine Köhn
@ 2021-02-17  8:30   ` Loris Bennett
  0 siblings, 0 replies; 5+ messages in thread
From: Loris Bennett @ 2021-02-17  8:30 UTC (permalink / raw)
  To: emacs-orgmode

Hi Christine,

Christine Köhn <christine@chark.eu> writes:

> Hi Loris,
>
> have a look at the variable org-ascii-underline. It defines the
> characters for underlining headings. If no character is set, the
> headlines shouldn't be underlined (according to the documentation).

Thanks, removing those character does what I wanted (although toggling
would be a little more convenient).

Unfortunately it turns out that what I wanted doesn't really look that
good either :-/

Oh well, thanks again anyway.

Cheers,

Loris

-- 
This signature is currently under construction.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-17  8:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-16 10:00 Toggle headline underlining in text export? Loris Bennett
2021-02-16 13:45 ` Vladimir Lomov
2021-02-16 14:35   ` Loris Bennett
2021-02-16 16:54 ` Christine Köhn
2021-02-17  8:30   ` Loris Bennett

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).