From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: helm-bibtex questions Date: Fri, 19 Jun 2015 13:56:29 +0300 Message-ID: References: <87ioamm7c2.fsf@posteo.de> <878ubgn9p9.fsf@posteo.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b33d7f0bca25b0518dcc61b Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5tyL-0006rQ-M7 for emacs-orgmode@gnu.org; Fri, 19 Jun 2015 06:56:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5tyJ-0007B1-Hl for emacs-orgmode@gnu.org; Fri, 19 Jun 2015 06:56:33 -0400 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]:35928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5tyJ-0007Aa-4g for emacs-orgmode@gnu.org; Fri, 19 Jun 2015 06:56:31 -0400 Received: by paceq1 with SMTP id eq1so58561053pac.3 for ; Fri, 19 Jun 2015 03:56:29 -0700 (PDT) In-Reply-To: <878ubgn9p9.fsf@posteo.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Titus von der Malsburg Cc: org mode --047d7b33d7f0bca25b0518dcc61b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi again Titus 2 quick questions that arose from using helm-bitex today extensively: how does one exclude in the search items? for example i want to search for xebar without keyword "progress" (I want to exclude in progress articles not published yet) is it possible to define default enter command in helm-bibtex ? best Z On Thu, Jun 18, 2015 at 9:38 PM, Titus von der Malsburg wrote: > > On 2015-06-18 Thu 04:32, Xebar Saram wrote: > > Hi Titus and thx so much for the answers! > > > > i will in the future use the github page to make requests. > > > > "The number of matches will be displayed in the mode line. " > > > > i see that now thx! :) the problem was(is) that its colored black on my > > black modline BG which makes it invisible ;-) i assume thats an helm > config > > i need to change > > > > > > "If you don=E2=80=99t want to type these search expressions, you could = create a > > command that invokes helm-bibtex with a default search expression and > that > > command could be bound to a keyboard shortcut." > > > > that would be prefect for me and a solution to my issue. would you mind > > giving an example of such a code chunk. unfortunately i dont know elisp > though > > as john recommended i will do my best this summer when the semester end= s > to > > try and pick it up :) > > Sure, here you go: > > #+BEGIN_SRC elisp > ;; Define helm-search with predefined search expression: > (defun helm-bibtex-my-publications () > "Search BibTeX entries authored by Xebar Saram." > (interactive) > (helm :sources '(helm-source-bibtex) > :full-frame t > :input "xebar saram" > :candidate-number-limit 500)) > > ;; Bind this search function to Ctrl-x p: > (global-set-key (kbd "C-x p") 'helm-bibtex-my-publications) > #+END_SRC > > > i will definitely use your tag system as you recommended, sounds perfec= t > > for me > > The tag system also comes in handy when generating publication lists for > CVs and web pages because BibTeX does not distinguish between conference > papers, posters, and talks. If you have tags for that, it=E2=80=99s rela= tively > easy to create separate sections for these types of publications using > biblatex or bib2bib and bibtex2html in the case of web pages. > > > thanks again for your kind help and the amazing app ;-) > > You are welcome. > > Titus > > > > > best > > > > Z > > > > > > > > On Wed, Jun 17, 2015 at 11:02 PM, Titus von der Malsburg < > malsburg@posteo.de > >> wrote: > > > >> > >> On 2015-06-17 Wed 11:08, Xebar Saram wrote: > >> > Hi Titus > >> > > >> > I have been exploring helm-bibtex a bit today and have some question= s. > >> btw > >> > is this the preferred way to make requests/ask questions or is > >> > github preferred? > >> > >> Helm-bibtex is not part of org (although it tries to work well with > >> org). So I=E2=80=99m not sure whether this list is the best place for > >> discussing it. For now the issue tracker on Github might be a better > >> option: > >> > >> https://github.com/tmalsburg/helm-bibtex/issues > >> > >> > in any case i was wondering a few things: > >> > > >> > 1. is it possible to have custom sorting? i want all views to sort b= y > >> > Author, year, month > >> > >> I prefer to see the entries in the (inverse) order in which they appea= r > >> in the BibTeX file. This way, recent additions show up at the > >> top. However, I agree that sorting would be useful (see issues #5 and > >> #21); it just doesn=E2=80=99t have high priority for me. Pull request= s welcome. > >> > >> > 2. i would really like a way to have stored smart groups (like the > jabref > >> > dynamic groups if your aware of that). that is for example create a > group > >> > that auto selects all publications i have (by my first/last name) an= d > >> shows > >> > the count (in numbers) of these publications. > >> > >> I=E2=80=99m not familiar with smart groups but it seems that all helm-= bibtex is > >> doing is giving you very flexible smart groups defined by your search > >> expressions. For example, if you want a list of your publications, yo= u > >> can simple enter your name. And if you want a list of your articles, > >> you can enter your name + =E2=80=9Carticle=E2=80=9D. If you want all = your articles from > >> 2010, enter your name + =E2=80=9Carticles 2010=E2=80=9D. And so on. = The number of > >> matches will be displayed in the mode line. If you don=E2=80=99t want= to type > >> these search expressions, you could create a command that invokes > >> helm-bibtex with a default search expression and that command could be > >> bound to a keyboard shortcut. > >> > >> > Another example is a group to keep track of all the papers im workin= g > on > >> or > >> > invloved with by matching keyword author and prep/*other key word > >> > >> I use two BibTeX fields to tag entries: =E2=80=9Ckeywords=E2=80=9D for= keywords > >> describing the content of the paper (as usual) and =E2=80=9Ctags=E2=80= =9D for meta > >> data. Values that I use in tags are =E2=80=9Cown=E2=80=9D, =E2=80=9Cm= anuscript=E2=80=9D, =E2=80=9Cposter=E2=80=9D, > >> =E2=80=9Ctalk=E2=80=9D, =E2=80=A6 So if I want a list of all articles = in progress, I search for > >> =E2=80=9Cown manuscript=E2=80=9D. Since the tags field is non-standar= d, it has to be > >> added to `helm-bibtex-additional-search-fields`. > >> > >> Another solution would be to use the pubstate field and to search for > >> your name and =E2=80=9Cforthcoming=E2=80=9D (add pubstate to > >> helm-bibtex-additional-search-fields for this to work). > >> > >> > 3.is it possible to ass an option to auto generate a bibkey for a > >> selected > >> > citation based on user criteria such as author(date)short-title? > >> > >> Maintaining the content of the BibTeX file not really in the scope of > >> helm-bibtex (I prefer to write my BibTeX entries by hand). Perhaps > >> org-ref or ebib can help here? Once you have a function that generate= s > >> a new key and inserts it in the BibTeX file, you can easily add it to > >> the list of actions in helm-bibtex. > >> > >> Hope that helps. > >> > >> Titus > >> > >> > thx so much in advance, you and john have given me confidence to > finally > >> > dive into the whole latex/bibteX world > >> > > >> > best > >> > > >> > Z > >> > >> > > --047d7b33d7f0bca25b0518dcc61b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi again Titus

