From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John Purnell Newsgroups: gmane.text.pandoc Subject: Re: Inserting citations into text editors Date: Mon, 09 Jan 2023 09:36:23 +1300 Message-ID: <3D58E4FE-7D6B-4012-A0D9-32C0C40985CF@gmail.com> References: <97a91bc5-d1da-45ba-8763-1617c8760f88@googlegroups.com> <4e64b509-7781-4511-856c-723daf2aae4fn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_MailMate_5B26A2A3-F553-4203-9E02-DC6ABB7992D0_=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39963"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDR6ZF6MYMKRBYOS5SOQMGQELLIMOYQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Jan 08 21:36:53 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-io1-f58.google.com ([209.85.166.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pEcPV-000AGL-29 for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 08 Jan 2023 21:36:53 +0100 Original-Received: by mail-io1-f58.google.com with SMTP id s22-20020a6bdc16000000b006e2d7c78010sf3672058ioc.21 for ; Sun, 08 Jan 2023 12:36:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673210212; cv=pass; d=google.com; s=arc-20160816; b=p4hsCT9Six4jKzKZkT1HZiB2usACD1v2QRRD2HOGjWLxPJAcLLNBGSVkcVQYGiGY7T el2mTza60TRB7mVlfcpeA/a1BLK0vkTFoxQGVJWe0BfURkhaDifHhkLFW7HkSH/ip/ni LhdcWRfEygKdfcwk3prTM+o9b4Gt2uC+CWjeXmA4KdM7CSf4oDCTEGz62e5pC59QGt9U 2gfQ/5ANq6ybhkrE4ub+NvvMDad5F6TRfo3Nvb+yCwo/begqCJ8+xC/nqm64snB8q6qI F76vJVFBfFHT3SrVO6cgNWGnNxC0mWHomHlsF8xUnXw3lvAO01GLaPj1zYNvmZlzCfsx /h/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:embedded-html:mime-version :references:in-reply-to:message-id:date:subject:to:from:feedback-id :sender:dkim-signature:dkim-signature; bh=5r5iLvLWu538/zTHGhxOUyKGX9Z3NHQSPNq/pbxJRsE=; b=VYyN4hM+mODP6P1lpy7kpnrB0QnKphmPHgLHKEEDwDNmvKVvycnoZn4MA97j0kvFmp hCsR0B4JfXhiDQYIye5ixO7z0gTd0iUlOooXH3xWSgynv8esBuMNJYPEI+jm5vWNgzoN BPSTUWoShoFZmiddcBwAPpEbf5w0YObv+VNoXV5dSX4LyiqqjPxpRlUNBFRvof23Q4x4 B+NtmXV0P9YSIxgbyifAsslCqNaTc/k142MXcQFKSOD9/e4dRweU4aZSgqeVNF6EqaK1 CJF4MlYCBbYvclSnofzAClzRW8MASOUYMyxRv+RDuN8uX1llPKHsEvI6MK/XTqnQcgNC WAew== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="b/FAyENW"; spf=pass (google.com: domain of johno108108-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::82e as permitted sender) smtp.mailfrom=johno108108-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:embedded-html :mime-version:references:in-reply-to:message-id:date:subject:to:from :feedback-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=5r5iLvLWu538/zTHGhxOUyKGX9Z3NHQSPNq/pbxJRsE=; b=lR7SsFyIWlDfmMDMHHjRIBSdes4YvJ2tKOYy/I42gZGsupBanriImu691aO80yg03U uaveZVVvxlR/lWXU+qCGOjMqJ6YVhD4+sh++pjmIyDox8NJXPcO4YBOYa8Foxc7ABUY3 q+dR0wNJTstjQf+2QeADz9zNoS2J3+PZBn5gGEeydMiDoZjwYpmveDk8Xx15xIxVr73n Bf1EabnDYbIbCM69fdDlxUm35Hk3DWjQJeDlQ5ZSlr8vLruCYukvK6S1KH1h02az0K8f jANoJrMbe5/je0kDJgsRIQc79uwvwxBVyX6/VZ3gAn3A8vtEaqny4LDcw02iwiMXAN0C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:embedded-html :mime-version:references:in-reply-to:message-id:date:subject:to:from :feedback-id:from:to:cc:subject:date:message-id:reply-to; bh=5r5iLvLWu538/zTHGhxOUyKGX9Z3NHQSPNq/pbxJRsE=; b=Eyz5Ldv74X4i8A9s+SYkebqTH1dX/dfo1p6DMGGZRm8Znaqe8qKGGn8jQzbCXNKHq4 oWWttqU0CE0+K6LugH7m1z+ADg7Z6PY7CTmg4fUj4PyqAtSRnt/ju6zTSTE2YPXuGcoC XVvg6m7zi+89LQmI7LG/xpaEapR645UJ/BUSOPV2CUBLyyKjFfnKhJdDRMwgewmoERhv wBRoRB5dusO6TqbnQQWPDetDO+Gufp4M8ohzZUsGmzXi08y9EmzPNEXgEejdaK1V89FN 9ogi31czD+G8o4u2+oLuppNUNoDp1ziNinJfbs0UiQxNOzqZfO2BD302J5eee1fSJF4/ K4+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:embedded-html :mime-version:references:in-reply-to:message-id:date:subject:to:from :feedback-id:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=5r5iLvLWu538/zTHGhxOUyKGX9Z3NHQSPNq/pbxJRsE=; b=JM/dEq4EGsAFWqTuspxjBGsr5vWTrOVoZat/Kc5wWdBOkEYciZZG7J/IQKZhwiMcD7 cOSMXoITD4Vm58IWBGjvRLY6ZaPrdGGH8U7TwiueIng0ThoOLklHE7Mtwlqh6uQKqjeV SEiGOcCNsLJN6VWMF9+XfU+gfozItdOgToh52tePYbVT1RYr457TSi7JSNTPtL97vJKI ycpY6Tk/AMnfYrDay/w3D6VmCPYDc44eOWOr5UF9B4LctNf+w7o6AHnYiR7bvEe1z9rE hbc6mYTu5KRfye30gNUB Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AFqh2kreEq/XdDYVP3mwBc+2CYWH30mEPHSHin5P2jiN6gCy9ZoZgO0C YS/Gv9kh6cWtNbgvmM8JnDY= X-Google-Smtp-Source: AMrXdXvGWDpTuHADbvCn5zJtvFiIhlS+AA3GLnWGEMo0OzereSUnxiPrD+BIABDAAw70newMCWH7uQ== X-Received: by 2002:a05:6e02:c88:b0:303:7518:f784 with SMTP id b8-20020a056e020c8800b003037518f784mr4131887ile.295.1673210211803; Sun, 08 Jan 2023 12:36:51 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6602:424f:b0:6bc:6044:840e with SMTP id cc15-20020a056602424f00b006bc6044840els748237iob.0.-pod-prod-gmail; Sun, 08 Jan 2023 12:36:49 -0800 (PST) X-Received: by 2002:a6b:90b:0:b0:6ca:c5fb:3fc8 with SMTP id t11-20020a6b090b000000b006cac5fb3fc8mr43732259ioi.8.1673210209052; Sun, 08 Jan 2023 12:36:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673210209; cv=none; d=google.com; s=arc-20160816; b=sN9E+HnBLwlYBq3VvBOQyu/ecOj+iNGz061xXPWd749jxYRODV4n1EZt9YGax0W+u+ jBdkE2OvZtMXsLJvLGn1+3+beD5EwgTvzr2LTVhzSsS339pu6biWQi3s4F8a2Gl/8nsz 9hkbH5qOqGHWej/NlysDZB34tHYt9wgkeoD9w4GLE6pqzjIezxK3Tau0L/uYWWPQ3wgJ UvGd4yCOf/QrmjaRsdVJ5sgx1GyEplB+GRyReCmwANPhv6iGguXPQsed1i8kaXzvzEjb PCotjejbyLCWNbhMDhETsTDkQ1gva2j5oY6nducnxYTaWXkN3XMgUul0ToIlWxM54rSL Ouhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=embedded-html:mime-version:references:in-reply-to:message-id:date :subject:to:from:feedback-id:dkim-signature; bh=TbsOskVgHHo5jlMIkyBUgeiwDX2NDqmQ5PToHaWJvc0=; b=SKWHcY8dFPia2HyKoARKBncb7Bt1H8tGPtMakMIgoE7NT0qd2DLozPC7B24wU5wRLo DJ7+6J4x95lRnlup+wuC10szNIhYfZeN+WhwRRZW1Qg5UA6ok8nb+Ub+l5ecB8VLIrCY 4wvb/UBK7WaNE90gK+S9PUhrQMMDdOsIu5WxwtQkpEazE7ln9DeUGIdOhNk8aBYEmwiX FaDlhECC5jzAyoinDUdmPoYAnml2Uh4bP5wkzNNRLVP7/sSAqqKW5uHfzXTuQNHitSL+ sLe1nVFM5mVRu+viq6Umzpiq6hwYu7k1u1owm/Wv6m/sQSy0a/iqFf7N+g7pLTQwGmXz wFPQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="b/FAyENW"; spf=pass (google.com: domain of johno108108-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::82e as permitted sender) smtp.mailfrom=johno108108-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com. [2607:f8b0:4864:20::82e]) by gmr-mx.google.com with ESMTPS id h8-20020a5d80c8000000b006e02ea7519csi613850ior.4.2023.01.08.12.36.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Jan 2023 12:36:49 -0800 (PST) Received-SPF: pass (google.com: domain of johno108108-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::82e as permitted sender) client-ip=2607:f8b0:4864:20::82e; Original-Received: by mail-qt1-x82e.google.com with SMTP id bp44so6578237qtb.0 for ; Sun, 08 Jan 2023 12:36:49 -0800 (PST) X-Received: by 2002:ac8:7655:0:b0:3a7:ea5c:f453 with SMTP id i21-20020ac87655000000b003a7ea5cf453mr81013922qtr.9.1673210208312; Sun, 08 Jan 2023 12:36:48 -0800 (PST) Original-Received: from auth2-smtp.messagingengine.com (auth2-smtp.messagingengine.com. [66.111.4.228]) by smtp.gmail.com with ESMTPSA id cj12-20020a05622a258c00b0039cc0fbdb61sm3667081qtb.53.2023.01.08.12.36.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Jan 2023 12:36:48 -0800 (PST) Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id CA73827C0054 for ; Sun, 8 Jan 2023 15:36:47 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sun, 08 Jan 2023 15:36:47 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrkeeggddugedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgoufhushhpvggtthffohhmrghinhculdegledmne cujfgurhephffvufffoffkjghfgggtsegrtdhmreertdejnecuhfhrohhmpeflohhhnhcu rfhurhhnvghllhcuoehjohhhnhhouddtkedutdeksehgmhgrihhlrdgtohhmqeenucggtf frrghtthgvrhhnpefhvdffhfelveeifeduteeuueeitdegkedujefgffeftdeiuefhhfet jeeileetgeenucffohhmrghinheprhgvthhorhhquhgvrdhrvgdpghhithhhuhgsrdgtoh hmpdhgohhoghhlvgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpehjohhhnhhpuhhrnhgvlhhlodhmvghsmhhtphgruhhthhhpvghrsh honhgrlhhithihqddvudehleelleehfedquddvudeileejieelqdhjohhhnhhouddtkedu tdekpeepghhmrghilhdrtghomhesshgvnhhtrdgtohhm X-ME-Proxy: Feedback-ID: ia30840e7:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 8 Jan 2023 15:36:46 -0500 (EST) X-Mailer: MailMate (1.14r5933) In-Reply-To: <4e64b509-7781-4511-856c-723daf2aae4fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Embedded-HTML: [{"plain":[2026,3526],"uuid":"DDDB6EFB-9BBC-4E63-918C-B54075EAACF7"}] X-Original-Sender: johno108108-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="b/FAyENW"; spf=pass (google.com: domain of johno108108-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::82e as permitted sender) smtp.mailfrom=johno108108-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:31970 Archived-At: --=_MailMate_5B26A2A3-F553-4203-9E02-DC6ABB7992D0_= Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable I also use Zotero with the BetterBibTeX extension on a Mac and make use=20 of its provision of the Zotero citation selector in an AppleScript=20 application which I have bound to a keyboard shortcut which inserts a=20 Pandoc citation into any configured text editor. Here is the AppleScript=20 in case it's of interest: ``` # Activates the Zotero Add Citation dialog in the specified text editor # Requires the Better BibTex for Zotero plugin:=20 https://retorque.re/zotero-better-bibtex #=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D # Configuration Variables #=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D # Debugging switch global gBlnDebug # Bundle ID of text editor property pNameEditorBID : "com.sublimetext.4" #=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D # Main Code #=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D set gBlnDebug to false try =09 set txtZoteroStatus to do shell script =C2=AC "/usr/bin/curl 'http://localhost:23119/better-bibtex/cayw?probe=3D1'=20 2>/dev/null; exit 0" if txtZoteroStatus is "ready" then set txtCitation to do shell script =C2=AC "/usr/bin/curl=20 'http://localhost:23119/better-bibtex/cayw?format=3Dpandoc&brackets=3D1'=20 2>/dev/null; exit 0" # "/usr/bin/curl=20 'http://localhost:23119/better-bibtex/cayw?format=3Dpandoc&brackets=3D1&cli= pboard=3D1'=20 2>/dev/null; exit 0" tell application id pNameEditorBID activate if not txtCitation is null then repeat while not frontmost tell me to delay 0.1 end repeat tell application id "com.apple.systemevents" to keystroke=20 txtCitation # tell application id "com.apple.systemevents" to keystroke "v"=20 using command down end if end tell else tell application id "org.zotero.zotero" to activate end if =09 end try ``` The application needs security permissions for both "Accessibility", and=20 "Automation" for "System Events". On 2023-01-08, at 23:52 +1300, John Carter Wood =20 wrote: > I use Zotero with BetterBibTeX (BBT) to manage my references and=20 > generate > .bib / .json files. > > For text editing I use Emacs to write in Markdown and have=20 > incorporated > helm-bibtex to allow me to enter citations easily: > https://github.com/tmalsburg/helm-bibtex > > I'm not certain that this kind of set-up will solve your problem (as I=20 > use > pretty standard Zotero styles for my citekeys), but as others have=20 > noted, > BBT allows you to change the formatting of citekeys. I haven't=20 > experimented > too much with helm-bibtex, but it works well with Emacs. Emacs is kind=20 > of a > world in itself to get into, but I am comforted at least by the=20 > probability > that it won't disappear any time soon and I can continue using my=20 > hard-won > knowledge till at least the end of my academic career. :-) > > pedro....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org schrieb am Samstag, 7. Januar 2023 um 18:34:14=20 > UTC+1: > >>> One related problem I run into with other options, is that I often=20 >>> have >> one author with multiple books which can make searching through=20 >> citekeys >> difficult. For instance I may have 5 cite keys listed as @foo123,=20 >> @foo345, >> @foo678, etc. So if, when searching, it could display the author name=20 >> and >> book, and then insert the citekey that would be the best! >> >> On Zotero, the BetterBibTeX plugin allows you to customize the=20 >> citekey to >> be exported in the .bib file. This way you can use something like >> `@author:2010firstwordoftitle` to make it easier to find what you=20 >> need. >> >> Em sexta-feira, 8 de setembro de 2017 =C3=A0s 18:15:34 UTC+1, MK=20 >> escreveu: >> >>> I've been using a number of different writing programs recently, and=20 >>> each >>> time I make a switch I always run into the same problem, how to=20 >>> easily >>> insert citations. Most recently I've been satisfied with Sublime=20 >>> Text and >>> this plugin that reads=20 >>> my >>> .bib file and easily inserts the pandoc citation. Now I'm fiddling=20 >>> with >>> Ulysses, and I've run into the problem again: how to easily access=20 >>> and >>> insert my citations. I plan on continuing to use a .bib file and=20 >>> convert >>> with pandoc. >>> >>> Since I use Launchbar, I thought that if there were a way to search >>> through my .bib file with that and insert my citation, this would=20 >>> make the >>> issues disappear. However, I'm really not sure how to do it.=20 >>> Essentially >>> I'm looking for the same functionality of that plugin just not tied=20 >>> to >>> sublime text. Any thoughts would be appreciated! >>> >>> One related problem I run into with other options, is that I often=20 >>> have >>> one author with multiple books which can make searching through=20 >>> citekeys >>> difficult. For instance I may have 5 cite keys listed as @foo123,=20 >>> @foo345, >>> @foo678, etc. So if, when searching, it could display the author=20 >>> name and >>> book, and then insert the citekey that would be the best! >>> >>> PS I've seen some options such as this one by David Sanson >>> which=20 >>> uses >>> bibdesk, and this one which uses text expander >>> , both of which I've >>> found a little awkward. >>> >> > > --=20 > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send=20 > an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/4e64b509-7781-4511-856c-= 723daf2aae4fn%40googlegroups.com. --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/3D58E4FE-7D6B-4012-A0D9-32C0C40985CF%40gmail.com. --=_MailMate_5B26A2A3-F553-4203-9E02-DC6ABB7992D0_= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

I also use Zotero with the Bette= rBibTeX extension on a Mac and make use of its provision of the Zotero cita= tion selector in an AppleScript application which I have bound to a keyboar= d shortcut which inserts a Pandoc citation into any configured text editor.= Here is the AppleScript in case it's of interest:

```
# Activates the Zotero Add Citation dialog in the specified text editor
# Requires the Better BibTex for Zotero plugin: https://retorque.re/zot= ero-better-bibtex

# =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D
# Configuration Variables
# =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D

# Debugging switch
global gBlnDebug

# Bundle ID of text editor
property pNameEditorBID : "com.sublimetext.4"

# =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D
# Main Code
# =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D

set gBlnDebug to false

try
=09
set txtZoteroStatus to do shell script =C2=AC
"/usr/bin/curl 'http://localhost:23119/better-bibtex/cayw?= probe=3D1' 2>/dev/null; exit 0"
if txtZoteroStatus is "ready" then
set txtCitation to do shell script =C2=AC
"/usr/bin/curl 'http://localhost:2= 3119/better-bibtex/cayw?format=3Dpandoc&brackets=3D1' 2>/dev/nul= l; exit 0"
# "/usr/bin/curl 'http://localhost:23119/better-bibtex/cayw?format=3Dpandoc&brackets=3D1= &clipboard=3D1' 2>/dev/null; exit 0"
tell application id pNameEditorBID
activate
if not txtCitation is null then
repeat while not frontmost
tell me to delay 0.1
end repeat
tell application id "com.apple.systemevents" to keystroke txtCitation
# tell application id "com.apple.systemevents" to keystroke "v" using c= ommand down
end if
end tell
else
tell application id "org.zotero.zotero" to activate
end if
=09
end try
```

The application needs security permissions for both "Access= ibility", and "Automation" for "System Events".


On 2023-01-08, at 23:52 +1300, John Carter Wood <woo= djo-ZOsAvrTRSvuEhhMi0yms2Q@public.gmane.org> wrote:

I use Zotero with BetterBibTeX (BBT) to manage my references and generate .= bib / .json files.

For text editing I use Emacs to write in Markdown and have incorporated hel= m-bibtex to allow me to enter citations easily: https://github.com/tmalsbur= g/helm-bibtex

I'm not certain that this kind of set-up will solve your problem (as I use = pretty standard Zotero styles for my citekeys), but as others have noted, B= BT allows you to change the formatting of citekeys. I haven't experimented = too much with helm-bibtex, but it works well with Emacs. Emacs is kind of a= world in itself to get into, but I am comforted at least by the probabilit= y that it won't disappear any time soon and I can continue using my hard-wo= n knowledge till at least the end of my academic career. :-)

pedro....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org schrieb am Samst= ag, 7. Januar 2023 um 18:34:14 UTC+1:
> One related problem I run into with other options, is that I ofte= n have one author with multiple books which can make searching through cite= keys difficult. For instance I may have 5 cite keys listed as @foo123, @foo= 345, @foo678, etc. So if, when searching, it could display the author name = and book, and then insert the citekey that would be the best!

On Zotero, the BetterBibTeX plugin allows you to customize the citekey to b= e exported in the .bib file. This way you can use something like `@author:2= 010firstwordoftitle` to make it easier to find what you need.

Em sexta-feira, 8 de setembro de 201= 7 =C3=A0s 18:15:34 UTC+1, MK escreveu:
I've been using a number of different writing programs recently, and e= ach time I make a switch I always run into the same problem, how to easily = insert citations. Most recently I've been satisfied with Sublime Text and t= his plugin= that reads my .bib file and easily inserts the pandoc citation. Now I'm fi= ddling with Ulysses, and I've run into the problem again: how to easily acc= ess and insert my citations. I plan on continuing to use a .bib file and co= nvert with pandoc.

Since I use Launchbar, I thought that if there were a way to search th= rough my .bib file with that and insert my citation, this would make the is= sues disappear. However, I'm really not sure how to do it. Essentially I'm = looking for the same functionality of that plugin just not tied to sublime = text. Any thoughts would be appreciated! 

One related problem I run into with other options, is that I often hav= e one author with multiple books which can make searching through citekeys = difficult. For instance I may have 5 cite keys listed as @foo123, @foo345, = @foo678, etc. So if, when searching, it could display the author name and b= ook, and then insert the citekey that would be the best!

PS I've seen some options such as this one by David = Sanson which uses bibdesk, and this one which uses text expander, bo= th of which I've found a little awkward. 
--
You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.c= om/d/msgid/pandoc-discuss/4e64b509-7781-4511-856c-723daf2aae4fn%40googlegro= ups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/p= andoc-discuss/3D58E4FE-7D6B-4012-A0D9-32C0C40985CF%40gmail.com.
--=_MailMate_5B26A2A3-F553-4203-9E02-DC6ABB7992D0_=--