emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-orgmode@gnu.org
Subject: Re: Using org-mode for recipes (i.e. cooking)
Date: Tue, 26 Jul 2011 19:30:52 -0700	[thread overview]
Message-ID: <87tya8v4ir.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <877h7450fh.fsf@gmail.com>

On Tue, Jul 26 2011, Eric Schulte wrote:

>>> First, I use org-mode to keep my recipes. Here is the format I use:
>>
>> [...]
>>
>>> and so on. I have some methods to convert units back & forth from
>>> metric & narrow a recipe to ingredients only, though I think this is
>>> probably not really useful. I would be happy to provide this if you
>>> like.
>>
>> Sorry this is a little old, but if you're still willing to provide some
>> functions, I'd like to see them! I'm using org mode to keep track of
>> baking recipes, which are traditionally recorded as ratios of ingredient
>> weights, which are then used to calculate an actual recipe based on how
>> much dough you want. Any food for thought regarding programmatic
>> manipulation of properties would be very welcome…
>>
>
> +1
>
> I also use Org-mode to hold recipes.  Currently I just hold the
> ingredients in a standard list with informally specified amounts, but I
> would be interested to see other approaches and any functions for
> automatic recipe manipulation.
>
> Incidentally I also do some baking, and while I don't currently measure
> my ingredients by weight I would be interested to see (or help
> brainstorm) a mechanism for reifying percentages into actual weights.

Baking by weights is definitely the way to go! Much more accurate. And
since ounces don't lend themselves to arithmetic, I generally go with
grams.

The bakers' percentage[1] says that flour is 100%, and everything else
is a relative percentage of that, so the total dough comes out something
like 130%. So you have a recipe like this:

** Basic Sourdough
   :PROPERTIES:
   :starter: 0.494
   :flour: 1
   :salt: 0.025
   :water: 0.642
   :END:

Then I suppose it wouldn't be too much work to write a function that you
call on that headline, it asks you for a total dough weight, and then
calculates specific gram weights for each ingredient. I'll look into
doing something like this in the next few days.

In the meantime, here's the guts of what I've been using to do a similar
calculation, though it wants you to know weights of pure flour and
starter (and hydration of the two) ahead of time, and has salt hardcoded
at 2%.

#+begin_src emacs-lisp
(defun my-c-s-inner (flour starter hydration starter-hydration)
  (let* ((starter-flour (* starter (/ starter-hydration 2)))
	 (full-flour (+ flour (starter-flour)))
	 (water (- (* full-flour hydration) (- starter starter-flour)))
	 (salt (* full-flour 0.02)))
    (values water salt)))
#+end_src

I don't know enough about custom exporting to make a 3x5 card out of
these things, though I suppose LaTeX could do it fairly well…

Eric

Footnotes:

[1] http://en.wikipedia.org/wiki/Baker_percentage

      parent reply	other threads:[~2011-07-27  2:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-24 11:47 Le Wang
2011-03-24 20:52 ` Christian Moe
2011-03-24 21:56   ` Christian Moe
2011-03-25 19:25     ` brian powell
2011-03-30  6:30 ` Erik Hetzner
2011-07-26 18:01   ` Eric Abrahamsen
2011-07-26 19:03     ` Eric Schulte
2011-07-26 19:57       ` John Hendy
2011-07-27  5:00         ` Erik Hetzner
2011-07-27 12:50           ` Bastien
2011-07-27  2:30       ` Eric Abrahamsen [this message]

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tya8v4ir.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: Using org-mode for recipes (i.e. cooking)' \
    /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

Code repositories for project(s) associated with this 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).