iqb-research / IQB-Methods

Collection of materials coming from the Methods Team.
https://iqb-research.github.io/IQB-Methods/
2 stars 1 forks source link

examples naming authors #85

Closed grewered closed 1 month ago

grewered commented 2 months ago

examples for how to name authors less obviously. is it better at the top or at the bottom? any other ideas?

nickhaf commented 2 months ago

I like it in italics. It would be great though if we could use the yaml header author functionality, so we can use it like a template. I think it should be possible to change how author is rendered from the yaml, we can look into it at our website meeting.

grewered commented 2 months ago

hey Nicklas,

ich hatte mich letztens ein bisschen ein scss und custom themes eingearbeitet. du hast ja eine styles.css Datei im Ordner der Webseite. Hattest du damit ein custom theme erstellt? weil die Datei enthält ja nur Zeile. Ich hatte halt bei eine scss Datei genutzt.

lg Edna

nickhaf commented 1 month ago

hey Nicklas, ich hatte mich letztens ein bisschen ein scss und custom themes eingearbeitet. du hast ja eine styles.css Datei im Ordner der Webseite. Hattest du damit ein custom theme erstellt? weil die Datei enthält ja nur Zeile. Ich hatte halt bei eine scss Datei genutzt. lg Edna

I've used scss in some projects, however not for changing the YAML header. If you want you can look into it, otherwise we can try it at our meetint next week, maybe @franikowsp has an idea?

franikowsp commented 1 month ago

@grewered I could take a look at it. What exactly do we have and what do we need by now? 🤔

nickhaf commented 1 month ago

@grewered I could take a look at it. What exactly do we have and what do we need by now? 🤔

Only if you want to. The idea was to change the appearance of the authors defined in the YAML header of a quarto file (for example write them in italics). I haven't done something like that before, so I was just wondering if you had some experience doing this. But I can of course also look into it if you haven't done something like that before.

franikowsp commented 1 month ago

I have an idea where to look 🤔 I don't know whether it can be automatically wired to the yaml header, but that might be possible!

franikowsp commented 1 month ago

In (S)CSS, you could add:

.quarto-title-meta-heading {
  display: none;
}

.quarto-title-meta-contents {
  padding-top: 10px;
  color: grey;
  // font-style: italic;
}

The quarto-title-meta-heading class comprises the header, e.g., "AUTHOR".

Please note that this formatting also affects other metadata that are printed to the header, e.g., date. Unfortunately, there is no other class added per default (quarto-title-meta-author-heading). If we want a totally different behavior in the header, we might need to work with partials, I guess 🤔

HTML partials: https://quarto.org/docs/journals/templates.html#html-partials The title block partial (I guess, this one needs to be tweaked): https://github.com/quarto-dev/quarto-cli/blob/main/src/resources/formats/html/pandoc/title-block.html

grewered commented 1 month ago

now it worked well, that I know now how to call that box. I could easily change font, color, or show the header again, etc. @nickhaf what do you think?

this is how it looks on my test file: grafik

nickhaf commented 1 month ago

Nice solution, thank you! We can talk about the concrete style with the others, I've opened an issue #116 for this, but the foundation is great, please merge.