From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KKjTKSW8PWLrqwAAgWs5BA (envelope-from ) for ; Fri, 25 Mar 2022 13:57:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mLYlJyW8PWLm0wAA9RJhRA (envelope-from ) for ; Fri, 25 Mar 2022 13:57:09 +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 6454A14094 for ; Fri, 25 Mar 2022 13:57:08 +0100 (CET) Received: from localhost ([::1]:38036 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXjV5-0001qe-4W for larch@yhetil.org; Fri, 25 Mar 2022 08:57:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58606) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXjTT-0001Ai-2s for emacs-orgmode@gnu.org; Fri, 25 Mar 2022 08:55:29 -0400 Received: from [2607:f8b0:4864:20::835] (port=35501 helo=mail-qt1-x835.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nXjTA-0005EN-9R for emacs-orgmode@gnu.org; Fri, 25 Mar 2022 08:55:11 -0400 Received: by mail-qt1-x835.google.com with SMTP id z19so3144401qtw.2 for ; Fri, 25 Mar 2022 05:55:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=Ah6bPqhekvBNKgF5JsxfiJoB303Iz7KC88zKl7P5KDs=; b=Izd0en6i3DnHR/BGgiPwzb+inOLTjBQgvabPgT1E1+frxbMn7hGfI3mFO6/ZbpHcOh rGGxovVUz4wQNNUx45t02lKBGB4mZcswprCQkC2LyKjNHj14wrI5DZbS/J6wviv41tK8 VAQFMalgWzeSvwhtsNAbhvMVsDTYrFTxCooPpTSmlF0w6XjZ9ecNv0VdGIaEJquBVotY 0GMYwqzA4kcHdF30Uo8c4hWMdsxiar8yRIJI16NKKC9t0jGvqs1v+UVps/tBLTvsOw5e 6deyBKN3DzDUNt0F1mI+ujTX7umMe7UsVUKW9WZ1aVM1jn6VugG5ksp0KsjB3Vh0sndn fuLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:references:user-agent:from:to:cc:subject :date:in-reply-to:message-id:mime-version; bh=Ah6bPqhekvBNKgF5JsxfiJoB303Iz7KC88zKl7P5KDs=; b=Tfxw/qOGgMuVtfK0GRWNB40F9GDbpYTSuP2tXmpsD/y6Ml3/59RXpELaP4giYlqAz5 321aKEBVTVsdU44Qij4NpOB8XnAe3yHnuEHpOtyaf1kjJ7pVhzq/k1338lRcnWVLTmEa co5v7EgPuwB0RlHBgLA3baY9f0GCvQ8gHRQUjEOc+A8JqixQuqGSM/H4yp+y17wr/RxY LzaUTdNrU1QA8oBXGicD//Zut12YTQSl0qekITTBAU0gPSHUp2P3tXqWqbaOZXKggfKb C56s76medWKAyJINDCA2jSMS4efbIPjgfGEuRBQmjjVWWCUn9d1me3SOziwc4TTkJqrz m3iA== X-Gm-Message-State: AOAM530EAq0pg2zN+NaCNIeehwX0ZOMpksKTviZQkQS8tOBBFtCibX8n BUiLh/Zo+RxooRQbX+ch5Br2CZ15hRY= X-Google-Smtp-Source: ABdhPJxOylc/ZQgZVQXr0bArPN7h/ne/2CwkmEAOlXwUHip1lstalGFwMef5Bi1oQmlWSW5HievcYQ== X-Received: by 2002:ac8:5854:0:b0:2e1:bed7:5f8b with SMTP id h20-20020ac85854000000b002e1bed75f8bmr9125777qth.63.1648212902576; Fri, 25 Mar 2022 05:55:02 -0700 (PDT) Received: from Johns-iMac.local ([2601:547:901:82e0:f942:2830:cf8e:79a]) by smtp.gmail.com with ESMTPSA id 22-20020ac85756000000b002e1cabad999sm5297200qtx.89.2022.03.25.05.55.01 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Mar 2022 05:55:01 -0700 (PDT) References: User-agent: mu4e 1.6.10; emacs 28.0.90 From: John Kitchin To: Bruce D'Arcus Subject: Re: [oc] provide style/citation preview? Date: Fri, 25 Mar 2022 08:43:47 -0400 In-reply-to: Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::835 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::835; envelope-from=johnrkitchin@gmail.com; helo=mail-qt1-x835.google.com X-Spam_score_int: 0 X-Spam_score: -0.1 X-Spam_bar: / X-Spam_report: (-0.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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: , Cc: Vikas Rawal , emacs-orgmode@gnu.org 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=1648213029; 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:dkim-signature; bh=Ah6bPqhekvBNKgF5JsxfiJoB303Iz7KC88zKl7P5KDs=; b=ov1qJuywHVOodvqPb6UVtA+SQ0y0uwfweg3g4EtQMTbfDfkv4fDWjont8AUFSxUpyhJIs4 +/tq+3pkfNtV5KediwNsfDrlmf/xWplZRO4b0JfJc0Ae8RjEPNxUYVTYor0KgR+uDnYhEo RoUcvwDECFprj9cvJJjAsb4m3wYTzSu4PiVmbfZp638z9hBi2u9jeBJyI+FVshDiUPoCjt sW1qj5jPaaol/CtBjUmDqV6CtfUIGC3HExppB4vrrHhqONayvfl0HeKyIuSMsvK8dQNwej qY7tbRdtU0VV2berCzoOAPqKQ57JIGdm6Gecz+TPe6HV4TG3nbCyFa4t0gGk1g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648213029; a=rsa-sha256; cv=none; b=Er3fRWpW/h1vawp6tT3ziSCHb5brsnxDHEDpL7X5H35VQ7lSmmq8eF2sh1UwmJyD84hF58 /010TWsCPSQqN/bLryxEySWIz+40ZURSn/Rs+uGvBCqQ0kUywI6fFnQVlr4dXDe7UYdA9j uG8Wo/7AZOhaGT9Z9Sw+6nFljWDumnViv2B4/010B8Ktft9b0bYEY1YSlW/XvYJW/SZ2iJ iBYYPw3JMbJMwFeDBVDxDPFc2NKWwwXoWYXp1wM5l5yBm78IwT341+t/mvAmX9qgcuAHK1 LxFD3FFtzPFau1ucIDdesWGmTz43KjnGfg5XGVLWPKYZBcvh8Pw6++6m1oEy5Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Izd0en6i; dmarc=fail reason="SPF not aligned (relaxed)" header.from=andrew.cmu.edu (policy=none); 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: 7.11 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Izd0en6i; dmarc=fail reason="SPF not aligned (relaxed)" header.from=andrew.cmu.edu (policy=none); 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: 6454A14094 X-Spam-Score: 7.11 X-Migadu-Scanner: scn1.migadu.com X-TUID: esu+roysC91d I think this kind of preview is well-suited for external packages. There is a subtle point I ran into with this preview approach though, and that is what is the backend export you want to see? People expect one source (org) to export to different backends, and even use one source to make a PDF and HTML (and maybe others). Now it also possible to use different citation styles for different backends, and the backends may use different citation processors (e.g. bib(la)tex or CSL). I felt this was too complex to try to get right in one package. External packages could provide any subset of these they want, e.g. the way https://github.com/andras-simonyi/org-cite-csl-activate does. My opinion of course. I think the basic CSL styled citation tooltip that is independent of the final state is a good compromise. The point is to give enough context about the key to tell you what it is without visiting the source, and if you need more, you go visit the source (bibtex file, org file, etc.). "Bruce D'Arcus" writes: > On Thu, Mar 24, 2022 at 12:33 PM Vikas Rawal wrote: > >>> 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? >>> >> >> Some kind of overlay that shows citations as they would (at least as close as possible) look in the export? > > Something like this? > > https://github.com/andras-simonyi/org-cite-csl-activate > > I think he was hoping to incorporate that into the oc-csl processor at > some point, and that would indeed be another approach to in-buffer > previewing. > > The issue I have is more just generating the preview content for > incorporation into the completion annotations. > > Bruce -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu Pronouns: he/him/his