From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +NtgNCrpaGNVNwAAbAwnHQ (envelope-from ) for ; Mon, 07 Nov 2022 12:16:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ECSEMyrpaGOZMQAAG6o9tA (envelope-from ) for ; Mon, 07 Nov 2022 12:16:58 +0100 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 59B01901E for ; Mon, 7 Nov 2022 12:16:58 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1os06J-0002vv-D9; Mon, 07 Nov 2022 06:15:35 -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 1os06D-0002vM-AC for emacs-orgmode@gnu.org; Mon, 07 Nov 2022 06:15:29 -0500 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1os06B-0002Iw-F1 for emacs-orgmode@gnu.org; Mon, 07 Nov 2022 06:15:29 -0500 Received: by mail-ed1-x536.google.com with SMTP id s12so7372278edd.5 for ; Mon, 07 Nov 2022 03:15:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=PFadgm/nNhuF/DpYj7K88Bu/Vz4YG5HgFPyeY5Ho67Y=; b=SAwlVlq6gQ6OYZJ1SAQYbQcYHCekofx+ztg4pvbkfF2lUJsx1yaaUfCLM2dgHTl226 6lBJsKT9qyL9oUqjvNL096f+y0xe65vvDM4AIfjByxwm1XSZq02cFnVp8ODePkrnvWzL q2BdqSsehNqDJWekh8FhoXYoktbJegFp1RCwB9OiyBGEZqwAcdasN5v/HVEIesTdD5ea bZrlEdA8YPo1mveZVMlIHokdMa1bLGuAKZztKVYyAEdvby8MATaf/clFBVntC/jw1bDl 6LyG3LfnBNJYqBnUcUxJuXW8F110DvaQuqF1Qcj3FCNG9xqrCxYZqh2NRfPP80fyIYCw zu3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PFadgm/nNhuF/DpYj7K88Bu/Vz4YG5HgFPyeY5Ho67Y=; b=ejuezPOwnLQeaTZDdOns3Mdx6a8Ta+Nqi9d/2UPYe8Xcw2CMUL14rhUHx9sP6OAcXR Hp9S5VlsSfYdH5W4df3HYL1rkpQb/zalYo3ym8TJr2d1pmNOIV4b+ppLGrcKBYyV/q5G BRPu53sIg6F5whny/ZgH/N3zvSILVH+DJeaELpbJoj5NZi39PANYyELIWmfIAw4GUwtz ec4jtLCrS6ECMWBM9uTmhc2ZOcwStf1hZDSGHsTSmdIrzXwz7NyLlvqMHDKXpGMr1f7P jQesrXs3I1qvA2pJZVSUFbbXFoEMsq5mzzp3wNCYekLl1hOlmh86C42kxCGbvhwXqtIz GDYA== X-Gm-Message-State: ACrzQf10NTu6PwTgqaQpvKo+Lrmk6MCFjwV9XB4EJbtKoWzKwmBqUF9X 5+2tHTLBkyzc/C5znUtY+vpUNgPn97lAi3Ds/N0= X-Google-Smtp-Source: AMsMyM7DFbs0gr0At0c7CwpZHID7Q+8qaJCSY0IoMqgqfYO/RKJu/C8l7yCATcX1fZfLfi/u/LSX+7p/XlQHUUjCvhs= X-Received: by 2002:a05:6402:3223:b0:461:8635:e5c with SMTP id g35-20020a056402322300b0046186350e5cmr50231465eda.303.1667819723006; Mon, 07 Nov 2022 03:15:23 -0800 (PST) MIME-Version: 1.0 References: <87o7tja3ag.fsf@localhost> In-Reply-To: <87o7tja3ag.fsf@localhost> From: =?UTF-8?Q?Andr=C3=A1s_Simonyi?= Date: Mon, 7 Nov 2022 12:15:12 +0100 Message-ID: Subject: Re: [PATCH] oc-csl: Improve LaTeX bibliography formatting To: Ihor Radchenko Cc: emacs-orgmode list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::536; envelope-from=andras.simonyi@gmail.com; helo=mail-ed1-x536.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667819818; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=PFadgm/nNhuF/DpYj7K88Bu/Vz4YG5HgFPyeY5Ho67Y=; b=QrQViXArVLAuBwUEAr/jFVQI7NGb98yGzqixj8X4M3zdEVsBpBPN8ThJLMc2XKSaC0rjD/ 4gdWRuK46MUjfoVrSQX935obtAaE0j5/XbpGfcmZnWStSZKrVXG/fyDUBd8VzAOYuzuikr I8nomxhZx7Hi9Is/mmcujCDlOt8dS/RgyC9xYA1pZaWPB9rQb9qR/BHblpdTrRep37mcNH JsB/KjJYGaVkkCmfJPc6oc2dS5Z1/Wh8J9qrbnEgLwiADvfpI9329syD+6ZDm7aBX1ZhEL IFrw/DLJYYWv22pZ5lwJSnO+plRzXPtL+2GFHOKxPXO+1tHljfLuj5BBx9hmUA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667819818; a=rsa-sha256; cv=none; b=KTgtqNi0onoMVhhLeNQ/tRs/duTj/0NvFLsbfn7DOZsq+UKwzlsNnGMvUAy/GyHBJX18cX oG8itXsjqfFawsSfYXTSBL4p4D4dF0GkpBCeBBGCaVj32VHbz4eoWabJPi4f1ImQ1+sNEo V5uvRfLrMc91hSFYKEqWrO4asfOJRsLZS3VFE+R3dh8qbCPaBd6fuQhqEhkoPmoub9nW9G /WsF/s1eXs63JveeWZI7X9cLXzEMHce3vj5+Jmh2wIsHmhqcFSZXhuy12yap74hO6sWwo6 POdPyFm0fu7/lSF6Tp9M8ze7B9hiuH/ApPBtctUS6uKEk6JG+l8ZgnLAwjiXzw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=SAwlVlq6; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -4.00 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=SAwlVlq6; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 59B01901E X-Spam-Score: -4.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: fxQClhxGCa2X Dear All, On Mon, 7 Nov 2022 at 03:47, Ihor Radchenko wrote: > Please, document the new customization in ORG-NEWS. Dear Ihor, thanks for the comments! I'm going to update the NEWS file shortly in a new version of the patch. > Also, it would be nice to describe CSL usage and tweaks in the manual. Time permitting I may try to add something, but wouldn't it be a problem if the CSL export processor was discussed in much more detail than the others? I was also thinking about providing a list of available citation substyles but I do not want to make the manual very unbalanced. > I have two comments here: > 1. Where are all these new commands coming from? They are not used > directly in the code. Are you tweaking citeproc.el output this way? Ma= y > it be better to use customizations provided by citeproc.el itself? Yes, the citeproc org-latex formatter, which I added specifically for Org, uses these commands in the LaTeX code produced for the bibliography. As citeproc doesn't have customizable variables by design (if I recall correctly, the only exception is 2 hooks), and oc-csl already had some variables concerned with very similar formatting settings (org-cite-csl-latex-hanging-indent, org-cite-csl-html-hanging-indent, org-cite-csl-html-label-width-per-char) I think it is more consistent to have the new ones also in Org. > 2. You are declaring this variable as defcustom, but it is not clear > what is going to happen if the user changes it. It is not how to > change this template in meaningful ways either. Right, I can try to detail a bit in the docstring what type of commands and environments have to be provided by the preamble (are expected by citeproc). I tried to follow Timothy's handling of the ox-latex engraved preamble, but a simpler alternative would be to treat it simply as a constant template, at least for the time being -- WDYT? best wishes, Andr=C3=A1s > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at