2 quick questions that a= rose from using helm-bitex today extensively:

how does one exclude in the search items? for example i want to search for= xebar without keyword "progress" (I want to exclude in progress = articles not published yet)

is it possible to defi= ne default enter command in helm-bibtex ?

be= st

Z

On Thu, Jun 18, 2015 at 9:38 PM, Titus von der Mals= burg <malsburg@posteo.de> wrote:

On 2015-06-18 Thu 04:32, Xebar Saram wrote:
> Hi Titus and thx so much for the answers!
>
> i will in the future use the github page to make requests.
>
> "The number of matches will be displayed in the mode line. "=
>
> i see that now thx! :) the problem was(is) that its colored black on m= y
> black modline BG which makes it invisible ;-) i assume thats an helm c= onfig
> i need to change
>
>
> "If you don=E2=80=99t want to type these search expressions, you = could create a
> command that invokes helm-bibtex with a default search expression and = that
> command could be bound to a keyboard shortcut."
>
> that would be prefect for me and a solution to my issue. would you min= d
> giving an example of such a code chunk. unfortunately i dont know elis= p though
> as john recommended i will do my best this summer when the semester en= ds to
> try and pick it up :)

Sure, here you go:

#+BEGIN_SRC elisp
;; Define helm-search with predefined search expression:
(defun helm-bibtex-my-publications ()
=C2=A0 "Search BibTeX entries authored by Xebar Saram."
=C2=A0 (interactive)
=C2=A0 (helm :sources '(helm-source-bibtex)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 :full-frame t
=C2=A0 =C2=A0 =C2=A0 =C2=A0 :input "xebar saram"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 :candidate-number-limit 500))

;; Bind this search function to Ctrl-x p:
(global-set-key (kbd "C-x p") 'helm-bibtex-my-publications) #+END_SRC

> i will definitely use your tag system as you recommended, sounds perfe= ct
> for me

The tag system also comes in handy when generating publication lists= for
CVs and web pages because BibTeX does not distinguish between conference papers, posters, and talks.=C2=A0 If you have tags for that, it=E2=80=99s r= elatively
easy to create separate sections for these types of publications using
biblatex or bib2bib and bibtex2html in the case of web pages.

> thanks again for your kind help and the amazing app ;-)

