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

Customize output of APA style #238

Closed
bittner opened this issue Apr 15, 2024 · 6 comments
Closed

Customize output of APA style #238

bittner opened this issue Apr 15, 2024 · 6 comments

Comments

@bittner
Copy link

bittner commented Apr 15, 2024

My kids need to use a custom APA style for their bibliography at high school. I believe, it's an older version of the current implementation (e.g. in German, "aufgerufen am" should be used for the English "retrieved" on URL references, and references should show only the publication year in braces after the author's name instead of "YYYY, DD. MONTH").

What is the canonical way to apply such customizations, if there is any?

Currently, as we use the texlive/texlive Docker image, we simply sed-replace the appropriate portions in the appropriate style sheet when the CI pipeline runs to build a PDF from the LaTeX document.—Works, but a fragile approach in the long run.

@plk
Copy link
Owner

plk commented Apr 15, 2024

I am afraid that the APA style is not very customisable as it's supposed to be APA compliant and some of the requirements are complex enough to make customisation difficult. If you need a variant, I recommend that you just copy the style and modify it as you need.

@bittner bittner closed this as completed Apr 15, 2024
@moewew
Copy link
Contributor

moewew commented Apr 16, 2024

That all said, the usual way of applying small changes to biblatex styles is not via replacements/changes in the source files, but via code in the document preamble. See for example https://tex.stackexchange.com/q/12806/35864 and specifically https://tex.stackexchange.com/q/137034/35864 on how to change localisation strings (a full example document modifying bibstrings is at https://tex.stackexchange.com/q/67153/35864 or https://tex.stackexchange.com/q/36307/35864).

If you do need to change source files, it is generally recommended to rename the files (which for biblatex styles can mean to rename several files associated with the style) to avoid confusion.

@bittner
Copy link
Author

bittner commented Apr 16, 2024

That all said, the usual way of applying small changes to biblatex styles is not via replacements/changes in the source files, but via code in the document preamble.

This was exactly what my question was aimed at. The solution adapted from one of the resources mentioned above:

\DefineBibliographyStrings{ngerman}{%
  retrieved = {aufgerufen am}
}

Thanks for following up! 🥇

@PsychicBirdy
Copy link
Contributor

Why not use the precursor to biblatex-apa, that is, biblatex-apa6?
https://ctan.org/pkg/biblatex-apa6

@bittner
Copy link
Author

bittner commented Apr 16, 2024

Why not use the precursor to biblatex-apa, that is, biblatex-apa6? https://ctan.org/pkg/biblatex-apa6

Because it doesn't match what the school asks for (e.g. "aufgerufen am", "o.D.").

@PsychicBirdy
Copy link
Contributor

My bad. I thought it was closer to what you are looking for than it actually is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants