add_tex_content: Replaces content in tex template file

View source: R/exams_fcts_pdf.R

add_tex_contentR Documentation

Replaces content in tex template file

Description

Used for replacing names, id, version and so on on tex exercise files.

Usage

add_tex_content(
  f_in,
  f_out,
  student_name,
  student_version,
  student_id,
  n_q,
  class_name,
  exercise_name,
  exam_links
)

Arguments

f_in

File with tex code

student_name

Name of student

student_version

Version of student

n_q

Number of questions in exercise

class_name

Name of class

exercise_name

Name of exercise

exam_links

Links to add

dir_out

Folder out

Value

TRUE, if sucessfull

Examples

## Not run: 
afedR_add_html_content(f_in = 'example.html', dir_out = tempdir(),
                       student_name = 'George', student_version = 1,
                       n_q = 10, class_name = 'example class', exercise_name = 'sample',
                       exam_links = NA)

## End(Not run)

msperlin/afedR documentation built on Sept. 11, 2022, 9:49 a.m.