From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aMlLD6Cto2GlhAAAgWs5BA (envelope-from ) for ; Sun, 28 Nov 2021 17:26:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qAzhCqCto2F0FgAAbx9fmQ (envelope-from ) for ; Sun, 28 Nov 2021 16:26:08 +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 800A016F7A for ; Sun, 28 Nov 2021 17:26:07 +0100 (CET) Received: from localhost ([::1]:53590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrN09-0007Lm-Cu for larch@yhetil.org; Sun, 28 Nov 2021 11:26:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrMzb-0007L5-WF for emacs-orgmode@gnu.org; Sun, 28 Nov 2021 11:25:32 -0500 Received: from ciao.gmane.io ([116.202.254.214]:37758) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrMzZ-0006OR-9Z for emacs-orgmode@gnu.org; Sun, 28 Nov 2021 11:25:31 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mrMzU-0001LY-7m for emacs-orgmode@gnu.org; Sun, 28 Nov 2021 17:25:24 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Rasmus Subject: [oc-csl] org-cite-csl-styles-dir and default-directory Date: Sun, 28 Nov 2021 17:25:15 +0100 Message-ID: <87v90cuu1g.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Emacs Gnus Cancel-Lock: sha1:wsGxCjKLjX5G2smfFgiTPaoEJM4= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638116767; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=e93YB3zLPq5p4HfYEKFxBVRduPZhX1x/dzIITrYIm80=; b=eejkrKvhea1m8V3bdSXWq6+2ZrjNRdKAARdsoTytCW+A1c8e10Tzpl3ijOKaMhMJcRhR6n yZQksFbpb4d8WmXmDUmIxz9OMZdeKkC0VYxhFkpbLWqYpb+uzRBVoIwHB0R+qU9VHpZ6FM 4eXC+kg41FuLz/R1YVl6FH02wWenvow99W2DNQ6rQpJqsyRjbsJJsleWBnZRg3viKhVoHP /ou1z7bIItXXt0e/orSaCrEl06/1nuirHbSovOIRcFk57dEN2niZjJfSbLVrRvcfrrns/4 EQNzP3HkeMxnM11miONlEA9qwxkNccEHiZ3nJtJ3EAmQ/p+hklvMAE/z07dKIg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638116767; a=rsa-sha256; cv=none; b=u0XcEOxjwAUXHarqIU44K90qAOHAtYEAknFnJ3VCtpWnBla3nytT61Y/GVHqhFv5wfNo1/ arz7aq5/y0KdbtgsNn1EjW1c9H6x52+Ft55RfsyyGMl0n1qmb097sm6tC9wJDJImcIATDB KiyCPa3/ZzmJWGwZY/2MzoemlT4fZxeV1iJkmLYuhJ9gotk7ZNSEbVi+OVRRjXMsZJ81H+ L4VjJvn+yqtNPqXcNT4xTyYYbyeCgSIKym/q2x9dGujZ82IQVIiw2i9QQMYA3ROro2L6d1 N8V4RYr3jyIM3YkJ0nxLeeAVgI0Rk5oGGXs+Db9luqK/BQyGsiuyaWJ/D7HdLQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmx.us (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: -2.30 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmx.us (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: 800A016F7A X-Spam-Score: -2.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: pzKUXT6xMNqw Hi there, Congrats on oc.el! I have had a chance to try it a bit and it is really nice to work with! One frustration with oc-csl.el is that is does not like relative dirs, which I guess is fine overall as one would probably store styles centrally, somewhere, similarly to LaTeX. However, one niece that would seem useful is to simply dump something relative to the org file (useful for e.g. a doc stored in git and compiled via docker). So it might be nice if oc-csl would look for style files in default-directory / command-line-default-directory? I haven’t been following the discussions closely so my apology if there’s a reason for not doing this. Thanks, Rasmus Example file See [cite/t:@OrgCitations] #+bibliography: lit.bib #+cite_export: csl chicago-author-date.csl * setup :noexport: #+name: setup env #+begin_src sh wget https://raw.githubusercontent.com/citation-style-language/styles/master/chicago-author-date.csl cat >> lit.bib << EOF @article{OrgCitations, author={org, mode and Syntax, Citation and List, Mailing and Effort, Time}, journal={Journal of Plain Text Formats}, title={Elegant Citations with Org-Mode}, year={2021}, month={7}, volume={42}, number={1}, pages={2-3}} EOF #+end_src #+begin_src emacs-lisp (require 'oc-csl) #+end_src Make ~oc-csl~ use current folder. It would be nice not to have to specify this. #+begin_src emacs-lisp (setq org-cite-csl-styles-dir default-directory) #+end_src -- What will be next?