From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alin Soare Subject: Re: value of properties Date: Wed, 10 Nov 2010 00:00:40 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1084875069==" Return-path: Received: from [140.186.70.92] (port=54195 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFwFA-00080i-91 for emacs-orgmode@gnu.org; Tue, 09 Nov 2010 17:00:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PFwF8-0001vm-VU for emacs-orgmode@gnu.org; Tue, 09 Nov 2010 17:00:44 -0500 Received: from mail-gy0-f169.google.com ([209.85.160.169]:63770) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PFwF8-0001vY-Rq for emacs-orgmode@gnu.org; Tue, 09 Nov 2010 17:00:42 -0500 Received: by gyd8 with SMTP id 8so5226607gyd.0 for ; Tue, 09 Nov 2010 14:00:41 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============1084875069== Content-Type: multipart/alternative; boundary=000e0ce071fc24ccd70494a5df36 --000e0ce071fc24ccd70494a5df36 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi again, I write you again, perhaps this time somebody can help me solve the problem= . Suppose I have a list like this * TODO v=C3=AAtements [0/0] :total: :PROPERTIES: :total: 0 :END: - pour week end - [ ] X 30 - [X] Y 80 - [ ] Z 100 - [ ] W 20 - pour les loisirs - [X] X 30 - [ ] Y 80 - [ ] Z 10 - pour la maison: - [ ] pantoufle 25 I want to add all values of the fields that are crossed and keep the sum into the value of the property 'total'. Is it possible to do it using org mode ? I looked over many documents, but not found. Other problem, suppose I have this table inside the same file. | | quoi | prix | |---+-------+---------| | | X | 500 | | | Y | 700 | | | Z | 100 | | | W | 100 | | | T | 100 | |---+-------+---------| | # | Total | 1500 | | ^ | | montant | #+TBLFM: $montant=3D'(+ @I..@II);N I wish to sum the value of the variable $montant with the value of the property 'total' from the other part (from the list), and use the result in other computations. Are these things possible using org mode ? I looked today over some examples of babel language, but I did not find wha= t I need. Thanks in advance for any help. Alin Soare. 2010/11/7 Alin Soare > Hi, > > I have been using org mode for a few days and I am impressed. > > I have followed a few tutorials and videos, however I want to solve a > problem and I did not find how can I do it. > > I have 2 tables , and every such table has a variable $sum, that is the s= um > of a column. Because I am lisp engineer, I used the formula '(+ @I..@II);= N > to compute it, I prefer lisp to calc. > > My problems are > > 1: to export the value of the $sum from one table, and make global > computations using it > 2: to compute the value of some property in function of such variables, > defined inside tables. > > Afterwards, can I compute the value of a property in function of the valu= e > of other properties ? > > Probably my question is stupid, I do not know, because I did not understa= nd > yet the principles of properties of org mode. > > > --000e0ce071fc24ccd70494a5df36 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi again,

I write you again, perhaps this time somebody can help= me solve the problem.

Suppose I have a list like this


* = TODO v=C3=AAtements [0/0]=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 :total:
=C2=A0 :PROPERTIES:
=C2=A0 :total:=C2=A0=C2=A0=C2=A0=C2=A0 0
=C2=A0 :END:

=C2=A0 - po= ur week end
=C2=A0=C2=A0 - [ ] X =C2=A0=C2=A0 30
=C2=A0=C2=A0 - [X] Y= =C2=A0=C2=A0=C2=A0 80
=C2=A0=C2=A0 - [ ] Z=C2=A0=C2=A0=C2=A0 100
=C2= =A0=C2=A0 - [ ] W =C2=A0 20
=C2=A0 - pour les loisirs
=C2=A0=C2=A0 - = [X] X =C2=A0 30
=C2=A0=C2=A0 - [ ] Y=C2=A0 80
=C2=A0=C2=A0 - [ ] Z = =C2=A0 10
=C2=A0 - pour la maison:
=C2=A0=C2=A0 - [ ] pantoufle 25

I want to add all values of the fiel= ds that are crossed and keep the sum into the value of the property 'to= tal'. Is it possible to do it using org mode ? I looked over many docum= ents, but not found.

Other problem, suppose I have this table inside the same file.

<= br>=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0 | quoi=C2=A0 |=C2=A0=C2=A0=C2=A0 prix |=
=C2=A0=C2=A0=C2=A0 |---+-------+---------|
=C2=A0=C2=A0=C2=A0 |=C2= =A0=C2=A0 | X=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0 500 |
= =C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0 | Y=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0= =C2=A0=C2=A0 700 |
=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0 | Z=C2=A0=C2=A0=C2= =A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0 100 |
=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0 | W=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0= =C2=A0=C2=A0 100 |
=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0 | T=C2=A0=C2=A0=C2= =A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0 100 |
=C2=A0=C2=A0=C2=A0 |---+------= -+---------|
=C2=A0=C2=A0=C2=A0 | # | Total |=C2=A0=C2=A0=C2=A0 1500 |=C2=A0=C2=A0=C2=A0 | ^ |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | montant |<= br>=C2=A0 #+TBLFM: $montant=3D'(+ @I..@II);N

I wish to sum the v= alue of the variable $montant with the value of the property 'total'= ; from the other part (from the list), and use the result in other computat= ions.

Are these things possible using org mode ?

I looked today over s= ome examples of babel language, but I did not find what I need.


=
Thanks in advance for any help.


Alin Soare.




2010/11/7 Alin Soare <<= a href=3D"mailto:as1789@gmail.com">as1789@gmail.com>
Hi,

I have been using org mode for a few days and I am impressed.
I have followed a few tutorials and videos, however I want to solve a = problem and I did not find how can I do it.

I have 2 tables , and ev= ery such table has a variable $sum, that is the sum of a column. Because I = am lisp engineer, I used the formula '(+ @I..@II);N to compute it, I pr= efer lisp to calc.

My problems are

1: to export the value of the $sum from one tab= le, and make global computations using it
2: to compute the value of som= e property in function of such variables, defined inside tables.

Afterwards, can I compute the value of a property in function of the value = of other properties ?

Probably my question is stupid, I do not know,= because I did not understand yet the principles of properties of org mode.=



--000e0ce071fc24ccd70494a5df36-- --===============1084875069== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1084875069==--