From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Tagging Date: Tue, 1 Mar 2011 10:03:38 -0600 Message-ID: References: <20110301122201.GA5239@Adorno.projectStud> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0517740816==" Return-path: Received: from [140.186.70.92] (port=35694 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuS34-0004by-5x for emacs-orgmode@gnu.org; Tue, 01 Mar 2011 11:03:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuS32-0004yq-DO for emacs-orgmode@gnu.org; Tue, 01 Mar 2011 11:03:42 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:64119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuS31-0004yg-GM for emacs-orgmode@gnu.org; Tue, 01 Mar 2011 11:03:40 -0500 Received: by bwz17 with SMTP id 17so5536521bwz.0 for ; Tue, 01 Mar 2011 08:03:38 -0800 (PST) In-Reply-To: <20110301122201.GA5239@Adorno.projectStud> 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: Florian Blank Cc: emacs-orgmode@gnu.org --===============0517740816== Content-Type: multipart/alternative; boundary=0015175884e078b794049d6df06e --0015175884e078b794049d6df06e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, On Tue, Mar 1, 2011 at 6:24 AM, Florian Blank < blank@informatik.uni-muenchen.de> wrote: > Hallo, > > I'm quite new in org-mode. So I'm sorry to ask maybe an easy question, i > absolutly do not find the solution for my problem. Even if I'm thinking, > that org-mode ist the most sympatic and efficent way to work for me. But = to > the problem. > > I want to use org-mode to organize excerpts. So my biggest Problem at the > moment si, > > a) how to sum up multiple files und subfolders in an (root-)folder for a > search on the tags, (and produce an file with an output) > > While it might not be the best looking output, you can use agenda for something like this. I don't know if you have familiarity with agenda or not, so assuming you don't, the process would be like so: - add your various files to your agenda list (visit the file and do C-c [) covered here: http://orgmode.org/manual/Agenda-files.html#Agenda-files - run agenda with M-x org-agenda or add this to .emacs ,----- | global-set-key "\C-ca" 'org-agenda) `----- and then use C-c a. - choose the "m" option for 'Match a tags/prop/todo query' - type in your tag and observe the output. When I do this and insert a tag = I know exists all over, the resulting agenda view produces a list like so: ,----- | Filename: Headline-where-tag-occurs :tag-I-searched: | Filename: Headline-where-tag-occurs2 :tag-I-searched: | ... `----- - you can then write this list using C-x C-w to a file. Others may be able to comment on more advanced exporting; I haven't used this feature yet (other than knowing it exists) -- there may be a way to export to another org file. Otherwise, you could run some sed commands and insert stars at th= e beginning of each list or change ":" into ": |" to make an org table from the output. I think once you have your exported list, you should be able to do something with it to make it usable, hopefully. > b) how to extract the used tags of an given root-folder to a list > (buffer, file) > > I'll let someone else handle this... I was thinking 'grep ':.*:' files' but that isn't working so hot... > By the way: Not realy a big question to me at the moment, but I was > wondering if der is any possibillity to handle bibtex files (*.bib) > like > > @BOOK{Metaphysik_Rapp_1996, > title =3D {Aristoteles Metaphysik, Die Substanzbu=CC=88cher {(Z,} E=CC= =84, {TH)}}, > publisher =3D {Akademie Verl.}, > year =3D {1996}, > author =3D {Christof Rapp}, > address =3D {Berlin}, > isbn =3D {9783050028651}, > keywords =3D {Metaphysik, Aristoteles, Substanz, ousia}, > lccn =3D {0000}, > owner =3D {schlaubi}, > } > > For example, that it ist possible to include in an tag-search the values = of > "keywords =3D {xxx}" of an given bibtex-file (database-file). > > Thank you for your time, > > Florian Blank. > > _______________________________________________ > 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 > --0015175884e078b794049d6df06e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi,

On Tue, Mar 1, 2011 at 6:24 AM, Flori= an Blank <blank@informatik.uni-muenchen.de> wrote:
Hallo,

I'm quite new in org-mode. So I'm sorry to ask maybe an easy questi= on, i absolutly do not find the solution for my problem. Even if I'm th= inking, that org-mode ist the most sympatic and efficent way to work for me= . But to the problem.

I want to use org-mode to organize excerpts. So my biggest Problem at the m= oment si,

a) how to sum up multiple files und subfolders in an (root-)folder for a se= arch on the tags, (and produce an file with an output)


While it might not be the best looking= output, you can use agenda for something like this. I don't know if yo= u have familiarity with agenda or not, so assuming you don't, the proce= ss would be like so:
- add your various files to your agenda list (visit the file and do C-= c [) covered here:=C2=A0http://orgmode.org/manual/Agenda-files.html#Agenda-files<= /a>

- run agenda with M-x org-agenda or add this to .emacs<= /div>
,-----
| global-set-key "\C-ca" 'org-agen= da)
`-----
and then use C-c a.

- choose the "m" option for 'Match a tags/prop/todo quer= y'

- type in your tag and observe the output. = When I do this and insert a tag I know exists all over, the resulting agend= a view produces a list like so:
,-----
| Filename: =C2=A0Headline-where-tag-occurs =C2=A0 :t= ag-I-searched:
|=C2=A0Filename: =C2=A0Headline-where-tag-occurs2 = =C2=A0 :tag-I-searched:
| ...
`-----

- you can then write this l= ist using C-x C-w to a file. Others may be able to comment on more advanced= exporting; I haven't used this feature yet (other than knowing it exis= ts) -- there may be a way to export to another org file. Otherwise, you cou= ld run some sed commands and insert stars at the beginning of each list or = change ":" into ": |" to make an org table from the out= put. I think once you have your exported list, you should be able to do som= ething with it to make it usable, hopefully.
=C2=A0
b) how to extract the used tags of an given root-folder to a list
(buffer, file)


I'll let someone else handle this.= .. I was thinking 'grep ':.*:' files' but that isn't wo= rking so hot...
=C2=A0
By the way: Not realy a big question to me at the moment, but I was wonderi= ng if der is any possibillity to handle bibtex files (*.bib)
like

@BOOK{Metaphysik_Rapp_1996,
=C2=A0title =3D {Aristoteles Metaphysik, Die Substanzbu=CC=88cher {(Z,} E= =CC=84, {TH)}},
=C2=A0publisher =3D {Akademie Verl.},
=C2=A0year =3D {1996},
=C2=A0author =3D {Christof Rapp},
=C2=A0address =3D {Berlin},
=C2=A0isbn =3D {9783050028651},
=C2=A0keywords =3D {Metaphysik, Aristoteles, Substanz, ousia},
=C2=A0lccn =3D {0000},
=C2=A0owner =3D {schlaubi},
}

For example, that it ist possible to include in an tag-search the values of=
=C2=A0"keywords =3D {xxx}" of an given bibtex-file (database-file= ).

Thank you for your time,

Florian Blank.

_______________________________________________
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

--0015175884e078b794049d6df06e-- --===============0517740816== 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 --===============0517740816==--