emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Bruce D'Arcus" <bdarcus@gmail.com>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: Notes about citations in Org (part 3)
Date: Tue, 04 May 2021 18:59:46 +0200	[thread overview]
Message-ID: <87eeem5ta5.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAF-FPGMQ-THO8KO23Xm4WKBY+Zo89DHQh8X6JtQvr1zLUGbUhA@mail.gmail.com> (Bruce D'Arcus's message of "Tue, 4 May 2021 11:54:26 -0400")

"Bruce D'Arcus" <bdarcus@gmail.com> writes:

> On Tue, May 4, 2021 at 11:46 AM Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
>
>> I wonder whether it might be good to have a default LaTeX column as
>> well, i.e. not natbib, a column that represents what LaTeX supports out
>> of the box which is only the \cite{key} command.
>
> Makes sense to me.
>
> I guess the question at this stage is how to iterate this.
>
> I already added a change or two based on feedback from Joost, and it
> does make sense to add a new column for latex.
>
> It seems easier to me to do it on the wiki, rather than post a new
> version to the list every time, in part because it allows others to
> edit it.
>
> Any thoughts Nicolas?

Is the default \cite{key} command (without any other package) used? I'm
not sure we should provide it since we are working towards more complete
solutions.

I'd like to give a shot at "oc-natbib.el" in a few hours. It may give an
incentive to start out "oc-biblatex.el" (which is a bit harder).

AFAIU, the idea is to use styles from you wiki. However, sub-styles are
not mentioned. They could be "full" for the starred variants, "caps" for
the capitalized ones, and "alt" for those without parenthesis, so one
could write:

  [cite/text/alt/full/caps:...]  (in any order)

and obtain

  \Citealt*{...}

I hope we can find a shortcut, but it doesn't matter for now.

About sub-styles. The style is parsed as a string, so in the example
above, (org-element-property :style citation-object) returns
"text/alt/full/caps". 

Supporting sub-styles could be as simple as providing a function that
returns a non-nil value if a given sub-style belongs to the style. e.g.,

  (org-cite-has-substyle-p style "full") => t

  (org-cite-has-substyle-p style "author") => nil

I.e, sub-styles are not formally supported in the parser, but tooling
can take them into account.

Of course, we can also support them fully, i.e.
(org-element-property :style citation-object) returns a list of strings.
It depends how simple the common single style case should be.

To limit verbosity, we may want to stay (it's not mandatory) at one
sub-level instead, and use single characters for processor specific
variants, e.g.,

  [cite//aC*:...]  <-- default style with alt+full+caps

If style are in common use, processors might as well declare them in
`org-cite-register-processor' as a help for, e.g., functions inserting
citations. Hmm.

WDYT?

Regards,
-- 
Nicolas Goaziou


  reply	other threads:[~2021-05-04 17:01 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-29 14:04 Nicolas Goaziou
2021-04-29 14:31 ` Bruce D'Arcus
2021-05-01  5:46 ` Bastien
2021-05-03 13:47   ` Eric S Fraga
2021-05-03 13:58     ` Bruce D'Arcus
2021-05-04  7:45       ` Eric S Fraga
2021-05-03 16:48     ` Nicolas Goaziou
2021-05-03 17:46       ` Bruce D'Arcus
2021-05-04  7:46       ` Eric S Fraga
2021-05-04  9:33       ` Nicolas Goaziou
2021-05-04  9:51         ` Eric S Fraga
2021-05-04 10:10           ` Joost Kremers
2021-05-04 10:31             ` Denis Maier
2021-05-04 12:05             ` Eric S Fraga
2021-05-04 10:11           ` Bruce D'Arcus
2021-05-04 12:06             ` Eric S Fraga
2021-05-04 10:17           ` Nicolas Goaziou
2021-05-04 10:48             ` Bruce D'Arcus
2021-05-04 11:58               ` Bruce D'Arcus
2021-05-04 12:16                 ` Eric S Fraga
2021-05-04 13:15                   ` Nicolas Goaziou
2021-05-04 13:21                     ` Bruce D'Arcus
2021-05-04 13:28                       ` Bruce D'Arcus
2021-05-04 15:20                         ` Bruce D'Arcus
2021-05-04 15:46                           ` Eric S Fraga
2021-05-04 15:54                             ` Bruce D'Arcus
2021-05-04 16:59                               ` Nicolas Goaziou [this message]
2021-05-04 17:28                                 ` Bruce D'Arcus
2021-05-04 20:22                                   ` Nicolas Goaziou
2021-05-05  5:50                                     ` Eric S Fraga
2021-05-04 18:24                                 ` Bruce D'Arcus
2021-05-04 19:04                                   ` András Simonyi
2021-05-05  6:10                                     ` Eric S Fraga
2021-05-05 14:24                                     ` Nicolas Goaziou
2021-05-05 14:13                                   ` Nicolas Goaziou
2021-05-05  5:48                                 ` Eric S Fraga
2021-05-05  9:37                                   ` Bruce D'Arcus
2021-05-05  9:46                                     ` Denis Maier
2021-05-05 11:08                                     ` Eric S Fraga
2021-05-05 16:50                                 ` Maxim Nikulin
2021-05-05 17:16                                   ` Bruce D'Arcus
2021-05-06  6:20                                     ` Eric S Fraga
2021-05-06 11:36                                     ` Maxim Nikulin
2021-05-06 11:53                                       ` Bruce D'Arcus
2021-05-06 15:57                                         ` Maxim Nikulin
2021-05-06 16:14                                           ` Bruce D'Arcus
2021-05-02 14:41 ` Bruce D'Arcus
2021-05-02 14:51   ` Nicolas Goaziou
2021-05-02 15:19     ` Bruce D'Arcus
2021-05-02 19:32       ` Nicolas Goaziou
2021-05-02 19:55         ` Bruce D'Arcus
2021-05-03 16:42           ` Nicolas Goaziou
2021-05-03 22:25             ` Bruce D'Arcus
2021-05-04  6:47               ` Nicolas Goaziou
2021-05-04  7:21                 ` Denis Maier
2021-05-04 10:54                 ` 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=87eeem5ta5.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=bdarcus@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: Notes about citations in Org (part 3)' \
    /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

Code repositories for project(s) associated with this 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).