From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0FSNB5Z2PGK3ZQAAgWs5BA (envelope-from ) for ; Thu, 24 Mar 2022 14:48:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WAbaOpV2PGL+3AAAG6o9tA (envelope-from ) for ; Thu, 24 Mar 2022 14:48:05 +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 B20023226F for ; Thu, 24 Mar 2022 14:48:05 +0100 (CET) Received: from localhost ([::1]:35902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXNoq-0003lg-Mv for larch@yhetil.org; Thu, 24 Mar 2022 09:48:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXNmr-0003LG-Ef for emacs-orgmode@gnu.org; Thu, 24 Mar 2022 09:46:01 -0400 Received: from [2a00:1450:4864:20::336] (port=33727 helo=mail-wm1-x336.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nXNmp-0006zL-Rj for emacs-orgmode@gnu.org; Thu, 24 Mar 2022 09:46:01 -0400 Received: by mail-wm1-x336.google.com with SMTP id l9-20020a05600c4f0900b0038ccd1b8642so1195805wmq.0 for ; Thu, 24 Mar 2022 06:45:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=5zknJCo2fEWsp0uLxrUTvnPTij6aLo5wvnq9WYKZHdY=; b=jupjByVI16BmnQFszz7Sb232EDYwO6uX8q/3ftWHCd6lvcq8ainAcgatjH3YvsMw8n cLiHsxkh6VsLbZqV77IvC+z0yf2OIXx6mhXq+I2dSV/1UrR8CuAuiojyCDWSy4aMPtFv p4XZGbwGB+lx53nORtMG+9sd1zJVbk4c/Qv6hPSPEgNXxRroCD4Vv0LzqPCu0kHhuv1o rs0YfB6Om3KvrGuKKWLGtkzUGTpszMTCMePNWNCBuRYjKqIKl2kOtPTtI8W47GazfwGX Q/5yd+6pT6I+Y5lihXh/FkAAcuAhUAVPl3eUFvbOVHGM7P2SoOcHdwrdwspN+TRRRH7p 9Daw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=5zknJCo2fEWsp0uLxrUTvnPTij6aLo5wvnq9WYKZHdY=; b=1hEpKPHoCoBKYXI03OgEIeyw/ygWWD/klZPbjRU8CUwxgmLis2xhOfLQJwFpBGZZ8Q 6y1yLD2IcdkxioOC1VAUZ8MDENh2L7ReIewvGDQj7z81ARLtQ8iFbfDZjyY5X2EJdCNF Wlyokqz83XcClSRgaAUCgDj5EKKD/IWxEjPZrKviWu5/y4tFZGRbzlyCth184Zqt+OFO u1sFaJ2F2oznsRFBtuaRwyIoNGOpRCsUI8EsymdxM4qScuo/y/LPLxwAkgetX09QkN8T ArVev5TSu5VNgtju5TzHv6Qr+Cjf7pEUX57C/1fltWtOe3wnPNOm8nF9P3WYJAu4hILe ZNVA== X-Gm-Message-State: AOAM5325G/wtvqYgjhx6C6n1nlvSk+9QXdeibxWbX9/sfb4kUR5chOLz TOMzvx3Dy5AXkFdTbnRMSKoNwP71Snoo3Q01BfEbeG+v X-Google-Smtp-Source: ABdhPJzPIy6xa+pLM5PWtTHcoaQKykXIHCMikxQeDMsx/VicZOBM40v0mB8dS0tqjiWtGDmNcUMRbGaA+bYKU3PFp28= X-Received: by 2002:a7b:c14c:0:b0:381:32fb:a128 with SMTP id z12-20020a7bc14c000000b0038132fba128mr14423745wmi.116.1648129557862; Thu, 24 Mar 2022 06:45:57 -0700 (PDT) MIME-Version: 1.0 From: "Bruce D'Arcus" Date: Thu, 24 Mar 2022 09:46:18 -0400 Message-ID: Subject: [oc] provide style/citation preview? To: org-mode-email Content-Type: text/plain; charset="UTF-8" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::336 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=bdarcus@gmail.com; helo=mail-wm1-x336.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648129685; 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=5zknJCo2fEWsp0uLxrUTvnPTij6aLo5wvnq9WYKZHdY=; b=RWzP5czkVZXMcw80WIY1vft+vABh6zAynblQPxiaF5pTlAm68Cps28XkDGJOr3sxioq/8A 7RlX9VqCiFY/zuDaoZlmcd62nCTG1n7Jlz8DBIgjw4jpAJMZm4nTFgHzii8Q8CuwSfPlp+ Anutc7flm4ohOMImgBpw9+2ftgNWn/hbydyg2wxm9nr+AlLF02cOFyPBj0DSmYAaGizcpe YfGmRQ7fZAPCVbbXJnEW/sduexb/ulwVBhb0mjq1C7EvLN77sgpLaXtqrekCB6yR+gTn0E +pucR28KDzIbuqZwr+GDrVgzLw1FdlIGnwFJF5hSa+acG/4nBJBzSXLD2S9OKg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648129685; a=rsa-sha256; cv=none; b=APrwdkVWnDKHzTcZi6E3NE9YJFIvhcN35D1sP6JrrmtGuH57WSY5lyuzYs4yrNWdai4EaH sho5dN8I4rNBpGTQESka1hB9vJz3MkPafeHhmJkFd2DHUShphRRo/Ukjow/oA5JO1zSQjA WC7ZFhC2J9/aNRigTfu5GHF2gDeNyAPrFNGUYtzWIHtU6Pw8I5OZYNt3W+qMS86OKa1uMm SOMPVS2S45EB5ElfHOA0TXTJtuTa9+wDFk9nCA55N12rhCeHHR14RrdkHtiXhRuVfTTTDd C9afanfduXmB7LOfpxcNL4bVVtK/u3bu5VoXoY3cXCimpP2yiXM2RKUMIovdbw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jupjByVI; 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: -3.09 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jupjByVI; 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: B20023226F X-Spam-Score: -3.09 X-Migadu-Scanner: scn1.migadu.com X-TUID: BPc2PTBTGsVw This is an idea related to an issue John Kitchin and I were trying to sort out a few months back, that he mentioned in another thread. https://lists.gnu.org/archive/html/emacs-orgmode/2022-03/msg00274.html The question is how to help users understand the relation between oc styles and target output. There are two places where this matters: 1. selecting the style (say in a completion list) 2. previewing the citation after the fact (for example, hovering over it in the buffer) On 2, right now in oc-basic, if one hovers over a key, one gets a tooltip preview of the rendered bibliographic entry, which is very handy. Picking up an idea that John mentioned in the above message, would it be feasible when hovering over the prefix (the part before the colon) to get a preview of the citation? By "feasible" I mean a good idea from a UX POV, and without any obvious performance penalties. As for the point he raises about which export backend to preview, perhaps that should just be via a "citation-preview" defcustom? So if one selected, say, natbib, one would see something like "\textt" in the tooltip. On 1, in citar I currently have a UI with a grouped list of style/variants, and a user-defined static preview for each, something like this: --------- default ------------ / (de Ville, 2020) ... ----------- text -------------- /text de Ville (2020) /text/caps De Ville (2020) ... So I'm just wondering how best to dynamically generate those previews, perhaps even just using a pre-selected reference*, and if maybe oc could make that easier? * One wrinkle in general here is that in the LaTeX intermediate export targets, you really don't care about the reference data, or even the key; you just care about what the command is. With the CSL rendered output, you do care about that. Bruce