latexdef: Exam PDF with LaTeX

View source: R/latex.R

latexdefR Documentation

Exam PDF with LaTeX

Description

If exams is called by exams2pdf,

  • latexdef adds a TeX macro by ⁠\def\name{body}⁠ and

  • answercol adds a ⁠\def\answercol{n}⁠ to modify the number of output columns for multiple-choice answers to the LaTeX file.

Usage

latexdef(name, body)

answercol(n)

add_answercol_def(n)

Arguments

name

character: macro name

body, n

character: macro body

Value

Nothing

Examples

answercol(2)

exams.forge documentation built on Sept. 11, 2024, 5:32 p.m.