emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: [oc-csl] org-cite-csl-styles-dir and default-directory
Date: Sun, 28 Nov 2021 17:25:15 +0100	[thread overview]
Message-ID: <87v90cuu1g.fsf@gmx.us> (raw)

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?



             reply	other threads:[~2021-11-28 16:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-28 16:25 Rasmus [this message]
2021-11-28 17:39 ` [oc-csl] org-cite-csl-styles-dir and default-directory Bruce D'Arcus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v90cuu1g.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).