From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 092XCEsMeWXiJQEAkFu2QA (envelope-from ) for ; Wed, 13 Dec 2023 02:43:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id SOeNAUsMeWX8NQAA62LTzQ (envelope-from ) for ; Wed, 13 Dec 2023 02:43:39 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=JcKmGtz1; 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=pobox.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702431819; 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=6TC5kFkT2JWOuJsCSRQM2y28T1x6g8y+R/pvV1sm2eo=; b=ZBZPGn+oXlluJs3TK1kALiJfVMgsR3YlGaEU7w+jW3j8WGaOS0/0dOfSkOJANb7GO09jqW PuFPDsoBXETsfh8yZ0QG1oVEi7ZUyUGMKDIh0vr5MHfq5uFMgb3Ao9rac7or2vGr8GheOg Lm6k5HJGuxvSX1poSn5flWyyKPHLo4ajdeE3F/Tn6+RslnazpEqDucnN4K7HqEbiQ5nrCX xJ7nYK8bzaYuXFXhcWwfTy777pQczbawC9sB8TTJfVEn3cavse1rWLc3ud6s0HhgXPdmP9 m7vWdUzi++i9kpjPJwIgzjRMqq244TtLgeVf/YNd7MQOK7EdEtV9bU0ogIbyFw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702431819; a=rsa-sha256; cv=none; b=i+bbzAeBF1gBmIeOy655P5KeEqHVLEGW6tZvbTT0Bvy08X5RiNb7FYNVFKUbl9B1DV/XFt EzNQrAtDZxNmnxKlPIrpVcHuzT4ZwWgi2cdXnnEJPndGbycgetRthS207Z4rr+qXpjCXYn vykNErWdz0aLOoc3Ct3pDdLgEu9Zv0lbrQ2BJWdAj+sVsOqJ8AHgQSxIcg3mgW1hEmuaNE ouhzMoV3WQeHfwtHJ5U+7orDnENvzKYxrxgYS/qv0qjmK/8De4hTbbQCaKt5Lb3OHMgWLB xzqjXHuOJSCGSh8nFCwGlMWv54BWwszyvnX848QGCbMyC0RfiWIj3nex/lgEmg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=JcKmGtz1; 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=pobox.com 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 27A6B1374F for ; Wed, 13 Dec 2023 02:43:38 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDEH0-0006Ix-P1; Tue, 12 Dec 2023 20:42:54 -0500 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 1rDEGz-0006Im-Fz for emacs-orgmode@gnu.org; Tue, 12 Dec 2023 20:42:53 -0500 Received: from pb-smtp2.pobox.com ([64.147.108.71]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rDEGx-0003mu-2B for emacs-orgmode@gnu.org; Tue, 12 Dec 2023 20:42:52 -0500 Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 2A4E31C1E7D for ; Tue, 12 Dec 2023 20:42:48 -0500 (EST) (envelope-from wtd@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=date:from :to:subject:message-id:mime-version:content-type; s=sasl; bh=F1A OKd0x1uBoU4n2ri67GG8NDMI1pKfo5i9PFjh/q/0=; b=JcKmGtz1+ZJJdvagWXU Lttz+7q2TSr92j+i2JmdulRItmZ33itMUMwpvnd68/R8BeEadhPDkTNRwGXn4VDN tnYr7Fofb9oS4T4Vuu3EfvEq4f0eQCOEzrZLBb6F2YIPzOlch3MiypwrfN0yYDg+ WqVz5WWeWi7f+WvXylMOvmd4= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 221411C1E7C for ; Tue, 12 Dec 2023 20:42:48 -0500 (EST) (envelope-from wtd@pobox.com) Received: from shell3.miskatonic.org (unknown [199.103.62.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 933711C1E7B for ; Tue, 12 Dec 2023 20:42:47 -0500 (EST) (envelope-from wtd@pobox.com) Received: by shell3.miskatonic.org (Postfix, from userid 1000) id 75CB512066F; Tue, 12 Dec 2023 20:42:46 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by shell3.miskatonic.org (Postfix) with ESMTP id 720D9120562 for ; Tue, 12 Dec 2023 20:42:46 -0500 (EST) Date: Tue, 12 Dec 2023 20:42:46 -0500 (EST) From: William Denton X-X-Sender: wtd@shell3.miskatonic.org To: emacs-orgmode@gnu.org Subject: Citations: strip braces {} in titles in bibliographies in basic style? Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="1741096510-749564289-1702431766=:54828" X-Pobox-Relay-ID: EB2395C4-9958-11EE-826E-25B3960A682E-56320186!pb-smtp2.pobox.com Received-SPF: pass client-ip=64.147.108.71; envelope-from=wtd@pobox.com; helo=pb-smtp2.pobox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, 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-Migadu-Spam-Score: -1.71 X-Spam-Score: -1.71 X-Migadu-Queue-Id: 27A6B1374F X-Migadu-Scanner: mx11.migadu.com X-TUID: RormoGs9VFrg This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1741096510-749564289-1702431766=:54828 Content-Type: text/plain; format=flowed; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Let's say we have a file Basic.bib, like so, with one or two pairs of bra= ces=20 around words that need special case preservation: @book{friends, title =3D {{LaTeX} and Friends}, author =3D {van Dongen, M.R.C.}, date =3D {2012}, location =3D {Berlin}, publisher =3D {Springer}, doi =3D {10.1007/978-3-642-23816-1}, isbn =3D {9783642238161} } @book{lispandc, title =3D {Lisp and {C}}, author =3D {Example, Example}, publisher =3D {Example}, date =3D {2023} } Either one or two braces works and could well be used. The Zotero extens= ion=20 Better Bibtex has a FAQ explaining why it uses two by default: "because t= he=20 Bib(La)TeX case protection rules are incredibly convoluted."=C2=B9 We also have an Org file (where "/n" means no citation but the work=20 stills goes in the bibliography; note that the basic citation style is se= t): # --------- #+bibliography: Basic.bib #+cite_export: basic [cite/n:@friends] [cite/n:@lispandc] #+print_bibliography: # ---------- Exporting to text (C-c C-e t A) gives this: # ---------- Example, Example (2023). /Lisp and {C}/, Example. van Dongen, M.R.C. (2012). /{{LaTeX}} and Friends/, Springer. # ---------- The braces are there. The're also visible in the HTML and ODT exports. = In=20 LaTeX, in this example, they're exported but ultimately invisible because= of how=20 LaTeX handles "\textit{Lisp and {C}}". Should they be stripped? I suggest they should. The basic style is very basic and doesn't do anything fancy in=20 bibliographies---just some italics on titles, which it's showing in the t= ext=20 export with slashes, and does nicely in the others---but I wonder if it s= hould=20 remove the braces. They are used to preserve case in titles, but the bas= ic=20 exporter doesn't change case. Passing the braces through means people wi= ll have=20 to edit them out in every basic export. Bill =C2=B9 https://retorque.re/zotero-better-bibtex/support/faq/#why-the-doub= le-braces -- William Denton https://www.miskatonic.org/ Librarian, artist and licensed private investigator. Toronto, Canada CO=E2=82=82: 421.66 ppm (Mauna Loa Observatory, 2023-12-11) --1741096510-749564289-1702431766=:54828--