From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Eric Brown <brown@fastmail.com>
Cc: "Emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: html-email in org-mode
Date: Sun, 30 Oct 2016 17:45:21 -0400 [thread overview]
Message-ID: <m2mvhlo6j2.fsf@Johns-MacBook-Air.local> (raw)
In-Reply-To: <m21syxoqgw.fsf@fastmail.com>
Do you mean monospace in the whole html message, e.g. something like Courier?
Or just in a table? I do not think you can control the font in plain
text emails.
You can set the font in the td elements of a table like this (I used
cursive because it was easy to see.
#+BEGIN_SRC emacs-lisp
(defun italicize-table (data backend info)
(with-temp-buffer
(insert data)
(goto-char (point-min))
(while (re-search-forward "<td" nil t)
(replace-match "<td style=\"font-family:cursive;\""))
(message"got %s" (buffer-string))
(buffer-string)))
(add-to-list 'org-export-filter-table-functions 'italicize-table)
#+END_SRC
After you run that, the tables in html have italicized/cursive elements
in them. And probably all other exports to html too ;)
Eric Brown writes:
> John Kitchin <jkitchin@andrew.cmu.edu> writes:
>
>> 1.1.3 Tables
>>
>> Table 1: A table for you.
>> x y
>> 1 2
>>
>
> Hi John,
>
> I haven't (yet) found the email thread that you had alluded to, but I
> think this post is awesome. Works well for me!
>
> One suggestion/thought:
>
> I would like to do is force monospace font in these messages, since the
> recipients I typically send to will have variable width fonts, and
> tables and the like tend to get messed up.
>
> How might this be done?
>
> Best regards,
> Eric
--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
next prev parent reply other threads:[~2016-10-30 21:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-29 18:37 html-email in org-mode John Kitchin
2016-10-30 14:34 ` Eric Brown
2016-10-30 15:09 ` Marcin Borkowski
2016-10-30 21:45 ` John Kitchin [this message]
2016-11-01 11:58 ` Eric Brown
2016-11-01 19:25 ` Alan Schmitt
2016-11-05 0:13 ` Matt Price
2016-11-07 2:55 ` John Kitchin
2016-11-07 15:37 ` Joseph Vidal-Rosset
-- strict thread matches above, loose matches on Subject: below --
2016-10-30 15:44 tbanelwebmin
2016-11-01 16:10 (no subject) John Kitchin
2016-11-06 0:27 ` html-email in org-mode Eric Brown
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2mvhlo6j2.fsf@Johns-MacBook-Air.local \
--to=jkitchin@andrew.cmu.edu \
--cc=brown@fastmail.com \
--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 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.