From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id sId+CCmBuWTEhwAASxT56A (envelope-from ) for ; Thu, 20 Jul 2023 20:47:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YAxyCCmBuWTFOQAA9RJhRA (envelope-from ) for ; Thu, 20 Jul 2023 20:47:05 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 77A944A940 for ; Thu, 20 Jul 2023 20:47:04 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=XIuqiAqS; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689878825; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=W3IfPwfuIPa+Pl3yEFhha17jQnBy+JJDS6zi5Tjf9Xw=; b=Dk0j+hOwnEp5GFfZ1mmeVY7I2IiIgiGHgJzxvV5SO/UMFCCQemFke0+S6ipPVOuAMspymG q9qWmKU3XWzxKs2vD/5TFXeG8fshskKmh8zfTjOhS2FuFilCdwglD8ObcXD+QSLtCTz2mb AbuBTdwAvVD522ful1Dd+rA23hwBoVJxoM8JL1GeLsYAWohs4rUm6JLvLgCFzdEPy6Ifbe nSxTey/A5+ITU4RGVG3sZatgv2OwUeyeEhZu6x/P6/3ijSVLizFy0E01kafHZDCoYDLjG3 8h/DQP7fUH3qjd50DolRqMZxu1PD+iiAZHgepiTBoqw9GkqE//oQG38rfXUHjQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=XIuqiAqS; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689878825; a=rsa-sha256; cv=none; b=YYcR2XbWAJ4u1qX8SMhxWHmySWn9BAudLBThp8IBh7d5djZ762H2cFKAWBjDQK7/IK9Qbo V2rS1w+EkfeesQ/B6LBWg4Bb2A20GbPZWqKrFJT/kix/F5KJZU/gRyXqcC3rqDDxFvcW1S 9tY96oKfODnjRDT0HXctsFUBrAzG0SmZQ2v8NFj+18yNp1H9Dte5pdzvrkTrl7GrSTcmXx aTZSFzY04tTXEijor9vhsMIk2dL3Ou/qvkOIaQiQnBCBRqbnOab0OnytyBAeMpgss8RKtC fRDjupn3SfTx83w43pSMI+stGMsaN+1pGoDAPEIj6qYKPu66byN322EqA8s89g== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMYfB-0002Su-It; Thu, 20 Jul 2023 14:46:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMYfA-0002SV-7C for emacs-orgmode@gnu.org; Thu, 20 Jul 2023 14:46:08 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qMYf8-0003d4-3I for emacs-orgmode@gnu.org; Thu, 20 Jul 2023 14:46:07 -0400 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-3159d75606dso918185f8f.1 for ; Thu, 20 Jul 2023 11:46:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689878764; x=1690483564; h=from:content-language:subject:to:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=W3IfPwfuIPa+Pl3yEFhha17jQnBy+JJDS6zi5Tjf9Xw=; b=XIuqiAqSDcasaeeLt1ZeMXBs3fDXPu/Z/I2YYVDkdra0Gj2xsqTur/Nf+4wrBGnfMC U75qAPCpRwah4I3gHV5emFDHPv8/fvcd3gsI7nCqaaYIbrG+qhh9Oz3KSyPqHHQevxtE HT7z+yqydvVAqRS8WkC/8Lb124vHUVyLXdjKQy2UgnFxPDd2De1NTkvP5DW1jAb7RYVi 8UzJubUU+9fcW1izMEPjtPjjpZEOU/8eq9ACBrSCRibbn7Eh2TYRHwMs0N74W1v7n8mK /vq2HeRzSQKXsA1omsquwlp3nbYkrTbfB7TZUUPRLmqu6QQRpXWxLyuV5ezCK64UsiXD ZOjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689878764; x=1690483564; h=from:content-language:subject:to:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=W3IfPwfuIPa+Pl3yEFhha17jQnBy+JJDS6zi5Tjf9Xw=; b=FRPc6pXnY9not15ZZq4+20yO6qK6G85D/ETANK/efZ/MFhFHMR1YLQ1HyPE9U/uPrn 2NrfvYgOttIqD05GbybPOCMAyB7OxDoVBGbu5Q44mWl9iKQfoitHvJRovSMSRE0XdXen sRLU4Eujw3j+itgd6/7voh4AyTgSiLqmgBRZTqXTeJipHFHCcbfcAJs4IpB/VK3wvo49 mwfXKKLWiWjkvIz71XRWyewLtwZGhP2DsU9vlwpEX5KF0pQlv04r2/McThOZTw2dWbzB iMCG0kzIjLcCD3xvK3P7FMvRtKP75WiiPJ/kiBKTx9sfk0+SGmitxPF/OFO3KsDWe+V9 C3qg== X-Gm-Message-State: ABy/qLYlQfwY76VYR2UkpjYiHaDX98iUd/X0BXF+j1j6OeDhQAXKpeNG SUXn8bkc8gXdMuUAZfNz5wQ= X-Google-Smtp-Source: APBJJlH/lcEL1eXNVXq/Hy9EuN4OTdNlhGDIw9Y4JDodqrFOV6tlsHgRNSS7IhExQ9Vz3EZjkqa7xw== X-Received: by 2002:adf:f84d:0:b0:316:f24b:597a with SMTP id d13-20020adff84d000000b00316f24b597amr2600338wrq.46.1689878763957; Thu, 20 Jul 2023 11:46:03 -0700 (PDT) Received: from [192.168.0.97] (static-111-109-26-46.ipcom.comunitel.net. [46.26.109.111]) by smtp.gmail.com with ESMTPSA id q6-20020adff506000000b003141e629cb6sm2033749wro.101.2023.07.20.11.46.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Jul 2023 11:46:03 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------B7a6DvvQ0lAvVYCANeiRYU3g" Message-ID: Date: Thu, 20 Jul 2023 20:42:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 To: yantar92@posteo.net, Org-mode Subject: Re: org-bibtex manual Content-Language: en-GB From: Ypo Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=ypuntot@gmail.com; helo=mail-wr1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -5.53 X-Migadu-Queue-Id: 77A944A940 X-Migadu-Spam-Score: -5.53 X-Migadu-Scanner: mx0.migadu.com X-TUID: 7yITLswjwJcN This is a multi-part message in MIME format. --------------B7a6DvvQ0lAvVYCANeiRYU3g Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Ihor. Then, is it not possible to customize the entry generated with org-bibtex-create? Bests > >/#+begin_src emacs-lisp/ > >/(defun my-org-bibtex-headline-format (entry)/ > >/  "Custom function to generate the headline text for org-bibtex-write."/ > >/  (let* ((title (cdr (assoc :title entry)))/ > >/         (author (cdr (assoc :author entry))))/ > >/    (concat "Mi encabezado personalizado: " title " - " author)))/ > > > >/(setq org-bibtex-headline-format #'my-org-bibtex-headline-format)/ > >/#+end_src/ > > This is correct, but this customization only works in > `org-bibtex-write', which works together with `org-bibtex-read-buffer' / > `org-bibtex-read-file'. > > `org-bibtex-create' hard-codes heading to be the same with BiBTeX :title > field. > > Yes, org-bibtex is not very polished. --------------B7a6DvvQ0lAvVYCANeiRYU3g Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hi Ihor.

Then, is it not possible to customize the entry generated with org-bibtex-create?

Bests


> #+begin_src emacs-lisp
> (defun my-org-bibtex-headline-format (entry)
>    "Custom function to generate the headline text for org-bibtex-write."
>    (let* ((title (cdr (assoc :title entry)))
>           (author (cdr (assoc :author entry))))
>      (concat "Mi encabezado personalizado: " title " - " author)))
>
> (setq org-bibtex-headline-format #'my-org-bibtex-headline-format)
> #+end_src

This is correct, but this customization only works in
`org-bibtex-write', which works together with `org-bibtex-read-buffer' /
`org-bibtex-read-file'.

`org-bibtex-create' hard-codes heading to be the same with BiBTeX :title
field.

Yes, org-bibtex is not very polished.

--------------B7a6DvvQ0lAvVYCANeiRYU3g--