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 " 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
Hello all,
I've noticed some unusual behavior with repeating entries when the
system-time-locale variable is set. Specifically:
It is Sunday, today, October 30th. I did not mark this task, which is
a habit, yesterday.
-- If I have (setq system-time-locale "hu_HU.utf8"), Hungarian, then
marking this task DONE
* TODO Anki basic reviews :habit:study:
SCHEDULED: <2016-10-29 szo .+1d>
vbecomesv
* TODO Anki basic reviews :habit:study:
SCHEDULED: <2016-10-30 v .+1d>
Which is not correct. I marked it DONE today, so it should repeat tomorrow.
-- If I have (setq system-time-locale "es_MX.utf8"), Mexican Spanish,
then doing the same thing:
* TODO Anki basic reviews :habit:study:
SCHEDULED: <2016-10-29 szo .+1d>
vbecomesv
* TODO Anki basic reviews :habit:study:
SCHEDULED: <2016-10-31 lun .+1d>
Which *is* correct. I have tried this with an unset
system-time-locale, and with it set to fa_IR, es_MX, en_GB, and hu_HU.
So far, hu_HU is the only one that behaves incorrectly. Note that it
doesn't seem to matter which language the day-of-the-week abbreviation
is already in, since every time I tried this, I reverted the file back
to the Hungarian line. Changing the date to <2016-10-29 Sat .+1d>
before marking it also had no effect.
Of course, I could just set the date locale to "C" or unset it, but
there's still a bug somewhere.
I am running the 1399f5 revision now, but I can reproduce this
behavior all the way back until version 7,
Cheers,
Bruce V C
Nicolas Goaziou writes:
> Hello,
>
> Rasmus Pank Roulund writes:
>
>> Nicolas Goaziou writes:
>
>> It’s not quite that complicated in my patch/WIP. You specify an ordering
>> function. E.g. the plain list is:
>>
>> (defun org-publish-org-sitemap-as-list (files project-plist)
>>"Insert FILES as simple list separated by newlines.
>> PROJECT-PLIST holds the project information."
>>(mapconcat
>> (lambda (file) (org-publish-format-file-entry
>>org-publish-sitemap-file-entry-format
>>file project-plist))
>> files "\n"))
>>
>> If you don’t have the full flexibility of a function I guess someone will
>> always run into trouble eventually...
>
> I think one mistake here is to conflate style and formatting. By doing
> so, defining a new style implies that one has to handle sorting,
> directories (or lack thereof)... and also Org syntax.
>
> I suggest to keep style as a mean to control how the file names are
> provided, and separate it from the formatting process, handled
> by :sitemap-function and :sitemap-format-entry or some such.
>
> We might, however, by this definition, merge sorting and style together
> (e.g., tree-date-ascending list-name-descending).
>
>>> I suggest to let :sitemap-function operate on the lists of files
>>> included in the sitemap (i.e., the list of files in the project),
>>> already ordered, and formatted according to
>>> `org-publish-sitemap-file-entry-format'.
>>
>> Isn’t that’s what my patch does?
>
> More or less, but my proposal is slightly different. E.g., I suggest
> a different data type for the arguments.
>
> OTOH, your patch does other things orthogonal to my proposal (e.g.
> preamble and postambles for sitemaps...).
>
>> I like that, but AFAIK the backend is not known at the time the sitemap is
>> generated. And it might not be deducible from the publishing
>> function.
>
> You might have misread my proposal.
>
> I'm suggesting to leave it up to the user. Whenever they define a new
> sitemap function and need to implement a formatting function, they can
> provide the name of the back-end they want to use. This information is
> known to the user.
>
> Conversely, we do not provide any ready-to-use keyword (so, no format
> string with placeholders) because, as you write, we cannot predict the
> back-end with certainty. Instead, we merely implement a generic getter
> function (which you mostly implemented in your patch set).
I pushed an implementation of that idea in wip-sitemap branch, if anyone
wants to test it.
For example, setting :sitemap-function property to
(lambda (title list)
(concat "#+TITLE: " title "\n\n"
(org-list-to-subtree list)))
mostly achieves what the OP wants. Also, setting :sitemap-format-entry
to
(lambda (entry root style)
(if (directory-name-p entry)
(file-name-nondirectory (directory-file-name entry))
(format
"[[file:%s][%s]]%s"
(file-relative-name entry root)
(org-publish-find-title entry)
(let ((subtitle
(org-element-interpret-data
(org-publish-find-property entry :subtitle 'latex
(if (equal subtitle "") "" (format " (%s)" subtitle))
will add a subtitle to the entry, when available, upon publishing to
LaTeX.
Feedback weclome.
Regards,
* Awesome
This is awesome!
* Simple
I followed your instructions, and in 2 minutes I was able to send a
/1st/ mail from Org Mode
* Thanks
Thanks John for showing that.
On 2016-10-30, at 15:34, Eric Brown wrote:
> 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.
+20! (that is, +243290200817664)
I'm not very interested in sending HTML emails, but this would be
AWESOME. I sometimes send ASCII-art-ish tables (like Org-mode ones, or
Ledger reports) by email, and opening them in variable-width font is
rather messy indeed.
TIA,
--
Marcin Borkowski
John Kitchin 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
11 matches
Mail list logo
|