nExercises: Create an exercise slide.

Description Usage Arguments Value

Description

While creating the list with the course structure, with the nExercise function it is very easy to include slides for the exercises. The only parameter is the number of exercise which should be shown on the slide. If you want a slide with three exercises on it, than just use nExercise(3). This function is only implemented for 0 < n < 4, and creates for n = 3 the following slide:

1
2
#
\threeExercises

The main advantage of using this function is the counter used in the latex command threeExercises. Notice, that the counter will be resetted after every subsection!

Usage

1

Arguments

n

(integer(1))
The number of exercises shown on the slide.

Value

(character(2))
A character vector containing the lines of the exercise slide. This vector has the class exercise_slide which is needed for the function createCourse, that it recognize how to deal with the character vector.


compstat-lmu/rcoursesFunctions documentation built on May 8, 2019, 2:43 p.m.