Closed RaphaelS1 closed 1 year ago
Have we had a decision on how we format numbers, i.e. 1 vs 1
vs $1$?
No formatting unless it's for code or mathematical equation
Ok, I added it to the list above.
Do we want a point at the end of figure / table descriptions?
Regarding internal references, is everyone aware of how quarto cross references work, especially in relation to hyperlinks? See https://quarto.org/docs/books/book-crossrefs.html#hyperlinks
The gist is:
sec
prefix, e.g. # Pipelines {#sec-pipelines}
to make them referencable with @sec-pipelines
[pipelines](pipelines.qmd)
or [some topic](#topic)
, won't work for the printed version, so the @sec-xyz
version should probably be preferred?I bring this up because I cleaned up some hyperlinks in Chapter 3, and because I wanted to refer to the overview tables in the appendix, which failed I think because #appendix-overview-tables
lacks the sec
prefix.
Then again, this might be "fix/unify that in one big editing pass at the end" kind of thing.
Thanks @jemus42 good point will add referencing above
Listing here style choices that should be made consistent throughout the book. We can check this at the very end before publication but ideally we should make this changes as we go along with edits:
R
=
not<-
mtcars
(regression) orpenguins
(classification). In the appendix we will show thestr
andhead
of these so you don't need to repeat this in the text. Post here if you need to use a different one and we'll add to the list.as_task_regr(iris, "sepal_length", id = "flowers")
lrn
!English
Quarto
package
package::function()
function()
$field
$method()
r link()
function.{{< include _optional.qmd >}}
after the section title (make sure to leave an empty line between them)1
, $1$): No formatting unless it's for code or mathematical equationdefine
function when you want to define a new term. This will print the term, add an entry to the index and highlight the term in the margin, e.g.r define("benchmark")
index
function when you want to print a term and add an index entry for a term, e.g.r index("benchmark")
link
function to create accessible external links#| fig-alt:
in front matter of R code to add alternative figure text. This is NOT the same as the caption but should describe what is shown in a figure for people with screen readers who cannot see the image.%%| alt-text:
in front matter or mermaids diagrams to add alternative figure text.ref
function, add the pkg name and double colon for any function outside of the mlr3verse or to reduce ambiguity, for example in Chapter 4 we writeparadox::to_tune
as without this a reader assumes the function comes frommlr3tuning
.[some topic](#topic)
for sections, alwaystopic (@sec-...)
lrn("regr.featureless")
msr("regr.rmse")
:::{.callout-warning} :::
When to use: Important exceptions that readers should be aware of, e.g. a mistake that could happen if a naive approach is used or the software is used wrongly.:::{.callout-tip} :::
When to use: Optional useful points about code or other content, more advanced notes.:::{.callout-note} :::
When to use: NEVER directly use this callout block. Instead use{{< include _optional.qmd >}}
to mark optional (sub)sections which can be skipped on first reading, e.g. complex stuff or tangential stuff:::{.callout-important} :::
When to use: NEVER:::{.callout-caution} :::
When to use: NEVER