emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: William Denton <william@williamdenton.org>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: Emacs Org mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Basic citations: should default citation style have a name and style code?
Date: Thu, 11 Jan 2024 16:36:55 +0000	[thread overview]
Message-ID: <RZhb4o3lT6vsasdfTeTbO-LO32HH-I3Zt3rq9-oMUOOpFQmHXNl9CyaiSZay0c64WmxVbzXlcvP0OzztzD8EWOMUSfJnTsVjbITB_sJ2D4A=@williamdenton.org> (raw)
In-Reply-To: <87ply8jbh2.fsf@localhost>

On Thursday, January 11th, 2024 at 07:30, Ihor Radchenko <yantar92@posteo.net> wrote:

> > As far as I can tell, there's nothing that can be done to the first
> > citation object to make it use the "default" style. The
> > document-level setting makes a new default, and because the original
> > "default" has no name or style code, there's no way to get at it.
> 
> You can just use [cite/nil:@friends].

Huh!  Thanks, I didn't see that at all.  Looking again at the definition of org-cite-basic-export-citation in oc-basic.el, I see the doc string says, "Export CITATION object. STYLE is the expected citation style, as a pair of strings or nil."  And then there's a section below starting:

    ;; Default ("nil") style.

Now that I know what that does, I can sort of see what's going on.  The same thing is in the CSL code as well, so it's all making more sense now.

Thanks,

Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada


> 
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at https://orgmode.org/.
> 
> Support Org development at https://liberapay.com/org-mode,
> 
> or support my work at https://liberapay.com/yantar92


  reply	other threads:[~2024-01-11 16:37 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-11  5:25 Basic citations: should default citation style have a name and style code? William Denton
2024-01-11  7:52 ` Fraga, Eric
2024-01-11 12:33 ` Ihor Radchenko
2024-01-11 16:36   ` William Denton [this message]
2024-01-11 18:10     ` Ihor Radchenko
2024-01-11 22:37       ` William Denton
2024-01-13 19:05   ` Ihor Radchenko
2024-01-14  5:08     ` William Denton
2024-01-14  5:38       ` William Denton
2024-01-14  8:26         ` András Simonyi
2024-01-14 19:10           ` William Denton
2024-01-14 15:16         ` Joost Kremers

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='RZhb4o3lT6vsasdfTeTbO-LO32HH-I3Zt3rq9-oMUOOpFQmHXNl9CyaiSZay0c64WmxVbzXlcvP0OzztzD8EWOMUSfJnTsVjbITB_sJ2D4A=@williamdenton.org' \
    --to=william@williamdenton.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@posteo.net \
    /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).