You can find the solutions for this exercise as well as the following
ones in the exercises
folder in the workshop material. You
can also navigate the workshop material online (including
exercises and solutions).
You can copy code from the exercise and solution files by clicking on the small blue clipboard icon in the upper right corner of the boxes showing the code.
In this exercise you will create revision letter that quotes sections of the revised manuscript.
label_quotes: yes
in the YAML front
matter of your manuscript. Otherwise the labelled quote-tags will be
visible in the rendered manuscript.
In the manuscript the labelled paragraph could look like this:
<@~{#quote-name}
This is the revised paragraph. It's so good that I want to show it in the revision letter!
~@>
To automatically quote this paragraph in the revision letter, you can do the following.
```{r}
quote_from_tex("quote-name", file = "path/to/revision.tex")
```
Create a version of your manuscript with marked-up channges.
.tex
file of your manuscript.In diff the labelled paragraph could look like this:
% <@~{#revised-paragraph}
Implicit learning refers to the ability to adapt to regularities
inherent in the environment in the absence of conscious awareness
about the ongoing learning process itself or \DIFdelbegin
\DIFdel{about the outcome of what is learned}\DIFdelend \DIFaddbegin
\DIFadd{bla bla bla}\DIFaddend . This ability is fundamental for
human beings as it allows us to act optimally in stable environments
with relatively little effort.
% ~@>
To automatically quote this paragraph in the revision letter, you can do the following.
```{r}
quote_from_tex("revised-paragraph", file = "path/to/diff.tex")
```
After you have tried yourself, feel free to have a look at our solutions.