You are welcome.

=C2=A0 Titus

>
> best
>
> Z
>
>
>
> On Wed, Jun 17, 2015 at 11:02 PM, Titus von der Malsburg <malsburg@posteo.de
>> wrote:
>
>>
>> On 2015-06-17 Wed 11:08, Xebar Saram wrote:
>> > Hi Titus
>> >
>> > I have been exploring helm-bibtex a bit today and have some q= uestions.
>> btw
>> > is this the preferred way to make requests/ask questions or i= s
>> > github preferred?
>>
>> Helm-bibtex is not part of org (although it tries to work well wit= h
>> org).=C2=A0 So I=E2=80=99m not sure whether this list is the best = place for
>> discussing it.=C2=A0 For now the issue tracker on Github might be = a better
>> option:
>>
>>=C2=A0 =C2=A0https://github.com/tmalsburg/hel= m-bibtex/issues
>>
>> > in any case i was wondering a few things:
>> >
>> > 1. is it possible to have custom sorting? i want all views to= sort by
>> > Author, year, month
>>
>> I prefer to see the entries in the (inverse) order in which they a= ppear
>> in the BibTeX file.=C2=A0 This way, recent additions show up at th= e
>> top.=C2=A0 However, I agree that sorting would be useful (see issu= es #5 and
>> #21); it just doesn=E2=80=99t have high priority for me.=C2=A0 Pul= l requests welcome.
>>
>> > 2. i would really like a way to have stored smart groups (lik= e the jabref
>> > dynamic groups if your aware of that). that is for example cr= eate a group
>> > that auto selects all publications i have (by my first/last n= ame) and
>> shows
>> > the count (in numbers) of these publications.
>>
>> I=E2=80=99m not familiar with smart groups but it seems that all h= elm-bibtex is
>> doing is giving you very flexible smart groups defined by your sea= rch
>> expressions.=C2=A0 For example, if you want a list of your publica= tions, you
>> can simple enter your name.=C2=A0 And if you want a list of your a= rticles,
>> you can enter your name + =E2=80=9Carticle=E2=80=9D.=C2=A0 If you = want all your articles from
>> 2010, enter your name + =E2=80=9Carticles 2010=E2=80=9D.=C2=A0 And= so on.=C2=A0 The number of
>> matches will be displayed in the mode line.=C2=A0 If you don=E2=80= =99t want to type
>> these search expressions, you could create a command that invokes<= br> >> helm-bibtex with a default search expression and that command coul= d be
>> bound to a keyboard shortcut.
>>
>> > Another example is a group to keep track of all the papers im= working on
>> or
>> > invloved with by matching keyword author and prep/*other key = word
>>
>> I use two BibTeX fields to tag entries: =E2=80=9Ckeywords=E2=80=9D= for keywords
>> describing the content of the paper (as usual) and =E2=80=9Ctags= =E2=80=9D for meta
>> data.=C2=A0 Values that I use in tags are =E2=80=9Cown=E2=80=9D, = =E2=80=9Cmanuscript=E2=80=9D, =E2=80=9Cposter=E2=80=9D,
>> =E2=80=9Ctalk=E2=80=9D, =E2=80=A6 So if I want a list of all artic= les in progress, I search for
>> =E2=80=9Cown manuscript=E2=80=9D.=C2=A0 Since the tags field is no= n-standard, it has to be
>> added to `helm-bibtex-additional-search-fields`.
>>
>> Another solution would be to use the pubstate field and to search = for
>> your name and =E2=80=9Cforthcoming=E2=80=9D (add pubstate to
>> helm-bibtex-additional-search-fields for this to work).
>>
>> > = 3.is it possible to ass an option to auto generate a bibkey for a
>> selected
>> > citation based on user criteria such as author(date)short-tit= le?
>>
>> Maintaining the content of the BibTeX file not really in the scope= of
>> helm-bibtex (I prefer to write my BibTeX entries by hand).=C2=A0 P= erhaps
>> org-ref or ebib can help here?=C2=A0 Once you have a function that= generates
>> a new key and inserts it in the BibTeX file, you can easily add it= to
>> the list of actions in helm-bibtex.
>>
>> Hope that helps.
>>
>>=C2=A0 =C2=A0Titus
>>
>> > thx so much in advance, you and john have given me confidence= to finally
>> > dive into the whole latex/bibteX world
>> >
>> > best
>> >
>> > Z
>>
>>


--047d7b33d7f0bca25b0518dcc61b--