Chapitre 1 Introduction to fairify report

1.1 Global options: the “setup.R” script

Before each Rmd document composing the report the script “setup.R” located in the same folder is executed. It prepares the report for knitting and loads global configuration given by the templates. It can also be used by you to add your own settings like chunk options.

1.2 How to cite and handle a bibliography

See the Citations section in the bookdown reference book.

An example of a citation in the text without brackets: Knuth (1984).

An example in brackets (Knuth 1984).

1.3 Equations

Excerpt from Section 2.2.1 of bookdown reference book.

To number and refer to equations, put them in the equation environments and assign labels to them using the syntax (\#eq:label), e.g.,

\begin{equation}
  f\left(k\right) = \binom{n}{k} p^k\left(1-p\right)^{n-k}
  (\#eq:binom)
\end{equation}

It renders the equation below:

\[\begin{equation} f\left(k\right)=\binom{n}{k}p^k\left(1-p\right)^{n-k} \tag{1.1} \end{equation}\]

You may refer to it using \@ref(eq:binom), e.g., see Equation (1.1).

Knuth, Donald E. 1984. “Literate Programming.” Comput. J. (USA) 27 (2): 97–111. https://doi.org/10.1093/comjnl/27.2.97.

References

Knuth, Donald E. 1984. “Literate Programming.” Comput. J. (USA) 27 (2): 97–111. https://doi.org/10.1093/comjnl/27.2.97.