From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +NqNMA2jE2GdCwEAgWs5BA (envelope-from ) for ; Wed, 11 Aug 2021 12:14:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id iEEULA2jE2F7QgAA1q6Kng (envelope-from ) for ; Wed, 11 Aug 2021 10:14:37 +0000 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 767741C112 for ; Wed, 11 Aug 2021 12:14:37 +0200 (CEST) Received: from localhost ([::1]:38692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDlFs-0006HT-JO for larch@yhetil.org; Wed, 11 Aug 2021 06:14:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDlF4-0006Dh-Az for emacs-orgmode@gnu.org; Wed, 11 Aug 2021 06:13:46 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:50859) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDlF2-0005Fe-7S for emacs-orgmode@gnu.org; Wed, 11 Aug 2021 06:13:46 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 98D95FF805; Wed, 11 Aug 2021 10:13:39 +0000 (UTC) From: Nicolas Goaziou To: "Bruce D'Arcus" Subject: Re: [org-mode] make citation object available to org-cite-make-insert-processor SELECT-STYLE? References: <87czr0j4xr.fsf@nicolasgoaziou.fr> Date: Wed, 11 Aug 2021 12:13:36 +0200 In-Reply-To: (Bruce D'Arcus's message of "Thu, 29 Jul 2021 20:57:52 -0400") Message-ID: <87bl64b86n.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.199; envelope-from=mail@nicolasgoaziou.fr; helo=relay9-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: org-mode-email Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628676877; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=O/1UCNcSSiTJfNunG1QOE8lqB21IGCfKlXLliTiMHpY=; b=d1iieHoTfDLaI/fuI6yQ3/GN+bDsFahlNl2flc3w/u8aWneVhCRvtQJ1IKQ5gSAxQxnyCV iNDBV7AOa+KJzK+/vPc7IJpZ+R/qhhk6t+sYx+bEJYIEYfwatWpCXx5jnwnJ5Au2nWWWZ0 NhQtKEptVvqx3SFAZ/+JIBOhDbxJbuhSt1uUOjZNn/VvbwZ0D2n5vFBBIp1vAlMtqXa2jU j/bbwym2mzqRNtD6Y6c1LSqKRQjOfWwZNkpj7422gf8BlNxrH/kLz0Y46ayFwa0NxPSygq CK0lVqZdSpY0CIDj2SPWIY0ejdnh7w2cl1UumDhCQt66heVHJSz9BIz0SavcKw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628676877; a=rsa-sha256; cv=none; b=ZlFOXkO5+0OpmuYCcvvaYUf6FE+Y5gmLuLxPB9l0FBZLM6BmkLvfGNTSGtwNBHj8OD9qRm ByUazbGXuYxrxYyIHJo6ZqG05es5ndukSN4byi+sUF4JjGfl0dzpVLfAW4muITaymhLpGd GeYWwM2GE08DW9b//V49vzTWm9La8osP7sAZsvgconjJJrZ3HsnaAjYpc199ZTqZ5PpAQW UdWHb2AzizxKWdwA4qRwTJntRmUrFqSALWH7K1xvDmc7YKLhk5Px5HQcubQMhMOXBy5xAz krw/uBOcUvZO2h2/giD36B0fMSI/yzKRM/hhCp6DU/CsSWdNbrx5QwOmLGLDhQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.41 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 767741C112 X-Spam-Score: -1.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: ubpz54GjtUSE Hello, "Bruce D'Arcus" writes: > So the idea is to present a preview of the style/variant output when > selecting the style. > > Like: > > / (Doe, 2019) > > ... or maybe even multiple columns: > > / (Doe, 2019) \citep > > I'm thinking the best way to build this UI is to iterate through > org-cite-support-styles, and run at least the default export processes > to create that preview annotation, > > As my thinking has evolved (and there's been a lot of discussion on > this the past week), I see two options: > > 1. Generate the previews from the citations at point. This was the > idea that promoted the suggestion here, since I can't get access to > that citation data if I use org-cite-make-insert-processor. > > 2. Instead, have a standardized example record just for the preview. > With this approach, the citation context isn't relevant. > > As to your question, do any style UIs currently allow you to select a > style on a new citation before selecting the keys? I added a citation argument to select-style. Let me know if it works for you. Regards, -- Nicolas Goaziou