emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Using org-mode for recipes (i.e. cooking)


From: Eric Abrahamsen
Subject: Re: [O] Using org-mode for recipes (i.e. cooking)
Date: Tue, 26 Jul 2011 19:30:52 -0700
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]