unofficial mirror of emacs-orgmode@gnu.org
 help / color / mirror / 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

unofficial mirror of emacs-orgmode@gnu.org

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/orgmode/0 orgmode/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 orgmode orgmode/ https://yhetil.org/orgmode \
		emacs-orgmode@gnu.org
	public-inbox-index orgmode

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.orgmode
	nntp://news.gmane.io/gmane.emacs.orgmode


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git