From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: capitalization of titles in org-ref Date: Sat, 03 Dec 2016 15:35:17 -0500 Message-ID: References: <86inr25s5q.fsf@georgotto.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDH1q-0001Dj-5d for emacs-orgmode@gnu.org; Sat, 03 Dec 2016 15:35:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cDH1m-0007pa-V2 for emacs-orgmode@gnu.org; Sat, 03 Dec 2016 15:35:26 -0500 Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]:34147) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cDH1m-0007np-Ni for emacs-orgmode@gnu.org; Sat, 03 Dec 2016 15:35:22 -0500 Received: by mail-qk0-x229.google.com with SMTP id q130so124250603qke.1 for ; Sat, 03 Dec 2016 12:35:22 -0800 (PST) In-reply-to: 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" To: "Georg W. Otto" Cc: emacs-orgmode@gnu.org you could try commenting out orcb-key too. it should be using the bibtex-autokey settings though. Georg W. Otto writes: > John Kitchin writes: > >> That happens because of the function org-ref-title-case-article in the >> variable org-ref-clean-bibtex-entry-hook. >> >> Just set org-ref-clean-bibtex-entry-hook to have what you want in it >> in your init files to prevent the title casing from occurring. >> > > Thanks a lot for your answer. Unfortunately I am not very elisp-savy, so > excuse me if I did something silly. I set > org-ref-clean-bibtex-entry-hook in my init file and commented out > org-ref-title-case-article like this: > > (setq bibtex-dialect 'biblatex) > > (setq org-ref-clean-bibtex-entry-hook > '(orcb-key-comma > org-ref-replace-nonascii > orcb-& > orcb-% > ;; org-ref-title-case-article > orcb-clean-year > orcb-key > orcb-clean-doi > orcb-clean-pages > org-ref-sort-bibtex-entry)) > > (setq bibtex-align-at-equal-sign t > bibtex-autokey-name-year-separator "" > bibtex-autokey-year-title-separator "" > bibtex-autokey-titleword-separator "" > bibtex-autokey-titleword-first-ignore '("the" "a" "if" "and" "an") > bibtex-autokey-titleword-length 30 > bibtex-autokey-titlewords 3 > bibtex-autokey-titleword-case-convert-function (quote identity) > bibtex-autokey-name-case-convert-function (quote capitalize) > bibtex-autokey-year-length 4 > ) > > As intended, the title words do not get capitalized, but now the bibtex > key only contains . Instead I need the > first three title words, in order to stay compatible with my existing > bibtex library. Any idea? > > Cheers, > > Georg -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu