Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make "presets" pervasive? #89

Open
bdarcus opened this issue Jun 24, 2023 · 1 comment
Open

Make "presets" pervasive? #89

bdarcus opened this issue Jun 24, 2023 · 1 comment
Labels
configuration Style config options enhancement New feature or request

Comments

@bdarcus
Copy link
Owner

bdarcus commented Jun 24, 2023

Idea

I need to think more on the details, but the idea is to have pervasive options for "presets", that bundle together "custom" logic that in CSL 1.0 are defined in macros.

So the way that would work is to define some X number of such presets, which are based on 1.0 styles, and then extend as needed. That gets the benefits of my earlier shared components, without need to distribute them apart from the code.

For sure there are wrinkles, but I'm trying to avoid need for conditionals, and make authoring or editing a style as simple as possible.

I may also want to enforce a more strict separation between global options and local templates.

Strategies

Edit: I've elected path 2 for now, starting with Chicago author-date.

To do that right, however, I see two options:

  1. Create a style analyzer #29 and Convert existing macros and styles #45 to see what's practical; to automate a lot of it.
  2. better/easier, just hand-author a complete author-date style, either Chicago and APA, and see how this might work

The first goes general to concrete, and the second the reverse.


I'm toying now with extending some of the design tweaks, so one could do something like this:

title: ABC journal
processing: author-date # preset processing
dates: long # preset dates
contributors: long # preset contributors
titles: apa # preset titles
citation:
  template:
    - contributor: author

Originally posted by @bdarcus in #49 (comment)

@bdarcus bdarcus changed the title I'm toying now with extending some of the design tweaks, so one could do something like this: Making "presets" pervasive? Jun 24, 2023
@bdarcus

This comment was marked as outdated.

@bdarcus bdarcus added the enhancement New feature or request label Jun 24, 2023
@bdarcus bdarcus added this to the 0.2: mostly-complete models milestone Jun 29, 2023
@bdarcus bdarcus mentioned this issue Jun 30, 2023
3 tasks
@bdarcus bdarcus changed the title Making "presets" pervasive? Make "presets" pervasive? Dec 14, 2023
@bdarcus bdarcus added the configuration Style config options label Jan 24, 2024
@bdarcus bdarcus pinned this issue Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration Style config options enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant